Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to monitor HTTP(S) traffic / URLs in Android?

Tags:

android

I'm interested in whether there is a way to monitor HTTP(S) traffic on an Android phone? What I would like to do is to be able to retrieve all URLs that have been accessed on the phone's browser. I thought that there would be a browser intent for that, but have not seen anything - given I'm green, maybe I just did not know where to look?

I followed the question and answer here, but it works only for hyperlinks which were clicked by the user, however I need to catch all URLs - including the ones typed in by the user. Basically I need to know about every single URL that was opened in the web browser.

Can I register some kind of a handler with the browser?

Is something like that feasible at all?

like image 323
Pawel Krakowiak Avatar asked Nov 06 '22 19:11

Pawel Krakowiak


1 Answers

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

like image 60
Felix Avatar answered Nov 14 '22 21:11

Felix