0

I want to run a script after booting from a Android TV box (Xiaomi Mi Box)
I tried a lot but nothing works. Is there any option to 'activate' an init.d folder?

1
  • Just a side note, some app services (e.g., Roku's) offer their own automation tools as part of their SDK's. Not systemic, but might be useful in specific scenarios.
    – Arctiic
    Aug 5, 2021 at 23:56

1 Answer 1

0

You could go with to accomplish this.

There are several candidates for this e.g Macrodroid (free up to 5 macros) , Tasker (free 7 day trial) etc (but I am an intermediate user of the the latter hence prefer it)

Profile (or Trigger)

Create a Profile which allows triggering of the Task after boot:

  • Go to Profiles Tab and click the "+"
  • Event ➡ System ➡ Device Boot
  • Tap back to exit from this window

Task

You will notice as soon exit, you will be prompted to link this to a Task

  • Scroll all the way up the Task list select "New Task + "
  • You can name this Task anything (optional).
  • Click "+" to add new Action
  • Code ➡ Run Shell [ Command (enter script command) , Tick "Use Root" if it needs root]
  • Tap back to exit from this task

Explanation: Soon after boot, your predefined script will be executed by Tasker

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .