app still get some wake_lock after disabling them by adb? - General Questions and Answers

i'm using note9 with android 8.1
i used adb shell appops to ignore WAKE_LOCK of some apps.
it works but I found one of the app can still send me pop notification after so.
I reduced the wake lock counts of one messenger by doing so, but i found it still generate hundreds of wake_lock per day.
how do they do it without wake_lock? any way to totally stop them from being active in the background?
i checked with WLD, the messengers got some "alarm", "PlatformComm", and "MicroMsg.Alarm"
how could I turned them off by adb?
they are not on the list of setting/developer options/services, either.
another game cause me a problem. there is no permission allowed in setting/applications. but the app can keep the screen on.
how can I prohibit it from doing so?
I also found that I cannot ingore GPS or location related operations.
(appops set xxxxxxxx ignore), but if I check (appops get xxxxxxxx), they are still "allowed".
is it prohibited?
sorry for so many questions and thanks for your kindly help.

Related

push notifications not working

I haven't ever recieved a push notification! Neither in whatsapp nor in any other application, except in facebook, though they were late and i deactivated them (in facebook)... settings are ok.. what should I do? I own a lumia 710 with the software up-to-date
Do you normally enable "battery saver" mode on your phone? Doing that blocks push notifications.
Do you run the apps that you're expecting push notifications for? If an app doesn't run for a long time, it *may* lose the ability to receive notifications.
Do you have a ton of notification-enabled apps? There's a limit on the number of notification channels, first-come-first-served, although it should be high enough.
Do you have the apps pinned to your Start screen? Many notifications merely update the app's tile, rather than popping a toast message; you won't see that if they aren't pinned.
What apps have you tried? For example, I use IM+, a chat program, and it receives notifications just fine and within seconds of when the IM is sent.
1) no
2) so.. yes i run them, and sometimes in the first ten minutes after i run them i recieve notifications (for example whats app), but i can't open whats app every ten minutes otherwise notifications would be useless :/
3) nono, two or three
4) yes
5) whatsapp, london 2012 (it should advise me when my country gets a medal or when my country races for a medal), and viber for now
The only other steps that come to mind are to:
First, try disabling push notifications in the app, then reboot the phone, then re-enable push notifications.
Second, remove the apps, reboot the phone, and then re-install them (and of course re-enable push).
Third, hard-reset your phone (I realize this is an extreme step, but if you get this far I don't know of anything else).
I don't use any of those apps myself, but I do use others and have not experienced the kinds of problems that you are describing.
no solution yet?
hello im having the same issue yesterday my whats app & viber were working properly and i was receiving Push notifications like always, but then i noticed that i was not receiving messages and i opened the whatsapp and viber, surprise no push notifications.
Is this OS error? or Whats app error? Viber?
GoodDayToDie said:
The only other steps that come to mind are to:
First, try disabling push notifications in the app, then reboot the phone, then re-enable push notifications.
Second, remove the apps, reboot the phone, and then re-install them (and of course re-enable push).
Third, hard-reset your phone (I realize this is an extreme step, but if you get this far I don't know of anything else).
I don't use any of those apps myself, but I do use others and have not experienced the kinds of problems that you are describing.
Click to expand...
Click to collapse
I followed the second advice (i also resetted my apn) and it seems that notifications are received... I'll let you know in case of problems, for now thanks very much!!!
[Antonio] said:
I followed the second advice (i also resetted my apn) and it seems that notifications are received... I'll let you know in case of problems, for now thanks very much!!!
Click to expand...
Click to collapse
You're welcome; I'm glad that worked for you! You may also need to periodically open the app to keep the notification channel open.
I'm here again, i noticed that since the problem has been solved in "Settings > applications > background tasks > advanced" "WhatsApp" has apperead, before it wasn't there. So if anyone had the same problem i'd suggest to check if Whatsapp is actually running in the background, if not it is probably installed wrong, so reinstall it
Thanks again and sorry for my bad english

[Q] [Android] Can I prevent app from being (easily) killed/stopped by user?

First some backstory (skip it if not interested)
Thing is, I made an alarm clock app that forces user to do some stuff before turning off alarm - classic.
But for some time now, I have been receiving mails from users asking me to add feature that won't let them (quickly) turn off alarm while it is playing, that including force stop or uninstalling with Applications Manager, or turning phone off with power off button.
For some time I got off asking how would I stop them from just taking battery out, but some stated it is not about completely blocking option to stop app, but to make it so time consuming or complicated, that doing it will wake them up anyway (some turn phone off without opening eyes).
Quick ways of stopping application that I have found and that I need to block, are:
- power off phone
- go to Applications Manager and use Force Stop
- other, ROM added ways - as for example, one user wrote, that his ROM lets him quickly stop running apps by long pressing back button
From what I know, blocking any of above is officially impossible. But is it possible with root access?
After doing some research, I didn't found any way to just block application from being stopped/uninstalled, so I have to ask
(ACTUAL QUESTION)
Is it possible (with root access or not) to block user from stopping app in any way? Or at least making it really timeconsuming?
Any help appreciated!
Kogerro said:
First some backstory (skip it if not interested)
Thing is, I made an alarm clock app that forces user to do some stuff before turning off alarm - classic.
But for some time now, I have been receiving mails from users asking me to add feature that won't let them (quickly) turn off alarm while it is playing, that including force stop or uninstalling with Applications Manager, or turning phone off with power off button.
For some time I got off asking how would I stop them from just taking battery out, but some stated it is not about completely blocking option to stop app, but to make it so time consuming or complicated, that doing it will wake them up anyway (some turn phone off without opening eyes).
Quick ways of stopping application that I have found and that I need to block, are:
- power off phone
- go to Applications Manager and use Force Stop
- other, ROM added ways - as for example, one user wrote, that his ROM lets him quickly stop running apps by long pressing back button
From what I know, blocking any of above is officially impossible. But is it possible with root access?
After doing some research, I didn't found any way to just block application from being stopped/uninstalled, so I have to ask
(ACTUAL QUESTION)
Is it possible (with root access or not) to block user from stopping app in any way? Or at least making it really timeconsuming?
Any help appreciated!
Click to expand...
Click to collapse
With root most things are possible but I would think it would be something that could easily be done..otherwise every malicious app out there would use it to make it hard for the user to stop it from doing what have malicious thing its doing
zacthespack said:
With root most things are possible but I would think it would be something that could easily be done..otherwise every malicious app out there would use it to make it hard for the user to stop it from doing what have malicious thing its doing
Click to expand...
Click to collapse
I guess that you meant "I would think it wouldn't be something that could easily be done"
I don't really know much about possibilities of rooted devices etc., but isn't it that every app has to get some kind of "root persmissions" to perform such tasks? So first any malicious app would need to receive that permission from user.
I am currently having hard time trying to find a way to copy behaviour of (default) Maps application - when it gets Force Stopped (in All tab of Applications Manager) with also stopping all of its services (in Running), it will start running after some time anyway. Anybody knows how thats possible?
Anyway - my real question is - is there some place (like wiki or faq) that one could read about possibilities opened by device rooting? What services, config files etc. can be used or is it that everyone trying to do some knew just have to try everything on his own?
I have been looking around for the exact same thing for a few hours now but unsuccessful. I know its possible to do it without root because an app in the play store called "App Lock" is able to do it. I'm not 100 percent sure but I believe its some sort of broadcast they are filtering. I just dont know which
in app juice defender ultimate you can choose applications which you won't kill
I would try to move the app to /system/app folder and set the permissions to rw-r--r-- using an app like ES File Explorer. Or use Titanium backup and long press and scroll down to 'convert to system app', and make sure to clear data afterwards.
any update on this, i have managed to kill my alarm several times this week. and being late for work is never popular.

Push notifications

The phone stopped getting push notifications until after the app is opened (groupme). Any way to fix that?
No one else had experienced this? It's really bad. No notifications from group messaging apps
yebbey2 said:
The phone stopped getting push notifications until after the app is opened (groupme). Any way to fix that?
Click to expand...
Click to collapse
Go to settings, battery, battery optimization and ensure your concerned app is showing you "don't optimize".
Try this and lemme know
I did that already. I searched and saw that that was supposed to be the solution.....but not working for me
In the same settings there is an advanced optimise (top right ... Button)
Make sure that's not ON
harigavara said:
Go to settings, battery, battery optimization and ensure your concerned app is showing you "don't optimize".
Try this and lemme know
Click to expand...
Click to collapse
Thanks. I have this problem too with some apps. I will try this solution
DaveHTC200 said:
In the same settings there is an advanced optimise (top right ... Button)
Make sure that's not ON
Click to expand...
Click to collapse
Did that too....it's a mystery.
Getting delayed notifications too. Particularly with WhatsApp. Can't work it out.
hallo dare said:
Getting delayed notifications too. Particularly with WhatsApp. Can't work it out.
Click to expand...
Click to collapse
this device faces network drops, often not recognized if an app wouldn't show an alert like FB messenger.
these drops are mostly responsible for missed pus messages because the device is not ready at the moment the push happens and it will not be repeated every few seconds (delay)
even worse if one is using several devices, of which one is i.e. at home and the other on the road. while a the working device will receive the push notification the OP6 would not ( you can check for network drops where it shows the IP number, it happens on wifi as well as data and both wifi frequencies BTW.)
so in the last case the message will never arrive because it's delivered, (to the working device at home) and hence no more push attempt will happen until next message arrives.
i and others posted this in OP support, as mentioned above, open you network settings and watch the IP number, it will disappar and re-appear.
also you can use FB messenger where you will frequently see an orange bar saying "connectin" intermittently with a green bar saying "connected"
of course i dunno if that happens on EVERY device but at least it happens on MANY including mine.
since i'm always having 2 phones on man i'm receiving all mails and messages on at least on of the two which also illustrates quite well how often a push will reach one of my various other devices but miss the OP6.
Go to OP support and report the issue if you face it, that way they get aware of the full scale of the issue.
Yep, notifications are patchy for me. Sometimes they arrive on time, other times they arrive but silently without triggering the alert sound. Other times they only arrive after waking the phone up.
And yes, I've set to not optimise these apps and turned off advanced optimisation. It's a bug I reckon, hopefully fixed in 5.1.6
Well, somehow it's working...for now. I did a few things. I updated the Groupme app. I think I changed the notifications from urgent to high. Something worked
yebbey2 said:
Well, somehow it's working...for now. I did a few things. I updated the Groupme app. I think I changed the notifications from urgent to high. Something worked
Click to expand...
Click to collapse
Yeah I've mine set to urgent also, but no real difference. Simple things at this stage for a company like Oneplus, that should not be an issue
I've been having the same issue. Some apps work fine and some don't give me notifications until I actually open the app and refresh it. One is Power Facebook and the other is my visual voicemail app. It's highly annoying as I use the phone for business too. Disabling then in battery optimizations does nothing.
If you have advanced optimization turned on in Battery settings, it will prevent a lot of apps that need to do things in the background from working. It will definitely affect push notifications. I have it on but I've exempted a bunch of apps I want running.
Oops, n/m, see this was discussed already.
I'm not sure if it was switching the notification from urgent to high that did it but it was the last thing I did before it started working....it did go back to urgent by itself afterwards though...notifications still working now
..guys any other facing this issue? Even after update to pie stable recently.. I get this problem, notifications arrive to every other device except op6. When i unlock the phone only then notification arrives...all battery optimizations are off..
any solutions?
I got the same issue with Threema. None of the mentioned settings worked for me.
Any ideas?
Same problem for me. Super annoying. Is this an oxygen os or android problem? Would installing a custom ROM help?
It's the DOZE feature in android that is causing the delay in receiving notifications. Setting an app to "Don't Optimize" does not help; this used to work on nougat when I was using HTC U11 but this does not work in Oneplus 6 PIE.
Run the command below in ADB to completely disable DOZE.
adb shell dumpsys deviceidle disable
The down side is that it will reset to "enable" after reboot so you will need to run the command, again, after rebooting. To get around this, I use Automagic to execute command "dumpsys deviceidle disable" after reboot. You can use Tasker for this, too.
After disabling DOZE, push notifications are received almost immediately. I often see notification for the same message on both my PC and phone.
ausaras said:
It's the DOZE feature in android that is causing the delay in receiving notifications. Setting an app to "Don't Optimize" does not help; this used to work on nougat when I was using HTC U11 but this does not work in Oneplus 6 PIE.
Run the command below in ADB to completely disable DOZE.
adb shell dumpsys deviceidle disable
The down side is that it will reset to "enable" after reboot so you will need to run the command, again, after rebooting. To get around this, I use Automagic to execute command "dumpsys deviceidle disable" after reboot. You can use Tasker for this, too.
After disabling DOZE, push notifications are received almost immediately. I often see notification for the same message on both my PC and phone.
Click to expand...
Click to collapse
Even using this i still do not get notifications i disabled every battery saving function.. I think it is time for a factory reset

Notifications fixed?

Hi,
I had an Honor Note 8 and notifications any came through if apps were open in app memory, or if they had a widget.
Adding them to a whitelist/ignoring battery optimisations did not work and notifications were blocked and only came through when you opened up the apps.
Is this fixed in the Honor Note 10?
Could any users please test by closing all open apps from app memory and seeing if notifications come through for the following apps:
eBay
Etsy
Amazon seller app
Google Hangouts
WhatsApp
Facebook messenger
This is the only thing holding me back from buying this phone. It doesn't look like a Global version will ever be released and I need to know if the Chinese ROM still kills notifications.
Thank you
Hi buddy
I have noticed when my screen is off for a bit then when I open WhatsApp loads of notifications come through.
Apps&Notifications/Battery/App Launch and set individual aps to Manage manually and turn Run in background. Now Apk does not turn off when the display is turned off ... ?
Kucko34 said:
Apps&Notifications/Battery/App Launch and set individual aps to Manage manually and turn Run in background. Now Apk does not turn off when the display is turned off ... ?
Click to expand...
Click to collapse
Even with those option it does not work on note 8. We had to remove an APK called powergenie from the system to stop it from killing app even if those app are whitelisted.
Huawei power management is too aggressive.
jbfuzier said:
Even with those option it does not work on note 8. We had to remove an APK called powergenie from the system to stop it from killing app even if those app are whitelisted.
Huawei power management is too aggressive.
Click to expand...
Click to collapse
One year I used Note 8 with Nougat and no problem with Power Management! Upon upgrading to Oreo system it automatically shuts down applications in the background, and it also does Note 10 ... ?
Phonemanager was the problem here on the Note 8. When i disabled that everyting worked great.
There are 2 settings that will totally minimize this problem (even Galaxy note 8 and iphones of my brothers are having this problem too)
but if you follow these 2 steps you will definitely minimize them as much as other phones
1. Settings/Battery/App Launch and set individual aps you like to get the notification to Manage manually
- turn all the 3 options on here (running in background , startups , and can be run by other apps) this will stop your phone from killing these specific apps from running in background
The second reason you don't get your notifications is because when your screen is off the Wifi will be disconnected first and then for a certain period of time , the system will also turn off your mobile data to save the battery as well. This means even if you have those apps running in background , you still won't get the notification because there's no internet connection....
So step 2 - go to Settings/Battery/ then look at the top right corner for the "gear" icon ,click ---- > Keep mobile data on <----- turn on option
(if you don't have mobile data plan and only rely on your wifi connection,well, you need to turn on keep your w-lan on instead )
Have fun and cheers
Sprazer said:
There are 2 settings that will totally minimize this problem (even Galaxy note 8 and iphones of my brothers are having this problem too)
but if you follow these 2 steps you will definitely minimize them as much as other phones
1. Settings/Battery/App Launch and set individual aps you like to get the notification to Manage manually
- turn all the 3 options on here (running in background , startups , and can be run by other apps) this will stop your phone from killing these specific apps from running in background
The second reason you don't get your notifications is because when your screen is off the Wifi will be disconnected first and then for a certain period of time , the system will also turn off your mobile data to save the battery as well. This means even if you have those apps running in background , you still won't get the notification because there's no internet connection....
So step 2 - go to Settings/Battery/ then look at the top right corner for the "gear" icon ,click ---- > Keep mobile data on <----- turn on option
(if you don't have mobile data plan and only rely on your wifi connection,well, you need to turn on keep your w-lan on instead )
Have fun and cheers
Click to expand...
Click to collapse
Thanks, but I did all of this on the Note 8 (when I had one) and it did nothing. All of my notifications were blocked. The only way to fix it was to remove the awful PHONE MANAGER app via the ABD removal method.
If the Note 10 is going to be the same, I'll have to pass. I just want a phone that'll work properly out of the box.
No problem with WhatsApp, messenger eBay and Facebook so far, everything comes straight thru.
I did however observe sligh delay with Gmail.
Even with Gmail widget active in the background emails come at least one minute later after sending from another device.
ultrajapa said:
No problem with WhatsApp, messenger eBay and Facebook so far, everything comes straight thru.
I did however observe sligh delay with Gmail.
Even with Gmail widget active in the background emails come at least one minute later after sending from another device.
Click to expand...
Click to collapse
I am using the Honor Mediapad X2 and having the same notifications issue, please note that there exists a HIDDEN WHITE LIST within Phone Manager where certain apps like Whatsapp are white listed and allow notifications to come through whereas other apps such as Hangouts and email clients are not. Having said this, do not use Whatsapp as a test to determine whether the Note 10 has the same issue or not. I do not know whether the Note 10's white list now includes apps such as Hangouts as it is a newer device and so it may be more up to date.
For your test, try an unpopular app which uses standard GCM protocol, kill the app, put the device into DEEP SLEEP (screen off, etc) and only then see if the device wakes up and notifications come through, they should.
Please use the QUOTE feature when replying to me to get my attention. Thanks!
The problems that i had on the Honor 8 are not on the Honor 10. I get all notifications with no problems. Just set the apps in manual mode and select all 3 options in phonemanager -> startup apps.
phorenzik said:
Hi,
I had an Honor Note 8 and notifications any came through if apps were open in app memory, or if they had a widget.
Adding them to a whitelist/ignoring battery optimisations did not work and notifications were blocked and only came through when you opened up the apps.
Is this fixed in the Honor Note 10?
Could any users please test by closing all open apps from app memory and seeing if notifications come through for the following apps:
eBay
Etsy
Amazon seller app
Google Hangouts
WhatsApp
Facebook messenger
This is the only thing holding me back from buying this phone. It doesn't look like a Global version will ever be released and I need to know if the Chinese ROM still kills notifications.
Thank you
Click to expand...
Click to collapse
Hi
I am sorry to disappoint you. On the Huawei Honor note 10 (EMUI 8.2.0 build 132) you won't receive notifications if the application is closed (not running in the background nor in the foreground), with one exception that I have found so far: WhatsApp.
All the settings you can modify only affect the application WHILE IT'S RUNNING IN THE BACKGROUND, that is, the app will keep running if the background and won't be killed if you disabled battery optimization for the specific app and changed the App Launch setting to "Manage Manually" with all 3 options enabled. However, if the application was closed by you or never launched after restarting the phone, you won't receive notifications even with disabled battery optimization and power management.
I am so frustrated, I don't even get reminder notifications from Google Keep notes app. The only workaround is to manually open all the apps you wish to get notification from when you power up the phone.
If anyone has a better workaround or has a different behavior than what I described, please advise!
Cheers,
David
godudu said:
Hi
I am sorry to disappoint you. On the Huawei Honor note 10 (EMUI 8.2.0 build 132) you won't receive notifications if the application is closed (not running in the background nor in the foreground), with one exception that I have found so far: WhatsApp.
All the settings you can modify only affect the application WHILE IT'S RUNNING IN THE BACKGROUND, that is, the app will keep running if the background and won't be killed if you disabled battery optimization for the specific app and changed the App Launch setting to "Manage Manually" with all 3 options enabled. However, if the application was closed by you or never launched after restarting the phone, you won't receive notifications even with disabled battery optimization and power management.
I am so frustrated, I don't even get reminder notifications from Google Keep notes app. The only workaround is to manually open all the apps you wish to get notification from when you power up the phone.
If anyone has a better workaround or has a different behavior than what I described, please advise!
Cheers,
David
Click to expand...
Click to collapse
David, plz see my post above. I believe there is a built-in white list which once we are able to decipher would be very happy
Could this be the white list?
/data/data/com.huawei.systemmanager/files/cootekphoneservice/white_list
https://forum.xda-developers.com/showthread.php?p=77664703
Please use the QUOTE feature when replying to me to get my attention. Thanks!
Have friends solved the notification issue?
I still keep going
nemkate said:
Have friends solved the notification issue?
I still keep going
Click to expand...
Click to collapse
Hi,
Unfortunately I believe this is per design and not a bug (Huawei strict battery saving policy.
The only way to guarantee notifications is to open the app you wish to get notifications from and keep it always running in the background.
Read the article below, it explains down to the bit level why notifications don't work on Huawei phones:
Damn I cannot post outside links because I am a new user. So Instead, search Google for this:
"why-your-push-notifications-never-see-the-light-of-day"
I hope it helps
D
godudu said:
Hi,
Unfortunately I believe this is per design and not a bug (Huawei strict battery saving policy.
The only way to guarantee notifications is to open the app you wish to get notifications from and keep it always running in the background.
Read the article below, it explains down to the bit level why notifications don't work on Huawei phones:
Damn I cannot post outside links because I am a new user. So Instead, search Google for this:
"why-your-push-notifications-never-see-the-light-of-day"
I hope it helps
D
Click to expand...
Click to collapse
I solved the problem as you said .
Hopefully correct the problem with the new update.
thank you so much :iyi::iyi::iyi:
For me no Problem with all.All Notification working.I use Mini Widgets,Whatsapp,Signal...
SmartPhonesFan said:
I don't use whatsapp that magically works but FB messenger , mails , skype , etc doesn't .. when I open messenger there is orange waiting for network so app can happily work in background but internet wifi or mobile internet will be killed anyway when phone in sleep mode ..
Click to expand...
Click to collapse
Have you checked under Phonemanager-Autostart runs in Background ?
SmartPhonesFan said:
I have tried everything..
Maybe I uninstalled something from Huawei what keeps wlan or data always on
Click to expand...
Click to collapse
This always on option is there is the developer options in my unrooted stock release.
Hello friends, I am trying to decide if buy this phone or not, but the notification is a basic feature. My most used apps are Telegram, Facebook Messenger and WhatsApp, so I want to know if there was an update or something that fixed the notification management. Thanks in advance.

Notification problems? (I already turned on the setting in iManager and Setting)

I bought my Nex in China, and I already turned on the settings like autostart in iManager and settings like the emergency priority in Manage Status and Notification. However, a lot of times notifications for apps like Gmail still don't show up on time; they are delayed for anywhere between an hour to hours. Anyone know the solution? Really like the phone but am thinking about going back to OnePlus 5T stock android because of this (one time I even missed Google Voice incoming call, had to go into the app and refresh to know I got a call). Thanks!
Terrence32 said:
I bought my Nex in China, and I already turned on the settings like autostart in iManager and settings like the emergency priority in Manage Status and Notification. However, a lot of times notifications for apps like Gmail still don't show up on time
Click to expand...
Click to collapse
maybe you need to whitelist your 3rd party apps for speedup. start first the app you want to whitelist, swipe from the left bottom up to get in the control center, there you see your apps. swipe the app down and you will see a lock, click on that and you whitelist your app for speedup. i include some pics. hope that help you solve your problem, the software is very terrible on this phone but i love it too much i can´t sell it.
smisi said:
maybe you need to whitelist your 3rd party apps for speedup. start first the app you want to whitelist, swipe from the left bottom up to get in the control center, there you see your apps. swipe the app down and you will see a lock, click on that and you whitelist your app for speedup. i include some pics. hope that help you solve your problem, the software is very terrible on this phone but i love it too much i can´t sell it.
Click to expand...
Click to collapse
So you want the lock to show up on the app icon, right? Thx a lot I will give it a try!
Try remove com.vivo.pem in adb shell.
Still having issues with notifications
3dot said:
Try remove com.vivo.pem in adb shell.
Click to expand...
Click to collapse
I am having the same issue after following all these steps... I have also removed Imanager in adb shell. My notifications are still delayed. If anyone has found any other way to resolve the problem then please share...
i always had this problem....

Categories

Resources