Question Profile Switcher Based on WiFi and BT Connection - Google Pixel 7 Pro

I used to use an OnePlus 5T with crDroid and it had a feature where the phone would automatically switch profiles based on the WiFi or BT network it was connected to. For example, if it was connected to my car via BT, I can set it to automatically disable WiFi and turn on GPS. Connected to the home WiFi, it'll disable GPS and BT, and disable the lockscreen. Looks like the stock official Google image doesn't have this feature? Is there an app that does this? Or do I have to wait for crDroid or Lineage to hopefully make it out of beta?

Releases ยท henrichg/PhoneProfilesPlus
Profile manager for Android - event triggered. Contribute to henrichg/PhoneProfilesPlus development by creating an account on GitHub.
github.com

Tasker would do that and a whole lot more

Not sure what the basic System-Rules can do, but Tasker is definitely one way

Related

[Q] Unable to use Bluetooth in "restricted Profile" with 4.3 (CM 10.2)

I'm really liking 4.3 and want a restricted profile to use in my car when I have my tablet mounted to my dash so that I don't need to type a password in to use music/nav/diag software. Problem I'm having is that some of the software that I use with a Bluetooth GPS will not work right because I can't get the Bluetooth working in the restricted profile. When I turn on the BT it looks like it is going to turn on, but turns back off. From the owner account I've looked at the paired devices to see if any of them had a new setting to allow restricted user access, but no luck. I've turned on the BT radio from the owner account, but when I switch to the restricted profile it turns off.
Anyone know of a file that can be tweaked to allow this to work, or if I've overlooked allowing access to some app I didn't connect with BT for the restricted user.
Can anyone test and confirm they also have this problem or not? I only have one device running 4.3 right now so I can not test much on my own. I've not seen much info on all the restrictions and settings to adjust restricted profiles.
I have the same problem with my Nexus 7 (2012) running stock 4.4.

[REQ] Tasker Bluetooth profile?

Hey guys, trying to wrap my head around Tasker. Bought it a while back but got scared off by it :laugh:
I currently use Greenpower Premium to manage my bluetooth connection, but it's such a bulky way to do it considering I don't use any of the "battery saving" features.
What I would like is
a) Bluetooth to turn on when connected to a power source
b) Bluetooth to disconnect after 5 minutes if NOT connected to a device.
The only caveat of point B is point A takes priority, so even if not connected to a device, but connected to a power source, bluetooth stays on. It's for use in my car.
Any help for a Tasker noob? Cheers :highfive:
Audioboxer said:
Hey guys, trying to wrap my head around Tasker. Bought it a while back but got scared off by it :laugh:
I currently use Greenpower Premium to manage my bluetooth connection, but it's such a bulky way to do it considering I don't use any of the "battery saving" features.
What I would like is
a) Bluetooth to turn on when connected to a power source
b) Bluetooth to disconnect after 5 minutes if NOT connected to a device.
The only caveat of point B is point A takes priority, so even if not connected to a device, but connected to a power source, bluetooth stays on. It's for use in my car.
Any help for a Tasker noob? Cheers :highfive:
Click to expand...
Click to collapse
your A is very easy to do (as evidenced by a novice like me messing around with it until it worked), you'll just have to go into each setting for the basic profile.
B, no clue... i've never tried it, but i can't think of a reason it'd be that difficult.
If this is all you want Tasker to do try out an app called Bluetooth Auto Connect. Your Profile A should really be easy to program(porofle/state/power/any:taskaction/net/bluetooth on) while your Profile B there is actually a profile you can download from the Tasker site then import into Tasker. It's set at 15 minutes but you can change it.
Here is the way I interpreted
A) make profile under state>power>power(any or ac). The make a task setting Bluetooth on under "net." Go back to profiles and press and hold the new task you made and select add exit task. You can put set Bluetooth off when it disconnected from power source.
B) state>net>Bluetooth connected. Task set Bluetooth on or whatever, then add an exit task under task>wait>5 min then set Bluetooth off. Unlink the start task with the green arrow cause unless you want a notification saying whatever when connected, I don't see any use for an enter task.
AndrasLOHF said:
If this is all you want Tasker to do try out an app called Bluetooth Auto Connect. Your Profile A should really be easy to program(porofle/state/power/any:taskaction/net/bluetooth on) while your Profile B there is actually a profile you can download from the Tasker site then import into Tasker. It's set at 15 minutes but you can change it.
Click to expand...
Click to collapse
Thanks I'm going to do that :highfive:

[Q] Automatically turn on BT tethering?

