编译版https://github.com/madeye/proxydroid
修改自https://github.com/madeye/proxydroid
<hash>.0
格式,然后adb push到手机/data/local/tmp/目录
(openssl x509 -inform DER -in your_cacert.der -out cacert.pem)
openssl x509 -inform PEM -subject_hash_old -in cacert.pem |head -1
mv cacert.pem <hash>.0
手动操作
获取con ls -Z /system/etc/security/cacerts | head -n1
(con = u:object_r:system_security_cacerts_file:s0)
cp -pR /system/etc/security/cacerts /data/local/tmp/
cp /data/local/tmp/"+yourcertname+" /data/local/tmp/cacerts/
chmod -R 755 /data/local/tmp/cacerts
chcon -R "+con+" /data/local/tmp/cacerts
mount /data/local/tmp/cacerts /system/etc/security/cacerts
prefs set fiddler.network.https.SetCNFromSNI true
开启SNI才行