Orux maps app will be closed while running in background randomly - Huawei P9 Plus Questions & Answers

Hello everyone,
i need some help and didn't find something here in the forums.
i own a P9+ with the latest ota-stock-rom installed, not rooted.
I am running my emap-app Orux-maps for many years now on different android-phones and have never had this problem.
If i use this app in the background recording my gps-track it will be closed after a while.
As far as i know now it could be related to Android power saving options.
I tried the following but with no success:
Under:
settings
batterie
-close apps after screenlock = toggle orux don't close
settings ( gear wheel upper right corner)
-close excessively power intensive apps -uncheck
apps
orux
close after screenlock -uncheck
Do you know if there are more power saving options in Android 7?
Is this maybe a known issue?
I also already gave the app all permissions...
THX a lot,
Henning

I know it's been years since this question was posted but issue remained
This is a MUST: enable "Apps>OruxMaps>App Permissions>Location>Allowed All the time"!
My original setting was "Allow only while using the app" and it did not work while running the app in the background because once the OruxMaps goes into background it will disconnect the Location Service and will reconnect as soon as app is reactivated (i.e. screen unlocked) drawing a straight track-line between two GPS readings... even though it says that the tracking is active but apparently without Location input...

Related

App that toggles GPS automatically

I recently decided to root my droid turbo since it seems like we are never going to get the lollipop update ?. Im already seeing improvements in battery life and performance by using various apps like clean master and battery doctor.
I was wondering if anyone knew of any apps that would know when I'm using a certain app and toggle certain setting when I am and off when I'm not. For example, if I pull up the maps app, I obviously need location on so as soon as I open it, it turns location on, and then when I'm done with the all, turns it back off.
Ive seen the "tasker" app on the Google play store that's like 2.99 and I didn't know if it would do that or not.
Thanks in advance!!
IIRC, Tasker does this. I think Llama (similar to Tasker) can also do it.
drexhex said:
IIRC, Tasker does this. I think Llama (similar to Tasker) can also do it.
Click to expand...
Click to collapse
Yes, Tasker does this with the addition of Secure Settings. You can set it so that whenever you open apps X, Y, Z, it will automatically toggle GPS.
I have this set up for Maps, Yelp, etc. When I exit the app, GPS is turned off after a 2 minute delay (it kept disabling GPS if I quickly switched to another app during navigation, so I set a longer delay than most tutorials suggested)
http://www.csullender.com/blog/2014/01/26/automatic-high-accuracy-android-location/
ds728 said:
Yes, Tasker does this with the addition of Secure Settings. You can set it so that whenever you open apps X, Y, Z, it will automatically toggle GPS.
I have this set up for Maps, Yelp, etc. When I exit the app, GPS is turned off after a 2 minute delay (it kept disabling GPS if I quickly switched to another app during navigation, so I set a longer delay than most tutorials suggested)
http://www.csullender.com/blog/2014/01/26/automatic-high-accuracy-android-location/
Click to expand...
Click to collapse
Thanks, I decided to buy tasker right after I posted that. Was gonna wait till I knew for sure that it would work but decided I wanted to try it anyway. Took me a little bit to figure it out but finally did.
I'm trying to figure out now how to use the scenes to make a pop up menu that will be there during navigation to allow me to start playing music and different navigation tasks so I can stay on the navigation app. I'm having a lot of trouble with it.

Tasker or another automate app working?

