Question Waze Problem - Samsung Galaxy S22 Ultra

I am facing waze app will auto shutdown after few minutes when i minimized it to background or screen off although i have put it in unrestricted battery usage. I want to listen to voice guidance while driving. Everytime i have to reopen it again.
How to make waze to run in background without auto kill off?

vl319 said:
I am facing waze app will auto shutdown after few minutes when i minimized it to background or screen off although i have put it in unrestricted battery usage. I want to listen to voice guidance while driving. Everytime i have to reopen it again.
How to make waze to run in background without auto kill off?
Click to expand...
Click to collapse
Run this command in ADB
adb shell dumpsys deviceidle whitelist +com.waze

Related

How can I get the GPS to run even in background?

I purchased a Mileage tracker App that does everything I need, but it likes to stop and start the GPS randomly causing delays in the Time stamps it creates. If I run Latitude (default app) along with the program GPS is always on and it functions correctly. If I am in Latitude and click the Home button, it exits and I lose GPS. Is there an App that will run in the background that uses GPS and will leave it on? ChronoLog is the Tracking Program i use and like.
Any suggestions?
tucker1003 said:
I purchased a Mileage tracker App that does everything I need, but it likes to stop and start the GPS randomly causing delays in the Time stamps it creates. If I run Latitude (default app) along with the program GPS is always on and it functions correctly. If I am in Latitude and click the Home button, it exits and I lose GPS. Is there an App that will run in the background that uses GPS and will leave it on? ChronoLog is the Tracking Program i use and like.
Any suggestions?
Click to expand...
Click to collapse
I dont know if this helps but, Google Nav doesn't cut off if you hit the home screen. The Icon is always on unless you tell it to exit.

[Q] Tasker and GPS on the charge

Hi --
I am attempting to use Tasker to turn GPS on/off when I start/close the Maps application on the Charge, but Tasker won't do it. It works when I test the tasks in the Tasker app, but not when I actually start/close Google maps. The profile is running when I open maps (the notification window confirms this), but again, Tasker will not toggle GPS on/off. Interestingly, the legal window that pops up and must be agreed to DOES pop up when I start maps, which tells me Tasker is attempting to turn on GPS, but it disappears from the screen before I can click on "agree." Anyone else run into this problem? On a side note, since I brought them up, is there any way to get around the legal agreements that need to be agreed to every time GPS services are turned on/off? God, those are annoying.
Thanks in advance!

Any way to monitor apps that is no longer running in the background then restart it? (phone rooted)

I have used systemizer for the app and it will still stop running from time to time (as evident in output of the command 'ps -ef').
Maybe via cron by following something like this https://stackoverflow.com/questions/16747880/how-to-use-crontab-in-android ?
In my case the package that I want to keep alive all the time is com.surfshark.vpnclient.android . When it stops running in the background, it won't detect network status and enable VPN whenever necessary.
But even after setting autostart to on, exclude this app from battery optimization, and systemizing the app, it still fails to restart itself sometimes after it gets killed.
Any help appreciated !

Pixel 4a Android 11 - stop killing/pausing background app ?

Hi all,
I have a Pixel 4a with stock Android 11 (up to date, no root, with Nova Launcher).
I have a rowing machine that comes with an app (ErgData, by concept2) that can connect to the machine via bluetooth or via usb cable: while rowing the app logs the workout data (like pace, heart rate etc).
I wanted to do the following: watch a video while the ErgData app logs my workout, so I started ErgData, connected it to the rower, configured the workout and, once ready to start rowing, I switch to the video player and start rowing.
It worked fine a bunch of times, but one day it stopped working: at the end of the workout (like after 20-30min), when I switch back to ErgData the app is in its default screen (like the one you get at startup) and it has logged nothing. When connecting via bluetooth, the app has also lost the connection to the rower. When connecting via usb the connection is there but the app has still logged nothing.
Things I've done:
disable battery optimization for ErgData, Bluetooth and Bluetooth MIDI
disable adaptive battery
use a different media player (android built-in, VLC)
uninstall / reinstall ErgData
clear Bluetooth storage/cache
disabled "Suspend Execution for Cached App" (developer mode)
No joy.
I tried a different app (ErgZone) and it has the same behavior.
I tried staying with ErgZone foreground for 3min before switching to the video player and in that case, ErgZone logged something, but not the totality of the workout.
So it really seems that somehow, when I switch to the video player, ErgData / ErgZone gets "paused" (killed ? cached ?).
Anything I can try ? Anything the app developers should do to prevent this ?
Thanks !
Sorry for the late response, I normally dont browse this forum. I am rooted and always have been, so all the solution I have used in the past are dependent on root. However, one idea to try is checking if the background app is killed while the phone is plugged into a charger? I know that being plugged in keeps the phone awake even when the screen is off.
HornetMaX said:
So it really seems that somehow, when I switch to the video player, ErgData / ErgZone gets "paused" (killed ? cached ?).
Anything I can try ? Anything the app developers should do to prevent this ?
Click to expand...
Click to collapse
Does the ErgData/Zone app start a persistent notification when recording? That's the way to keep a service running in the background. I had a phone with a tendency to kill anything not in the foreground, but it never killed active apps (including background with persistent notification).
If the app dies despite this, there may be a hint in the logcat. You have to enable developer mode to fetch that.
a1291762 said:
Does the ErgData/Zone app start a persistent notification when recording? That's the way to keep a service running in the background. I had a phone with a tendency to kill anything not in the foreground, but it never killed active apps (including background with persistent notification).
If the app dies despite this, there may be a hint in the logcat. You have to enable developer mode to fetch that.
Click to expand...
Click to collapse
No, ErgData/ErgZone do not have a persistent notification. Guess that's a potential solution then.
At the moment my workaround is to use the "pop-up" feature of VLC so that I have the video on top of the other app (ErgData/ErgZone), so that the other app stays foreground. That works, but it's not a real solution.
Hmm they gave me a beta version of the app with the persistent notification thingy and it works perfectly.

How can I run main activity app at background after boot with screen locked?

"am start -n" doesn't work, my script is in "/data/ADB/service.d" with 755 permission.
System apps show notifications on the locked screen when booting, ie they run automatically. How do I do this with a user app?
I want to run a privacy app, "InviZible" when the system boots, because autostart apps have a long delay to start. If there is a way to reduce this delay, any help will do. This will prevent me from using Wi-Fi without DNSCrypt enabled.

Categories

Resources