Blog Detail

  • Kindle Fire HD 安装第三方操作系统

    1. 获取 Root 权限

    Caution

    获取 Root 权限过程可能导致设备变砖,请谨慎操作!

    获取 Root 权限需要用到一个软件包:root_with_restore_by_bin4ry. 年代久远,链接不保证有效。

    此压缩包里包含了一个老版本的 adb 和 fastboot. fastboot 老到连 --version 参数都不支持。可以另外下载较新的版本使用,以下是本文使用的版本:

    $ adb version

    Android Debug Bridge version 1.0.39

    Version 0.0.1-4500957

    Installed as C:\Users\xxxx\Downloads\software\Windows\android_tools\adb.exe

    $ fastboot --version

    fastboot version 0.0.1-4500957

    Installed as C:\Users\xxxx\Downloads\software\Windows\android_tools\fastboot.exe

    操作之前,在设备设置中开启选项安全·启用 ADB, 主机上安装驱动 Kindle Fire USB Driver.

    连接设备与主机,在设备管理器中应能看到 Fire Devices/Android Composite ADB Interface. 此时用 adb 也可以找到设备:

    $ adb devices

    List of devices attached

    D025XXXXXXXXXXXX device

    解压 root_with_restore_by_bin4ry.zip 软件包后直接在命令行窗口运行里面的 RunMe.bat:

    $ RunMe

    ======================================================================

    = This script will root your Android phone with adb restore function =

    = Script by Bin4ry (thanks to Goroh_kun and tkymgr for the idea) =

    = Idea for Tablet S from Fi01_IS01 =

    = (14.12.2013) v33 =

    ======================================================================

    Device type:

    0) Xperia Root by cubeundcube

    1) New Standard-Root (thx Ariel Berkman)

    2) New Xperia Root by Goroh_kun (Xperia Z, Xperia V [JellyBean] ...)

    3) Old

    4) Old-Special (for example: Sony Tablet S, Medion Lifetab)

    G) Google Glass Mode (thx Saurik for the ab file)

    x) Unroot

    Make a choice:

    到此处选择 1, 按回车继续:

    Please connect Device with enabled USB-Debugging to your Computer

    adb server is out of date. killing...

    * daemon started successfully *

    Doing a Backup first, please confirm this on your device!

    Now unlock your device and confirm the backup operation.

    Done!

    请按任意键继续. . .

    Please select the RESTORE MY DATA option now on your device!

    Now unlock your device and confirm the restore operation.

    Please press any Key when restore is done.

    请按任意键继续. . .

    Going to reboot now ...

    3268 KB/s (104576 bytes in 0.031s)

    4744 KB/s (2139595 bytes in 0.440s)

    6105 KB/s (1165484 bytes in 0.186s)

    remote object '/system/bin/ric' does not exist

    .

    Going to copy files to it's place

    Rebooting again, please wait!

    找不到 C:\Users\xxxx\Downloads\ric

    Restoring previous Backup! Please select the RESTORE MY DATA option now on your device!

    Now unlock your device and confirm the restore operation.

    Please press any Key when restore is done.

    请按任意键继续. . .

    Going to reboot last time now ...

    You can close all open command-prompts now!

    After reboot all is done! Have fun!

    Bin4ry

    请按任意键继续. . .

    过程中按提示在主机和设备上操作即可,“找不到”的错误可忽略。至此 Root 完成。完成后增加了一个 SuperSU 应用和 su 命令。su 命令可以在 adb shell 中使用。

    在设备上打开 SuperSU. 其设置界面如下:

    主机上进入 adb shell:

    $ adb shell

    shell@android:/ $ su

    root@android:/ #

    键入 su 命令后,SuperSU 弹出一个授权对话框:

    授权后 adb shell 的提示符中用户变为 root, 可以“为所欲为”了。

    不过我们可以先做一些有意义的事情——备份。在 adb shell 中并切换为 root 用户后:

    $ dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img

    4096+0 records in

    4096+0 records out

    2097152 bytes transferred in 0.513 secs (4088015 bytes/sec)

    $ dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img

    16384+0 records in

    16384+0 records out

    8388608 bytes transferred in 2.081 secs (4031046 bytes/sec)

    $ dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img

    16384+0 records in

    16384+0 records out

    8388608 bytes transferred in 2.025 secs (4142522 bytes/sec)

    $ dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img

    1814528+0 records in

    1814528+0 records out

    929038336 bytes transferred in 261.382 secs (3554331 bytes/sec)

    以上命令将关键数据备份到 /sdcard 目录下。然后回到主机命令行,把文件复制回主机:

    $ adb pull /sdcard/boot0block.img

    /sdcard/boot0block.img: 1 file pulled. 3.3 MB/s (2097152 bytes in 0.601s)

    $ adb pull /sdcard/stock-boot.img

    /sdcard/stock-boot.img: 1 file pulled. 3.2 MB/s (8388608 bytes in 2.474s)

    $ adb pull /sdcard/stock-recovery.img

    /sdcard/stock-recovery.img: 1 file pulled. 3.1 MB/s (8388608 bytes in 2.554s)

    $ adb pull /sdcard/stock-system.img # This will take a few minutes

    /sdcard/stock-system.img: 1 file pulled. 3.2 MB/s (929038336 bytes in 280.605s)

    Tip

    备份的文件据说可以通过 fastboot 烧入设备,完全恢复原来状态:

    $ fastboot -i 0x1949 flash boot stock-boot.img

    $ fastboot -i 0x1949 flash recovery stock-recovery.img

    $ fastboot -i 0x1949 flash system stock-system.img

    $ fastboot -i 0x1949 reboot

    没试过不作保证。