[Android General] Xelias:
The following guide explains how to setup your Android Device to disable it's cell radio/enable Airplane Mode when connected to WiFi, in order to save battery.

It also ensures that all calls and texts will be handled over WiFi, so the device isn't limited in any way.

To do this we will setup the device to route calls and texts to a Google Voice number/The Google Voice app, and from there to Google Hangouts.

Prerequisites: Rooted device.

Apps required: Google Voice, Google Hangouts, Hangouts Dialer, Tasker (Paid), Secure Settings (Basic).

This guide assumes: You have a general understanding of Android, are aware of the risks associated with altering settings, and are using KitKat or Lollipop (you're free to try this on an older Android build).

Disclaimer: It is the recommendation of the writer of this guide that you backup your phone prior to following it, this is simply good practice. I am not responsible if anything happens to your device.

It is recommended you follow these in the order they are listed to ensure everything goes well.

-Secure Settings- --App Setup--

Select the "System+" tab from within the app, tap where it says "Disabled", then follow the prompts to reboot your device.

This is all you will need to do with Secure Settings for now.

-----

-Google Voice --Initial Setup-- --Sprint--

Sprint and Google Voice are partnered, this makes the whole process a lot easier... Since you'll be able to use the same phone number without any additional setup.

Upon first launching the Google Voice app, you will be prompted to complete Google Voice integration with Sprint by clicking "Next". Just follow the onscreen instuctions from here, it is pretty straight forward.

-Google Voice- --Initial Setup-- --Other Carriers--

I recommend going to https://www.google.com/voice/ and setting up a Google Voice number from there.

You should still be able to use the same number you do now, but it will require you to port the number to Google Voice. If you don't want to port, see my recommended method under this.

(Recommended) You also have the option of getting a completely new Google Voice number if you so choose. However, you will need to have a carrier that supports call forwarding through them. This is so you can forward your cell number to your Google Voice number.

AT&T, Verizon, and T-Mobile all support call forwarding in one way or another, I can't speak for every carrier though. You'll need to check with them on how to set this up, or if they allow it at all. (Three mentioned carriers are linked)

You WILL BE REQUIRED to verify a current active phone number, no matter what option you choose.

After you've gotten a number attached to your Google Account (and forwarded to, if need be), open the Google Voice app and follow the onscreen instructions.

-----

-Google Voice- --App Setup--

Head into the settings of the Google Voice app using the menu in the lower right corner.

Go to "Sync and notifications".

The settings should be as follows:

Background data: Enabled

Recieve text messages: Via the Google Voice App

Text notifications, Voicemail notifcations: Checked

Vibrate, Light, Ringtone: Your preference.

-----

-Google Hangouts- --App Setup--

Access the menu in the upper left, then proceed to settings.

Choose your Google Account.

Under "Google Voice - (Your Google Voice Number)" the settings should be as folows:

Incoming phone calls, Messages: Checked

Under "Improve Hangouts" the following settings are highly recommended:

Improve Hangouts: Unchecked.

Head back to the main settings menu.

This time, choose SMS.

Under "General" the settings should be as follows:

SMS enabled: select this and make sure Hangouts is your default SMS app.

Account to show SMS in: Your Google Account

Send SMS from: I use Smart Reply, but Google Voice number is likely the best option.

All other Google Hangouts settings are your preference.

-----

-Hangouts Dialer- --App Setup--

This should all be automatic, just be sure to have the app.

Also, be sure if you place any outgoing calls you use this when Airplane Mode is enabled.

-----

-Tasker- --App Setup*--

On the profiles tab, select the + in the lower right corner, then choose State.

From here select "Net", then "Wifi Connected".

Leave settings as they are**.

Tap in the upper left corner to go back.

Select "New Task". Name it whatever you like. For the purpose of this guide, I named it "Entry".

Select the + at the bottom middle of the screen.

Select Plugin, then Secure Settings.

Select the pencil icon next to "Configuration" - Secure Settings will open.

Select "System+ Actions" then "Airplane Mode Radios"

Tap where it says "None", then check all options EXCEPT WiFi.

Select the floppy icon in the upper right to save - Tasker will open.

Tap in the upper left corner to go back.

Select the + at the bottom middle of the screen.

Select Plugin, then Secure Settings.

Select the pencil icon next to "Configuration" - Secure Settings will open.

Select "Root Actions" then "Airplane Mode".

Make sure "On" is selected.

Select the floppy icon in the upper right to save - Tasker will open.

Tap in the upper left corner to go back.

Tap in the upper left corner (again) to go back to the main Tasker screen.

Tap the new profile you just created (should be named Wifi Connected *,*,*)

Press and hold "Entry" (or the name you used), then select "Add Exit Task", then "New Task". Name it whatever you like. For the purpose of this guide, I named it "Exit".

Select the + at the bottom middle of the screen.

Select Plugin, then Secure Settings.

Select the pencil icon next to "Configuration" - Secure Settings will open.

Select "Root Actions" then "Airplane Mode".

Make sure "Off" is selected.

Select the floppy icon in the upper right to save - Tasker will open.

Make sure the profile you just created is set to On.

Close Tasker.

If you did this correctly everytime you enable WiFi, or connect to a network. Airplane Mode will be enabled, with the WiFi radio remaining on. If you disable WiFi, or disconnect from a network. Airplane Mode will turn off.

-----

You should go good to go at this point :).

-----

Notes

- If you have any questions please ask and I'll answer them to the best of my ability, I don't claim to be an expert at Android, and as such, don't expect my guide to be extremely easy to follow. If it ends up being that way, great. If you have an suggestions to improve the guide please share.

- To be clear, with the correct setup all calls and texts will go to Hangouts, via Google Voice. No matter if you're on wifi or not.

- To disable the Airplane Mode functionality simply turn the profile off in Tasker.

Asterik Points

*I was going to export my profile from Tasker to make this easier, but for some reason it won't work. If anyone wants to do that after they follow these steps, please send me the xml and I'll add it to the guide.

** If you'd like to set this up to only work on certain WiFi networks, edit the default settings to match the network of your choice.