Auto restrict background data & disable auto-sync when mobile data enabled - Android Q&A, Help & Troubleshooting

I've searched high and low for an answer to this question and sifted through many forums and have not found an answer. I apologize in advance if this was covered somewhere else or if there was a better place to post this question.
I'm trying to limit my mobile data usage with out jumping through hoops.
I'm looking for a widget, that with one click of a button, it can restrict background data, disable auto-sync and enable mobile data, and when pressed again, enable WiFi, disable background restriction and enable auto-sync.
This function, no matter how trivial, would save time and effort.
Is there anything like this out there?
Would something like this require root?
Sent from my Galaxy Nexus using XDA Premium 4 mobile app

NexusNut said:
I've searched high and low for an answer to this question and sifted through many forums and have not found an answer. I apologize in advance if this was covered somewhere else or if there was a better place to post this question.
I'm trying to limit my mobile data usage with out jumping through hoops.
I'm looking for a widget, that with one click of a button, it can restrict background data, disable auto-sync and enable mobile data, and when pressed again, enable WiFi, disable background restriction and enable auto-sync.
This function, no matter how trivial, would save time and effort.
Is there anything like this out there?
Would something like this require root?
Sent from my Galaxy Nexus using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I think you have to look it up in PS.

Sorry if this is a dumb question, but what does "PS" stand for?
Sent from my Galaxy Nexus using XDA Premium 4 mobile app

Play Store

try this
https://market.android.com/details?id=net.skweez.wifisync

Looking for a similar same thing, particularly a key code or script that could toggle the "restrict background data" setting with LMT launcher (likewise for airplane mode). Cant find it anywhere whether automatic or by one click toggle. Did you ever find a solution?

Finally figured this out, man was it annoying.
I need it for my Samsung S5.
I disable the background data all the time to save battery.
It can be done with root access with a single command.
service call netpolicy 10 i32 1
If the API changes in the future, it's easy to look it up again.
http://grepcode.com/file/repository...1/android/net/INetworkPolicyManager.java?av=f
Look for the line with TRANSACTION_setRestrictBackground
Then just extrapolate that info to http://grepcode.com/file/repository...N/android/net/INetworkPolicyManager.java?av=f
Replacing DESIRED_ANDROID_VERSION with the version you're interested in.

Related

[Q] How do I find out what is using the GPS?

I noticed that whenever I'm on WIFI, the GPS icon would come on and blink for a few seconds then go away. It would keep doing this every 3 seconds on the dot.
On 3G, it would not happen.
On stock KG1 ROM, rooted. I have the Widget Locker and the touchscreenfix.
How do I find out what app or process is using the GPS? I even used the Samsung Task Manager to kill all the apps and cleared the memory. I also rebooted. Whatever it is, it simms to start up when the OS starts. Looking at autostarts, there are too many apps listed in the"after start up" category to pin point the offending app.
I think I found the problem. It was the AT&T Mark the Spot app.
I noticed the GPS also comes on when I change charge/discharge state, as well as network state changes. I looked at Autostarts to see what do these have in common, and out of all the other apps, this one is more likely the culprit.
I'd still wish for a way to find out what process is using what resources. Currently, there is no app for that.
naddie said:
I think I found the problem. It was the AT&T Mark the Spot app.
I noticed the GPS also comes on when I change charge/discharge state, as well as network state changes. I looked at Autostarts to see what do these have in common, and out of all the other apps, this one is more likely the culprit.
I'd still wish for a way to find out what process is using what resources. Currently, there is no app for that.
Click to expand...
Click to collapse
There is this app (if your rooted that is), I have it as it allows me to prohibit some permissions of certain apps. Also in a sense enhances security. If you found this helpful don't forget the thanks button (as im trying to build that up! lol).
https://market.android.com/details?id=com.lbe.security&hl=en
additionally for security there is also: https://market.android.com/details?id=com.lookout&hl=en
EDIT: LBE lets you know what is using what or what potentially can.
Htc HD2 Spirit said:
There is this app (if your rooted that is), I have it as it allows me to prohibit some permissions of certain apps. Also in a sense enhances security. If you found this helpful don't forget the thanks button (as im trying to build that up! lol).
https://market.android.com/details?id=com.lbe.security&hl=en
additionally for security there is also: https://market.android.com/details?id=com.lookout&hl=en
EDIT: LBE lets you know what is using what or what potentially can.
Click to expand...
Click to collapse
Thanks, but that's not what I'm looking for. I don't want to prevent the app from accessing GPS, which looks like what those apps you mention can do. I just want to know for future reference if I can find out what app is using what resources.
For example, if I see the GPS keep coming on again even though there isn't anything apparently running, I'd like to know which app or process is using the GPS.

