Nexus 6P 修改内核ro.debuggable

2018-10-22  本文已影响48人  dcharles

1、首先在输入的固件image-angler-xxx.zip中导出boot.img文件
2、git clone https://github.com/xiaolu/mkbootimg_tools
(特别感谢大佬的工具
3、如下

xxx@ubuntu:~/Desktop/mkbootimg_tools$ ./mkboot boot.img boot
Unpack & decompress boot.img to boot
  kernel         : kernel
  ramdisk        : ramdisk
  page size      : 4096
  kernel size    : 11152851
  ramdisk size   : 1482229
  base           : 0x00000000
  kernel offset  : 0x00008000
  ramdisk offset : 0x02000000
  tags offset    : 0x01e00000
  cmd line       : androidboot.hardware=angler androidboot.console=ttyHSL0 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-3 no_console_suspend buildvariant=user
ramdisk is gzip format.
Unpack completed.
$ vim ramdisk/default.prop
xxxx@ubuntu:~/Desktop/mkbootimg_tools$ ./mkboot boot boot2.img
mkbootimg from boot/img_info.
  kernel         : kernel
  ramdisk        : new_ramdisk
  page size      : 4096
  kernel size    : 11152851
  ramdisk size   : 1482732
  base           : 0x00000000
  kernel offset  : 0x00008000
  ramdisk offset : 0x02000000
  tags offset    : 0x01e00000
  cmd line       : androidboot.hardware=angler androidboot.console=ttyHSL0 msm_rtb.filter=0x37 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 boot_cpus=0-3 no_console_suspend buildvariant=user
ramdisk is gzip format.
Kernel size: 11152851, new ramdisk size: 1482732, boot2.img: 12640256.
boot2.img has been created.
...

$ adb reboot bootloader
* daemon not running; starting now at tcp:5037
* daemon started successfully

$ fastboot flash boot boot.img
target reported max download size of 494927872 bytes
sending 'boot' (12344 KB)...
OKAY [  0.319s]
writing 'boot'...
OKAY [  0.183s]
finished. total time: 0.501s

$ fastboot reboot
rebooting...

finished. total time: 0.021s

重新刷ROOT
Enjoy!!!!!

上一篇下一篇

猜你喜欢

热点阅读