Honor 6X automatically killing background services [Rooted] - Honor 6X Questions & Answers

Hey Guys,
I bought a brand new Honor 6x yesterday and rooted it ( I followed a thread from XDA). Unlocked bootloader, flashed twrp and then installed SuperSU. I want this device to use one and only one app which I have developed. Problem is that, after starting the app, one background service is started, but the Honor 6X is killing them randomly. Very frequent. Even the onDestroy method is not getting called in that scenario.
I know that when we remove the app from task manager, the services gets killed in the Honor 6X, but in my case, I just minimise the app and then also the services gets killed.
Is this something related to rooting? I tried rooting Nexus 5 and in that also, the services gets killed.
Any help will be helpful.

Try to whitelist the apps that you wouldn't want to be closed automatically by this voice in the battery menu

RedSkull23 said:
Try to whitelist the apps that you wouldn't want to be closed automatically by this voice in the battery menu
Click to expand...
Click to collapse
Can you tell me the name of the app? Couldn't find any app as "Batteria" with given screenshot.

driftking9987 said:
Can you tell me the name of the app? Couldn't find any app as "Batteria" with given screenshot.
Click to expand...
Click to collapse
It's not an app man it's EMUI settings menu, battery sub menu. "Batteria" stands for Battery in english. Just browse to settings -> battery and you'll find the same section of my screenshot.

RedSkull23 said:
It's not an app man it's EMUI settings menu, battery sub menu. "Batteria" stands for Battery in english. Just browse to settings -> battery and you'll find the same section of my screenshot.
Click to expand...
Click to collapse
Thanks, got it. Will try and update if it works.

driftking9987 said:
Thanks, got it. Will try and update if it works.
Click to expand...
Click to collapse
Ok let me know if you can solve that.

you can add the app in ignore optimization list also.

Hey. Actually I'm having the same problem.My phone is not rooted.. It kills the music streaming app i use 3 4 seconds after locking the device.. I have c
Kept that app in whitelist too..

Ssudeep123 said:
Hey. Actually I'm having the same problem.My phone is not rooted.. It kills the music streaming app i use 3 4 seconds after locking the device.. I have c
Kept that app in whitelist too..
Click to expand...
Click to collapse
Gaana app, music app all works fine. not sure what is causing this though for you

shashank1320 said:
Gaana app, music app all works fine. not sure what is causing this though for you
Click to expand...
Click to collapse
I use Wynk and it get kills...I've to set screen time to 10 minutes so that I can listen through Wynk

Ssudeep123 said:
I use Wynk and it get kills...I've to set screen time to 10 minutes so that I can listen through Wynk
Click to expand...
Click to collapse
One more user reported this few days back. Not sure what was provided for a fix.

shashank1320 said:
One more user reported this few days back. Not sure what was provided for a fix.
Click to expand...
Click to collapse
Ok No problem btw Thanks. I will try to ask wynk about it

RedSkull23 said:
Ok let me know if you can solve that.
Click to expand...
Click to collapse
No. Sadly it didn't work out as expected. After adding app in that list, now the services are not getting killed but at the same time, the services are not getting called correctly.
Like, I call a particular service every 1 minute, when the screen is turned on, it works perfectly. But as soon as the screen gets off/ or the app is minimized, the service starts randomly. Like sometime it will get fired after 2 min, sometime 4 min and rarely at a mentioned frequency i.e 1 min.
Any idea why this is happening. The frequency in which the service is called is very important for my application.
Thanks.

driftking9987 said:
Any idea why this is happening. The frequency in which the service is called is very important for my application.
Thanks.
Click to expand...
Click to collapse
No other ideas at the moment...

Go to settings>battery, go to settings icon on top right, make sure everything off in there. I only turn on keep mobile data on during sleep (keep whatsapp always online).
Then go to settings>memory & storage>storage cleaner, go to settings icon on top right and turn off auto clean.
Lastly go to settings>apps, choose the apps that u want always active, go to battery, make sure system wake up on, after that go to write system settting, make it yes.
Remember to restart phone after settings applied.
See if it works.
Sent from my Honor 8 Pro using XDA Labs

Related

Honor 6x stock killing apps that it shouldn't

