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
Device | Keys |
---|---|
hammerhead | Press and hold both Volume Up and Volume Down, then press and hold Power |
flo | Press and hold Volume Down, then press and hold Power |
deb | Press and hold Volume Down, then press and hold Power |
manta | Press and hold both Volume Up and Volume Down, then press and hold Power |
mako | Press and hold Volume Down, then press and hold Power |
grouper | Press and hold Volume Down, then press and hold Power |
tilapia | Press and hold Volume Down, then press and hold Power |
phantasm | Power the device, cover it with one hand after the LEDs light up and until they turn red |
maguro | Press and hold both Volume Up and Volume Down, then press and hold Power |
toro | Press and hold both Volume Up and Volume Down, then press and hold Power |
toroplus | Press and hold both Volume Up and Volume Down, then press and hold Power |
panda | Press and hold Input, then press Power |
wingray | Press and hold Volume Down, then press and hold Power |
crespo | Press and hold Volume Up, then press and hold Power |
crespo4g | Press 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
'Programming > android' 카테고리의 다른 글
hikey <waiting for any device> (1) | 2018.07.02 |
---|---|
Build Android-P preview3 on angler (1) | 2018.06.18 |
source build/envsetup.sh error (0) | 2017.05.29 |
api doc error on Android 4.4.3 (kitkat) (1) | 2017.05.24 |
perl 5.18 switch module error (0) | 2015.03.20 |
Can't locate Switch.pm (0) | 2014.09.29 |
android-x86 build 도중 만난 errors (0) | 2014.07.13 |
android Kitkat 을 VMware에 설치해보자 (0) | 2014.07.13 |
format_output.h:94:22: error: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive] (0) | 2013.12.19 |
linker.cpp error (0) | 2013.12.19 |