How to track traffic / HTTP (S) URL in Android?

I am wondering if there is a way to track HTTP (S) traffic on an Android phone? What I would like to do is get all the URLs that were available in the phone browser. I thought that this would be the intention of the browser, but I didn’t see anything - given that I’m green, maybe I just didn’t know where to look?

I answered the question and the answer here , but it only works for hyperlinks that were clicked by the user, however I need to catch all the URLs, including those that were printed by the user. Basically I need to know about every URL that has been opened in a web browser.

Is it possible to register any handler in the browser?

Is something like this possible?

+5
source share
2 answers

I'm not very sure how (or if) you can use it (never used it yourself), but it might be worth a look: Browser .getAllVisitedUrls (ContentResolver cr)

+1
source

Perhaps we could explore solutions from the PC platform:

  • Application Level : Set Global HTTP Proxy
  • Linux level : tcpdump or WireShark?
  • Change Android source : add a monitor module to the browser or network protocol stack

In fact, I also want to solve this problem effectively .

@Pawel Krakowiak, do you have a valid method now? Please contact me.

+1
source

All Articles