TECLAST - TbooK 10Sをroot化

TbooK 10Sをroot化してシステムアプリをいじる。
書き換えはリカバリできる状態にしてから行おう。


こちらの方法ではroot化できなかったので、boot.imgを編集してroot化してみた。
幸いTeclastのサポートページにIntel Phone Flash Toolを使うファームウェアが公開されているので万が一の場合はリカバリ可能。
起動不能になる恐れあり。

boot.imgを変更してroot化

[ROM&刷机] 新春大礼!凤凰系统 For Tbook 10S刷机固件
http://bbs.teclast.com/thread-779835-1-1.html

上のフォーラムからTbook10Sのファームウェアに含まれるboot.imgを入手
boot.imgの展開・再構築の手順でdefault.propの以下を編集

ro.secure=0
fastbootモードから作成したboot.img(boot-root.img)で起動
>fastboot boot boot-root.img

起動後、ADBでアクセスするとルートアクセス状態になっている
>adb shell
root@tbook10s_e6n2_dg:/ #

SuperSUの導入

SuperSUを手動でインストール

adb remount
adb push UPDATE-SuperSU-v2.46/common/. /data/tmp
adb push UPDATE-SuperSU-v2.46/x86/. /data/tmp
adb shell cp /data/tmp/Superuser.apk /system/app/Superuser.apk
adb shell cp /data/tmp/su /system/xbin
adb shell cp /data/tmp/su /system/xbin/daemonsu
adb shell cp /data/tmp/supolicy /system/xbin
adb shell cp /data/tmp/libsupol.so /system/lib
adb shell cp /data/tmp/99SuperSUDaemon /system/etc/init.d/99SuperSUDaemon
adb shell cp /data/tmp/install-recovery.sh /system/etc/install-recovery.sh
adb shell rm /system/bin/install-recovery.sh
adb shell ln -s /system/etc/install-recovery.sh /system/bin/install-recovery.sh
adb shell /system/xbin/su --daemon
adb shell /system/xbin/su --install

dm-verityを無効化したboot.imgを書き込む

SuperSUの導入などSystemファイルを書き換えるとdm-verityで引っかかり起動しなくなる。
オリジナルのboot.imgを取得後、編集(ro.secure=1に戻す)

adb shell dd if=/dev/block/platform/pci0000:00/80860F14:00/by-name/android_boot of=/storage/sdcard0/boot.img
adb pull /storage/sdcard0/boot.img

fstab
/dev/block/by-name/android_system  /system  ext4  ro  wait,verify
↓
/dev/block/by-name/android_system  /system  ext4  ro  wait
fastboot flashコマンドが使えないので、完成したboot.imgをDDコマンドで書き換えた。
root@tbook10s_e6n2_dg:/ # dd if=/storage/sdcard0/boot-no-dm-verity.img of=/dev/block/platform/pci0000:00/80860F14:00/by-name/android_boot




0 件のコメント :