• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Can anyone please tell me why this doesn't work?

NSDroid

Newbie
4558f26550bf9cdcc26ef8c3a88177d9.jpg


The process I'm trying to check is com.sec.android.automotive.drivelink.

I want to check if process above is running and if not turn off btooth and GPS. From what I can tell that proc stops after I close car mode (car home ultra app closes it)
Not sure why this doesn't work. Any help is much appreciated.

Thanks!
 
Step 3 looks wrong to me -treating a process name as a Boolean variable...is that usage described somewhere?

Is this process an app it service? Maybe try using a separate profile to sense app running and dry %carmodekill to 1 as an entrance task and to 0 as an exit task.

As I recall maybe that only works when app is on foreground and there is a trick to checking when app in background. Don't remember that truck. If app/service context didn't work the way you like, maybe Google: tasker check if process is running in background
....to see if it gives anything helpful
 
Back
Top Bottom