Page 1 of 1
Condition for "app in foreground" (oreo).
Posted: 11 Mar 2019 10:49
by wfrcrd
Ho to everyone,
I've looked around on the previous topics but I was not able to find the answer.
Sorry if you have already solve it.
On kitkat a condition "app running" with the app in foreground and the screen off was correctly recognize it,
but in oreo it seems not working anymore.
There's a way to check if an app is in foreground when the screen is off?
Thank you in advice!
EDIT:
Sorry, I've not considered the screenlock, wich was disabled when I was using kitkat.
I will work on it.
Re: Condition for "app in foreground" (oreo).
Posted: 11 Mar 2019 10:58
by anuraag
Known issue
http://automagic4android.com/forum/view ... f=5&t=6085
Condition App Process Running can only detect Automagic itself but not whether other apps are running (this was a security feature introduced with Android 5.1.1, the existing workaround does not work anymore). No workaround known.
http://automagic4android.com/forum/view ... f=5&t=6943
Condition Service Running can not detect services of other apps anymore. This is a new restriction from Google. No workaround known.
Re: Condition for "app in foreground" (oreo).
Posted: 11 Mar 2019 14:49
by wfrcrd
Thank you .
Re: Condition for "app in foreground" (oreo).
Posted: 11 Mar 2019 15:14
by Desmanto
Not working anymore. If you have root, you can use the alternative by parsing data from dumpsys :
viewtopic.php?f=5&t=7557
Re: Condition for "app in foreground" (oreo).
Posted: 12 Mar 2019 10:51
by wfrcrd
Desmanto wrote:Not working anymore. If you have root, you can use the alternative by parsing data from dumpsys :
viewtopic.php?f=5&t=7557
Thank you so much , it works!
Re: Condition for "app in foreground" (oreo).
Posted: 12 Mar 2019 11:30
by Wibbly
For what it's worth the condition App Task Running is working for me on a Pixel 2 running Pie
Re: Condition for "app in foreground" (oreo).
Posted: 12 Mar 2019 15:53
by Desmanto
App Task Running still works, but condition service running doesn't work anymore since Oreo. Some app use background service and can't be detected by App Task Running. I used to use the dumpsys to check if certain service is still running or not. But now, the app has been working properly, so I don't use it anymore.