安卓7.0以后不在默认信任用户根证书,需要在network_security_config.xml中信任用户根证书。

1、首先需要使用apktool反编译APK

2、更改res/xml中的network_security_config.xml

<network-security-config>
<base-config>
<trust-anchors>
<!– Trust preinstalled CAs –>
<certificates src=”system” />
<!– Additionally trust user added CAs –>
<certificates src=”user” />
</trust-anchors>
</base-config>
</network-security-config>

3、重新打包APK安装,抓包即可

参考:

https://www.kalvin.cn/article/14

Android 7: Intercepting App Traffic

http://www.freebuf.com/articles/terminal/158492.html

https://www.jianshu.com/p/eb766d2bb837

标签: none