[Q] How to block certain apps from accessing Internet On lollipop? - Nexus 5 Q&A, Help & Troubleshooting

I had been using Droidwall on kitkat to block access, but on lollipop, none of the firewalls with ip tables implementation works good. Most of those ad hogging apps and games somehow finds a way to access and display those ads. Afwall+ Droidwall, all fail. Mobiwall might work, but it messed up my WiFi settings and creates some stupid vpn with more stupid notification icon at the top. Any good firewall or method that works to block ads on lollipop? I am rooted with stock lollipop and elementalx kernel.

Try this firewall:
http://www.appsapk.com/android-firewall/

Ok, tried, doesn't work, same problem Any other options?

madarchod said:
Ok, tried, doesn't work, same problem Any other options?
Click to expand...
Click to collapse
If you wan't to disable app background data you can do it in Settings/Data usage. Click on app and switch toggle.
Best working adblocker also on Lollipop for me is AdAway.

zagorteney said:
If you wan't to disable app background data you can do it in Settings/Data usage. Click on app and switch toggle.
Best working adblocker also on Lollipop for me is AdAway.
Click to expand...
Click to collapse
thanks, would try that and report back. I already disabled the background data usage, but my main goal is to stop all those ads that keep popping up when i am into an app, once i got charged from my carrier by accidentally clicking on one such ad from some application, so i just want to block every app that i don't want to connect to internet and display those ads.

madarchod said:
thanks, would try that and report back. I already disabled the background data usage, but my main goal is to stop all those ads that keep popping up when i am into an app, once i got charged from my carrier by accidentally clicking on one such ad from some application, so i just want to block every app that i don't want to connect to internet and display those ads.
Click to expand...
Click to collapse
AdAway.

Aerowinder said:
AdAway.
Click to expand...
Click to collapse
zagorteney said:
If you wan't to disable app background data you can do it in Settings/Data usage. Click on app and switch toggle.
Best working adblocker also on Lollipop for me is AdAway.
Click to expand...
Click to collapse
Thanks, it worked just the way i wanted. :good::highfive:

Related

AdFree doesn't remove ads

