前言:
项目中有需要对system/etc/hosts进行修改。
环境 | 值 |
---|---|
系统类型 | userdebug |
系统版本 | 9.0 |
方案商 | MTK |
问题:
system/etc/hosts仅root用户可以修改
步骤:
1,以root用户进入shell
adb root
adbd is already running as root
2,重新挂载设备
adb remount
remount of the / superblock failed: Permission denied
2,汗,提示没有权限,需要关闭验证,原因是9.0开启了avb2.0,看这里。