I have a call recorder app and that thing keeps getting terminated even though it's in the protected app list.
Any solution?
Thanks!
It could be that the call recorder app you installed is not support for use with either the current version of android installed on your device, or it's just not compatible with your device entirely.
DarkGuyver said:
It could be that the call recorder app you installed is not support for use with either the current version of android installed on your device, or it's just not compatible with your device entirely.
Click to expand...
Click to collapse
It's this one never had a problem with it with my s7. https://play.google.com/store/apps/details?id=com.skvalex.callrecorder
I disabled battery optimization for this app , i'll see if it helps.
lowspeed said:
It's this one never had a problem with it with my s7. https://play.google.com/store/apps/details?id=com.skvalex.callrecorder
I disabled battery optimization for this app , i'll see if it helps.
Click to expand...
Click to collapse
Try using another call recorder. The current call recorder you are using probably isn't compatible with the Honor 6X.
DarkGuyver said:
Try using another call recorder. The current call recorder you are using probably isn't compatible with the Honor 6X.
Click to expand...
Click to collapse
Actually, i fixed it. The main culprit was the battery optimization
lowspeed said:
Actually, i fixed it. The main culprit was the battery optimization
Click to expand...
Click to collapse
Glad you solved your problem. But I wonder why would the battery optimization software cause problems with the call recorder app that you are using....
guest user doubt
In Honor 6x is guest mode available or not???? and by using only pin can we split two user accounts i.e(user and guest) or else can we use also fingerprint for two users...please reply me back
DarkGuyver said:
Glad you solved your problem. But I wonder why would the battery optimization software cause problems with the call recorder app that you are using....
Click to expand...
Click to collapse
Because it causes the services to be terminated
lowspeed said:
Because it causes the services to be terminated
Click to expand...
Click to collapse
Interesting....
lowspeed said:
I have a call recorder app and that thing keeps getting terminated even though it's in the protected app list.
Any solution?
Thanks!
Click to expand...
Click to collapse
Glad you solved, but you can also lock it in recents to disable from getting stopped.
Try using another call recorder
I know this is an old thread but I'm having the same issue. Even if I lock a program in recent apps, it will still close at some point. I have to reopen my podcast app and pdf reader on a daily basis (sometimes multiple times) And I have battery optimization off.
terryowen said:
I know this is an old thread but I'm having the same issue. Even if I lock a program in recent apps, it will still close at some point. I have to reopen my podcast app and pdf reader on a daily basis (sometimes multiple times) And I have battery optimization off.
Click to expand...
Click to collapse
Go to settings -> Battery -> Close apps after screen lock and untick the apps you dont want the OS to close. I have seen apps running in the background for days, sometimes I even forget that the app was in background until I open it for something.
Yes, I've already done this too. (Sorry for not mentioning it.) It's weird though, it seems like it only keeps the last 3 or 4 recent apps max after a certain period of time. I like this phone but this is one is starting to bug me a lot.
Anyway, Pocket Casts, ezPDF Reader, TuneIn Radio Pro and Music Folder Player all are identified as power intensive and get killed, even if locked and unselected from lock screen close or the power intensive apps screen. I have all power saving options turned off as I rarely get below 70%.
Note: I've been poking around some more and ended up in app settings and in the Advanced/Special Access, it looks there is a "Exempt from battery optimization" section. I'm going to put my reader and music apps in and see what happens.

EMUI 5 ram management problem

