WebView supports the kLogNetLog
flag to log debugging network info to a JSON file on disk.
userdebug
or eng
Android build (you can check with adb shell getprop ro.build.type
). Flags cannot be enabled on production builds of Android.jsonFile=foo.json
)build/android/adb_system_webview_command_line --log-net-log=${jsonFile}
# appPackageName is the package name of whatever app you're interested (ex. # WebView shell is "org.chromium.webview_shell"). appDataDir="$(adb shell pm dump ${appPackageName} | grep 'dataDir=' | sed 's/^ *dataDir=//')" && \ adb pull "${appDataDir}/app_webview/${jsonFile}"
For more details, see the implementation in AwUrlRequestContextGetter. For support in the network service code path, see http://crbug.com/902039.