Problem Background
Currently, we have facing "Excessive network usage (background)" from Android Vital report. We're only " Better than 9% "
The app is a note taking app (https://play.google.com/store/apps/details?id=com.yocto.wenote), which provides an optional feature - sync to cloud in background after the app close.
This is how we perform sync to cloud in background.
We use WorkManager.
In Application onPause, Schedule OneTimeWorkRequest, with constraint NetworkType.CONNECTED. The worker is scheduled to start with delay 8 seconds.
In case failure, we retry using BackoffPolicy.LINEAR, with delay time 1.5 hours.
The maximum number of retry is 1 time. That's mean, after the app close till the app re-open again. The maximum number of execution, of sync to cloud process is 2.
The size of data is vary, can be few KB till few hundred MB.
Analysis
The only information we have is https://developer.android.com/topic/performance/vitals/bg-network-usage .
When an app connects to the mobile network in the background, the app wakes up the CPU and turns on the radio. Doing so repeatedly can run down a device's battery. An app is considered to be running in the background if it is in the PROCESS_STATE_BACKGROUND or PROCESS_STATE_CACHED state. ... ... ... Android vitals considers background network usage excessive when an app is sending and receiving a combined total of 50 MB per hour while running in the background in 0.10% of battery sessions.
Click to expand...
Click to collapse
We start the background sync job, 8 seconds after Application's onPause. During that period, will the app inside or outside PROCESS_STATE_BACKGROUND/PROCESS_STATE_CACHED? How can we avoid running inside PROCESS_STATE_BACKGROUND/PROCESS_STATE_CACHED?
What does it mean by "running in the background in 0.10% of battery sessions."? How can we avoid such?
Another assumption, is sync file is too large, and using too much data. Soon, we notice this assumption might not be true. We notice according to "Hourly mobile network usage (background)", the data size is from 1MB to 5MB.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Questions
My questions are
What is the actual root cause for such "Excessive network usage (background)" warning? How can we accurately find out the root cause.
How does other apps (Like Google Photo, Google Keep, Google Doc, ...) which perform background sync, tackle this problem?
Related
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Original Thread: http://forum.xda-developers.com/showthread.php?t=2226216
What's eating my network data? Time to get a data usage monitor!!
NetChart is a data usage monitor which can monitor data usage for independent app, to monitor mobile data and wifi data. NetChart also provide the download/upload usage for each app, so you can easily know where's yr data going in that app, like uploading or downloading.
Features:
- Monitor mobile data and wifi data
- Monitor data for each app which using your network
- Monitor download and upload usage
- Gererate a pie chart to show you the top 5 most eating app
- Open the app directly when you click on the app
- Timestamp to remind you when did you start the monitor
- Ability to reset the timestamp
- More Feature Coming!
Please give me suggestion and idea to let me improve the app!!
Download Link: NetChart
Donate Version: NetChart Donate
Thankyou. Downloading now , Sounds great
Does this also keep track of phones and sms.
As in billing we can't check how much we utilised.
zeuscluts said:
Does this also keep track of phones and sms.
As in billing we can't check how much we utilised.
Click to expand...
Click to collapse
i think phone and sms would not count as network data
Thankyou mate.
I thought that it will count.
As I am finding some app which has all features of sms.
Calls and data manager
zeuscluts said:
Thankyou mate.
I thought that it will count.
As I am finding some app which has all features of sms.
Calls and data manager
Click to expand...
Click to collapse
oops, sorry cant help
I prefer a simple widget available on the home screen to show the data usage
terewong said:
I prefer a simple widget available on the home screen to show the data usage
Click to expand...
Click to collapse
good idea!:good:
8.1 Notification Sounds
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
http://www.windowsphone.com/s?appid=97282dd3-de2a-4250-acde-39524fc32b98
In Windows phone 8.1, you can individually select your notification sounds for each app.
Here you will find a large collection of notification sounds.
You can not only download the notification sounds.
It can upload each its own notification sounds.
As a result there is always something new.
Find the coolest notification sounds and share your own with other users.
Available in 45 languages
Version 1.2.45.0
Now completely free of charge!!!
First research was hardly purchased the app.
The 5 notification sounds in the trial seem to be the most sufficient.
However, users spend to hear through the sounds so much time, that advertising revenues are higher than the revenue from the sale of the app.
That's why I decided to offer the app completely free of charge.
The first result can be also consistently.
Until last night, a total of 5000 notification tones have been downloaded.
In the last 20 hours, entire 15000 new downloads added.
Among those who have already purchased the app still no ads will appear.
Greetings
Moses
Thanks for the app Moses, after installing the app worked fine for the first run, I downloaded the M60 notification and make it my ringtone.
After the second attempt the app hangs on the startscreen. (XTROSE App Studios).
So I turned my device (Nokia Lumia 630) off and on and the app is running without any problems and I could also create my xtrose account.
Maybe nice to know for people who are facing the similar problem and decided to remove this nice app.
Thankz,
Thank you very much for helping
The app is dependent on a constant Internet connection.
If a connection is not possible, so the app can not download the content.
Today is the first day where the app is in the store.
As a result there were very many requests to the server, so that he in short term did not respond.
In the last 24 hours, 30,000 notification sounds have been downloaded
Thank you very much, to all users, for supporting this app
Observing this issue since i got my Nexus 6P, Google Play services are always on top of the list on battery consumption.
If you check details of consumption - it shows mobile radio active for too much hours even if mobile is on idle mode. You can see wakelocks even when the screen is off.
Observation: I don't use wifi unless i have to install some app or download some games data, for other things I rely on my 3G data of 1GB. But I have observed consumption of that got increased with Nexus 6P - it's (1GB) hardly lasting for 10 days. Actually I am not using data as much I use to in my Galaxy S3, even then its consumption is very high.
Something is always running in background which is consuming this data.
I guess it is google play services which is consuming this huge data.
Is anyone else observing this (If somebody observed very closely on battery & data consumption) ?
Seems extremely strange... Have you checked what background services are set to sync? I mean mine is active sync on every option possible and I never experience huge consumption.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my Nexus 6P using Tapatalk
Delboyd12 said:
Seems extremely strange... Have you checked what background services are set to sync? I mean mine is active sync on every option possible and I never experience huge consumption.
View attachment 3566014
View attachment 3566015
View attachment 3566016
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
I have all sync On as I don't want any app to not sync with server and even on my last galaxy S3 I use to do that.
On my nexus 6P (Not-rooted yet), i have installed greenify to hibernate few apps as well like - Facebook or any other app which normally run in background even then there is no improvement i can see on battery or data consumption.
I am sure if this Google Play services some how goes down in battery consumption list then this data consumption issue will automatically get resolved and battery as well.
Struggling to get Redmi Note 9 Pro to store my Google Maps history.
I used to have it quite smooth in Samsung A8 and other devices, but here I only get a couple dots connected with straight lines. Mostly these points are from the moments when I unlock the phone. Locked phone doesn't allow G-Maps to get the history right.
Some exclusions: when I use Maps navigation, timeline stored is very precise.
What I have tried:
- "lock" maps in task switcher
- set permissions for Maps, services, other location-related apps - to "Allow while in use" or "Allow always" (when this option is accessible)
- disable batter-saving for these apps
- share my live location permanently to my friend through Google Maps. He can see the location, but at the same time no history/timeline stored in a smooth way.
What I would like: have the Timeline with much more details stored.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Same problem here. Very annoying!
My workaround is using http://gpslogger.app and letting it locate once per minute and upload the data to my Google drive. Thus location timeline becomes reasonable accurate.
bobhund said:
letting it locate once per minute
Click to expand...
Click to collapse
How much battery drain does this cause? (How much more battery life would you get if you disabled this)?
twistyplain said:
How much battery drain does this cause? (How much more battery life would you get if you disabled this)?
Click to expand...
Click to collapse
Hard to tell as I'm very much confined to my home at the moment and only leave for some hours. Whenever I let the phone just rest on the table, It doesn't even locate or send the location. The other problem (random freezes and reboots) didn't happy any more since I set my 2nd sim card to 3G.
I got this phone 1 month after release. It's been doing well but recently I've been noticing wierd battery drainage while the phone is off. It's lasting me around half a day, maybe 2 hours more. This is under normal usage. Downloaded music off spotify, my watch and headphones on bluetooth. It occasionally gets hot in my pocket and appears to drain around 25% sitting overnight with AOD off.
Cloud crap. Google backup Transport maybe.
Try temporarily disabling Google play Services and see if the helps at night. Backup Transport is one of it's dependencies but that may not be enough to kill it completely.
One reason I like a SD card; it greatly reduces or eliminates the need for cloud storage.
Disable all Samsung, Google and carrier feedback. Disable Google Firebase too.
blackhawk said:
Cloud crap. Google backup Transport maybe.
Try temporarily disabling Google play Services and see if the helps at night. Backup Transport is one of it's dependencies but that may not be enough to kill it completely.
One reason I like a SD card; it greatly reduces or eliminates the need for cloud storage.
Disable all Samsung, Google and carrier feedback. Disable Google Firebase too.
Click to expand...
Click to collapse
Saddly google backups happend during the night while charging, samsung cloud is inactive and battery usage shows that Google Play Services consumes less then One UI. I also found it very hard to recreate the problem using a different phone, like huawei or other samsungs.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Tap on AOD >.5% @hr
Always on AOD >1%@hr
That's on my N10+. If you're not seeing better than that, there's somethings running in the background. Probably Backup Transport is at the top of the list.