I need SIP client to be always accessible, but SIP app stops registering after an hour or so (this is the app I use - https://play.google.com/store/apps/details?id=cz.nn.helios_mobile&hl=en).
On other family members phones (sony z3c, iphone) this app works without any problems, but my honor 8 seems to always kill this app (or somehow stop it from registering to sip server).
Is it just this app or is it honor 8 memory management problem? On EMUI 4.1 there was a function to add apps to protected apps list, but it's not available anymore.
Go to your App infos then click on Battery, you can then choose whether to keep this app running after the screen is locked or not.
takichiman said:
Go to your App infos then click on Battery, you can then choose whether to keep this app running after the screen is locked or not.
Click to expand...
Click to collapse
"Close after screen locked" option for this app is OFF.
Or is there any other option I don't know about?
k13tas said:
"Close after screen locked" option for this app is OFF.
Or is there any other option I don't know about?
Click to expand...
Click to collapse
Hmm.. There is another option that automatically close excessively power-intensive apps. Check if that's off too.
(I can't remember where to find it on Nougat, I'm on MM now)
takichiman said:
Hmm.. There is another option that automatically close excessively power-intensive apps. Check if that's off too.
(I can't remember where to find it on Nougat, I'm on MM now)
Click to expand...
Click to collapse
This option is also OFF...
k13tas said:
This option is also OFF...
Click to expand...
Click to collapse
That's weird,
suppose this problem comes from RAM management, you can choose to prevent an app from being purged by clicking on a lock from the task management screen (it's right next to the X that closes an app).
takichiman said:
That's weird,
suppose this problem comes from RAM management, you can choose to prevent an app from being purged by clicking on a lock from the task management screen (it's right next to the X that closes an app).
Click to expand...
Click to collapse
I'll try that, thank you

Background Services being killed in EMUI 5.0

I know this is a common problem, but there are so many discussions about different bugs and builds and so much misinformation, i had to start a new discussion. I'm using EMUI 5.0 Android 7.0 b389.
EMUI kills power consuming background apps by default after about 10 minutes. Doesnt matter if the screen is locked or not.
The setting 'Close excessively power-intensive apps' does nothing, it makes absolutely no difference. 'Power-intensive app history' and 'History of closed apps' are empty. But when I use the tool 'Battery -> Optimize' it still shows: 'x power consuming background apps closed', and the services gets killed. I suspect EMUI performs this optimization by default from time to time.
Could somebody with a similar behaviour try the Optimze feature and see, if you can replicate the results? I've tried every possible setting and by now I'm pretty sure, this is a bug.
Second question: Who solved a similar problem by rooting the device and either:
a) Putting the service (for me it is Whatsapp) in the system app folder
b) Disabling the Phone Manager. Here im wondering, if there are negative consequences doing this. Like settings disappearing (e.g in the Battery menu) or faulty RAM management or whatever.
Nobody has Problems with notifications or background processes anymore on EMUI 5.0? A response if everything works fine, like Whatsapp notifications, would be great too. Maybe I have a faulty device.
badabumbum said:
Nobody has Problems with notifications or background processes anymore on EMUI 5.0? A response if everything works fine, like Whatsapp notifications, would be great too. Maybe I have a faulty device.
Click to expand...
Click to collapse
I don't have any issue with WhatsApp at all or any notifications for that matter. Did u turn on lockscreen cleanup? Also it WhatsApp restored from a backup?
Sent from my Honor 8 using XDA Labs
ayush rao said:
I don't have any issue with WhatsApp at all or any notifications for that matter. Did u turn on lockscreen cleanup? Also it WhatsApp restored from a backup?
Sent from my Honor 8 using XDA Labs
Click to expand...
Click to collapse
It's turned off, but the app is killed even when the screen stays on, so thats not the problem. Whatsapp is installed fresh. I even did a factory reset and just installed Whatsapp, but the problem remains.
Would you mind trying something for me, to go under:
settings -> battery -> optimize
And see if it says something like "1 power consuming background app closed.
If it doesnt say that, then you should see a green checkmark.
Also is your whatsapp power consumption high? Mine is at 28 mAh right now for the last hour, and EMUI seems to decide, thats too much.
badabumbum said:
It's turned off, but the app is killed even when the screen stays on, so thats not the problem. Whatsapp is installed fresh. I even did a factory reset and just installed Whatsapp, but the problem remains.
Would you mind trying something for me, to go under:
settings -> battery -> optimize
And see if it says something like "1 power consuming background app closed.
If it doesnt say that, then you should see a green checkmark.
Also is your whatsapp power consumption high? Mine is at 28 mAh right now for the last hour, and EMUI seems to decide, thats too much.
Click to expand...
Click to collapse
I'm not sure what u meant by optimize but the second I hit it, it killed all the apps on my phone including my services like LastPass and my live wallpaper.
Also I've added my WhatsApp consumption below. Doesn't seem like a lot to me.
Sent from my Honor 8 using XDA Labs
ayush rao said:
I'm not sure what u meant by optimize but the second I hit it, it killed all the apps on my phone including my services like LastPass and my live wallpaper.
Also I've added my WhatsApp consumption below. Doesn't seem like a lot to me.
Sent from my Honor 8 using XDA Labs
Click to expand...
Click to collapse
Thanks for trying that. That means, your phone has also recognized these background apps as power-consuming. But the difference ist, thats what happens to my phone every 10 minutes. Maybe my device is faulty for real.
Ive tried every possible setting, factory resets and new installations. Ive even disabled Power Genie and Phone Manager over adb. Nothing works. Man, this just sucks.
badabumbum said:
Thanks for trying that. That means, your phone has also recognized these background apps as power-consuming. But the difference ist, thats what happens to my phone every 10 minutes. Maybe my device is faulty for real.
Ive tried every possible setting, factory resets and new installations. Ive even disabled Power Genie and Phone Manager over adb. Nothing works. Man, this just sucks.
Click to expand...
Click to collapse
So I was just snooping around the settings and I found that I have exempted WhatsApp from battery optimizations.....
Sent from my Honor 8 using XDA Labs
ayush rao said:
So I was just snooping around the settings and I found that I have exempted WhatsApp from battery optimizations.....
Sent from my Honor 8 using XDA Labs
Click to expand...
Click to collapse
Yeah me too, but it did not help. I think this setting is about the doze feature from android. So strange that nobody else seems to have that problem since Android 7.
I had this problem, do you find the way to fix this?
I had this problem, do you find the way to fix this?
jackfan1111 said:
I had this problem, do you find the way to fix this?
Click to expand...
Click to collapse
Have you tried updating your phone to the latest fw? I don't have any problems atm.
Greenify
Jhayzt said:
Have you tried updating your phone to the latest fw? I don't have any problems atm.
Click to expand...
Click to collapse
yes, my phone is the latest version

Offline Alert at the bottom of screen

All of a sudden i am receiving an offline alert at the bottom of my screen. Please see screenshot
zeke125 said:
All of a sudden i am receiving an offline alert at the bottom of my screen. Please see screenshot
Click to expand...
Click to collapse
Must be some 3rd party app you installed.
It has either "draw over apps" rights (Settings->Security->Draw over apps) or even root rights (if you are rooted).
remove the permissions one by one and reboot to find the culprit app
j to the 4n said:
Must be some 3rd party app you installed.
It has either "draw over apps" rights (Settings->Security->Draw over apps) or even root rights (if you are rooted).
remove the permissions one by one and reboot to find the culprit app
Click to expand...
Click to collapse
Thanks for the tip. Though i cant find the draw over apps at the security setting.
Offline alert at bottom of screen - I have the same thing on my Z2 Play
zeke125 said:
All of a sudden i am receiving an offline alert at the bottom of my screen. Please see screenshot
Click to expand...
Click to collapse
I hope it's an app but I uninstalled everything I added to the device yesterday and it's still there. It goes on and off periodically. A reboot didn't fix it.
Yellow font 'offline' in a gray bar.
Anyone else seeing this?
zeke125 said:
Thanks for the tip. Though i cant find the draw over apps at the security setting.
Click to expand...
Click to collapse
Damn.
Go to Settings->Apps->Press 3 dot menu button at top right->Configure Apps->Special access (at very bottom)->Draw over other apps
j to the 4n said:
Damn.
Go to Settings->Apps->Press 3 dot menu button at top right->Configure Apps->Special access (at very bottom)->Draw over other apps
Click to expand...
Click to collapse
Got it.. already turned off a few but still its still there.. very annoying
zeke125 said:
Got it.. already turned off a few but still its still there.. very annoying
Click to expand...
Click to collapse
disable all for now and then reboot
j to the 4n said:
Damn.
Go to Settings->Apps->Press 3 dot menu button at top right->Configure Apps->Special access (at very bottom)->Draw over other apps
Click to expand...
Click to collapse
Hi...I turned off everything in draw over other apps and the offline message is still there.
Nsain1 said:
Hi...I turned off everything in draw over other apps and the offline message is still there.
Click to expand...
Click to collapse
Are you encountering the same issue?
zeke125 said:
Are you encountering the same issue?
Click to expand...
Click to collapse
Yes... Exact same thing.
I have the same issue on my Pixel XL. Just started about 15 minutes ago. Haven't downloaded any new apps in at least a week.
Sent from my Pixel XL using Tapatalk
Can you guys go to settings->developer options: running services and send a screenshot of all running services?
also are you guys rooted?
Also pulling a logcat might shed some light into it.
Well this is both scary and good. It just stopped. If it starts again I'll take screen shots and post.
No I'm not rooted.
Well cancel that... It started again... Incoming requested info.
I'm having this problem on my Pixel XL. As soon as I deleted "Zedge" it went away. I redownloaded it and I am trying to replicate the "offline" message to see if it goes away again when I uninstall Zedge.
Nsain1 said:
Well cancel that... It started again... Incoming requested info.
Click to expand...
Click to collapse
bdrago861 said:
I'm having this problem on my Pixel XL. As soon as I deleted "Zedge" it went away. I redownloaded it and I am trying to replicate the "offline" message to see if it goes away again when I uninstall Zedge.
Click to expand...
Click to collapse
@Nsain1 got Zedge installed as well. Wonder how it can draw an overlay though without the "draw over apps permission".
ES File Explorer is also often a goo candidate when it comes to weird ads and such.
j to the 4n said:
@Nsain1 got Zedge installed as well. Wonder how it can draw an overlay though without the "draw over apps permission".
ES File Explorer is also often a goo candidate when it comes to weird ads and such.
Click to expand...
Click to collapse
I stopped using ES Explorer a long time ago. It's not installed on my phone.
So I uninstalled Zedge and ES Explorer and rebooted. The message is still coming up. I appreciate the suggestions. This is odd for sure.
Not rooted. I wonder what app is causing this, it will notify offline even though i am connected to wifi, and it will not show up if i will turn off wifi.
Zeke125 - By chance you don't have control 4 do you?

Whatsapp keep disconnected

Hi Mate 30 pro fans,
I have weird issues, regarding whatsapp application. I will frequently disconnected while im idle or not turn on the phone for 5 minutes or more. Seem like EMUI keep killed Whatapp in backgroud. Does anyone have similar problem like me? For information, i already re-install the application twice, set special permission to disallow system to automatically kill the app manually. but the issue keep coming.
Thanks in advance guys!
amirxyz said:
Hi Mate 30 pro fans,
I have weird issues, regarding whatsapp application. I will frequently disconnected while im idle or not turn on the phone for 5 minutes or more. Seem like EMUI keep killed Whatapp in backgroud. Does anyone have similar problem like me? For information, i already re-install the application twice, set special permission to disallow system to automatically kill the app manually. but the issue keep coming.
Thanks in advance guys!
Click to expand...
Click to collapse
Are you losing connection with just that app or device wide when that happens?
Try creating a new apn with your details
I not losing network. I notice even with wifi or mobile data. The issue still same. Just i haven't reset my phone yet
Whatsapp
Evet aynı sorun benim mate 30 pro da var. Mesajlar geç geliyor .ayrıca whatsaptan konum göndermek mümkün değil. Bu nedenle Whatsapp plus yükledim. Simdi iyi.
amirxyz said:
I not losing network. I notice even with wifi or mobile data. The issue still same. Just i haven't reset my phone yet
Click to expand...
Click to collapse
2 things under settings u adjust. i solved mine via these 2
1) go App. under App launch. select "manual" and tick all 3 options for Google framework, account manager , huawei mobile services and whatsapp. i did that for google map too
2) again go App, under permission. select special access on the drop down list on top right hand corner. choose battery optimisation. i select whatsapp as well as those apps mentioned as above 1) and choose "not allowed" so that these wont be killed . Just adjusting 1) under App launch does not work. its the battery optimisation that kills the app after a while.
u need to perform these 2 adjustments so that whatsapp will continue to work behind .
this 3rd step is optional. I've also enabled locking whatsapp under the task it so that it won't be close even if i clear all app in the background. click on the square icon at the bottom most of the phone menu, scroll to whatsapp and swipe down to lock it. swiping up kills the app
make sure u enable data for these app.
hope it helps. i did it for my 5G set from china.
averllia said:
2 things under settings u adjust. i solved mine via these 2
1) go App. under App launch. select "manual" and tick all 3 options for Google framework, account manager , huawei mobile services and whatsapp. i did that for google map too
2) again go App, under permission. select special access on the drop down list on top right hand corner. choose battery optimisation. i select whatsapp as well as those mentioned as above 1) and choose "not allowed" so that these wont be killed . Just adjusting 1) under App launch does not work. its the battery optimisation that kills the app after a while.
u need to perform these 2 adjustments so that whatsapp will continue to work behind .
this 3rd step is optional. I've also enabled may whatsapp to lock it so that it went be close even if i close all app. just swipe down and lock it. swiping up kills the app
make sure u enable data for these app.
hope it helps. i did it for my 5G set from china.
Click to expand...
Click to collapse
Thanks. Let me test. Will update again later. Hopefully this help.
averllia said:
2 things under settings u adjust. i solved mine via these 2
hope it helps. i did it for my 5G set from china.
Click to expand...
Click to collapse
Hi @averllia
I will receive in a few days my Mate 30 Pro 5G version LIO-AN00 (chinese).
Do you think that I will have the same issue with WhatsApp app?
Thanks in advance!
luisvalino said:
Hi @averllia
I will receive in a few days my Mate 30 Pro 5G version LIO-AN00 (chinese).
Do you think that I will have the same issue with WhatsApp app?
Thanks in advance!
Click to expand...
Click to collapse
Hi im not too sure but it happens on mine. i discovered this… solution via trial and error. it should help if thats the issue. quite easy.
i encounter lagging in receiving wa msg after the phone was inactive for a while. did all i could including search via online. none helps until i toggled that adjustment. don't worry as it should address the prob if its the same issue
averllia said:
Hi im not too sure but it happens on mine. i discovered this… solution via trial and error. it should help if thats the issue. quite easy.
i encounter lagging in receiving wa msg after the phone was inactive for a while. did all i could including search via online. none helps until i toggled that adjustment. don't worry as it should address the prob if its the same issue
Click to expand...
Click to collapse
I am a little newbie with Huawei., @averllia
What route/steps did you follow exactly to activate the whatsapp? Because I did not understand you in the previous message.
amirxyz said:
Thanks. Let me test. Will update again later. Hopefully this help.
Click to expand...
Click to collapse
averllia said:
2 things under settings u adjust. i solved mine via these 2
1) go App. under App launch. select "manual" and tick all 3 options for Google framework, account manager , huawei mobile services and whatsapp. i did that for google map too
2) again go App, under permission. select special access on the drop down list on top right hand corner. choose battery optimisation. i select whatsapp as well as those apps mentioned as above 1) and choose "not allowed" so that these wont be killed . Just adjusting 1) under App launch does not work. its the battery optimisation that kills the app after a while.
u need to perform these 2 adjustments so that whatsapp will continue to work behind .
this 3rd step is optional. I've also enabled locking whatsapp under the task it so that it won't be close even if i clear all app in the background. click on the square icon at the bottom most of the phone menu, scroll to whatsapp and swipe down to lock it. swiping up kills the app
make sure u enable data for these app.
hope it helps. i did it for my 5G set from china.
Click to expand...
Click to collapse
Hi, I have a Mate 30 Pro with Google Services. WhatsApp keeps discconect too.
Where is Google Framework app to select "manual" as the other two?
And could you explain step 2, please?
Thank you!
averllia said:
2) again go App, under permission. select special access on the drop down list on top right hand corner. choose battery optimisation. i select whatsapp as well as those apps mentioned as above 1) and choose "not allowed" so that these wont be killed . Just adjusting 1) under App launch does not work. its the battery optimisation that kills the app after a while.
hope it helps. i did it for my 5G set from china.
Click to expand...
Click to collapse
Hi @averllia
Could you explain the route you follow at step #2, please ??
I have got a Mate 30 Pro 5G from China too.
[EDIT] Finally I found it !!!
...
is there anyone else with whatsapp problem? I had the same problem. whatsapp plus apk. problem is solved.

Categories

Resources