Looking for an automatic hotspot fix - Samsung Galaxy S7 Questions and Answers

I have a rooted s7 on the stock rom and kernel. Exposed framework is installed.
I have been wanting AutomateIt to allow my phone to automatically turn on/off my hotspot when it connects to the bluetooth in my car.
It just doesn't work. I can manually turn on and off the hotspot with no problems, but would really some automation on my phone.
On my S5, I had no problem having it automated using exposed and xtether.
I understand Marshmallow has different permission settings and that may be why, but has anyone figured out a solution for this?

bump for any help or potential steps toward solving this.

Have u tried tasker? Remember to give root permissions to the task
Sent from my S3 using Tapatalk

Related

Tasker to enable WiFi hotspot.

Hey, All.
Just trying to set up my Nexus 7 in my car and would like to have my phone enable the WiFi hotspot when it connects to the car's bluetooth. I can't seem to find a tasker plugin that is applicable, nor do I know how to write one from scratch.
Any suggestions on how to accomplish this?
Also, while I am at it, I am looking to have the Nexus enable car mode when it connects to my phone's WiFi. Assuming another tasker item, but again, not sure how to accomplish.
Thanks ahead of time for everyone's input.
JiantJon said:
Hey, All.
Just trying to set up my Nexus 7 in my car and would like to have my phone enable the WiFi hotspot when it connects to the car's bluetooth. I can't seem to find a tasker plugin that is applicable, nor do I know how to write one from scratch.
Any suggestions on how to accomplish this?
Also, while I am at it, I am looking to have the Nexus enable car mode when it connects to my phone's WiFi. Assuming another tasker item, but again, not sure how to accomplish.
Thanks ahead of time for everyone's input.
Click to expand...
Click to collapse
One heard about this IFTTT that enables android services in special conditions, are you looking for something like this?
Ciuffy's SM-G900F CM 12.1 spirit hath marked this way.
Ciuffy said:
One heard about this IFTTT that enables android services in special conditions, are you looking for something like this?
Ciuffy's SM-G900F CM 12.1 spirit hath marked this way.
Click to expand...
Click to collapse
I'll give that a shot. I remember trying that for something else in the past, it may be what I am looking for. (had forgotten about it). There is an app called AutoTether, but apparently it stopped working with 5.0.
JiantJon said:
I'll give that a shot. I remember trying that for something else in the past, it may be what I am looking for. (had forgotten about it). There is an app called AutoTether, but apparently it stopped working with 5.0.
Click to expand...
Click to collapse
No luck with IFTTT; it will only allow specific actions based on connecting, I can't make the phone change a setting, only do something like change my thermostat, or post to pintrest, etc.
Looks like I am still looking for Tasker help.
I have this in my car, have had it for a while now. Here's what I've done, choose which one that works for you:
In Tasker without any other app required, set your Car Mode profile to trigger a new task and you can group whatever else you want into it, but you're looking for Net ==> WiFi Tether ==> On
In Tasker with Secure Settings, do the same thing above but instead of Net, choose Plugins ==> Secure Settings ==> Configuration Edit Pencil ==> Actions ==>Wifi Hotspot ==> On
With each of those, set an exit task to do the opposites. Interestingly enough, all my Samsung devices worked just fine with either of those commands, but my Moto X Pure Edition did not like Secure Settings trying to get the hotspot activated and sent toast error messages. You can find one of those that will work, even if it doesn't work the first time - for example, neither worked with my MXPE at first, but with a reboot or some other magic going on, I got the first one with Tasker only to work and not give any error messages.
Now for the real fun, I've got it where my N7 turns on the screen, unlocks, and then goes into Car Home Ultra without touching it at all, just based on the connection to my phone's wifi hotspot! My phone knows to start the wifi hotspot when connected to my car's Bluetooth, and also starts playing Google Play Music without any interaction on my part as well. That's a little more advanced though, so start with this and let me know if you'd like me to keep helping with that, just let me know. Some people won't need the N7 to turn on the screen and unlock when connected to the hotspot, they would just have it run screen on while charging, but my N7 is semi-permanently mounted in my car, has been through my last 3 cars, and I keep it plugged in all the time to a hot cable, always charging the device, not just when the car is in the on position....
Good luck, hope I've helped!

Lollipop Data Toggle Non-Root

