Re: [android-porting] Re: Question on fastboot oem unlock

2017-08-02 Thread Sooraj Sizon
Hello ,
You should not edit the fastboot binary , if you do that it will only work 
on your pc .
You should change it in the Android Bootloader Sources 
platform/bootable/bootloader , and then flash the compiled new bootloader 
binary to bootloader partition now your custom commands will work.
But there are a lot of other things to be considered while doing this - 
 If the device has been signed by oem ?
 When you do a bootloader bring-up you will also have to configure GPIO 
pinouts for uart / serial console.
 After this Bootloader also does the function of low level hardware 
initialization such as display panel . At this stage you will also have to 
work on panel bring up. 
 

On Friday, July 28, 2017 at 8:04:27 PM UTC+5:30, Paul Chang wrote:
>
> Device side's codes are bootloader/lk
>
> 2017年7月15日 21:41,"Joey Troy" 写道:
>
> So far no luck. Would you have an idea on how I would implement this on 
> 5.1.1?
>
> On Thursday, July 13, 2017 at 10:48:31 AM UTC-6, Joey Troy wrote:
>>
>> Thanks Glen, I have been building for Lollipop and the .cpp files are not 
>> in that branch. I will see what I can do to merge them in so I can make 
>> those changes to just wipe the partition on an unlock.
>>
>> On Thursday, July 13, 2017 at 8:41:54 AM UTC-6, Glenn Kasten wrote:
>>>
>>> > 1. Is it possible to rename the unlock command to say 'fastboot oem 
>>> secret_word'?
>>>
>>> The host side of fastboot is open source, so you can do whatever you 
>>> want to it, including adding an alias called "secret_word" or any other 
>>> change. See
>>> https://android.googlesource.com/platform/system/core/+/master/fastboot
>>>
>>> However the device side of fastboot is often closed source, so you would 
>>> need to work with the device OEM if you want to change that.
>>>
>>> > 2. Is is possible if some one unlocks the device that it also formats 
>>> the /system partition?
>>>
>>> Standard implementations wipe the data partition.  If you want to modify 
>>> the code to wipe more partitions, see #1 above.
>>>
>>> On Wednesday, July 12, 2017 at 11:35:34 AM UTC-7, Joey Troy wrote:

 I have two questions and was wondering if anyone could assist

 1. Is it possible to rename the unlock command to say 'fastboot oem 
 secret_word'?

 2. Is is possible if some one unlocks the device that it also formats 
 the /system partition?

 Thanks,

 Joey

>>> -- 
> -- 
> unsubscribe: android-porti...@googlegroups.com 
> website: http://groups.google.com/group/android-porting
>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "android-porting" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to android-porti...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-porting] Re: what's the efficiency way to debug recovery code?

2017-08-02 Thread Sooraj Sizon
make -j8 recoveryimage 
and just flash recovery through fastboot

On Thursday, May 4, 2017 at 7:38:05 PM UTC+5:30, yf...@mobvoi.com wrote:
>
> I'm modifying the recovery code to fit some feature, here's my steps:
> build all project with `make -j8`
> build ota package with `make otapackages`
> flash the image to the device
> push the ota package to somewhere and modify `/cache/recovery/command`
> adb reboot recovery
>
> these step cost me lots of time, is there an easy way to debug my code?
>
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.