Hi,
I tried to find root cause, but unfortunately without success. Is there anybody, who using Tasker or another application for automatization of your phone without any issues?
My issue is, Tasker is still "delayed" - but same rules I used before on LG G3 (Android 6.0) - but now on P9 (DualSIM) didn't work.
I have task for Calendar Entry, where if I have appointment in my work calendar, during this time Sound mode is deactivated (only Vibrate).
Some suggestion? I tried white lists, etc. or another app with same bad behavior.
Thank you!
Well, I tried to deactivate power management app from Huawei over ADB and looks good now finally! Its workaround, but tasker now working very well as expected.
adb shell pm hide com.huawei.powergenie
Did you have "Run in Foreground" selected in Tasker's preferences?
My Tasker works fine with that selected, although I also have trusted the app in permissions manager, allowed it to auto launch & activated it as a device administrator in advanced settings/security.
Yeah, I tried every tip over Tasker or phone (EMUI settings) and only deactivate power management helps me.
I had the same problem with IFTTT. It worked perfectly with my LG G3, but was hopeless on the P9. No amount of white-listing or settings would work.
I even had the app in memory, with Google maps running, on GPS, screen on, and it still wouldn't trigger a location based profile.
I've had to revert to manually arming and dis-arming my home security system. Annoying.
I translate from spanish so I'm sorry if your phone shows menus with other name.
You must go to adjust > advanced adjusts > memory and store and at bottom of page "space clean". On new screen push on upper-right wheel, and now on last option "white list of memory clean". Finally look for your app and activate it.
If you don't include app here, clean system will close it on background and timers won't work. It solved my problems.
aidrabmol said:
I translate from spanish so I'm sorry if your phone shows menus with other name.
You must go to adjust > advanced adjusts > memory and store and at bottom of page "space clean". On new screen push on upper-right wheel, and now on last option "white list of memory clean". Finally look for your app and activate it.
If you don't include app here, clean system will close it on background and timers won't work. It solved my problems.
Click to expand...
Click to collapse
"Settings>Advanced settings>Memory & storage>Storage cleaner" and "Memory cleanup whitelist".
Using Agama, I can get an app to start following a reboot. However, I would like to start the App at every Startup. Does Automate or any other app let you do that?
carroamer said:
Using Agama, I can get an app to start following a reboot. However, I would like to start the App at every Startup. Does Automate or any other app let you do that?
Click to expand...
Click to collapse
Why would you need Tasker for that simple.
Settings, type in the Search Autostart and add your app to the list of apps to be started on every reboot.
You may also need to disable Battery Optimization for your app (to make sure it would still work in background when the phone sleeps with dark screen)
That should generally work for all Androids. I don't have Huawei P9 now for years, I remember that EMUI might have had specific Settings organization but there was also Autostart (or Auto start)...
zgfg said:
Why would you need Tasker for that simple.
Settings, type in the Search Autostart and add your app to the list of apps to be started on every reboot.
You may also need to disable Battery Optimization for your app (to make sure it would still work in background when the phone sleeps with dark screen)
That should generally work for all Androids. I don't have Huawei P9 now for years, I remember that EMUI might have had specific Settings organization but there was also Autostart (or Auto start)...
Click to expand...
Click to collapse
When I search 'Autostart' it produces 'No results'
carroamer said:
When I search 'Autostart' it produces 'No results'
Click to expand...
Click to collapse
I had P9 for three years (if you don't believe, you can find tons of my posts here back from 2017-2018)
Now, you have that phone, not me (I got rid of my last Huawei almost three years ago) - I cannot show you and I cannot look into the EMUI settings because I don't have the EMUI phone anymore
But I KNOW that there was a way in EMUI how to control which apps will be automatically started on boot - I know because I played with all that back in those years, II did need for many apps like AdAway, Find My Device and similar that required to be auto-started to operate correctly
Take your time and google and you'll find. Sorry, I tried to help you but I will no more waste my time on that. Huaweis are past time for me
And take your time, use your imagination, If not Autostart, google for EMUI startup manager or something similar to find the answer for your question on the Net

RAM/Battery management actively killing processes?

Hi,
I'm experiencing problems where the phone is killing running processes, presumably to save battery/RAM. While this can be good (at least the battery part), it's actually killing running music streams while playing and killing google home when I'm casting to Chromecast (meaning the stream continues, but I lose control over volume/changing content).
Are you guys seeing this aswell? Any tips to make it suck less?
You can set these up in the power settings - go to Settings / Battery / App Launch and change the setting for the app you want to run in the background etc.... It changes from automatically being managed to whatever you set it. You can also use this area to stop apps auto starting when you only use them infrequently - to save even more power.
Mixy said:
Hi,
I'm experiencing problems where the phone is killing running processes, presumably to save battery/RAM. While this can be good (at least the battery part), it's actually killing running music streams while playing and killing google home when I'm casting to Chromecast (meaning the stream continues, but I lose control over volume/changing content).
Are you guys seeing this aswell? Any tips to make it suck less?
Click to expand...
Click to collapse
yes - also, it seems to be killing calendar widgets update process so it often shows yesterdays events - i've tried 3 different widgets and all do this.
adamelphick said:
You can set these up in the power settings - go to Settings / Battery / App Launch and change the setting for the app you want to run in the background etc.... It changes from automatically being managed to whatever you set it. You can also use this area to stop apps auto starting when you only use them infrequently - to save even more power.
Click to expand...
Click to collapse
I'll test this, thanks
deepmenace said:
yes - also, it seems to be killing calendar widgets update process so it often shows yesterdays events - i've tried 3 different widgets and all do this.
Click to expand...
Click to collapse
I didnt notice this with calendar widget, but my weather widget has to be manually updated which is a pain.
I have a similar issue, with Audi MMI Connect app.
I use this in the car, essentially it gives my car's infotainment access to Internet Radio and Amazon Music streaming vie the Audi app on my phone....used to work just fine on previous phone (Galaxy S8+) but the P20 Pro seems to not truly keep the app running in the background etc. Quite simply, if I turn the screen on and open the app, it connects up just fine (Bluetooth to car)......but, turning screen off and the app just goes to sleep shortly afterwards, breaking the connection to the car
I have noticed similar issues with various apps, i.e. there seems to be some really aggressive background power conservation/app closing.....rarely, for example, get Gumtree app notifications, but see the emails....load up the app, and sure enough there are messages etc., same for Facebook Messenger!
Having stopped Huaweis app launch settings from killing/stopping all related apps (launcher/widgets/music etc), it is still killing my apps and not updating widgets.
I use Feel the Wear to manage notifications on my Huawei Watch.
Under Battery -> App Launch, I've set it to "manage manually", and allowed all the options to run when it wants, but it doesn't transmit the notification while the screen is locked.
nobody have solve this problem ?
I have the same issue with many application also if I configure the battery saver with manually configuration.
Same problem. Trying to listen to music/documentaries via OGYoutube in the background and it frequently kills it. I have turned all battery management etc off as above.
Driving me up the wall!
You can also try going to "Apps & notifications" -> "Apps" -> "Settings" -> "Special access" -> "Ignore battery optimisation" select to show "All Apps" then select the app you want and make sure you set it to "Allow (May drain your battery more quickly"
Hi. As stated this has already been done with no effect.
Special Access does the trick!
manos.alexiou said:
You can also try going to "Apps & notifications" -> "Apps" -> "Settings" -> "Special access" -> "Ignore battery optimisation" select to show "All Apps" then select the app you want and make sure you set it to "Allow (May drain your battery more quickly"
Click to expand...
Click to collapse
Manos.Alexiou suggestion makes a real difference.
I had the Battery>App launch settings but it was partially working.
Switching the Special Access settings completed the job!
These are *different* settings.
gkahd said:
Manos.Alexiou suggestion makes a real difference.
I had the Battery>App launch settings but it was partially working.
Switching the Special Access settings completed the job!
These are *different* settings.
Click to expand...
Click to collapse
even with both, my p smart 2019 with EMUI 9 killes the apps on background including google maps spotify etc. it took very long to disable it all for them as there is no option for disabling all apps at once. I think I am going to sell the phone soon.
I have Honor Play with exactly same problem, memory management is absolutely disaster.
Disable powergenie from ADB debugging. Once I did this, my phone finally started to behave like a normal phone
mariushm said:
Disable powergenie from ADB debugging. Once I did this, my phone finally started to behave like a normal phone
Click to expand...
Click to collapse
Please what should I write in cmd to disable , I have very bad battery
MsuatafaKhatab said:
Please what should I write in cmd to disable , I have very bad battery
Click to expand...
Click to collapse
adb shell cmd uninstall -k --user 0 com.huawei.powergenie
MsuatafaKhatab said:
Please what should I write in cmd to disable , I have very bad battery
Click to expand...
Click to collapse
HTML:
adb shell pm uninstall --user 0 com.huawei.powergenie
I don't think this will fix your battery, however.

[GUIDE] Fix WiFi delayed notifications

After testing and testing, I finally fixed my delayed notifications problems and disconnection problem with apps like webwhatsapp and airdroid
I hope this can help others that have the same problem that I had. I hope this work for everyone.
Steps:
Disable Advanced Battery Optimization: Deep and Sleep
Disable Adaptive Battery
Disable optimize battery for the apps(maybe this isnt needed since I am getting notifications on time from apps that have this enabled)
Run this command via ADB or Android Emulador(this is disabledwhen you restart the phone so you need to run again):
dumpsys deviceidle disable
This is tricky, you may need to root your phone for it. You have to edit the build.prop this is located inside the system folder
Find this 2 lines
ro.vendor.qti.sys.fw.bservice_limit=5 - > I changed it to 120
ro.vendor.qti.sys.fw.bservice_age=5000 -> I changed to 10000
Lock your apps you want to receive notifications(maybe you don't need this)
But go to overview mode, click the 3 dots above the app and choose Lock
I locked my google play service too, just in case
Go to dial, and dial *#*#426#*#* this will open the GCM service(google play service) this is the guy that handles notifications.
After it is open, go to overview, 3 dots and lock it.
Now I have notifications in time, and my webwhatsapp or airdroid never lose the connection because the phone went to sleep mode.
For battery, I must say I did not noticed it got worst in FACT I think it got better, since now I can play(ragnarok eternal) for more time than I was playing before.
archraziel said:
After testing and testing, I finally fixed my delayed notifications problems and disconnection problem with apps like webwhatsapp and airdroid
Click to expand...
Click to collapse
I own Oneplus 5, and have similar problem but my notifications does not work at all, until I wake up the device, no matter what.
Have all sleep options OFF, it doesn't help. But I heavily use Goole Pay, so I don't wan't to loose SafetyNet cert.
How can I do this change permanent? I think OnePlus never confessed that they screwed this notifications things up. And I have 8GB of RAM, and they are killing each app...
twinsen.net said:
I own Oneplus 5, and have similar problem but my notifications does not work at all, until I wake up the device, no matter what.
Have all sleep options OFF, it doesn't help. But I heavily use Goole Pay, so I don't wan't to loose SafetyNet cert.
How can I do this change permanent? I think OnePlus never confessed that they screwed this notifications things up. And I have 8GB of RAM, and they are killing each app...
Click to expand...
Click to collapse
Did you try using this app: https://play.google.com/store/apps/details?id=io.github.mobodev.heartbeatfixerforgcm&hl=en
If even that does not work, I am sorry but you will have to root to fix it. I think you can have root and SafetyNet cert, have a look around, it might be possible.

Can't keep apps running in the background

I know this is the Mi 8 forum, but I feel that the issue I have on my Mi 9 will be common across both phones, and thought I would post here too.
I've noticed that at least two apps will mysteriously stop working in the background, causing problems:
First, most important, I use my Google Voice number, not my SIM number, so I need Google Voice to be running so that it intercepts my calls and uses the right phone number to make calls. If I open Google Voice, it will work for a few hours, maybe a day, and then GV stops working and calls start going out through my SIM number.
The other app that exhibits this behavior is Garmin Connect -- my watch gives me notifications, but then, for no reason, it will stop working. Opening Garmin Connect solves the problem.
I have ensured all permissions are set as liberally as possible, even the "allow autostart" option. Not sure what else to do. Any ideas would be great. I actually didn't have the issue with my Mi 8, but I wonder if anyone has any knowledge on how this could happen on the Mi 9.
Thanks!
sshanky said:
I know this is the Mi 8 forum, but I feel that the issue I have on my Mi 9 will be common across both phones, and thought I would post here too.
I've noticed that at least two apps will mysteriously stop working in the background, causing problems:
First, most important, I use my Google Voice number, not my SIM number, so I need Google Voice to be running so that it intercepts my calls and uses the right phone number to make calls. If I open Google Voice, it will work for a few hours, maybe a day, and then GV stops working and calls start going out through my SIM number.
The other app that exhibits this behavior is Garmin Connect -- my watch gives me notifications, but then, for no reason, it will stop working. Opening Garmin Connect solves the problem.
I have ensured all permissions are set as liberally as possible, even the "allow autostart" option. Not sure what else to do. Any ideas would be great. I actually didn't have the issue with my Mi 8, but I wonder if anyone has any knowledge on how this could happen on the Mi 9.
Thanks!
Click to expand...
Click to collapse
MIUI itself is a bit heavy on RAM, for one, and it's always been a bit aggressive on RAM management. Another thing, have you disabled MIUI's power saving functionality for those apps? I believe it only affects background push data, but I may be wrong. To configure said apps, go to Settings > Battery & performance > Choose apps and then select the apps in question and set to No Restrictions. There used to be an option to completely disable it, but that has since been removed. Another thing is to enable Developer options by tapping the MIUI version several times in the About phone section of the Settings app, then go to Additional settings > Developer options and disable MIUI optimizations. Read the prompt that pops up as I recall it mentioning something about affecting certain services.
Crossvxm said:
MIUI itself is a bit heavy on RAM, for one, and it's always been a bit aggressive on RAM management. Another thing, have you disabled MIUI's power saving functionality for those apps? I believe it only affects background push data, but I may be wrong. To configure said apps, go to Settings > Battery & performance > Choose apps and then select the apps in question and set to No Restrictions. There used to be an option to completely disable it, but that has since been removed. Another thing is to enable Developer options by tapping the MIUI version several times in the About phone section of the Settings app, then go to Additional settings > Developer options and disable MIUI optimizations. Read the prompt that pops up as I recall it mentioning something about affecting certain services.
Click to expand...
Click to collapse
I have set the apps in question to No Restrictions, a long time ago, but that didn't help. Today, I tried another option -- Use Adaptive Battery (Limit battery for apps that you don't use often). I turned that OFF, and it appears I've been getting alerts on my Garmin watch all day. However, I made a call and Google Voice wasn't active. I was getting excited that I'd found a cure until that happened. I'll try your suggestion in developer options and report back if it works. Thanks for that idea.
No luck -- Google Voice is still stopping, even after just a few minutes. I can't make calls on my google voice number unless I first launch Voice, then go to the phone app.
sshanky said:
No luck -- Google Voice is still stopping, even after just a few minutes. I can't make calls on my google voice number unless I first launch Voice, then go to the phone app.
Click to expand...
Click to collapse
Yeah MIUI 10 + Android 9.0 are worse than previous versions of MIUI, but Google apps have issues on all devices that do not use stock or near stock Android. Have you attempted to lock the app in the task manager? Open your app, for example Google Voice, then using the task manager (App switcher), long press that app and tap the lock button. Try using the phone as you normally would and see if it helps.
@Crossvxm that's a good idea. I'll try and let you know how it goes.
sshanky said:
@Crossvxm that's a good idea. I'll try and let you know how it goes.
Click to expand...
Click to collapse
All you have to to do is turn off Battery restrictions.
Also, I would suggest giving the launcher "Smart Launcher: a try. Not only is it awesome but it gives you quick access to all of the permissions, and battery optimizations. You can manage all of this from the Apps list.. Press and hold on any icon and click namage ( or the gear then manage) this is much easier then searching through the system settings for autostart, permissions, battery management etc. This is one app that is worth buying. The free version is great, but the paid version is incomparable, and I own all of the popular launchers. Smart Launcher Pro 5 is absolutely the best, and highly customizable.
My biggest issue with all AOSP roms is that the battery goes up to 105F when charging on every single AOSP rom that I have tried on the Mi8. While there is no immediate risk in the long term the battery should not get hotter than room temperature.
Back to Miui, turn off battery restrictions and you will have no issues, you also have the option of clicking the pin in recents to keep the app active.
Hi @tsongming, I've done everything possible to deactivate restrictions. I've done it the way you mentioned and other ways as well. I did try locking the app as mentioned by @Crossvxm and it might have done the trick -- will know more in a few days. I use Nova Launcher (paid version) and it has the same features you mentioned about Smart Launcher, where I can get to the settings instantly.
sshanky said:
Hi @tsongming, I've done everything possible to deactivate restrictions. I've done it the way you mentioned and other ways as well. I did try locking the app as mentioned by @Crossvxm and it might have done the trick -- will know more in a few days. I use Nova Launcher (paid version) and it has the same features you mentioned about Smart Launcher, where I can get to the settings instantly.
Click to expand...
Click to collapse
I run MIUI stock 10.3.3.0 with Sphinx Kernel and root. I also use Hangouts, Google voice, and Google message without issues. It's like tsongming mentioned. Turn off the adaptive battery and remove battery restrictions on each app. Also make sure they get all permissions.
Something to note , when I used Canting Kernel, I had lots of apps turn off in background including my Fossil sport watch connection. Going back to Sphinx Kernel took care of issue, probable too aggressive memory killer in Canting. Stock Kernel might have same issue idk.
./
When I had my Mi 8, I had no issues. This seems to be something new with the 9. I've disabled adaptive battery, I've provided all permissions to the app, I've removed all power restrictions. I'm not rooted, so I can't change kernel right now. It appears that locking the app might have helped a bit, but I wish I didn't have to do it.

Categories

Resources