Configure Background data usage

Is there an app which helps to configure/ restrict the usage background data for mobile data and wifi?
I know on ics it can be done using the build in functionality, but it is a bit inconvenient.
sent via Tapatalk
alexkno said:
Is there an app which helps to configure/ restrict the usage background data for mobile data and wifi?
I know on ics it can be done using the build in functionality, but it is a bit inconvenient.
sent via Tapatalk
Click to expand...
Click to collapse
noone having a good idea?
I look for something working like droidwall, but for background data only not for all data. Meaning where I have an overview on all Apps and where I can easily select/deselect which app may use background data on wifi and/or mobile networks
alexkno said:
noone having a good idea?
I look for something working like droidwall, but for background data only not for all data. Meaning where I have an overview on all Apps and where I can easily select/deselect which app may use background data on wifi and/or mobile networks
Click to expand...
Click to collapse
check for an app called 'Tasker' on play store
Thanks, i know tasker but its not about enabling/disabling background data following an event but a general setting which app may use foreground data only or also background data . On ICS it can be done in the data usage settings per app, but I search for a more easy to be used app
sent via Tapatalk

[Q] Auto Enable Data when App is opened

First off, I'm hoping this is in the right place. Seemed appropriate, but feel free to move if not.
After searching the interwebs, I have not been able to find anything similar, so I was wondering if anyone knows of an app to:
Auto enable wifi or data when specific apps (more than one app) are opened, so I'm not constantly playing with enable widgets every time I try to open my internet app.
Auto 3g does the job, but you have to set up each individual app, I'm more so looking for something to recognize a list of pre-selected apps that knows to enable data when said apps are opened.
I almost always keep my wifi, data, bt, gps off, when not in use due to the crappy battery of my Amaze, so I figure this would make life a little easier and spare the screen being on for any longer than it needs to be.
Thanks in advanced.
-DeadEndRoad117
Sent from my GT-P7510 using xda premium

[Q] Popup asking for Internet Access?

