[Android Head-Units] rigattoni:
I´m not quite sure what you need...

The provided "Start.APK" and "Tasker" need to be set in the Autostart section of FCC, that´s all.

This enables Tasker to react on Events from Android, like activating Profiles in Tasker to start any task you want to get done after booting the unit.

After startup/wakeup, the "Start-App" sets the needed "AccessibilityService" rights for FCC and Tasker.

After the set delay in FCC (I prefer 2 seconds before and 2 seconds between) Tasker opens and get´s the Display state.

Example:

Profile: Display State On

A1: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A2: Run Shell [ Command:cat /proc/$(pidof -s com.zoulou.dab)/oom_adj Timeout (Seconds):1 Use Root:eek:n Store Output In:%DABZ Store Errors In:%DAB_FALSE Store Result In: Continue Task After Error:eek:n ]
A3: If [ %DABZ !~ 3 ]
A4: Launch App [ App:DAB-Z Data: Exclude From Recent Apps:eek:ff Always Start New Copy:eek:ff Continue Task After Error:eek:n ]
A5: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A6: Else
A7: End If
A8: Go Home [ Page:1 ]
A9: Wait [ MS:100 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A10: Go Home [ Page:1 ]
A11: Run Shell [ Command:cat /proc/$(pidof -s de.blitzer.plus)/oom_adj Timeout (Seconds):1 Use Root:eek:n Store Output In:%BLITZER Store Errors In:%BLITZER_FALSE Store Result In: Continue Task After Error:eek:n ]
A12: If [ %BLITZER !~ 3 ]
A13: Launch App [ App:Blitzer.de PLUS Data: Exclude From Recent Apps:eek:ff Always Start New Copy:eek:ff Continue Task After Error:eek:n ]
A14: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A15: Else
A16: End If
A17: Run Shell [ Command:cat /proc/$(pidof -s com.tomtom.gplay.navapp.nds)/oom_adj Timeout (Seconds):1 Use Root:eek:n Store Output In:%NAVIGATION Store Errors In:%NAV_FALSE Store Result In: Continue Task After Error:eek:n ]
A18: If [ %NAVIGATION !~ 3 ]
A19: Launch App [ App:TomTom Data: Exclude From Recent Apps:eek:ff Always Start New Copy:eek:ff ]
A20: Wait [ MS:0 Seconds:9 Minutes:0 Hours:0 Days:0 ]
A21: Else
A22: End If
A23: Run Shell [ Command:cat /proc/$(pidof -s com.skype.raider)/oom_adj Timeout (Seconds):1 Use Root:eek:n Store Output In:%SKYPE Store Errors In:%SKYPE_FALSE Store Result In: Continue Task After Error:eek:n ]
A24: If [ %SKYPE !~ 15 & %SKYPE !~ 11 ]
A25: Launch App [ App:Skype Data: Exclude From Recent Apps:eek:ff Always Start New Copy:eek:ff ]
A26: Wait [ MS:0 Seconds:10 Minutes:0 Hours:0 Days:0 ]
A27: Notify [ Title:Skype Aktiv Text: Icon:cust_star Number:0 Permanent:eek:ff Priority:3 ]
A28: Else
A29: End If
A30: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A31: Run Shell [ Command:find /storage/ext_sd/CarRecorder/ -type f -mtime +3 -delete Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: Continue Task After Error:eek:n ]
A32: Go Home [ Page:1 ]
A33: Flash [ Text:Cleaned Up! Long:eek:ff ]
A34: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A35: Go Home [ Page:1 ]
A36: Go Home [ Page:1 ]

This needs some words to explain what happens in there:

Goal is to start my needed apps always complete. Each app needs more or less time to start up complete so it makes no sense for me to use the FCC Autostart section for it... ;)

To not reopen a running app in background (restart FCC, or any other circumstances), I check it with the shell command:

cat /proc/$(pidof -s [process-name])/oom_adj and store the result in a variable.

The "if loop" reads the var and start the app if the content is different from the one you read out, else skips the app.

This part is done for each app aou want to have restartet...

At the end there are some service-tasks, as cleaning up the CarRecorder folder, just keeping files younger than 3 days.

The last 2 lines:

A35: Go Home [ Page:1 ]

A36: Go Home [ Page:1 ]

are just to move all apps to background and bring FCC main page back on top. (and yes, double call of "Go Home" switches FCC to my home page. If the implementation of the Tasker standarts would be implemented in FCC, it would be a lot easier to choose the FCC-Page you want to show. :p )