Using Tasker and AutoInput plugin, here is the procedure:
- First, create a profile that suits your needs (i.e. when to trigger airplane mode e.g at a specific time, etc)
Task
- Create a new task "New Task + "
- You can name this Task Airplane_mode or anything.
- Click "+" to add new Action
A1: Settings ➡ Airplane Mode Settings
We need to add a task Wait action for just about 1 or 2 seconds (to allow the screen to load in time).
A2: Task ➡ Wait [Seconds:2]
A3: Plugin ➡ Auto input ➡ Action [ Go to the "Airplane Mode Settings" screen in your Android settings.
- Swipe down on the notification bar and touch the "Add" button in the AutoInput notification.
- Touch the "Airplane Mode" setting
- Touch "Accept" in the notification and go back to Tasker. There select the "Airplane Mode" text and accept (tap on tick) these settings.
A4: (Going back to the original screen) Add an "AutoInput Global Actions" Tasker action. Plugin ➡ AutoInput ➡ Global action [Select the "Back" option]. Accept the setting (tap on the tick)

- Tap back to exit from this task
- Save this task and exit
NB: This requires the screen to be unlocked.
Note: AutoInput has a built-in option to unlock the screen if it is disabled in Tasker. Simply add this action to the top of the task:
A1: Plugin ➡ AutoInput ➡ Unlock screen (note: some screen lock options are still not supported e.g fingerprint, but it is worth a try)
Acknowledgments