4

This question already has an answer here:

I occasionally use my phone to connect to the work network for quick diagnostic purposes. I do not like being connected to it for regular use, as I don't like my phone activity to be traceable by my employer.

Is it possible to remember a WiFi network, but only connect when manually triggered?

marked as duplicate by Firelord, ale, bmdixon, onik Nov 18 '15 at 5:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 4
    I would say, the simplest solution is to turn off your wifi when you don't use it as it saves battery and you wont be connected to the wifi, thus simplest solution. Same question has been asked before: android.stackexchange.com/questions/35332/… – Matt07211 Nov 4 '15 at 22:27
2

This is not possible, but as Matt said, the best thing to do is just to turn off your Wi-Fi. There are apps that you can download that will be able to automatically turn off Wi-Fi at your workplace. However, I personally keep my Wi-Fi off at all times, regardless of whether or not I am home. Wi-Fi, despite what most battery saving apps will tell you, consumes more power than cellular when you are not using it heavily. For streaming and updating apps, I connect to Wi-Fi, but that is about it.

2

I don't like my phone activity to be traceable by my employer.

Perhaps, you should consider VPN.

Anyhow, there are measures you can take here, all of them would require the help of apps, such as Tasker (paid; 7 day free trial) or MacroDroid (free/paid).

(Note that AutomateIt (free/Pro) may also be able to achieve the following examples.)

For example:

  • If your quick diagnosis always runs or requires an active screen (i.e. no screen off) then you can make Tasker or MacroDroid wait for X minutes and then disconnect or disable the Wi-Fi.

  • If your quick diagnosis always requires or ends up after X minutes, use Tasker or MacroDroid to configure your Wi-Fi to disconnect or get disabled.

  • Because Android is all about apps, your quick diagnosis probably involves the usage of an app. In that case, use Tasker or MacroDroid to enable the Wi-Fi if only the diagnostic app gets active on the screen and disconnect/disable the Wi-Fi either after X minutes and/or once the app closes.

  • If the device is rooted, you can use AFWall+ in combination with Tasker to switch to a firewall profile which would effectively bar all the app (excluding the diagnostic apps) from using internet when connected to a particular Wi-Fi. Optionally, create a persistent notification. In this fashion, you would always know that you're connected to workplace Wi-Fi.

  • Any scenario that suits you would probably fit under the scope of Tasker or MacroDroid.

Relevant triggers and actions

Tasker

Triggers:

  • Applications → App
  • State → Net → Wifi Connected
  • State → Display → Display State

Actions:

  • Net → WiFi → On/Off
  • Net → WiFi Net → Disconnect
  • Task → Wait
  • Plugin → AFWall+
  • Alert → Notify
  • Alert → Notify Cancel

MacroDroid

Triggers:

  • Wifi State Change → Connect to Network
  • Screen On/Off → Screen Off
  • Application Launched/Closed

Actions:

  • Wifi Configure
  • Display Notification (not persistent)
  • Wait Before Next Action

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