YSK: you can setup pihole on any old rooted android (5.0+) device

3 years ago by chrizbie to c/youshouldknow

I just discovered this and it works fantastically on any old / unused android device you might have lying around, I was shocked at how easy it was, all the instructions are there, once you have it running all you need to do is set your router DNS settings to your pihole IP address and presto! Ads and trackers are gone!

https://github.com/DesktopECHO/Pi-hole-for-Android

vext01 88 points 3 years ago

Take the battery out if you can to avoid lithium fires.

Old batteries on constant charge... I worry about this kind of thing.

path: 0 3072090, hotness: undefined, score: 88, children: 29
jet 26 points 3 years ago

This is where fair phone and framework laptops shine. So easy to take the batteries out.

path: 0 3072090 3072562, hotness: undefined, score: 26, children: 1
elbarto777 32 points 3 years ago
path: 0 3072090 3072562 3072707, hotness: undefined, score: 32, children: 0
chrizbie 18 points 3 years ago

I removed the battery but now I can't get the fucker to turn on lol

path: 0 3072090 3073277, hotness: undefined, score: 18, children: 5
eco_game 32 points 3 years ago

Most mobile devices won't work without batteries. The best way to work around this is to supply it with 4.2V (anything between 3V and 4.2V will do) over the battery connector.

path: 0 3072090 3073277 3073317, hotness: undefined, score: 32, children: 4
chrizbie 12 points 3 years ago

I think I might have broken something, even when I clip the battery back in I get nothing 😟

path: 0 3072090 3073277 3073317 3073427, hotness: undefined, score: 12, children: 3
eco_game 23 points 3 years ago

This could be a long shot but if it's a Samsung Galaxy Tab S, the battery connector solder joints kinda die after a while, which can either be fixed by reflowing them or by applying pressure (I have a tablet with that issue). You could try pressing on the battery connector and see if it works then.

path: 0 3072090 3073277 3073317 3073427 3074753, hotness: undefined, score: 23, children: 2
Mr_Blott 9 points 3 years ago
path: 0 3072090 3072892, hotness: undefined, score: 9, children: 5
chrizbie 5 points 3 years ago

Can I ask what kind of setup you have there? In terms of software etc..

path: 0 3072090 3072892 3086876, hotness: undefined, score: 5, children: 1
Mr_Blott 4 points 3 years ago
path: 0 3072090 3072892 3086876 3098213, hotness: undefined, score: 4, children: 0
sylverstream 4 points 3 years ago

Thanks for the tip. Got a tablet running HA and thus plugged in 24/7. Just ordered a smart plug to schedule the charging.

path: 0 3072090 3072892 3074695, hotness: undefined, score: 4, children: 2
StandingCat 2 points 3 years ago

Home assistant runs on old tablets now? Or are you saying as a dashboard?

path: 0 3072090 3072892 3074695 3077881, hotness: undefined, score: 2, children: 1
sylverstream 2 points 3 years ago

Sorry, yes as dashboard :)

path: 0 3072090 3072892 3074695 3077881 3087673, hotness: undefined, score: 2, children: 0
googlrr 7 points 3 years ago

I run pihole on a Raspberry Pi Zero with an Ethernet adapter. Runs great, runs off USB power of my router, no risk of battery explosion. Recommend that over a phone any day

path: 0 3072090 3088151, hotness: undefined, score: 7, children: 7
teruma 2 points 3 years ago

I tried to set up something similar but it doesn't block a damn thing and I can't find whatever router setting I'm missing for the life of me....

path: 0 3072090 3088151 3098812, hotness: undefined, score: 2, children: 4
pirat 1 point 3 years ago

You need to change the DNS settings in your router to the IP of the Pi-Hole if you want it to affect all devices on your network. If that doesn't work, you'll need to change the DNS on each of your devices instead.

path: 0 3072090 3088151 3098812 3303573, hotness: undefined, score: 1, children: 3
teruma 1 point 3 years ago

Yeah, when I change the dns on the router, I lose Internet completely. I am unwilling to change it on literally every device because that's a huge pain in the ass.

path: 0 3072090 3088151 3098812 3303573 3315527, hotness: undefined, score: 1, children: 2
lostferret 1 point 3 years ago

Amazing! I have an old ZeroW thats been sitting around. Any issues? Latency?

path: 0 3072090 3088151 3092893, hotness: undefined, score: 1, children: 1
googlrr 2 points 3 years ago

