【问题标题】:Android 9 (Pie) - Not able to capture any api (native / web) through network monitoring tools such Charles proxy and FiddlerAndroid 9 (Pie) - 无法通过 Charles proxy 和 Fiddler 等网络监控工具捕获任何 api (native / web)
【发布时间】:2019-01-30 23:36:09
【问题描述】:

我正在尝试通过 Charles proxy / Fiddler 捕获从本机应用程序和网站触发的 api,但我在那里看不到任何 api。

我也设置了手动代理。

我能够看到适用于 Android 8 及更低版本的 API。但不适用于 Android 9。

在 Android 9 中,我可以完全加载屏幕,但我仍然无法在任何监视器中看到 api。

【问题讨论】:

标签: android fiddler charles-proxy android-9.0-pie


【解决方案1】:

在AndroidManifest.xml中添加android:usesCleartextTraffic="true"

<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>

【讨论】:

  • android:usesCleartextTraffic="true" 这是行
  • 我已经完成了,但仍然无法正常工作。问题是网络事务正在发生,但它绕过了 Android 9 中的代理工具。
  • 您无法通过简单地编辑 AndroidManifest.xml 来使其工作。您必须改为添加网络安全配置。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多