Sample Header Ad - 728x90

Implement URL whitelisting in Android

2 votes
1 answer
1635 views
I want to whitelist some URLs been used by my device and native apps for sync and updates. Other than these few URLs, I wish to block all other URLs being accessed by any chat window and browser. I have my device rooted, and have been looking for a common solution which can be accessed by all native applications and browsers. I have found a solution to override the API "shouldOverrideUrlLoading" in the class WebView Client, but if there are any applications which do not call this WebViewclient and directly calls native APIs (system/netd). I am quite new to the WebView thing, do let me know if anyone has any solutions or suggestions.
Asked by Tech Q (21 rep)
Feb 16, 2022, 09:28 AM
Last activity: Feb 16, 2022, 03:51 PM