←back to thread

713 points greenburger | 7 comments | | HN request time: 1.518s | source | bottom
1. gear54rus ◴[] No.44289756[source]
Does anyone know what's the state of the art way for cutting crap out of android apps? In the same way adblock cuts crap out of web pages?

I assume one would need a Java disassembler at least. On desktop, something like recaf works and allows changing things in classes without the full recompilation.

Is there something like this for android?

replies(2): >>44290104 #>>44295758 #
2. hiccuphippo ◴[] No.44290104[source]
DNS blocking with tools like DNSNet get you halfway there without tampering with the apps. It installs itself like a VPN and filters dns requests to ad domains using lists from the same sources as the adblockers.

I say halfway because some apps have a fallback, built-in, ad when it can't reach the server, other serve the ads from their own servers so no way to block them. Most only leave a blank space.

replies(3): >>44290117 #>>44290655 #>>44296947 #
3. paxys ◴[] No.44290117[source]
More than halfway I'd say. It blocks everything from third party ad networks, which is what 90%+ of websites and apps use.
4. yehoshuapw ◴[] No.44290655[source]
also adaway, which does the same or can be used in root mode to edit the hosts file.

I use the hosts file from there, and edit it manually via "adb root" (lineageos. root only via adb)

5. DanAtC ◴[] No.44295758[source]
https://revanced.app/ for applying premade patches to APKs
replies(1): >>44296978 #
6. shizzor ◴[] No.44296947[source]
On Android there's also "Private DNS" where you can set a different server to resolve domain names. This way, you won't need to install and run additional apps and can still use VPN for ... well VPN.
7. gear54rus ◴[] No.44296978[source]
Had no idea this existed even though I'm running a rooted phone for over 10 years now... Thanks so much!