rk3399 Android7 root


#######################################################################################
執行指令之前說明:
因爲adb push 一直出現
adb push arm64\su system/xbin/
failed to copy 'arm64\su' to 'system/xbin//su': couldn't create file: Read-only file system
所以使用adb disable-verity就有權限了

如果adb disable-verity指令不執行,更換更高版本的adb
我這裏使用的是1.0.39版本的
E:\rk3399_aimi\RK3399_android7.1_root>adb verision
Android Debug Bridge version 1.0.39
########################################################################################

1.執行指令
adb root
adb remount
adb disable-verity
adb reboot 

1)重啓後再次執行
adb root
adb remount

2)安裝Superuser.apk
adb install common\Superuser.apk

3)push arm64的文件到3399的目錄中

adb push arm64\libsupol.so system/lib64
adb push arm64\su system/xbin/
adb push arm64\su system/xbin/daemonsu

4)給權限
adb shell 
chmod 06755 system/xbin/su
chmod 06755 system/xbin/daemonsu

2.aimi3399-android7.1-industry\system\core\rootdir\init.rc
init.rc需要添加一個service來執行如下命令
service daemonsu /system/xbin/daemonsu --auto-daemon
   class main
   seclabel u:r:tee-supplicant:s0
   
3.重啓機器並打開su apk,如果前面步驟操作成功則會提示重啓,點擊確認重啓後root成功

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章