adb root
# 关闭System分区验证 $ adb disable-verity $ # 以Root方式运行adbd $ adb root $ # 重新挂载所有分区(需要Root权限) # 等价于 adb shell mount -o remount,rw /system $ adb remount $ # 进入Shell环境 $ adb shell $ # 切换为root $ su $ # 查看当前用户ID信息 $ id $ # 查看SELinux设置 $ getenforce 0 $ # 关闭SELinux防护 $ setenforce 0 $ # 查看挂载分区情况 $ df -h $ # 查看所有挂载分区 $ mount $ # 查看data目录列表(需要Root权限) $ ls -ls /data/data $ # 将只读System分区重新挂载为可读可写 $ mount -o remount,rw /dev/block/mtdblock0/system /system $ # 将只读根分区重新挂载为可读可写 $ mount -o remount,rw rootfs / $ # 把ro.secure设为0,persist.service.adb.enable设为1 # adbd进程就会以root用户的身份启动 $ vi /default.prop $ # 退出shell环境 $ exit $ # 撤销Root权限 $ adb unroot $
adbd-Insecure-v2.00.apk
https://forum.xda-developers.com/showthread.php?t=1687590
=============== End