[Nexus 7 General] braddaniels:
About a year ago I mounted my Nexus 7 2012 Wifi in my car, and came up with some Tasker scripts to have my phone automatically start wifi tethering as soon as I turn the key. I’d like to share with you all how I did it, and answer any questions anybody might have.

I made a video to provide a overview of my setup that can be found here. I can't post links yet so you'll have to copy and paste!

youtu.be (slash) jkDr9mLY568

Hardware

Nexus 7 Wifi 2012 rooted running stock KitKat with Xposed Framework installed.

Nexus 5 rooted running stock KitKat with Xposed. I’ve also tested this with a GNex and G2 and it worked great with both of those.

Previously I ran CM on both my phone and tablet and it worked fine.

Software

Connectivity:

Tasker

Secure Settings (I use Pro, but I don’t think it’s necessary, correct me if I’m wrong)

Tablet Talk

Tasker/Locale Plugin for Tablet Talk

SSID Selector (Tasker plugin)

All these except for SSID Selector need to be installed on both the phone and tablet.​

Apps:

AutoVoice - allows you to create your own voice commands and have Tasker parse them.

GMD Gesture Control Create custom multitouch gestures.

Waze

Spotify

Waze and Spotify are the only apps I have in focus 99% of the time. I have Torque installed and it works great, but I rarely use it.
​

Tasker

Tablet

Profile: Wifi Tether Control

State: Power any

Entry task: Powered On

Wifi Off: This disconnects me from my home network in case I’m using my home wifi

Brightness up if Daytime profile active, turn down otherwise

Tablet Talk Action: Start BT Mode - start Tablet Talk connection to phone, this tells the phone to turn on the hotspot.

Display timeout: 20 min

Wait 4 secs - this gives the phone time to start the hotspot. I’ve found everything works better if there is a pause here.

SSID Selector - only connect to my phones wifi network

Wifi on

Secure Settings: GPS on

Auto-Sync on

Exit task: Unpowered

Stop task if the powered on task is running. This is to prevent a problem I was having where if I turned the car key too slow, it would start this task while the entry task was still running, leaving the car running but the tablet and hotspot off.

Get location and use Pushbullet to send location to phone

Tablet Talk: Disable - this triggers the exit task on the phone that turns the hotspot off

Wifi, GPS, autosync off.

Send intent to close Waze - Waze doesn’t seem to respond well to being killed, so I use an intent to turn it off. If I don’t do this it is a MAJOR battery drain.

Media Utilities Action: Pause - the built in media actions don’t seem to pause Spotify reliably, so I use this plugin

Lock screen and set lockscreen PIN with Secure Settings

Phone

Profile: Car Tethering

Entry task: Start Wifi Tethering

Ringer on

Wifi Tether on

Notify Sound

Exit Task: Stop Wifi Tethering

Wifi Tether Off

Notify Cancel: Tethering on notification

Notify Sound: Tethering off

Wait 5 secs

Turn wifi back on

Notify Cancel

I've attached all the tasks and profiles I use on my tablet. I'll add some explanations for the rest of them later on if anyone is interested. They include things like:

Gathering sunset/sunrise times to automatically adjusting brightness

Switching to Waze if there is no touches detected for x number of seconds

AutoVoice tasks and profiles for searching Spotify, Waze, and Google Maps