Nope can't say I've ever noticed any issues with it. I've had it for a long time now. Kind of forgot they aren't really new anymore lol. Maybe 7-8 years running? I update it every 6 months or whenever I remember and it still works great.

path: 0 3072090 3088151 3092893 3094521, hotness: undefined, score: 2, children: 0
chrizbie 7 points 3 years ago

Good point, I'll have to look into that

path: 0 3072090 3072187, hotness: undefined, score: 7, children: 4
xep 13 points 3 years ago

You might also be able to turn on Battery Idle Mode, although it's not supported on every device.

path: 0 3072090 3072187 3074094, hotness: undefined, score: 13, children: 3
chrizbie 4 points 3 years ago

Got it up and running now! Thanks mate

path: 0 3072090 3072187 3074094 3076324, hotness: undefined, score: 4, children: 0
chrizbie 1 point 3 years ago
path: 0 3072090 3072187 3074094 3074542, hotness: undefined, score: 1, children: 0
chrizbie 1 point 3 years ago
path: 0 3072090 3072187 3074094 3074404, hotness: undefined, score: 1, children: 0
Srootus 5 points 3 years ago

Is there any modern day android phones that work without the battery. I feel like they'd probably run POST checks to make sure there's a battery inside. Maybe fairphoness?

path: 0 3072090 3073392, hotness: undefined, score: 5, children: 1
lemann -1 points 3 years ago

The FP3 requires a battery at least. Ironically the device will actually still turn on and be usable if you removed ALL the modules besides the display module 😅 and of course the mandatory battery

path: 0 3072090 3073392 3073466, hotness: undefined, score: -1, children: 0
Madex 32 points 3 years ago

Good concept but the WiFi latency and the processing speed would I'm sure slow down your browsing experience.

Cool though!

path: 0 3072917, hotness: undefined, score: 32, children: 14
herrvogel 13 points 3 years ago

Running a pi-hole doesn't require much juice. It's a fancy DNS server, not a router. First gen raspberry pis were pretty weak and even those things didn't even break a sweat.

path: 0 3072917 3088818, hotness: undefined, score: 13, children: 3
Madex -13 points 3 years ago

Another person who doesn't know what they are talking about

path: 0 3072917 3088818 3089187, hotness: undefined, score: -13, children: 2
Boxtifer 6 points 3 years ago

For home use, they barely do much. At an enterprise level, then it's another story.

path: 0 3072917 3088818 3089187 3093481, hotness: undefined, score: 6, children: 1
Madex 1 point 3 years ago

