This is pathetic -- Android Notification Delay problem fixed by using adb?! - General Topics

I simply cannot recommend Android to my normie friends and family.
Let me restate this: It is not our job to fix Google's bugs.
This is a US-centric view.
If you can't tell: I am a bit aggravated right now.
I could not get my GMail, GCal, and other notifications to come through properly on Pixel 5's Android 11 OR S21 Ultra's Android 11.
This has apparently been an issue that many an Android user suffers through silently -- and, some don't even know that this is happening to them. I guess they're embarrassed to publicly state that their mobile OS is subpar.
When you get an e-mail or if a calendar event reminder is coming up, and even if your phone's screen is OFF/locked: you should get an \*\*\*instant\*\*\* notification. No delay whatsoever.
Well, if my screen was off/locked, I wouldn't get these notifications or it would take 10+ minutes to show. But, once I unlocked my phone: boom, notifications. And, sometimes even if my screen wasn't locked, there would be a serious delay or no notification.
After spending loads of time trying to fix this problem, me and my friend finally stumbled upon a solution: ./adb shell dumpsys deviceidle disable
A reboot eliminates this setting modification, by the way.
Do not tell me that instant e-mail notifications are not necessary. Many of us work jobs that require them to be instant.
No end user should ever have to go through this. iPhone users certainly don't go through this.
If Google doesn't care about Android users, then, why should I, as an Android user, care about Android too? Just switch to iPhone, I guess.
Google pays Apple $10bn+ every year and makes better software for iOS than it does for Android.
Just look at the damn widgets that iOS users get.
So, $10bn/year plus the cost of the software developed to cater to iOS users.
This makes Google a simp cuck to Apple, nothing else.
Would Apple ever return this favor? No.
Therefore, Google management is a simp cucked by Apple, nothing more.
We are fools to be using this OS.
If Google is willing to subsidize my iOS software updates and experience to the tune of billions of dollars every single year -- then, why not just switch?
Clearly, my experience has shown me that Android can be cheaper -- if I don't value my time.
Statistic after statistic bears it out: iPhone users are wealthier.
I am tired of being an Android luser -- why should I take on such abuse and neglect by the main author of my mobile OS?
Before you start patronizing me: YES, I tried every other bloody trick in the book to fix this issue.
No end user should ever have to go through this! No end user should have to run adb commands to enable basic functionality.
There are some basic things that modern smartphones should just be able to do: instant notifications, 3rd party camera support, functioning RCS or some other form of E2EE messaging built-in, reliable local backups, a nationwide network of repair facilities, etc.
Android fails on all of these.
iPhone ordered. Glad to leave this Android ghetto behind.
Hey Google, if you have some self-respect: then, instead of paying Apple $10bn an year and doing iOS development, how about you actually work on some basic Android functionality instead?

You are right and I fully share your emotions regarding nasty state of notifications we often observe in our phones.
However, apart from google, there is a 3rd party: the china cellar/basement where our phones are produced. Owners of these cellars think they are very clever guys when they implement power management tools in their ugly stock ROMs. Guess what these power management tools do with notifications!
Sometimes (not always) you have to know how android is programmed in order to fight with power management. Especially, this is true with phones that run 6-7-8 versions of android.
I have 2 more or less modern phones in my family. They run on A10 and do not have these problems with notifications.

Yes, phone OSes and software can be annoying. But I don't think iOS is the solution.
Regarding the problem, I suppose you've already tried changing the sleep settings, but if not: maybe deviceidle whitelisting could be helpful.

vp1117 said:
I have 2 more or less modern phones in my family. They run on A10 and do not have these problems with notifications.
Click to expand...
Click to collapse
I never had these problems with Android 10.
So, yeah, it MAY be Android 11.
I am downloading the May update for my S21U. Let's see if this fixes it.

hkjo said:
Yes, phone OSes and software can be annoying. But I don't think iOS is the solution.
Regarding the problem, I suppose you've already tried changing the sleep settings, but if not: maybe deviceidle whitelisting could be helpful.
Click to expand...
Click to collapse
Even the folks in that thread are having mixed results.
I just ran the blanket OS-level command as described in my original post.
I haven't faced any noticeable depreciation battery life due to this.

nixnixnixnix4 said:
I never had these problems with Android 10.
So, yeah, it MAY be Android 11.
I am downloading the May update for my S21U. Let's see if this fixes it.
Click to expand...
Click to collapse
It doesn't.
The May update didn't fix this issue.