Fixed my issue on Note 5. Posting in general just for discussion and if anyone had questions.
Saw a bunch of people with issues using widgets to toggle mobile data in lollipop as well as any automation apps.
I put a small app that acts as a widget and emulates you clicking to save you the trouble. Under Venture Alpha J&A.
Put together using Autoinput and requires it to run. Made it to fix my issue with Tasker not being able to turn my data off automatically when I'm wifi range. If anyone wants it... its a $1.42 cause Google gets 30%... link https://play.google.com/store/apps/details?id=com.venturealpha.datatoggle
Only tested on the new Samsungs but should work on devices running lollipop.
If you don't want to do the $1.42 you can put it together with Tasker and autoinput and make a profile for it to resume the less clicks for data toggle.
Verizon Wireless Technician using Tapatalk on Note 5
Data MODE toggle
Can you make one of these to toggle 3G/LTE Mode?
Bmillz said:
Can you make one of these to toggle 3G/LTE Mode?
Click to expand...
Click to collapse
So far all the apps that I have tried to do that on verizon won't go to the lesser network speeds UNLESS the other is unavailable. Or else I would be in 3g unless downloading for battery life
My app works off the capabilities the phone already had settings for.
Verizon Wireless Technician using Tapatalk on Note 5

wifi calling without upgrading to MM?

Is there any way to get wifi calling on our AT&T G4's without upgrading to MM? I'd prefer to stay on LP so I can root and also so I can use my bluetooth heart rate monitor and other sensors. 6.0 has bugs that make bluetooth Low energy sensors not work correctly. There is a fix in 6.0.1 but my understanding is the G4 is still on 6.0. Wifi calling would be great because I encounter poor signal at work.
It seems to be part of the firmware, but I didn't know if there was a setting somewhere like the build prop file to change or something I could sideload to enable wifi calling.
Hopefully this can be done, I also am still rooted on LP mainly for tether. I would like the wifi calling feature, but don't want to give up another one.
It look like the update makes the wifi calling toggle appear up in the notification panel. I don't know if it adds any code. I wonder if it's buried somewhere in the firmware already? I thought maybe I could find/toggle it by creating a shortcut in Nova Launcher like I did with the permission manager for Access Lock. I couldn't find one although I don't know what I'm exactly looking for. there are settings buried in there with vzw in there so maybe it is buried in there.

Automatic Hotspot

