0

Is it possible to boot up Android so flight mode is activated?

When I set airplane mode before rebooting or creating a nandroid backup the setting will stick.

Are there any files like init.d that are easy to modify where these kinds of boot options are stored?
Another alternative would be a modified Custom Recovery. But I haven't heard of one.

Use case:
Restore an old Nandroid Backup, but before the system fetches all the updates (messenger...) the user wants to restore certain app data so nothing gets lost.

That is only possible when in flight mode.

1

An indirect possibility would be using , which has the capability of performing actions "on device start" (amongst many others). So you could setup a profile that says: "on device start" → "set airplane mode on". Other apps like might have the same capability.

Note however that the action can of course only be executed as soon as the app (Tasker/ Llama) is started, so there might be a delay in which airplane mode is turned off (and a network connection available). If you need to safely rule that out: take out the SIM card, and delete the AP config for your WiFi. That way the device would still boot with airplane mode disabled – but had no chance to connect anywhere. Third option would be booting it while inside a Faraday cage (or a lead box) …

  • the idea isn't bad but not universal at all. you have to plan that plus have to live with the fact that EVERY reboot means flught mode. i'm looking for an 'emergancy' helper. something that works afterwards, you know? thank you. – sir_brickalot Jun 3 '15 at 18:52
  • 1
    Removing SIM works always. And in case of emergency, switch off the WiFi router. Alternatively: where do those data backups come from? In case of ADB: have you tried adb restore when in recovery mode? I haven't tried, so I can't tell if that would work. – Izzy Jun 3 '15 at 19:17
  • @Izzy: ADB only works in Android, the same way as fastboot only works in the bootloader. – user43185 Jun 4 '15 at 7:06
  • 1
    @JoshHolland Not true, depends on your recovery. ADB does work in most custom recoveries (you can at least adb shell to them, and – sometimes after manual mounting – adb push and adb pull). I'm just not sure about adb backup and adb restore, as that involves the package manager as well which might not be available from recovery for some reason (especially with some partions possibly not mounted). – Izzy Jun 4 '15 at 10:04
  • @Izzy Ahh, hadn't tried with custom recovery. – user43185 Jun 4 '15 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.