Isn't it true that whitelisting via ADB only DISABLES Battery Optimization for a particular app, and you can do the same thing via the Android interface? And we all know that turning Battery Optimization off doesn't do squat to get notifications sooner.
OR does whitelisting via ADB (supposed to) do something more powerful than disabling Battery Optimization? Thanks so much.
Looking forward to your reply

wgraz said:
Isn't it true that whitelisting via ADB only DISABLES Battery Optimization for a particular app, and you can do the same thing via the Android interface? And we all know that turning Battery Optimization off doesn't do squat to get notifications sooner.
OR does whitelisting via ADB (supposed to) do something more powerful than disabling Battery Optimization? Thanks so much.
Looking forward to your reply
Click to expand...
Click to collapse
AFAIK: Whitelisting a single app thru the UI and thru ADB has the same effect. I disabled battery optimizations on all apps and still faced a delay. Perhaps, Google will take care of this issue eventually. But, I doubt it.
But, yes, disabling deviceidle thru adb works as a full-proof solution.
I'm still testing to see if disabling "Android Adaptive Notifications" works.
Also, I wonder if there's a way to see if the phone received the email but just chose not to show us the notification.

nixnixnixnix4 said:
AFAIK: Whitelisting a single app thru the UI and thru ADB has the same effect. I disabled battery optimizations on all apps and still faced a delay. Perhaps, Google will take care of this issue eventually. But, I doubt it.
But, yes, disabling deviceidle thru adb works as a full-proof solution.
I'm still testing to see if disabling "Android Adaptive Notifications" works.
Also, I wonder if there's a way to see if the phone received the email but just chose not to show us the notification.
Click to expand...
Click to collapse
Sorry for the late response.
Thanks for confirming the adb whitelist and disabling battery optimization are the same.
I tried: adb shell dumpsys deviceidle disable
but I'm still getting delayed email notifications, once the device has been sleeping for 5-7 minutes.
I don't think Google will ever give freedom back to it's users. They want control. Years ago, I think Gmail had push notifications, but Google pulled that back. My guess is they want to reintroduce it in the future as a paid service because they felt they had very little in their gmail pipeline at the time. Google's favorability is declining, but I'd still take Android over IOS. I still use Google Voice. Other than that, I wouldn't have any Google accounts on my phone.

wgraz said:
Sorry for the late response.
Thanks for confirming the adb whitelist and disabling battery optimization are the same.
I tried: adb shell dumpsys deviceidle disable
but I'm still getting delayed email notifications, once the device has been sleeping for 5-7 minutes.
I don't think Google will ever give freedom back to it's users. They want control. Years ago, I think Gmail had push notifications, but Google pulled that back. My guess is they want to reintroduce it in the future as a paid service. My thought is, they felt they had very little in their gmail pipeline so they removed push notifications to reintroduce it at a later time. I hate Google, but I'd take Android over IOS at this point in time. I still use my Google Voice account. Other than that, I wouldn't have any Google accounts on my phone.
Click to expand...
Click to collapse
./adb devices
./adb shell dumpsys deviceidle disable
./adb disconnect
If that didn't work for you, go into the GMail app and look closely at the settings to see if there is something off.
Also, does disabling GMail and using Outlook instead work for you?

wgraz said:
I don't think Google will ever give freedom back to it's users. They want control.
Click to expand...
Click to collapse
The EU, Japan, and the US are all cracking down on Apple now. Google won't be able to control this beast too much for too long.

nixnixnixnix4 said:
./adb devices
./adb shell dumpsys deviceidle disable
./adb disconnect
If that didn't work for you, go into the GMail app and look closely at the settings to see if there is something off.
Also, does disabling GMail and using Outlook instead work for you?
Click to expand...
Click to collapse
I didn't use the: adb disconnect
Just "exit" the cmd and unmounted the phone.
I don't use the gmail app but have a gmail accounts ( in addition to other email accounts) I use through another email app. But every email app I try has this issue after the phone's been sitting for 5-7 minutes.
I mean, what is google trying to do? Save battery power to reduce mining of essential minerals for new batteries? Or they simply don't want people getting instant information?

We need someone with the expertise to check if the e-mail made its way to the phone or not.
This will tell us if the issue has to do with just notification display OR something with the internet/server.

nixnixnixnix4 said:
We need someone with the expertise to check if the e-mail made its way to the phone or not.
This will tell us if the issue has to do with just notification display OR something with the internet/server.
Click to expand...
Click to collapse
I was reading in this thread about PARTIAL_WAKE_LOCK
I asked if it was even possible if you can apply this PARTIAL_WAKE_LOCK to other apps.

