Android 9 (Pie) - Not able to capture any api (native / web) through network monitoring tools such Charles proxy and Fiddler

心已入冬 提交于 2019-12-13 02:49:55

问题


I am trying to capture apis triggered from native app and website through Charles proxy / Fiddler , But I am not able to see any api there.

I have set manual proxy as well.

I am able to see apis for Android 8 and below . But not working for Android 9 .

In Android 9 , I could the screens getting loaded completely , but still I am not able to see the apis in any monitor.


回答1:


Add android:usesCleartextTraffic="true" in AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="your pckag">

    <uses-permission android:name="android.permission.INTERNET" />


    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:usesCleartextTraffic="true">
</manifest>


来源:https://stackoverflow.com/questions/54451203/android-9-pie-not-able-to-capture-any-api-native-web-through-network-mon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!