adb fastboot 烧机 和 编译android的几个命令

来源:互联网 发布:更改照片尺寸软件 编辑:程序博客网 时间:2024/06/05 17:31

adb reboot bootloader

fastboot erase boot;
fastboot flash boot boot.img;

fastboot erase system;
fastboot flash system system.img;

fastboot erase userdata;
fastboot flash userdata userdata.img;

fastboot reboot;


按照相应的分区烧写



make systemimage - system.img

make userdataimage - userdata.img

make ramdisk - ramdisk.img

make snod - package system.img quickly(with this command, it will build a new system.img very quickly. well, you cannot use “make snod” for all the situations. it would not check the dependences. if you change some code in the framework which will effect other applications)

make update-api - update framework interface