I like LBE Privacy Guard, especially for its on-demand permission requests when an app asks to access my SMS Inbox or whatnot; I like that I can ensure that it never accesses it, always does without asking, or continues to ask each time.
I'm also using the firewall with mixed results; I don't like having to choose each app and whether it's allowed to access the internet via 3g/wifi ahead of time. I'd like a popup request with similar options (though I guess it would be more like a timeout rather than per-session, e.g. "yes it can access the internet over my 3g connection but only for the next 10 minutes."
Is there already an app that does this? I've checked a few firewall apps like Droid Wall (and a few similar apps) and they don't offer this on-demand (or on-app-accessing-internet, I suppose!)
I'm rooted, of course, so I'm not constrained there.
+1!!! Looking for the same thing! Trying to hunt the hog that sucks my data!
Thanks!!!
Ahri said:
I like LBE Privacy Guard, especially for its on-demand permission requests when an app asks to access my SMS Inbox or whatnot; I like that I can ensure that it never accesses it, always does without asking, or continues to ask each time.
I'm also using the firewall with mixed results; I don't like having to choose each app and whether it's allowed to access the internet via 3g/wifi ahead of time. I'd like a popup request with similar options (though I guess it would be more like a timeout rather than per-session, e.g. "yes it can access the internet over my 3g connection but only for the next 10 minutes."
Is there already an app that does this? I've checked a few firewall apps like Droid Wall (and a few similar apps) and they don't offer this on-demand (or on-app-accessing-internet, I suppose!)
I'm rooted, of course, so I'm not constrained there.
Click to expand...
Click to collapse
Goldenmeadow said:
+1!!! Looking for the same thing! Trying to hunt the hog that sucks my data!
Thanks!!!
Click to expand...
Click to collapse
I reckon that LBE Privacy Guard should help you with that: you can switch on traffic monitoring and get a listing of how much data each app has used.
I'd advise you to do this for a week and then switch it off (after you've worked out what's costing you money), as the data monitor drains battery faster!
Thanks. I already use LBE and My Data Manager. Turning APS ON one by one I try to find the sucker
But it would be easier with pop-up type app.
Ahri said:
I reckon that LBE Privacy Guard should help you with that: you can switch on traffic monitoring and get a listing of how much data each app has used.
I'd advise you to do this for a week and then switch it off (after you've worked out what's costing you money), as the data monitor drains battery faster!
Click to expand...
Click to collapse
Sent from my LG-SU760 using xda app-developers app

Maps using battery without opening app

I have not used the maps app at all today, and my usage shows its been used for an hour and a half. Other than Google now, what should be using maps that often?
bugeyeblue said:
I have not used the maps app at all today, and my usage shows its been used for an hour and a half. Other than Google now, what should be using maps that often?
Click to expand...
Click to collapse
It's not like that. Just like whatsapp which stays always on to keep you connected, Google maps also stays on even though you don't open it as a system background process although you don't need it. The best way to remove this is to root your phone and uninstall this 'bloatware'
Sent from my Micromax A87 using xda premium
RazaVakil7995 said:
It's not like that. Just like whatsapp which stays always on to keep you connected, Google maps also stays on even though you don't open it as a system background process although you don't need it. The best way to remove this is to root your phone and uninstall this 'bloatware'
Sent from my Micromax A87 using xda premium
Click to expand...
Click to collapse
There's no need to delete Google Maps. You just need to regain some control from the app. By default it sends location data to Google. This periodic data 'seepage' also seems to have the affect of 'waking' the phone from deep sleep. Silly, especially since Google wrote the damn OS.
Anyway, this issue has been covered in other threads; you should search, there are more precise instructions out there
...or you can rely on my questionable memory; as I recall-
- Go into Google Maps
- Choose Settings
- Choose Location Settings
- Un-check "Report From This Device"
Also, make sure (on same screen) that Enable Location Sharing is NOT checked and that any of the other location-specific items on the same screen are un-checked.
If you're wondering about 'Location Reporting' under Background Location Reporting, mine is set to 'Detect your location' (thus I think this setting is OK).
Try this out. For me, Gmaps no longer uses data (or wakes the phone) unless I'm explicitly using it.
Capp5050 said:
There's no need to delete Google Maps. You just need to regain some control from the app. By default it sends location data to Google. This periodic data 'seepage' also seems to have the affect of 'waking' the phone from deep sleep. Silly, especially since Google wrote the damn OS.
Anyway, this issue has been covered in other threads; you should search, there are more precise instructions out there
...or you can rely on my questionable memory; as I recall-
- Go into Google Maps
- Choose Settings
- Choose Location Settings
- Un-check "Report From This Device"
Also, make sure (on same screen) that Enable Location Sharing is NOT checked and that any of the other location-specific items on the same screen are un-checked.
If you're wondering about 'Location Reporting' under Background Location Reporting, mine is set to 'Detect your location' (thus I think this setting is OK).
Try this out. For me, Gmaps no longer uses data (or wakes the phone) unless I'm explicitly using it.
Click to expand...
Click to collapse
Awesome. Thanks for the help. I set it up the way you suggested and I'll see how it works over the next day or so.
You could the free app Greenify as well. Anything that runs in the background without your permission will get shut down by it.
maddog00 said:
You could the free app Greenify as well. Anything that runs in the background without your permission will get shut down by it.
Click to expand...
Click to collapse
Excellent app, but it does require root privileges.
Sent from my Galaxy S4
maddog00 said:
You could the free app Greenify as well. Anything that runs in the background without your permission will get shut down by it.
Click to expand...
Click to collapse
It's desirable (to many) to have at least some background apps able to run/consume data. Yes, you can disable all (or ration out when they're 'allowed' to run, but then you lose out on the full capabilities of the device.
Trust me, having come from Sprint and a GS2, I am well versed in shutting down and restricting apps. What I LOVE about my GS4 is that I can let virtually all apps run (within reason, and w/exception of Gmaps as noted above) and I still have 28-40 hour battery cycles.
Just be wary of 'out of control' apps. Tame them, freeze them, or delete them, but only as a last resort would I disable all background apps.
Capp5050 said:
It's desirable (to many) to have at least some background apps able to run/consume data. Yes, you can disable all (or ration out when they're 'allowed' to run, but then you lose out on the full capabilities of the device.
Trust me, having come from Sprint and a GS2, I am well versed in shutting down and restricting apps. What I LOVE about my GS4 is that I can let virtually all apps run (within reason, and w/exception of Gmaps as noted above) and I still have 28-40 hour battery cycles.
Just be wary of 'out of control' apps. Tame them, freeze them, or delete them, but only as a last resort would I disable all background apps.
Click to expand...
Click to collapse
I agree. Just saying. Those apps that you don't want to run, you can tell Greenify which ones to disallow access. A one stop shop, as it were.
maddog00 said:
I agree. Just saying. Those apps that you don't want to run, you can tell Greenify which ones to disallow access. A one stop shop, as it were.
Click to expand...
Click to collapse
My bad. For some reason I thought your response said "disable all background apps". Thx for the app tip.

Categories

Resources