I have seen many people asking if there is an easy way to turn on Flight Mode at a specific instance be it time, location based using Tasker on a none rooted Android Nougat phone. The easiest way I found was to use just two Actions that can be added to a specific Task. As well as Tasker you will need to install the AutoInput Plugin from Google Play. After installing both Tasker and AutoInput you need to open Tasker and make a new Profile with your own specific triggers. In this example I will use a time range. This can be used as a Night Time profile so that Flight Mode kicks in at a given time. 1. Open Tasker and on the Profiles page press the Plus “+” key that is bottom right.
2. In this example it’s the time trigger I’m using so in the box that pops up I select “Time”
3. Next select whatever times you want your phone to be in Flight Mode. In this example I opted for a time between 2:30 and 8:00.
4. After hitting the back button on your phone a new window should pop up giving you the option to make a new Task. Click it and in the small box that appears give the Task a name. In this example I called it “NightMode.
5. On the Task Edit screen that opens click the Plus “+” button in the bottom right.
6. In the pop up select “Apps”.
7. On the Apps Selection page make sure “All” is selected in the bottom right and then scroll down until you find “Flight Mode” and click it. Then press the back key to return to the Task Edit screen.
8. You will see the first task has been add to the list. Next click the Plus “+” button again in the bottom right.
9. Select Plugin.
10. Select “AutoInput” followed by “Action”
11. Click the Configuration “Pen” button.
12. Click “Action” and select “Click” and hit the back key.
13. Select “Field Type” and on the next screen select “Text” then hit the back key.
14. Select “Field Text” and type “Off” then click “Ok
15. Click the tick “✅” at the top of the screen.
16. The next screen will look like this.
17. Hit the back key on your phone to take you here.
Now to test it works, press the “Play Button” bottom right.
This screen should pop up.
Tasker should then automatically slide Flight Mode to on.
I also added another line that made tasker return automatically to the Home Screen at the end.
Now in the morning I added an exit task that is exactly like the one above but at Step 14 above you type “On” instead.
Hope this helps a few people.