Hi all.
I have just bought a new TomTom, which requires bluetooth tethering to be on so it can connect to the internet through the phone.
However whenever BT is turned on tethering is not automatically switched on as well, and it is a pain to have to go into the settings menu every time I get into my car.
Is there a way to automatically enable tethering when BT pairs with a certain device?
I am currently use profile scheduler to manage my profiles which on the whole is ace but unfortunately this cannot deal with tethering. As I currently have all my profiles setup on PS I would prefer not to need to use Tasker if possible.
Any help most appreciated
Adam

[TASKER] Share your best Tasker profiles!

So we need a Tasker thread for Verizon Galaxy Note 4, with out Root.
Always fun to see others ideas on Tasker Profiles, here are mine.
Please share your Tasker Profiles.
WIFI Starter
WIFI Stopper
These both work with 5 tasks, and use cell tower to check for WIFI then start or stop. Found this on WIKI.
Auto Off Unpaired Bluetooth
This will turn off Bluetooth if I just kill the headset. Found this on WIKI.
Headset Plugged Any
I use headset plug in my car, sure Bluetooth is nice, maybe i'm old but I still get better flow just plugging in.
On any headset plugged it checks to see if am by or connected to any of my WIFI points first.
Then if not it sets; open music player (player set to resume play), mute sounds so they don't bug me while i'm listening to my music, Display to 30 second time out, and Media volume to level 14
The media volume is great because Samsung or Google Kit Kat has a pop-up that tells you you are setting sound high, and it can hurt your ears. With this setting that pop-up never goes off.
On headset remove the exit task reverts all. I made this myself.
Received Text While Driving
Checks i'm not near or connected to any of my WIFI points, checks for headset plugged in, any text received, and moving over 5 MPH. If all met send reply text "(AUTO) I'm currently driving. Will respond to you when I can safely."
Found on WIKI and made some adjustments myself.
WIFI Connected Home Unlock (needs Local Password Lock Plug-in)
On connect to my home WIFI checks MAC #, then using plug-in sets lock to 3 hours. On exit it sets lock back to 30 seconds. I made this myself.
WIFI all Beep On Connect
Set to make a low quick beep when connected to one of my WIFI's. Set to make high quick beep on disconnect. I made this myself.
http://tasker.wikidot.com/profile-index
I like this thread idea! I haven't put tasker on my new phone yet, but on my last one I had the following profiles:
Auto silence/vibrate all ring tones when I connect to my work wifi
Auto max all volumes when I connect to my home wifi
Auto dim screen to lowest brightness setting at 2am (so I don't blind myself when I look at my phone in the middle of the night or morning)
I had just gotten started, but I really liked the home automation possibilities. I want to create one that checks when I join my home wireless network to see if it's between 4p-6p on Monday - Friday, and if so, open my garage door and unlock my back door
Sent from my SM-N910V using XDA Free mobile app
I just use one profile, a must have for me. When I get in my car and the Bluetooth is connected, I have Tasker turn WiFi off and start spotify. It turns WiFi back on and kills spotify when the car is turned off.
Sent from my SM-N910V using Xparent Blue Tapatalk 2
The only one I have running right now uses Tasker, IFTTT, and PebbleTasker to control my WeMo light switches from my Pebble Watch. There is a IFTTT channel to use a text message to turn on and off your Wemos so i have a taker task to text the special command to the IFTTT phone number. Then all i had to do was link that task to Pebble tasker and now I can hit a button on my watch and turn on my lights.
On my S4 and S5 I had another profile that would turn off lock screen security when my Pebble was attached to bluetooth. Unfortunately, without root I am unable to replicate that on my N4. I also had one using my bank's text banking to receive my balances via text from the Tasker on my Pebble.
heystek said:
...
On my S4 and S5 I had another profile that would turn off lock screen security when my Pebble was attached to bluetooth. Unfortunately, without root I am unable to replicate that on my N4.
...
Click to expand...
Click to collapse
Was able to do this with Tasker + Secure Settings
Locks when watch isn't connected (Lock Device + Set Password)
Unlock when watch is connected (Clear password)
I had to turn off/on Bluetooth after setting it up for it to recognize my watch.
LakersEB said:
Was able to do this with Tasker + Secure Settings
Locks when watch isn't connected (Lock Device + Set Password)
Unlock when watch is connected (Clear password)
I had to turn off/on Bluetooth after setting it up for it to recognize my watch.
Click to expand...
Click to collapse
That is awesome news. I will have to try that. The novelty of the fingerprint reader is starting to wear off so I would love to go back to watch unlock.
Edit: Got it to work with a PIN. Just couldn't make the fingerprint or pattern lock due to lack of root.
I tried using LED Controller, but it's causing me all kind of bad settings, will have to uninstall it
The tasker profile I like and use is to enable GPS and turn GPS off when launching Google Maps... I also have one that enables NFC and turns NFC off upon launching and closing Google Wallet
---------- Post added at 02:55 PM ---------- Previous post was at 02:31 PM ----------
rusty.gh said:
So we need a Tasker thread for Verizon Galaxy Note 4, with out Root.
Always fun to see others ideas on Tasker Profiles, here are mine.
Please share your Tasker Profiles.
WIFI Starter
WIFI Stopper
These both work with 5 tasks, and use cell tower to check for WIFI then start or stop. Found this on WIKI.
Auto Off Unpaired Bluetooth
This will turn off Bluetooth if I just kill the headset. Found this on WIKI.
Headset Plugged Any
I use headset plug in my car, sure Bluetooth is nice, maybe i'm old but I still get better flow just plugging in.
On any headset plugged it checks to see if am by or connected to any of my WIFI points first.
Then if not it sets; open music player (player set to resume play), mute sounds so they don't bug me while i'm listening to my music, Display to 30 second time out, and Media volume to level 14
The media volume is great because Samsung or Google Kit Kat has a pop-up that tells you you are setting sound high, and it can hurt your ears. With this setting that pop-up never goes off.
On headset remove the exit task reverts all. I made this myself.
Received Text While Driving
Checks i'm not near or connected to any of my WIFI points, checks for headset plugged in, any text received, and moving over 5 MPH. If all met send reply text "(AUTO) I'm currently driving. Will respond to you when I can safely."
Found on WIKI and made some adjustments myself.
WIFI Connected Home Unlock (needs Local Password Lock Plug-in)
On connect to my home WIFI checks MAC #, then using plug-in sets lock to 3 hours. On exit it sets lock back to 30 seconds. I made this myself.
WIFI all Beep On Connect
Set to make a low quick beep when connected to one of my WIFI's. Set to make high quick beep on disconnect. I made this myself.
http://tasker.wikidot.com/profile-index
Click to expand...
Click to collapse
How did you get the Wifi Starter Stopper to work because it sure as hell is not working for me....The task is green, its just not turning the Wifi On...If I turn the Wifi on itself manually, then it switches to the Wifi Stopper task, seems to me it doesnt work. Any help would be great...Do we keep the * around the SSID of the Wifi broadcast?
bdorr1105 said:
The tasker profile I like and use is to enable GPS and turn GPS off when launching Google Maps... I also have one that enables NFC and turns NFC off upon launching and closing Google Wallet
---------- Post added at 02:55 PM ---------- Previous post was at 02:31 PM ----------
How did you get the Wifi Starter Stopper to work because it sure as hell is not working for me....The task is green, its just not turning the Wifi On...If I turn the Wifi on itself manually, then it switches to the Wifi Stopper task, seems to me it doesnt work. Any help would be great...Do we keep the * around the SSID of the Wifi broadcast?
Click to expand...
Click to collapse
First grab this on the wiki, it includes 5 tasks and 2 profiles. In the wifi starter profile have it search for cell tower, as I add new locations I cut all i have in there, do a new search, then add the others back.
then in the task wifi checks params under varable set add your wifi name, yes leave the astrix and add a forward slash between multiple wifi locations. *bobwifi*/*tomwifi*/*frankwifi*
then here is the trick, once back on wifi checks params and then click play once to get things going, then back out of tasker and move in and out of your location.
NFC on on wallet app is awesome idea, thanks man!
I ended up doing this, NFC on/open Wallet. No exit task as I like to go back to see my purchase. Having it auto-open is great though, as I used to turn on NFC then find wallet and open.
rusty.gh said:
First grab this on the wiki, it includes 5 tasks and 2 profiles. In the wifi starter profile have it search for cell tower, as I add new locations I cut all i have in there, do a new search, then add the others back.
then in the task wifi checks params under varable set add your wifi name, yes leave the astrix and add a forward slash between multiple wifi locations. *bobwifi*/*tomwifi*/*frankwifi*
then here is the trick, once back on wifi checks params and then click play once to get things going, then back out of tasker and move in and out of your location.
NFC on on wallet app is awesome idea, thanks man!
I ended up doing this, NFC on/open Wallet. No exit task as I like to go back to see my purchase. Having it auto-open is great though, as I used to turn on NFC then find wallet and open.
Click to expand...
Click to collapse
Thanks for the information I am using one that is working pretty well that was also on wiki.
The problem I was having is how long it took, but it would not connect unless I went into the task and hit play button to run the task... Under profile it would be green but it would not connect... It only connected from manual input
Edit - I never left my location though I just turned off wifi to see if it would turn my wifi back on... It's a complex task I am not sure how to adjust the time for it to happen faster
bdorr1105 said:
Thanks for the information I am using one that is working pretty well that was also on wiki.
The problem I was having is how long it took, but it would not connect unless I went into the task and hit play button to run the task... Under profile it would be green but it would not connect... It only connected from manual input
Edit - I never left my location though I just turned off wifi to see if it would turn my wifi back on... It's a complex task I am not sure how to adjust the time for it to happen faster
Click to expand...
Click to collapse
gotcha! if you decide to try again you will want to change the time on -tasks / WIFI Start /Wait- to something smaller, default is 2 minutes, I set mine down to 1 minute.
GPS when using Google maps
any idea how to do this? I have no tasker knowledge.
I was hoping to find some profiles I could install.
Any help would be great. I found some but they dont turn off GPS after finished using the app.
Thank you.
kinglifer said:
any idea how to do this? I have no tasker knowledge.
I was hoping to find some profiles I could install.
Any help would be great. I found some but they dont turn off GPS after finished using the app.
Thank you.
Click to expand...
Click to collapse
GPS switching by program requires a rooted phone.
Sent from my SM-N910V using Tapatalk
kinglifer said:
any idea how to do this? I have no tasker knowledge.
I was hoping to find some profiles I could install.
Any help would be great. I found some but they dont turn off GPS after finished using the app.
Thank you.
Click to expand...
Click to collapse
Sorry further review is showing that you need root.
However, there is no need to, you should simply turn GPS on and leave it. Android works fine with this and when not in use it does not run, it is not always checking GPS unless you have some app asking for GPS location running.
LakersEB said:
Was able to do this with Tasker + Secure Settings
Locks when watch isn't connected (Lock Device + Set Password)
Unlock when watch is connected (Clear password)
I had to turn off/on Bluetooth after setting it up for it to recognize my watch.
Click to expand...
Click to collapse
I have this setup so that it works with bluetooth in my car, my Bluebuds headphone, or my home theater receiver. So basically if I'm at home, in the car, or listening to music/podcasts at work I don't have to deal with the PIN but when I'm out and about my phone is secure.
Could anyone help me with making two profiles please? I use SwiftKey, and when it's active. Toggle pie off. And when keyboards not active it turns back on.
And if I send my self a message it turns mute mode off. (with a certain phrase) I got it to work with default message but don't know how to make it work with chompsms :/ I've asked around but no response really. Thanks for your time.
Sent from my GT-I9100 using XDA Free mobile app
Run shell
Lately I remarked that the following functions don't work anymore in Tasker:
1) Mobile data on/off svc data enable / disable
2) Battery Saver*settings put global low_power 1 / 0
3) Airplane*settings put global aiplane_mode_on 1 / 0
4) 2G*settings put global preferred _network_mode1 1
5)*3G*settings put global preferred _network_mode1 0
6)*4G*settings put global preferred _network_mode1 10
7) WIFI*on/off svc wifi enable / disable
Any idea why or how can I replace them?
Thanks.

