1.关机,重启让手机进入fastboot模式
2. 电脑运行cmd
fastboot devices 回车
如果它列出了你的手机,HT*******,说明手机连接好了
3. fastboot flash recovery *.img 烧recovery.img
4. 解压google官方包, 如果修改framework,解压image-hammerhead-kot49h.zip,替换指定的img,然后打包
5. adb reboot bootloader
6. 运行flash-all.bat 烧rom包
增加root 权限
system/core/adb/adb.c
should_drop_privileges()
把return 1 改成return 0;
2. 电脑运行cmd
fastboot devices 回车
如果它列出了你的手机,HT*******,说明手机连接好了
3. fastboot flash recovery *.img 烧recovery.img
4. 解压google官方包, 如果修改framework,解压image-hammerhead-kot49h.zip,替换指定的img,然后打包
5. adb reboot bootloader
6. 运行flash-all.bat 烧rom包
增加root 权限
system/core/adb/adb.c
should_drop_privileges()
把return 1 改成return 0;