Related

Problem with Smart Lock and trusted devices

I'm new to the S7, though drove a Moto X Pure on Marshmallow for a while and am familiar with my way around settings. I've only had the S7 a couple of days and hadn't gotten any trusted devices to keep it unlocked reliably. I recently had several apps update and then now when I go look, The Smart Lock (Google) Trust agent is 'disabled by administrator' and it is now greyed-out and I can't turn it on. Similarly all my trusted devices are greyed-out.
Any ideas here. The one thing I CAN think of is that I'm using built-in mail to connect to my company's exchange server, so they do have the ability to push admin rules. I had the account connected before I saw this behavior, however I suppose they might push out polices only once every week or so and I just hit the day.
Any other thoughts?
- Steve
stevevetter said:
I'm new to the S7, though drove a Moto X Pure on Marshmallow for a while and am familiar with my way around settings. I've only had the S7 a couple of days and hadn't gotten any trusted devices to keep it unlocked reliably. I recently had several apps update and then now when I go look, The Smart Lock (Google) Trust agent is 'disabled by administrator' and it is now greyed-out and I can't turn it on. Similarly all my trusted devices are greyed-out.
Any ideas here. The one thing I CAN think of is that I'm using built-in mail to connect to my company's exchange server, so they do have the ability to push admin rules. I had the account connected before I saw this behavior, however I suppose they might push out polices only once every week or so and I just hit the day.
Any other thoughts?
- Steve
Click to expand...
Click to collapse
straight thought is wht u said
thr is extra policy for ur device.
remove the exchange server and check wht happen...
if nothing changed go to security setting and clear credentials and remove all admins app
:good:
I would suggest to put your company email in the myknox app. This isolates any compny policies for accessing your device.
m3xiz said:
I would suggest to put your company email in the myknox app. This isolates any compny policies for accessing your device.
Click to expand...
Click to collapse
+1 for this suggestion. I'm a big fan of My Knox. It sets Samsung apart in this area.
Sent from my SM-G930V using XDA Premium HD app
stevevetter said:
I'm new to the S7, though drove a Moto X Pure on Marshmallow for a while and am familiar with my way around settings. I've only had the S7 a couple of days and hadn't gotten any trusted devices to keep it unlocked reliably. I recently had several apps update and then now when I go look, The Smart Lock (Google) Trust agent is 'disabled by administrator' and it is now greyed-out and I can't turn it on. Similarly all my trusted devices are greyed-out.
Any ideas here. The one thing I CAN think of is that I'm using built-in mail to connect to my company's exchange server, so they do have the ability to push admin rules. I had the account connected before I saw this behavior, however I suppose they might push out polices only once every week or so and I just hit the day.
Any other thoughts?
- Steve
Click to expand...
Click to collapse
Some third party email apps are capable of applying Exchange policies on the application level instead of device level. Thus leaving the rest of the device under your control. Try an app like Nine which can do just that. The are other apps too but I like this one.
Thanks Everyone. I'll try those. It sounds like myknox might help if this is it. On my Moto X I was using before, I used Touchdown for exchange (cause the ootb mail client sucked) and it similarly kept the admin policies to the app.
hmm, removed the exchange account. now things aren't greyed out anymore. I could go into trust agents and Smart Lock (Google) is enabled. I go into phone administrators and there are two: "Android Device Manager" and Support & Protection". I turned them both off (I don't know how to REMOVE them). Restarted phone. No change in behavior. My screen still locks when, for example, connected to my Gear S2 watch though that's one of the trusted devices for smart lock..
nevermind, it's working. I was just expecting different behavior. I still have to 'swype to unlock' but I'm not hit up for credentials anymore. I was expecting that when I woke the phone it would go to the last screen it was on. I don't know why, my Moto didn't do that. I think it was having the fingerprint sensor now that just messed up my mental processing.
A very simple alternative to the same effect is offered by the Exchained app. No root required.
I found if you go to lock screen (in setting: device) and create and lock screen pattern. Trust agents becomes available (in security settings: advanced), you can then turn it on and smart lock becomes available (in security settings: advanced).
There is a youtube video about it: How To Enable Smart Lock On Any Device
Unrelated to smart lock: As user "Avah" said, I highly recommend Nine email for connecting to your exchange server. It does not force the administration policies on your device (or at least, it may ask you, and you can decline). Better than the built-in clients and way better than the old Touchdown app.

How to stop Android killing my apps?

