PartI:build out image
1、framework
make -j8 systemimage #Location:out\target\product\<chipset>\system.img
或者make -j8 <target lib(32bit and 64bit)>,然后用 make snod 将上一步的目标库文件打包到 system.img
2、kernel
make -j8 bootimage #Location:out\target\product\<chipset>\boot.img
PartII:flash mode
adb reboot bootloader
fastboot erase sbl1
fastboot reboot
adb reboot bootloader
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash system_a system.img
fastboot flash system_b system.img
fastboot reboot
PS:生成的目标文件可执行单独push
adb root
adb remount
adb shell setenforce 0
adb puch <target lib(32bit and 64bit)> /system/lib/ and /system/lib64/
adb reboot