手机要连着代理下载安装charles代理证书,手机打开安装地址:http://charlesproxy.com/getssl
为了解决Android7.x以上无法抓取https协议的问题,需要修改如下两个文件,修改后重新打release包即可,打包流程,详见打包流程文档:
xml version="1.0" encoding="utf-8"?>
android:name="com.peopletech.arms.base.BaseApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppBaseTheme"
android:requestLegacyExternalStorage="true"
tools:replace="android:name,android:theme,android:allowBackup"
android:networkSecurityConfig="@xml/network_security_config"
>