Just got a Nokia 3.1 Android One (Android 8.0.0)
There is only 1 problem :
Call Recorder ACR and Bluelight for eye care are killed / stopped by Android.
Battery settings are "not optimised" for these apps.
Is there a way to prevent Android to stop them?
Arie
Bolle1961 said:
Just got a Nokia 3.1 Android One (Android 8.0.0)
There is only 1 problem :
Call Recorder ACR and Bluelight for eye care are killed / stopped by Android.
Battery settings are "not optimised" for these apps.
Is there a way to prevent Android to stop them?
Arie
Click to expand...
Click to collapse
Maybe I found a solution :
Keeping your Android application running when the device wants to sleep at developer zebra dot com
At Battery Optimization / Doze Mode I found at poit 3 this
3. Using ADB during provisioning you can manually edit the whitelist, though obviously your device must first have developer options enabled:
Add your application to the whitelist as follows:
adb shell dumpsys deviceidle whitelist +com.yourcompany.yourapp
And remove your application from the whitelist with the following command:
adb shell dumpsys deviceidle whitelist -com.yourcompany.yourapp
Developer mode and USB debugging are activated on my phone, is this safe to try?
Hi,
I was having the same issue as well. I agree it is really annoying. For me, it was happening with Night Screen and Gadget Bridge.
However, since I got the 8.1 Oreo update (I got it on the 19th), I have not had Gadget Bridge get killed. I'm finally able to enjoy using my watch again
I no longer use Night Screen as 8.1 comes with one built in that is applied system wide.
I've only had the update for two days, so I can't say for certain if the problem is completely gone. However, it is a lot better than what I was experiencing on 8.0.
I don't know how long you will have to wait for the update, my friend who also has the same phone hasn't received it yet.
Last thursday I got the 8.1 upgrade and everything works fine, no apps get killed anymore.
Anyone else getting the feeling that the new Pie Update for Nokia 3.1 Plus is wonky?
I have an applock application that basically NEEDS to be active in the background. Somehow, the Pie Update got rid of any apps ability to stay active in the background. I contacted the customer service... And they told me to reset app cache, reset individual app data, factory reset AND boot up in SAFE MODE.
Now that I've done all of this, IDK what to do with the phone. The rest of the phone works great.
Actually, scratch that. After the factory reset, my ringtone kept getting reset to default Nokia ringtone even though I changed the ringtone. It defaults every boot up as well.
Please let me know what to do.
I know this is a 3.1 exclusive thread... But IDK why there's no 3.1 Plus thread. Please do help me in this.
I'm pretty much screwed.
I too am having that problem. Here is something that might help.
https://dontkillmyapp.com/nokia
I dont know how to run adb commands yet.

Apps don't show notifications until opened and can't get started by other applications

Dear XDA Forum!
first: yes i used the search function although i couldn't find a thread which addresses my issue in general, also i tried a few of the fixes regarding the notifications although it didn't solve my problem.
Phone: Doogee S88 Plus
OS: Android 10
I received this phone a while back and i'm pretty happy about it, although i noticed a very strange behaviour regarding nearly all apps.
Apperantly, every app that isn't a foreground app, will get killed or at least will not send notifications until they are opened which, you sure can think, is damn annoying.
Also, apps won't start with Android Auto, except Google Apps like News, calendar, maps and such. Spotify, Audible and every "external" apps will refuse to start on android auto until i open them manually on the phone, then they will show up on my car as well.
i checked the installed software and noticed a preinstalled energy saving app (which is funny with an 10Ah battery but well ) called com.cydroid.softmanager
Thinking this could be an issue i uninstalled/deactivated the app via ADB, although it didn't get better in any form.
And yes, of course i checked the battery optimization which is turned off for the usual apps which send notifications like Signal, Threema, Outlook, Authenticator and such
As i use Signal as my SMS/MMS app, i can say that i will not receive SMS/MMS notifications as well, i will receive them if i use the standard SMS app Messages though.
Also notifications in general are activated.
Maybe it has something to do with Doze? I'm currently at my wit's end.
I already thought about rooting the device, although it doesnt seems like that there is any rom out there for it, it has the option for OEM Bootloader unlock in the dev options though, but to be honest it's been a long while since i rooted android devices except from Samsung.
Hopefully you guys can help me!
Kind regards
**edit**
also i think it has to do with the background apps in general since foreground apps like my VPN (Cyberghost) will keep running without issues
also i noticed if i restart the phone all the apps will start correctly in the background, so it seems, since i'll get the notifications immediately

