本来以为直接把Charles证书改成系统证书格式,然后通过mt管理器root之后移动到系统证书目录就行了,结果访问baidu仍然显示网络错误,折腾一晚上。安装为用户证书,又与系统证书冲突。
手机型号:荣耀v10
EMUI:8.0.0
Android:8.0.0
简单说一下坑点
1、直接移动到系统证书目录默认权限660,可读写不可执行,访问百度证书过期

2、荣耀系统root,默认只读,无法重写system目录文件权限,显示Read-only file system,且adb root无效,只能进入shell后切换到root
bash
adb shell
su
chmod 777 /system/etc/security/cacerts/5b933da4.0

3、重新挂载system为可写也不行
bash
mount -o rw,remount /system

4、使用syslock解锁system显示成功了,但实际上adb操作仍然不行


5、而且由于system目录只读,也无法删除系统证书,导致直接安装用户证书也不行
bash
rm /system/etc/security/cacerts/5b933da4.0

解决方案:
刷一个第三方twrp,挂载system分区设置为可写,目的是修改证书权限
然后去verify校验,目的是adb root


重启后,直接在mt管理器中修改权限为777即可。