My phone is rooted and running JellyBelly 0.1.4. I ran the AdFree app, rebootedm but I still get ads in various apps.
When I was on ICS and now on JB, AdFree didn't remove all the ads.
https://play.google.com/store/apps/details?id=org.adaway try this
adfree worked well on ics, on jb it doesnt
Adaway is much better
Sent from my Nexus S™
+1 for AdAway
zgomot said:
My phone is rooted and running JellyBelly 0.1.4. I ran the AdFree app, rebootedm but I still get ads in various apps.
Click to expand...
Click to collapse
One thing that I always do to completely remove ads is to just disable all data connectivity, turn off Wi-Fi and Cellular Data (3G/4G/LTE). It is kind of a pain, but you have to install anything and you save battery life and storage (some apps' ads use more battery than the actual app itself, plus the storage space to download those ads)
chronophase1 said:
+1 for AdAway
Click to expand...
Click to collapse
This.
Droidwall
I use Droidwall (https://play.google.com/store/apps/details?id=com.googlecode.droidwall.free&hl=fi) and prevent ad showing apps from accessing the network most of the time and only temporarily allow network access for them if they sometimes need access. If an app needs network all the time and shows ads, I let it show ads.
I also use DroidWall but jumping between the app seems a little inconvenient. At least with AdAway, you don't need to worry about forgetting to enable/disable network access
Thanks for the suggestions. I'll give adaway a try.
Sent from my Nexus S

Block This Ad Blocker (no root needed!)

I found this in a US S7 Edge discussion and I was very happy to know that it actually works (brilliantly) in stock devices too! :good:
What's more it dosn't suffer (so far) from the known AdBlock Plus issues with unrooted phones (Internet stops working, apps crash from time to time, bank/eBay apps don't work properly, etc.).
https://block-this.com/
But you're routing through their DNS - which isn't a very privacy-friendly or safe option - you're putting your entire mobile internet activity in their hands...
Just use Netguard and import adaway hosts file. Ive done this since day one with edge and it uses very little battery.
Whoa! No thanks!!!
Surely you have to ask yourself what is in it for them right? Free Ad cleansing and free bandwidth through their DNS? Oh come on, they must be getting something out of it or maybe I have just jumped on the conspiracy bandwagon
You should ping Block It! Dns before dismissing it. Its a dummy DNS that collects no precious data of yours.
Block It! simply supplies ads with a fake DNS and its not a VPN. It works exactly like Adaway but does not require root.
anyway to get rid of the VPN key notification.......its annoying as hell.
saveferris said:
anyway to get rid of the VPN key notification.......its annoying as hell.
Click to expand...
Click to collapse
Unfortunately no options to do that =( Its alright though, it doesn't pop up, it just stays on the notification bar.
babylordx said:
You should ping Block It! Dns before dismissing it. Its a dummy DNS that collects no precious data of yours.
Block It! simply supplies ads with a fake DNS and its not a VPN. It works exactly like Adaway but does not require root.
Click to expand...
Click to collapse
Is it faster than adguard?
I've just used crystal for the Samsung browser and it's been great at blocking ads with low battery drain and no annoying notification in the bar. Only works on the stock browser though. However the browser itself is very snappy and optimized on the s7e and there's even a slight performance increase to chrome IMO
tiskewlio said:
I've just used crystal for the Samsung browser and it's been great at blocking ads with low battery drain and no annoying notification in the bar. Only works on the stock browser though. However the browser itself is very snappy and optimized on the s7e and there's even a slight performance increase to chrome IMO
Click to expand...
Click to collapse
How does it compare to block this?
tiskewlio said:
I've just used crystal for the Samsung browser and it's been great at blocking ads with low battery drain and no annoying notification in the bar. Only works on the stock browser though. However the browser itself is very snappy and optimized on the s7e and there's even a slight performance increase to chrome IMO
Click to expand...
Click to collapse
Thanx man. I was so sad that i could root and use adaway but this crystal app is amazing. No ad what so ever and browser now is freaking fast. My only question is why such a great app that does what adguards does is free? Any catch i should be aware?
jsminor said:
Just use Netguard and import adaway hosts file. Ive done this since day one with edge and it uses very little battery.
Click to expand...
Click to collapse
Tried that, ads still appear in apps. With block this they're completely gone in apps.
Block this is blocking connections to google apps, i would assume due to the heavy ad content in things like the play store.
After testing again it seems that block-this is not blocking google as I previously thought.
Milimbar said:
Block this is blocking connections to google apps, i would assume due to the heavy ad content in things like the play store.
Click to expand...
Click to collapse
What Google app?
I got them all working.
Anyway to everybody wondering what this VPN does here is the answer from the author on Google+:
Since this is not a real VPN, your traffic does not get tunneled through a remote server. All we do is give your phone information about what to do with request to ads/malware/spam using DNS
Click to expand...
Click to collapse
Cr4z33 said:
What Google app?
I got them all working.
Anyway to everybody wondering what this VPN does here is the answer from the author on Google+:
Click to expand...
Click to collapse
I was unable to use google now and now on tap with block-this enabled the other day.
I checked again today and all is working fine, maybe google was just having issues.
I will edit my previous post so people do not think that was a block-this issue.
Is Block This free for good? Looks like there is a premium version?
i'm a bit confused now as i've found it on play store... https://play.google.com/store/apps/details?id=com.savageorgiev.blockthis&hl=en
It just seems too good to be true. Has anyone had any issues with this??
It looks very attractive to use, but it changes your DNS. So, all your internet traffic will pass the DNS servers of block-this. Free of use, to good to be true.
Does anybody has the ip-address of their servers? Where are they located?
tiskewlio said:
I've just used crystal for the Samsung browser and it's been great at blocking ads with low battery drain and no annoying notification in the bar. Only works on the stock browser though. However the browser itself is very snappy and optimized on the s7e and there's even a slight performance increase to chrome IMO
Click to expand...
Click to collapse
How does crystal compare to the other 2 samsung browser ad blocking apps? (Adblock Fast & Adblock Plus)

[APP][Root][7.0+]RunInBackgroundSetter v1.4 :: [25.07.2017]

Few hours ago @explainAndroid posted article on xda main page onto how to use android's hidden RUN_IN_BACKGROUND permission to restrict app's background behavior. I made an app for that.
Here's link to original article: https://www.xda-developers.com/freeze-app-background-processes-without-root-android-nougat/
Here's link to app's github: https://github.com/MrBIMC/RunInBackgroundPermissionSetter
Here's link to reddit thread about app: https://www.reddit.com/r/Android/co...en_run_in_background/?st=j570s1rf&sh=675cc4d6
Here's link to xda labs: https://labs.xda-developers.com/store/app/com.pavelsikun.runinbackgroundpermissionsetter
Omg it created multiple threads. Sorry. Trying to remove duplicates now.
Submit this to XDA Labs as well! Don't worry about a crappy icon or whatever. I've made apps in Tasker and have posted them to Labs hehe. As long as people find it useful feel free to submit!
@MrBIMC
Thanks for the app!!
Is possible add hours of the days of week when selected apps run or doent run in background?
Sent from my ONEPLUS A5000 using XDA-Developers Legacy app
Nice app!
Will charging disable this?
Can u make the app work without rooting, just using adb, where the permission through adb for this app is granted once and then it can be used to limit background permission of other apps
excellent mate.
we should post a tutorial... not everyone will understand the potential ramifications of disabling everything
I will try to test this out! Though, I kinda like the old icon compared to the new one, it seems like it's not properly cropped. Additionally, could you add an option to show system and user apps only? Maybe a toggle to ignore apps all at once or vice versa too?
No chance for Marshmallow?
Does this have the same functionality as in lineage os ROMs app ops where you can disable background processes?
As someone is undoubtedly going to ask it, I'll ask it for them. How does this differentiate to apps like greenify @MrBIMC? Do they both limit background processes? Anyways, the all looks very interesting, thanks!
This looks great!
Do the settings stick after reboot?
arjuntsgowda said:
Can u make the app work without rooting, just using adb, where the permission through adb for this app is granted once and then it can be used to limit background permission of other apps
Click to expand...
Click to collapse
No.
From the Github page:
Anyway, this app is for those who don't want to mess with adb shell and input commands manually and prefer to just click on app name to enable/disable it from running in the background. Sadly, android apps are not allowed to implicitly edit permissions of other apps, so this application requires root to overcome it.
Click to expand...
Click to collapse
Al Gore said:
No chance for Marshmallow?
Click to expand...
Click to collapse
No.
From the Github page:
Anyway, this app is for those, who don't want to mess with adb shell and input commands manually and prefer to just click on app name to enable/disable it from running in the background. Sadly, android apps are not allowed to implicitely edit permissions of other apps, so this application requires root to overcome it.
Click to expand...
Click to collapse
jordirpz said:
@MrBIMC
Thanks for the app!!
Is possible add hours of the days of week when selected apps run or doent run in background?
Click to expand...
Click to collapse
This would be really cool. Best way to implement that I think would be to add Tasker plugin functionality to the app to allow Tasker flows to toggle the permission, which would have the benefit of being able to change it for any reason (such as low battery).
DEVILOPS 007 said:
As someone is undoubtedly going to ask it, I'll ask it for them. How does this differentiate to apps like greenify @MrBIMC? Do they both limit background processes? Anyways, the all looks very interesting, thanks!
Click to expand...
Click to collapse
If I understand both correctly... Greenify forces apps to hibernate when you turn your screen off (or manually tell it to), but the app can still wake itself back up for a variety of reasons, such as receiving push notifications, location updates, or any other unnecessary reason like Facebook, lol. This app overrides a hidden permission in Android 7+ that tells the system to not allow the app to run in the background, which means it will not be able to wake itself up.
hassan_1000 said:
Does this have the same functionality as in lineage os ROMs app ops where you can disable background processes?
Click to expand...
Click to collapse
according to the reddit comments its the same. but maybe the Developer can confirm this
xdauser7 said:
according to the reddit comments its the same. but maybe the Developer can confirm this
Click to expand...
Click to collapse
Am Developer. Can confirm, toggle "limit background activity" in LOS14 is the same as this app. At least that's what reddit tells me as I haven't checked myself.
Wow. Looks promising. I was too lazy to run ADB manually xD
So lets see if I can screw something up with disabling almost everything
MishaalRahman said:
Submit this to XDA Labs as well! Don't worry about a crappy icon or whatever. I've made apps in Tasker and have posted them to Labs hehe. As long as people find it useful feel free to submit!
Click to expand...
Click to collapse
Ditto
neonixxx said:
This would be really cool. Best way to implement that I think would be to add Tasker plugin functionality to the app to allow Tasker flows to toggle the permission, which would have the benefit of being able to change it for any reason (such as low battery).
If I understand both correctly... Greenify forces apps to hibernate when you turn your screen off (or manually tell it to), but the app can still wake itself back up for a variety of reasons, such as receiving push notifications, location updates, or any other unnecessary reason like Facebook, lol. This app overrides a hidden permission in Android 7+ that tells the system to not allow the app to run in the background, which means it will not be able to wake itself up.
Click to expand...
Click to collapse
thanks, makes sense about Greenify... do you or anyone know the difference between this and Brevent?
dimm0k said:
thanks, makes sense about Greenify... do you or anyone know the difference between this and Brevent?
Click to expand...
Click to collapse
I actually tried Brevent for the first time a few weeks ago. According to the app itself, aside from not requiring root, it's supposed to monitor when you hit the back button or remove an app from recents, and then actually kill the app process when you do, despite if the app has some background process that it intended to keep running. Basically lets you manually control when an app is killed in a quick and intuitive way, but for me personally, it didn't seem to work as expected for some reason; background processes seemed to keep running after.
Also Brevent, being a non-root solution requires you to connect the device to a PC and run some ADB commands to give it permission every time you reboot. It has an experimental root mode that doesn't require this.

Play store

Hello,
My play store keep changing from do not update apps to auto update on wifi.
I have several app that i keep on old version.
How can i block playstore from changing this setting automatically
Thanks for help guys
Playstore is a bloody pain.
Set to auto update to wifi only and disable wifi.
Use ApkExport to copy your apps so you have them.
exactly a real pain... always switching the setting on after set up all stuff.
looking for a solution or a workaround to disable this or disable my apps from auto update
Rovyo said:
exactly a real pain... always switching the setting on after set up all stuff.
looking for a solution or a workaround to disable this or disable my apps from auto update
Click to expand...
Click to collapse
Disable Playstore or Google Play Services (Playstore is dependent on it).
Both constantly running in the background... needed or not.
You will need Google Play Services though for Gmail and other apps occasionally during the day.
Use a firewall to block it.
Use a package disabler.
I use both...
oh thanks will do that on play store. Any good app freezer you recommend ?
For phones other than Samsung this might work:
"Owner App" version from
Home - Package Disabler
The only NON-root solution that let’s you disable any unwanted packages that come pre-installed / installed with your phone / tablet.
www.packagedisabler.com
Karma Firewall from Playstore
thanks
im rooted with Lsposed, will use greenfy
Rovyo said:
thanks
im rooted with Lsposed, will use greenfy
Click to expand...
Click to collapse
I'm not rooted which is why I use this solution.
You have more options.
blackhawk said:
I'm not rooted which is why I use this solution.
You have more options.
Click to expand...
Click to collapse
I figure out that the play store get default settings after each restart. So something must reset it configuration ... I need to find whom
Rovyo said:
I figure out that the play store get default settings after each restart. So something must reset it configuration ... I need to find whom
Click to expand...
Click to collapse
I'm not sure what's causing that. I can package disable Playstore, firewall block it and it's settings are the same after it's enabled again.
If it's data on the phone is getting cleared on reboot that could do it... 3rd party cleaner or power management.
I don't use Playstore much and all my apps/updates are backed up for reload.
In part because you can't get older versions on Playstore (if the app doesn't disappear entirely) and because Playstore downloads are a slow, tedious pain that use up too much time when reloading.
Don't want Google's junk in my face...

How can I restrict mobile data usage for specific apps?

There are some apps I want to have access to wifi only. This used to be an easy task, but after recent updates I see I can only restrict background data now. I am willing to use ADB if that is required to restrict data usage for specific apps.
If your device is rooted, then you could use a firewall like afwall+ to restrict to only being allowed to use wifi.
JohnC said:
If your device is rooted, then you could use a firewall like afwall+ to restrict to only being allowed to use wifi.
Click to expand...
Click to collapse
Not rooted. I wonder why Google removed this capability?
There are non-root firewalls. They act like VPNs which lets them control networking for Individual apps.
a1291762 said:
There are non-root firewalls. They act like VPNs which lets them control networking for Individual apps.
Click to expand...
Click to collapse
Regarding non-root firewalls I can recommend the open source firewall NetGuard by M66B which provides exactly what you @MrTooPhone are looking for.
I prefer a setting vice vice a third party app. This used to be an easy setting under Data. Still don't understand why Google removed it.
MrTooPhone said:
I prefer a setting vice vice a third party app. This used to be an easy setting under Data. Still don't understand why Google removed it.
Click to expand...
Click to collapse
Stock Android has never had the option for disabling data for individual apps. Background data for individual apps- yes. CyanogenMod/LineageOS has always had the ability to completely disable data access on a per-app basis, however.
MrTooPhone said:
There are some apps I want to have access to wifi only. This used to be an easy task, but after recent updates I see I can only restrict background data now. I am willing to use ADB if that is required to restrict data usage for specific apps.
Click to expand...
Click to collapse
Not an Android feature and never was. Third a party VPN like AdGuard which includes other benefits

Categories

Resources