How can I see disabled apps on my phone?

I've been getting a toast message stating all apps associated with hotspot feature have been blocked, turned off, or are not installed. This started after the most recent update.
Prior to the update, hotspot worked and I've never used a third party app to turn it on. I simply went into the settings and enabled it.
How can I see a full list of services/apps I may have disabled? I also have a VPN running.
Or is there a logcat app I can use to see what's happening? Not rooted here.
On a Samsung S20 5G and not all owners are seeing this issue. So maybe it's a user error.
Thanks for the help.
Depends how you disabled them.
It's easy if you used a package disabler.
I guess adb would work but no clue how to view that. Keep a log of what you disable with adb...
Usually takes a factory reset or two to get things right
@Pinalp84
to list all disabled apps you run
Code:
adb devices
adb shell pm list packages -d
It's not rooted. If I did disable them, I'm sure it wasn't through adb. So most likely through whatever method available via only the phone.
Okay, enabled all packages. Restarted. Still the same issue. So sick of Samsung.
Pinalp84 said:
Okay, enabled all packages. Restarted. Still the same issue. So sick of Samsung.
Click to expand...
Click to collapse
You need to optimize it.
If you did any major firmware updates and didn't do a factory reset, do so now.
If you used SmartSwitch to transfer settings from another OS or device, factory reset.
Clear system cache, system logs and apk caches (data as needed); this is routine maintenance and generally all that's needed once optimized.
Do not use 3rd party launchers or power management especially 3rd party power management apps. Find the what's causing the issues and deal with those apks/services directly. Each user and configuration is unique and so are the solutions.
It's a fast, very stable, strong running device once optimized... play with it.
Never used SmartSwitch. Just did a factory reset. Still the same issue...
Pinalp84 said:
Never used SmartSwitch. Just did a factory reset. Still the same issue...
Click to expand...
Click to collapse
Try in safe mode. In settings do a "tethering" search. Double check all settings...
If it's through a carrier... renew the pass code.
SmartSwitch may be ok if same device and OS... just make sure it's not your primary backup.
My theme, icons, homescreen are pretty elaborate so next reload I'll test it for just that.
If it pukes I'll just factory reset again, no big deal.
blackhawk said:
Try in safe mode. In settings do a "tethering" search. Double check all settings...
If it's through a carrier... renew the pass code.
SmartSwitch may be ok if same device and OS... just make sure it's not your primary backup.
My theme, icons, homescreen are pretty elaborate so next reload I'll test it for just that.
If it pukes I'll just factory reset again, no big deal.
Click to expand...
Click to collapse
Are you on a S20 5G?
Pinalp84 said:
Are you on a S20 5G?
Click to expand...
Click to collapse
No.
Cross search devices/OS versions for solutions and workarounds. Most issues have been around for years...
Everytime you update you expose yourself to new and potentially unknown firmware malfunctions that many times vastly outweigh any benefits.
Google is not conservative but you can be...
There are no solutions for this issue as of now. I've seen a few people online with the same issue and none of them have found a solution even after calling Samsung support. This issue surfaced after the most recent android update.
Pinalp84 said:
There are no solutions for this issue as of now. I've seen a few people online with the same issue and none of them have found a solution even after calling Samsung support. This issue surfaced after the most recent android update.
Click to expand...
Click to collapse
Samsung tech support is next to useless.
The US tech side is better, SK and Philippines are worthless.
Check -all- related settings and permissions.
The update may have toggled a critical buried setting. It wouldn't be the first time
Many times you need to track the issue down yourself. Try different search words and look at all similar issues regardless of the OS version and device.
What are you trying to tetheri to?

How do apps launch to send an update notification?

Say I've got an app that's sending me an upgrade/update notification (Android 10). I can force-stop it and the notification goes away. When I restart my phone, I won't see any indication that the app auto-launched (eg: it won't be in services). However, it eventually launches again (in the background, I presume) and sends me another update notification.
How is that hypothetical app launching?
edit: Code sites hint that AlarmManager is a potential culprit. However posts discussing AlarmManager are disproportionally old. Has it been depreciated?
Different manufacturers call the update notification service differently. When you find the right one, use ADB AppControl
to disable it.
ze7zez said:
Different manufacturers call the update notification service differently. When you find the right one, use ADB AppControl
to disable it.
Click to expand...
Click to collapse
I appreciate that. It looks like a great setup. However, I'm rooted. Something on the handset would be a better fit for me.

Categories

Resources