RetroFed Forum
Your home away from modern life.
What hosts can be blocked on a Samsung phone with a hosts file
Post Reply
AuthorMessage
printf("%s", name); piefed.blahaj.zone akunohana@piefed.blahaj.zone
Joined: 2026-03-30
(edited) Quote

I'm on a rooted Samsung smartphone, running One UI 7.0 and Android 15. Not quite ready to switch to Graphene OS yet. Also, my threat model doesn't require it. Yet. 🤣

In addition to having debloated with UAD-NG and using HaGeZi's Ultimate DNS Blocklist in AdAway, I have also blocked:

android.clients.google.com  
deviceintegritytokens-pa.googleapis.com  
es11.samsungsm-ds.com  
mtalk.google.com  
pinning-02.secb2b.com  
play-lh.googleusercontent.com  
playstoregatewayadapter-pa.googleapis.com  
prod-lt-playstoregatewayadapter-pa.googleapis.com  
shop.line-scdn.net  

I haven't noticed any unexpected behaviors yet. I also tried blocking:

i.ytimg.com  
play.googleapis.com  
digitalassetlinks.googleapis.com  
android.googleapis.com  

But the first one is needed to load thumbnails on NewPipe and the latter three are needed to login to the Play Store whenever you want to update whatever you have installed through the Play Store - two apps in my case. I have logged out of my Google account and blocked the Play Store with a firewall and only unblock it once a month or so to update Play services and such.

Just wanted to share what can be blocked with a hosts file on a Samsung smartphone. 😊

16   Original
Nate piefed.alphapuggle.dev nathan@piefed.alphapuggle.dev
Joined: 2025-05-21
#2 · Quote Reply

https://f-droid.org/packages/org.adaway

Recommend going this route rather than trying to manually edit your hosts files. Makes it easier to turn off & on and whitelist domains if something breaks.

Use the rooted option, it'll modify the hosts file for you & still let you connect to a VPN

8
printf("%s", name); piefed.blahaj.zone akunohana@piefed.blahaj.zone
Joined: 2026-03-30
#3 · (edited) Quote Reply

https://f-droid.org/packages/org.adaway Recommend going this route rather than trying to manually edit your hosts files. Makes it easier to turn off & on and whitelist domains if something breaks. Use the rooted option, it'll modify the hosts file for you & still let you connect to a VPN

Thanks! That's exactly what I'm using! Sorry for the unclear post. 🙏🩵 updated it now!

4
Nate piefed.alphapuggle.dev nathan@piefed.alphapuggle.dev
Joined: 2025-05-21
#4 · Quote Reply

Thanks! That's exactly what I'm using! Sorry for the unclear post. 🙏🩵 updated it now!

No worries, thought you were doing it the hard way and wanted to save you some trouble!

3
hexagonwin lemmy.today hexagonwin@lemmy.today
Joined: 2026-02-07
#5 · (edited) Quote Reply

remove play store and all google related stuff except the essentials with UAD-NG, and use aurora store instead.

install afwall and only enable network access for necessary apps.

4
printf("%s", name); piefed.blahaj.zone akunohana@piefed.blahaj.zone
Joined: 2026-03-30
#6 · Quote Reply

remove play store and all google related stuff except the essentials with UAD-NG, and use aurora store instead. install afwall and only enable network access for necessary apps.

Already tried that but as it says on UAD-NG removing Google Play services may cause bootloops, which happened to me. Also, when I tried Aurora Store a few years back, I wasn't able to authenticate a paid app that I use.

3
hexagonwin lemmy.today hexagonwin@lemmy.today
Joined: 2026-02-07
#7 · Quote Reply

Already tried that but as it says on UAD-NG removing Google Play services may cause bootloops, which happened to me. Also, when I tried Aurora Store a few years back, I wasn't able to authenticate a paid app that I use.

i see.

btw, there's an app called Blocker on f-droid you can use to disable/enable apps (using root or shizuku). maybe use it to have google play disabled and only enable it when you need to update your app :)

2
printf("%s", name); piefed.blahaj.zone akunohana@piefed.blahaj.zone
Joined: 2026-03-30
#8 · Quote Reply

i see. btw, there's an app called Blocker on f-droid you can use to disable/enable apps (using root or shizuku). maybe use it to have google play disabled and only enable it when you need to update your app :)

Great idea! I'm basically already doing that, but with App Manager. It is able uninstall, disable or freeze apps. It can deny dangerous app operations and disable dangerous permissions. Also, it can block internal trackers. :)

2
ScoffingLizard lemmy.dbzer0.com ScoffingLizard@lemmy.dbzer0.com
Joined: 2025-05-04
#9 · Quote Reply

i see. btw, there's an app called Blocker on f-droid you can use to disable/enable apps (using root or shizuku). maybe use it to have google play disabled and only enable it when you need to update your app :)

I use Shizuku and Canta to disable or delete. Fucking awesome.

1
Post Reply
Back to top