You try browsing with 50ms average pin to a dns server where a website loads thousands of objects :(

path: 0 3072917 3088818 3089187 3093481 3101508, hotness: undefined, score: 1, children: 0
couragethebravedog 8 points 3 years ago

I believe you can do Ethernet over USB c on some devices.

path: 0 3072917 3073549, hotness: undefined, score: 8, children: 0
trash 6 points 3 years ago

Oh for sure. I think this is for a very niche user base: People who know about PiHole but don't have a pi/linux box but do have an old Android phone. It's definitely a strange but cool project.

path: 0 3072917 3073414, hotness: undefined, score: 6, children: 0
chrizbie 4 points 3 years ago

I haven't seen any notable issues yet, a lot of people use a wireless pi zero to do the same thing so as long as you aren't running a state of the art gaming rig (which i'm not) I think it'll be fine

path: 0 3072917 3074662, hotness: undefined, score: 4, children: 2
Boxtifer 4 points 3 years ago

Your client hardware wouldn't matter tho. State of the art or whatnot of a gaming rig would be fairly low. In sure most modern mobile phones create more DNS requests these days compared to a Windows machine and steam. It's the configured software on the hosts that will dictate how much traffic your devices will get. A lot also cache by listening to the TTL. There will be some form of additional latency but your average Joe won't probably notice.

path: 0 3072917 3074662 3093597, hotness: undefined, score: 4, children: 1
chrizbie 1 point 3 years ago

Oh I see well I could say I'm an average Joe lol

path: 0 3072917 3074662 3093597 3099026, hotness: undefined, score: 1, children: 0
TrustingZebra 1 point 3 years ago

I'm not sure about that. The average consumer router is fairly underpowered but is still capable of handling the needs of most home networks.

path: 0 3072917 3079603, hotness: undefined, score: 1, children: 4
buffalobuffalo 10 points 3 years ago

Wifi adds latency. Adding 30-300 ms of latency will noticeably affect your browsing experience.

path: 0 3072917 3079603 3082466, hotness: undefined, score: 10, children: 2
Madex 4 points 3 years ago

Exactly, I'm being down voted for two comments which are wrong, meh.

path: 0 3072917 3079603 3082466 3091557, hotness: undefined, score: 4, children: 0
chrizbie 1 point 3 years ago

Probably worth it to remove ads and trackers thogh

path: 0 3072917 3079603 3082466 3193025, hotness: undefined, score: 1, children: 0
Madex -4 points 3 years ago

I don't think you know about what you're talking about mate

path: 0 3072917 3079603 3086616, hotness: undefined, score: -4, children: 0
Kolanaki 20 points 3 years ago

Oh shit. Something to use that old galaxy s4 I still have for. Been wanting to set up a pihole, but didn't want to buy a raspberry pi just for that.

path: 0 3079727, hotness: undefined, score: 20, children: 0
MatFi 13 points 3 years ago

On should have a look on the energy saving behavior of the device, as android tends to shutdown processes occasionally. Which is pretty bad for a DNS server IMHO

path: 0 3072274, hotness: undefined, score: 13, children: 2
elbarto777 4 points 3 years ago
path: 0 3072274 3072723, hotness: undefined, score: 4, children: 0
chrizbie 1 point 3 years ago

Yeah I'll keep an eye on it and see how it goes, should be alright though I turned the battery optimization off

path: 0 3072274 3072843, hotness: undefined, score: 1, children: 0
chrizbie 8 points 3 years ago path: 0 3076355, hotness: undefined, score: 8, children: 0
xep 1 point 3 years ago
path: 0 3073840, hotness: undefined, score: 1, children: 0
chrizbie 1 point 3 years ago
path: 0 3074897, hotness: undefined, score: 1, children: 0
chrizbie 1 point 3 years ago
path: 0 3074931, hotness: undefined, score: 1, children: 0
feecoomeeq -9 points 3 years ago

Nah, just install Blokada from fDroid. And use that old smartPhone for maybe an AlfredCamera surveillance. But the noBattery mod is useful anyway.

path: 0 3076595, hotness: undefined, score: -9, children: 1
chrizbie 16 points 3 years ago

I hear you, but I'm pretty happy with how this is working out, the advantage here is that it blocks ads and trackers for the whole network so it works on my wife's devices without her having to do anything (which she wouldn't anyway)

path: 0 3076595 3076690, hotness: undefined, score: 16, children: 0
youshouldknow
youshouldknow

@lemmy.world

login for more options
47920
781
4016

YSK - for all the things that can make your life easier!

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must begin with YSK.

All posts must begin with YSK. If you're a Mastodon user, then include YSK after @youshouldknow. This is a community to share tips and tricks that will help you improve your life.



Rule 2- Your post body text must include the reason **WHY** YSK:

In your post's text body, you must include the reason "Why" YSK: It’s helpful for readability, and informs readers about the importance of the content.



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Posts and comments which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding non-YSK posts.

Provided it is about the community itself, you may post non-YSK posts using the [META] tag on your post title.



Rule 7- You can't harass or disturb other members.

If you harass or discriminate against any individual member, you will be removed.

If you are a member, sympathizer or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people and you were provably vocal about your hate, then you will be banned on sight.

For further explanation, clarification and feedback about this rule, you may follow this link.



Rule 8- All comments should try to stay relevant to their parent content.

Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- The majority of bots aren't allowed to participate here.

Unless included in our Whitelist for Bots, your bot will not be allowed to participate in this community. To have your bot whitelisted, please contact the moderators for a short review.



Rule 11- Posts must actually be true:

Disinformation, trolling, and being misleading will not be tolerated. Repeated or egregious attempts will earn you a ban. This also applies to filing reports: If you continually file false reports YOU WILL BE BANNED! We can see who reports what, and shenanigans will not be tolerated. We are not here to ban people who said something you don't like.



Rule 12- Linking directly to a video as a source is not acceptable.

Video only posts are responsible for an outsized portion of rules violations. Your post must contain text and meet the requirements of the previous rules.



Rule 13- If you file a report, include what specific rule is being violated and how.

Partnered Communities:

You can view our partnered communities list by following this link. To partner with our community and be included, you are free to message the moderators or comment on a pinned post.

Community Moderation

For inquiry on becoming a moderator of this community, you may comment on the pinned post of the time, or simply shoot a message to the current moderators.

Credits

Our icon(masterpiece) was made by @clen15!

go to feed...