用户证书移到系统目录
/data/misc/user/0/cacerts-added移到/system/etc/security/cacerts

adb shell
su
cd /data/misc/user/0/cacerts-added
ls
e5c3944b.0
# mv e5c3944b.0 /system/etc/security/cacerts

成功

容易出现的错误

出现错误: Read-only file system

adb重新挂载:

adb remount

如果再抛错:Not running as root. Try "adb root" first.remount failed

Not running as root. Try "adb root" first.
remount failed

直接输入

adb root

 以root用户身份重启adbd服务

restarting adbd as root

再去挪证书,成功!!!

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