[Q] Tasker: Best Method for Automatic HotSpot Activation - General Questions and Answers

Hey Guys -
I've played with Tasker for a couple of months now and it's the #1 reason I like Android! I'm trying to set up a specific task and have many options as to how to go about it. I've tried a few things myself as you'll see below, but it doesn't always work well. Therefore, I wanted to post to see what the community suggested...
Goal
When at home or work, WiFi is On and Bluetooth is off
When not at home or work, HotSpot is On (Therefore also turning off WiFi) and Bluetooth is on
My Questions
1. Do you suggest I use Tasker's Location, AutoLocation's GeoFence, AutoLocation's Location, , AutoLocation's "Fuse", Near WiFi, a combination of these, or something else?
2. What's the best suggestion you have as to set this up to run as smoothly as possible? I'm concerned about battery, but would give it up if it meant it worked better.
Methods
I've come across a few different ways to do this. Below is what I've considered / tried so far:
- Location Based (Native Tasker)
- Location Based (AutoRemote)
This has GeoFencing and Location profiles. According to the app's FAQ, Geofencing is low power and uses cell + WiFi signals and Location uses GPS. It also says the can work together using "Fuse Location" but I cannot find that option
- WiFi Near (Native Tasker)
Note: I do keep the Location setting for Tasker set to "High Accuracy" in Android's settings
My Current Setup
Currently, I use Tasker's native Location but have found it doesn't work that well. Below's how I have it set up:
- Task: "Enable HotSpot"
- Enables Hotspot / Wait 3 Sec / Disable Bluetooth
- Task: "Disable Hotspot"
- Enables WiFi (Disabling Hotspot) / Enable Bluetooth
- Profile: Home - (Location)
- Task: "Disable Hotspot"
- Exit Task: "Enable HotSpot"
- Profile Work (Location)
- Task: "Disable Hotspot"
- Exit Task: "Enable HotSpot"
My Ideal Setup
I'd like to have it use one of the Locations OR well as WiFi near to trigger. Since you can't directly set an "OR" command in tasker, I am trying a workaround which does the following:
- Task: "Dummy"
- Wait 1ms
- Profile Home (Location)
- State: Location
- Task: Dummy
- Profile Work (Location)
- State: Location
- Task: Dummy
- Profile Near WiFi
- State: Near WiFI HOMESSID/WORKSSID
- Task: Dummy
- Task: "Disable HotSpot"
- Enables WiFi (Disabling Hotspot) / Enable Bluetooth
- Task: "Enable Hotspot"
- Wait 10 Seconds
- If %PACTIVE doesn't match *,Home (Location),*|*,Work (Location,*
- Enables HotSpot (Disables WiFi) / Disable Bluetooth
- End if
- Profile: Auto Hotspot
- State: Variable -> Variable Value: %PACTIVE Matches *,Home (Location),*|*,Work (Location,*
- Task: "Disable Hotspot"
- Exit Task: "Enable Hotspot"
All of the above basically because Tasker doesn't have an "OR" command.
So... what do you think? Have any suggestions? Thanks!

Related

[Q] WiFi on when charging

I have managed to enable the very nifty feature to activate WiFi when the charger is connected on my HTC Hero (running Android 2.2) -- the problem is I can not remember where I enabled it or how I disable it again.
Any clues?
Thanks in advance,
Chris
Is it stock or custom rom your running?
Settings > Wireless & networks > Wi-Fi settings > press menu > Advanced > Wi-Fi sleep policy
I am not talking about the WiFi sleep policy. Let me elaborate;
1. WiFi is turned off.
2. I connect the charger to the phone.
3. WiFi automatically enables.
It is a custom rom, but I believe this setting was changed with another application, possibly a task killer. I could be wrong tho; I remember it being in a menu where you could change various power management and performance settings. I just can't find it again.

[Q] WiFi Tether Issues! PLEASE HELP!

I'm using "WiFi Tether TrevE Mod" but when I start the tethering it always starts with errors. When I go to "Show Log" it says that everything worked correctly except "Configuring AP with Maxclient..." Here's some screenshots http://imgur.com/whjT05m,B9U0qva#0 .How do I fix this so that I can wifi tether successfully?
My settings in TrevE Mod are as follows:
Device-Profile (Samsung Galaxy S3)
Setup-Method (Netd-Ndc (master))
Send Netd Max Client Cmd (Checked)
Enable WiFi-Encryption (Checked)
SSID Changed
Channel 1 Wireless Frequency
WiFi-driver reload (Checked)
MSS clamping (Checked)
Routing Fix (Checked)
Vibrate on connect (Checked)
Disable Wake-Lock (Checked)

[App][4.0+] Auto Wifi - automates the wifi on your device

Hey, everyone. Here's a small app I made for myself and figured I might as well post it for anyone else who may want it. It's fully free, and does not track any of your information (which some similar apps out there required permissions I didn't view as necessary for this kind of app, and therefor a little fishy). I made the app to be a convenience thing and battery saver (I only want my wifi adapter to be on at home, and not turn back on again at work), so I'm open to any feature requests people may have to make it more convenient for you.
I call it Auto Wifi, here's a Play store link: https://play.google.com/store/apps/details?id=com.psiincgames.autowifi
Going on the description I wrote for the Play Store:
Auto Wifi controls the wifi on your phone for you, turning it on and off as needed. This is both convenient and saves you battery life. Want to have your wifi turn on at home, but not at school or work? We can do that for you.
You have full control over how it will work, with control over everything from the scan interval times to which wifi ssid's to connect to. The optional notification setting helps keep Auto Wifi open in the background, and is as non-intrusive as possible. We hate unnecessary notifications just as much as you do.
It operates using 3 selectable modes:
"Auto on, auto off" - this mode will shut your wifi off when no signal nearby saved access point is detected, and turns it on whenever any wifi access point you've connected to before is nearby.
"Selective on, auto off" - this mode will only automatically turn your wifi on when your device can connect to an access point from a list that you select. Great for when you want your phone to connect to wifi at home but not at school or work. It will only shut your wifi off automatically when it isn't connected to anything, so you can still manually turn on your wifi without disruption.
"Auto off only" - lastly, this mode will only automatically turn wifi off, so you can have full manual control over when it turns back on again.
Description of permissions required:
"Run at startup" - as the name implies, this is needed so we can start Auto Wifi at device start up.
"Access Network State" and "Access Wifi State" - these are needed so we can check if you are connected to a wifi network. This lets us know when to turn wifi on or off, otherwise known as the 'Auto' part of Auto Wifi.
"Change Wifi State" - this is required so we can actually turn your wifi adapter on and off for you, otherwise this app would be pointless.

[App] CSNotifier 1.0

This application can show persistant notifications based on the next events:
- If mobile data may be in use
- if Wi-Fi is on but not connected
- if Ringer volume is zero
- if Bluetooth is on but not connected (possibility to exclude setected devices)
This is the Google play link:
https://play.google.com/store/apps/details?id=anddev.cs.csnotifier&hl=en
Permissions Explanation:
- View network connections (Needed for mobile data check).
- View Wi-Fi connections (Needed for Wi-Fi events check).
- Access Bluetooth settings (Needed for BT events check).
- Pair with Bluetooth devices (Needed for BT device selection).
- run at startup (Needed for starting app at boot time).

Privacy: How to set a random MAC address upon every Wi-Fi connection

Privacy: How to set a random MAC address upon every Wi-Fi connection
I post this for two reasons, the first being I just learned this and therefore I want others to benefit from my newfound knowledge:
"Every time your device connects to a new network it can use a randomized MAC address. Why is this important? To put it simply: Privacy."​which seems to apply to a variety of Android releases:
"Starting in Android 8.0, Android devices use randomized MAC addresses when probing for new networks while not currently associated with a network. MAC randomization prevents listeners from using MAC addresses to build a history of device activity, thus increasing user privacy."​
And the second reason is that those who know more than I do can further add technical value to this topic.
What I did on Android 11 was I changed the following two settings which I believe add to privacy.
Android11-Settings > Connections > Wi-Fi > GearIcon > Advanced > MAC Address Type
Set to either {Randomized MAC} or top {Phone MAC}
Settings > Developer options > Networking > Enhanced Wi-Fi MAC randomization
Turn either {ON} or {OFF}
"Change this phone's MAC address each time it connects to a network that has MAC randomization turned on."
One caveat is the following:
"Once a random MAC address is used for a given network profile, the mobile device will continue to use the same random MAC address even after the user deletes the network profile and recreates the SSID/network profile."
Another caveat is the following:
"There is a bit which gets set in the OUI portion of a MAC address to signify a randomized / locally administered address. The quick synopsis is look at the second character in a MAC address, if it is a 2, 6, A, or E it is a randomized address."
If you're aware of additional technical information on this privacy topic, please add it to this thread so that we all benefit from your knowledge.
Thanx,
I did option 2 - Settings - Developer Options - Networking - Enhanced Wi-Fi MAC Randomization - as to On, and I tried googling where to find your first option 'Randomized MAC' on Android 11, but I can't find a solution as to why I don't see that 'Randomized MAC' option there on my Samsung Galaxy S21 Ultra, it is updated.
May you possibly tell me if you know of whether if I should have both your suggested options enabled and why I maybe can't see option 1 for me?
Hi, I cant find the setting Privacy - Use Randomized MAC on my Galaxy Note 8 but on my Mi Mix 2S, this option is there. Tried MacRandomizationEnabler module on Magisk but there's no changes. Tried it on various Roms Q/R/S for Note 8 but cant seem to get it to appear.
helionexusbiz said:
Thanx,
I did option 2 - Settings - Developer Options - Networking - Enhanced Wi-Fi MAC Randomization - as to On, and I tried googling where to find your first option 'Randomized MAC' on Android 11, but I can't find a solution as to why I don't see that 'Randomized MAC' option there on my Samsung Galaxy S21 Ultra, it is updated.
May you possibly tell me if you know of whether if I should have both your suggested options enabled and why I maybe can't see option 1 for me?
Click to expand...
Click to collapse
Try going in WiFi setting while being connected to a WiFi network. You will see a 'gear' icon beside the connected WiFi name. click on that then click on 'advanced'. Hope you will find what you are looking for.
Though I might be too late to reply, but anyway. I just got into (and presumably out of) this mess.
I think I might know where other people might be having issues...
Some routers are set to recognize devices by their MAC address (which won't work anymore with MAC randomization).
First, let me state unequivocally that I have been successfully using MAC randomization on Android 11 (which randomizes per SSID and only changes that randomization under certain circumstances) and I've been successfully using MAC randomization on Android 12 (which randomizes on every connection if you set the Developer options for that).
But I changed a few other (unrelated!) Wi-Fi settings that others might not be setting; (but maybe they matter?).
I don't think most of those Wi-Fi changes I've made are needed for MAC randomization to work per connection, though, as I did them only because I have other tools (like scrcpy and vysor and webdav which you can see in the screenshots below) which work best with a static IP address on the phone (and I hide my router broadcasts for privacy reasons - and yes - I said privacy and not security as Google/Mozilla/Kismet/Wigle/etc. still get your SSID even if you add "_nomap" and "_optout_" to that SSID).
But that's what I think may be DIFFERENT in my setup than in your setup (but I would think my setup would be harder to set up than for most people since my router doesn't broadcast the SSID and my phone doesn't try to reconnect to that SSID when I leave the home due to geofencing tricks).
Anyway, the things I did different from (perhaps?) most people are:
I set Developer options to Enhanced Wi-Fi MAC randomization
(Enhanced Wi-Fi MAC randomization = on)
I set the Android Wi-Fi to request a static IP address
(IP settings = Static)
I set the router to address reservation for that IP address
(Address Reservation = on)
I set the Android Wi-FI to not attempt to reconnect upon failure
(Auto reconnect = off)
I set Developer options to allow wireless debugging
(Wireless debugging = on)
But I want to stress that almost all those Wi-Fi settings I changed that may be different from others weren't necessarily for the MAC randomization feature to work but for other Wi-Fi privacy and functionality features to work, including:
Causing a new Wi-Fi MAC randomization on every connection
Not broadcasting the home Wi-Fi SSID (on the phone) whenever I'm away from home
Not broadcasting the Wi-Fi SSID (on the router) when I'm at home (in addition to using "_optout_" & "_nomap" names).
Mounting the entire phone (root & external SD included) as a read/write drive letter on Windows over Wi-Fi (using WebDav)
Mirroring the Android phone on Windows over Wi-Fi so that I can use the Windows keyboard & mouse & clipboard on the phone (using Vysor and/or Scrcpy) & so that I can just slide an APK from Windows to Android over Wi-Fi to install it onto Android
etc.

Categories

Resources