Bluetooth always running and hidden

Hi this is my first post hope I didn;t screw it up. I have a Samsung A01 phone. I always enable developer options. I noticed that bluetooth is always running with GATT service And sometimes BluetoothOppService, PanService, and A2dpService. But usually just the GATTservice. I've stopped it in developer options, I've force stopped it in Apps menu. I've also restricted running in background in mobile data and battery and also clear data. Later I also did the same to Bluetooth MIDI Service and Bluetooth Test. ( I dont bother with those anymore. The permission won't let me Deny. They are greyed out. I;m unable to disable it. I have it off in the Connections settings. I've also gone to advanced in the settings and it will not let me put anything in the blacklist. I've erased connections and at this point I can't figure it out. Also in Developer options running apps I use report and it crashes immediately. I've turned phone on and off, I've put it in safe mode, and I factory reset it. And lastly the bluetooth icon on the drop down menu screen is never showing bluetooth is on which means its running hidden. Please help thankyou.
Bluetooth per se is neither an app nor a service, it's a network communication protocol ( defined in Androids Bluetooth API ) what apps can make use of.
By using Android Bluetooth API in Android apps, they can perform the following functionalities:
Scan for the available Bluetooth devices within the range
Use local Bluetooth adapter for paired Bluetooth devices
Connect to other devices through service discovery
Transfer data to and from other devices
Manage multiple connections
jwoegerbauer said:
Bluetooth is neither an app nor a service, it's a network communication protocol ( defined in Androids Bluetooth API ) what apps can make use of.
By using Android Bluetooth API in Android apps, they can perform the following functionalities:
Scan for the available Bluetooth devices within the range
Use local Bluetooth adapter for paired Bluetooth devices
Connect to other devices through service discovery
Transfer data to and from other devices
Manage multiple connections
Click to expand...
Click to collapse
Oh I'm using the wrong terminology. (although in developer options its showing under "running applications" And I dont like it running without my permission.

Categories

Resources