I am looking for a way to log requests and start / end times made by the built-in webview. I cannot find a way to do this so far, except rooting the phone and running tcpdump. This works for me, but I need to run this in a field, so this is not real. There are many ways to register the URL and start time, but I do not see the end (or, bonus, metadata of the full response).
shouldLoadResource could work if I could wrap the current request, but I would have to get it directly with HTTP support in order to return it in bulk, because the API is not enough to go completely to the internal request. (I donβt want to do this for a number of reasons, including the fact that web browsing on devices does not use the same network stack as the HTTP classes, and because it will change the subresource time.)
I am trying to find ways to enable the chromium_net debug flags for this, but I cannot figure out how to do this in the context of WebView or system properties.
I really would not post my own website to do this, but if needs should ...
source share