Has anyone been able to get any program to automatically enable hotspot (for example, when bluetooth connects turn on hotspot)? I used to use Tasker on my Note 7 (without root and with Secure Settings), but now Tasker fails to enable hotspot on my S8+
Every program I've tried in the Play Store fails to enable hotspot...it is like Samsung has done something that to keep programs such as Tasker and Automate from working...
It fails because the US branded versions of the phone changed the normal way to enable the hotspot function in order to perform additional entitlement checks with some US carriers before enabling the hotspot. This is why Tasker and other programs fail.
On the unlocked, unbranded version of the S8+ (which doesn't run the carrier software and doesn't run those checks), it works fine.
The same goes to the pixel, only there it depends on the SIM you insert into the phone. If you insert a VZW or ATT SIM, the Tasker process will fail. If you use a T-Mobile SIM in the pixel, it will work because T-Mobile doesn't run those entitlement checks.
When I used an international SIM in the Pixel, it also worked.
I hope this helps.
This is the error I get with tasker, is this what you see?
Ugh...I figured it was something to do with that. That's like knowing cancer is the cause of that pain in your gut...good to know what it is, still sux.
I have been able to get Tasker and AutoInput to activate the hotspot fairly reliably when I connect to bluetooth. It actually works very well, even with the screen off. Guess it'll do.
Care to explain what you are doing there? Is autoinput disabling mobile data, enabling hotspot then re-enabling mobile data?
Auto Enable Hotspot with Tasker on S-8
I got the automatic hotspot worked out using Tasker and AutoInput. I tried several ways that were hit or miss. I finally figured it out and can now activate my Hotspot reliably when my phone connects to bluetooth.
If anyone is interested, here is the export. You will need AutoInput from the Play store, and Tasker. Root is not necessary. It is probably a pretty clumsy way of doing it, but it works.
Simply copy the Hotspot Enable XML file to your Tasker Configs folder. Then Tasker>>3-dot menu>>Data>>Restore>>browse to file
Thanks I'll try this. I always used tasker before but obviously w/o Autoinput.
Dave
No dice for me. Aside from autoinput and tasker did you have to install anything else? I did enable the autoinput accessibility service. I've included screenshots of what I get when I try to run the task and also when I click on any one line of the task. When I click to install what it says to it says it is just takes me to auto input in playstore which is already installed. Is there somewhere else I need to enable this auto input plugin?
It also seems I had to install secure settings which I did to no avail.
Thanks much
Dave
TT_Vert said:
No dice for me. Aside from autoinput and tasker did you have to install anything else? I did enable the autoinput accessibility service. I've included screenshots of what I get when I try to run the task and also when I click on any one line of the task. When I click to install what it says to it says it is just takes me to auto input in playstore which is already installed. Is there somewhere else I need to enable this auto input plugin?
It also seems I had to install secure settings which I did to no avail.
Thanks much
Dave
Click to expand...
Click to collapse
Sorry Dave, I haven't been back on.
It looks like you need to install "Secure Settings" from the play store. It is an add-on to Tasker. It should work after that.
So yes, you need Tasker, Secure Settings, and AutoInput. You could honestly probably do without the first command in Tasker (the one that needs Secure Settings...it only turns the screen on).
I tried again removing that first line and every single action if I click on it I get the error in the picture below. I try to manually run it in tasker it just sits at the first task. How did you create this exactly?
Btw, if I click to install it just brings me to autoinput I the play store which says it's installed.
Any help pinetreehater?
Well i ended up having my phone die and got a new one from samsung. Same issue I had w/ the other one. There has to be some other step involved that I'm missing here.
Any luck yet?
Sort of working
I downloaded and paid for AutoInput. The script is mostly working. But it stops at the Hotspot setting screen and never seems to turn it on.
Any ideas?
Apologies for necroposting, but I thought this might help future people. The only issue I can think is that you need to make sure you've activated Autoinput's trial period OR purchased the full version, do that and the supplied script works perfectly.
so I'm using the s9, figured the process would be close enough. first Trigonous' fix worked for me mostly, except I still have to unlock my phone before it finishes turning on hotspot. Also, for any totally novice users coming in to try to do this, I had a fun time at first locating the Tasker Configs file, if you create a back up in tasker it will create the file for you so you can copy the .xml to the proper place.
Most important part of this post, to me at least, is there a way to get it to by pass my unlock and just do it or do I have to pull out my phone still and unlock it for it to finish the task?
snaggle2thtiger said:
Most important part of this post, to me at least, is there a way to get it to by pass my unlock and just do it or do I have to pull out my phone still and unlock it for it to finish the task?
Click to expand...
Click to collapse
I'm no expert, but why not set your cars Bluetooth as a trusted device, therefore unlocking your phone when connected, then maybe a brief delay after connection allow it to continue?
Thank you
pinetreehater said:
I got the automatic hotspot worked out using Tasker and AutoInput. I tried several ways that were hit or miss. I finally figured it out and can now activate my Hotspot reliably when my phone connects to bluetooth.
If anyone is interested, here is the export. You will need AutoInput from the Play store, and Tasker. Root is not necessary. It is probably a pretty clumsy way of doing it, but it works.
Simply copy the Hotspot Enable XML file to your Tasker Configs folder. Then Tasker>>3-dot menu>>Data>>Restore>>browse to file
Click to expand...
Click to collapse
Thanks man, saved me some time, it works perfectly. I installed AutoInput and was moving in the same direction.

Changing Dun requirement ADB?

I've got a question about changing the Dun APN requirement for the native mobile Hotspot. The December update from OTA on galaxy S8+ or generally galaxies I'm not sure how many phone's it affected, but I've been working on a solution to get the native hotspot to work again. So far I've found a way to activate the native hotspot through the build prop/ or using an xposed module. Build prop is the easier choice for those without xposed. But even after activating it, the actual connection gets constant DNS errors in assuming because of the dun requirement that's the only thing i can guess would be doing it. Even so I might be wrong and need to do something else entirely. Either way I'm trying to figure out how to make the dun requirement null through ADB. I'm away how to set the dun requirement to 0 but the problem is any time I activate data or hotspot or turn data off or turn the hotspot off it immediately reactivated dun requirement.
TL;DR I'm trying to find a way to erase the dun requirement from hotspot protocols. Any help would be appreciated.

Categories

Resources