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.
Condition for "app in foreground" (oreo).
Moderator: Martin
Re: Condition for "app in foreground" (oreo).
Known issue http://automagic4android.com/forum/view ... f=5&t=6085
http://automagic4android.com/forum/view ... f=5&t=6943Condition 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.
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).
Thank you .
Re: Condition for "app in foreground" (oreo).
Not working anymore. If you have root, you can use the alternative by parsing data from dumpsys : viewtopic.php?f=5&t=7557
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Condition for "app in foreground" (oreo).
Thank you so much , it works!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
Re: Condition for "app in foreground" (oreo).
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).
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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.