728x90

https://source.android.com/source/building-devices.html


Building fastboot and adb

$make fastboot adb

out/host/linux-x86/bin$ ls fastboot



fastboot mode on target device

Booting into fastboot mode


DeviceKeys
hammerheadPress and hold both Volume Up and Volume Down, then press and hold Power
floPress and hold Volume Down, then press and hold Power
debPress and hold Volume Down, then press and hold Power
mantaPress and hold both Volume Up and Volume Down, then press and hold Power
makoPress and hold Volume Down, then press and hold Power
grouperPress and hold Volume Down, then press and hold Power
tilapiaPress and hold Volume Down, then press and hold Power
phantasmPower the device, cover it with one hand after the LEDs light up and until they turn red
maguroPress and hold both Volume Up and Volume Down, then press and hold Power
toroPress and hold both Volume Up and Volume Down, then press and hold Power
toroplusPress and hold both Volume Up and Volume Down, then press and hold Power
pandaPress and hold Input, then press Power
wingrayPress and hold Volume Down, then press and hold Power
crespoPress and hold Volume Up, then press and hold Power
crespo4gPress and hold Volume Up, then press and hold Power




find ID for target device

$ ./fastboot devices



Unlock bootloader

$ fastboot oem unlock


Upload all image

 $ cd ./framework
 $ fastboot flashall


Upload each image

$ cd out/target/product/manta

 $ fastboot flash boot boot.img
 $ fastboot flash system system.img
 $ fastboot flash userdata userdata.img
 $ fastboot flash recovery recovery.img


done!!




************************************

On Nexus 10, after unlocking the bootloader, the internal storage is left unformatted and must be formatted with

$ fastboot format cache
$ fastboot format userdata


Cleaning up when adding proprietary binaries

In order to make sure that the newly installed binaries are properly taken into account after being extracted, the existing output of any previous build needs to be deleted with

$ make clobber


728x90

+ Recent posts