Tethering on Android Oreo. Is it possible? - Tasker Tips & Tricks

Hi.
I would like to know how to turn tethering on and off on Android 8 (Oreo). I followed the instructions: I installed the plugin toggle tethering and rebooted the system, but when I activate the task me this error appears:
12.50.56/E FIRE PLUGIN: Toggle Tethering / com.twofortyfouram.locale.intent.action.FIRE_SETTING: 3 bundle keys
12.50.56/E Toggle Tethering: plugin comp: com.matejdro.taskertethercontrol/com.matejdro.taskertethercontrol.TaskerReceiver
12.50.56/E add wait type Plugin1 time 7
12.50.56/E add wait type Plugin1 done
12.50.56/E add wait task
12.50.56/E Error: null
12.50.56/E java.lang.reflect.InvocationTargetException: null
java.lang.NullPointerException: OnStartTetheringCallback cannot be null.
Can somebody help me?

I would love to know the answer to this as well

thebaum said:
i would love to know the answer to this as well
Click to expand...
Click to collapse
yes i have same proble need support

Before any app could toggle tethering, it must work manually. That is what you'll need to sort out first.
Then the app had to be updated for changes.
If you are able to manually toggle tethering, you probably can use AutoInput to toggle it until apps catch up to O.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Related

[Q] Nexus 6 Hotspot Toggle/Trigger

I have a Nexus 6 (not rooted) on Verizon, I pay for Hotspots. I would like to use NFC tag's to trigger turning on or off my hotspot or at the very least use a widget that i can turn on/off hotspots. it seems that all the widgets/tasker/Triggger does not turn the hotspot feature on and off so i have to go to the settings each time to turn on the hotspot.
is there a problem with hotspots ?
You can use anycut and create a shortcut icon. As for NFC, you can use a Tasker profile.
livinginkaos said:
You can use anycut and create a shortcut icon. As for NFC, you can use a Tasker profile.
Click to expand...
Click to collapse
Well thats the problem Tasker isnt working but has on other phones. I was wondering if there is a problem with nexus6,non-rooted phones, or Android 5.0.1 has a problem with toggling Hotspot.
If I make a Tasker Action:
Code:
Action >>Settings>>Net>>WifiTether>>[Set] (Toggle)
Then run the action, I get an error of
Action WiFi tether Failed
Click to expand...
Click to collapse
for example even using "Toggle Hotspot Widget" the widget will reflect if i have turned on/off the hotspot but the widget cannot change the state of the hotspot. it seems that nexus 6 cannot use wigets or anything other going to the settings.
another odd thing that might be related. The Quick settings for hotspot never shows up which should be an added feature of 5.0.1
I've seen mixed results on the 5.0.1 having the hotspot in the quick settings automatically. I know that mine did not. I just added the following to my build.prop and it showed up- but you have to be rooted for this:
net.tethering.noprovisioning=true
Have you tried - https://play.google.com/store/apps/details?id=com.wakdev.wdnfc ?
HardBounce said:
Well thats the problem Tasker isnt working but has on other phones. I was wondering if there is a problem with nexus6,non-rooted phones, or Android 5.0.1 has a problem with toggling Hotspot.
If I make a Tasker Action:
Code:
Action >>Settings>>Net>>WifiTether>>[Set] (Toggle)
Then run the action, I get an error of
Click to expand...
Click to collapse
I've had the same issue... Tasker nor Trigger are able to turn on/off the hotspot like it has on every other phone I've had. Ever come up with anything that would work?
Same here. Nexus 5x, Android 6.0.1, factory settings. The only way to turn on tethering is in Settings -> Wireless & networks -> More -> Tethering & portable hotspot. The hotspot shortcut in the swipe-down menu only works to turn tethering off, not to turn it on.
Did this get resolved? I'm running pure nexus and nfc not working for hotspot

[Guide] Silent mode for Android 5+ with Tasker

Hello,
Since Lollipop, the mute mode is no more available in Tasker. The silent mode has “Off” or “Vibrate”, but no more “On”. Fortunately, Tasker support Java to bring back this mute mode.
Here is the tip to create a task to enable the mute mode with Tasker in Android 5+
1- Create a new task named “Mute”
2- In this task, add 2 actions code / Java Function as pictures below. Use the icons mug and magnifying glass to select elements instead of write it.
To enable the mute mode, just call the task “Mute”
In attachement, the xml to be import in Tasker. To import, open the xml with Tasker, then open Tasker and tap on tasks tab on top, to import it.
Tested and works fine on Galaxy S6 firmware stock Lollipop with Tasker 4.8
Source : https://groups.google.com/forum/#!topic/tasker/loqp_4NOTJ8
work like a charm but what profil event can I use with it if I no longer want any notification vibration??
nevvjeff said:
work like a charm but what profil event can I use with it if I no longer want any notification vibration??
Click to expand...
Click to collapse
With this task, no vibration. For event, you can use set time for exemple.
Great sollution thanx
The same method can be solved if the device is not rooted in the mobile data traffic on / off?
I am making this Hungarian translator wrote apologies if incorrect.
Thanks a ton!!!
with this I can finally switch to total mute mode when my phone connects to my Gear S2.
although i had to add the exit state, ie to return to silent mode when the connection was severed. @philippe734 Is there a way to, modify the exit state so that a dialog pops up and we can choose between silent and sound mode, when the bluetooth connection to my watch is severed?
Thanks!
What is the difference between do not disturb mode and this method?
Here to get some post til 10
Sorry only write your post to get access to put my external link on my on forum
Works great on my rooted Galaxy S8. This is a great solution that doesn't require another app to be installed.
Can you suggest any change to go from silent mode to 4inger mode plz. Thanks by the way.
Thank you. It works on my Galaxy A52 5G SM-A526B/DS

Setting pin when away from home? Not quite working.

I have a profile to set a pin code when I am not near my home WiFi, using Secure Settings. It seems to work except the pin doesn't activate until I unlock the screen and relock it. Is there another step I need to have tasker do to jump start this.
Sent from my SM-T820 using Tapatalk
That's expected behavior. You can leave the pin always set and use a tasker shell action to set the lock screen timeout to a ridiculously long period at home. The command with a 10 day time out would look like:
settings put secure lock_screen_lock_after_timeout 86400000
Then the exit task would set the timeout back to a sane number:
Settings put secure lock_screen_lock_after_timeout 5000
notenoughtech.com has a write-up on using the shell in tasker to replace secure settings.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Thanks. Unfortunately looks like that requires root. My phone is unrootable last I checked into it.
It actually does work once I turn screen on and back off since setting pin doesn't require root. Next step I'm going to see if having tasker turn the screen on and back off after setting the pin.
Disabling the pin when I'm back home works without issue.
Sent from my SM-T820 using Tapatalk
The AutoTools (paid) plugin for Tasker has a secure settings replacement. It doesn't require root, but gets permissions set through ADB commands.
In the tasker action:
plugins -> autotools -> secure settings
You can configure:
lock screen -> automatic lock
And set the time out for the lock screen similar to what I did above. It basically sets the same command I'm doing through the shell but doesn't require root.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
in my experience, this plugin Profile Shortcuts for LineageOS is the best to achieve this Secure Settings or AutoTools, you will have to depend on your ROM though, and cannot backup the profile.
Create 2 system profiles, leave everything unchanged, just use
Don't ask for PIN or password
and
Use system default
As Android is getting more and more 'secured', we user have less options to mess around on a system level. This method uses native system function, do it should work without problem.

Tasker - Can I disable immersive mode with tasker when keyboard is up?

Hey guys, complete noob here. I am using immersive mode on my S8+ which is pretty bugged. I still want to use it because of the beautiful screen.
Problem is: when I open the keyboard in many apps the written text isn't pushed up like usual but behind the keyboard. I'd love to know if I can make tasker switching my phone from immersive to normal mode when the keyboard is open and back to immersive mode when I close it.
Gesendet von meinem SM-G955F mit Tapatalk
Yes, using the AutoInput plugin in the triggering profile, you can sense when an input box is in/out of focus. That will correspond to the keyboard being launched/closed.
Tasker profile ->Event -> Plugin –> AutoInput –> UI Action
Enter the AutoInput UI Action configuration (pencil icon) -> Action Types and select both Select Input Element Focused and Input Element Focus Lost. (*1)
Save the profile and create a task which toggles the immersive mode. You might start the task by flagging a message "keyboard toggled" so you can make sure the profile is triggering when you want.
I use the AutoTools secure settings plugin to toggle the immersive mode in my tasks.
(*1) alternatively use two separate profiles, one with only Select Input Element Focused checked and the associated task to exit immersive mode. The second with only Input Element Focus Lost checked and the associated task to enter immersive mode.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
Yes, using the AutoInput plugin in the triggering profile, you can sense when an input box is in/out of focus. That will correspond to the keyboard being launched/closed.
Tasker profile ->Event -> Plugin –> AutoInput –> UI Action
Enter the AutoInput UI Action configuration (pencil icon) -> Action Types and select both Select Input Element Focused and Input Element Focus Lost. (*1)
Save the profile and create a task which toggles the immersive mode. You might start the task by flagging a message "keyboard toggled" so you can make sure the profile is triggering when you want.
I use the AutoTools secure settings plugin to toggle the immersive mode in my tasks.
(*1) alternatively use two separate profiles, one with only Select Input Element Focused checked and the associated task to exit immersive mode. The second with only Input Element Focus checked and the associated task to enter immersive mode.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
I tried that, everytime I open the keyboard I get a notification that Autotools don't have permissions to change system (which I granted it, however...)
I am using Gboard btw.
Gesendet von meinem SM-G955F mit Tapatalk
Did you grant the WRITE_SECURE_SETTINGS permission via ADB?
adb shell pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS
If the device is rooted, you can use a terminal app and do the same thing without ADB
$ su
# pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
Did you grant the WRITE_SECURE_SETTINGS permission via ADB?
adb shell pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS
If the device is rooted, you can use a terminal app and do the same thing without ADB
$ su
# pm grant com.joaomgcd.autotools android.permission.WRITE_SECURE_SETTINGS
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Nice! Works now Thank you!
Gesendet von meinem SM-G955F mit Tapatalk
Maybe you can help me with another problem as well. Some text fields (in chrome and most samsung apps) are not recognized as such, which mean that my tasker profiles are not triggered. (I also have some navigation bar tasks to have cursors appear when input is detected.
Is there a way to force the input detection? Everytime the keyboard is open?
Gesendet von meinem SM-G955F mit Tapatalk
The profile you just set-up is not triggered in these cases? If it is triggered, then use the same AutoInput UI Action for your navigation bar cursor task.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
The profile you just set-up is not triggered in these cases? If it is triggered, then use the same AutoInput UI Action for your navigation bar cursor task.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Nope, both are not triggered. I attach two screens to this post (one with triggered and one with not triggered profiles. Non of my modifications that are triggered when input is detected (black navigation bar, cursors and immersive mode toggle) work in the second example.
https://imgur.com/a/Z20Vh
https://imgur.com/a/Ar9Sn
Gesendet von meinem SM-G955F mit Tapatalk
I see exactly what you're talking about. If you tap in the url field, the task is triggered, but tap in the google search field and it's not.
I spent a bit of time watching a logcat today trying to see where the call is made for the keyboard. I'm not a programmer so it's possible I missed it, but it's not obvious over the short bit of time I put into it.
That's what it's going to take is figuring out how the keyboard is called. Honestly, it might be easier to all over in the tasker google group. That's where Pent hangs out. Plus there are some very knowledgeable folks over there.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Toggle Samsung Smart Stay with Tasker

I'd like to know if anyone can help me out with toggling Smasung Smart Stay with Tasker. I haven't found any solution to make it happen (not including outdated SmartTools plugin).
Thanks.
Describe how this is done manually. Is there a shortcut, quick setting toggle or do you have to open an app?
This being a Samsung special feature, it's unlikely there is an intent to do what you want so your probably stuck using a shell action with an input tap command or the auto input plugin.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Yeap, seems like I'll need to use Auto Input (Settings -> Advanced features -> Smart stay (toggle)). I was just hoping there is a working plugin to set it "directly" (without visual actions). An adb/shell command is a good option too ...
allidea said:
Yeap, seems like I'll need to use Auto Input (Settings -> Advanced features -> Smart stay (toggle)). I was just hoping there is a working plugin to set it "directly" (without visual actions). An adb/shell command is a good option too ...
Click to expand...
Click to collapse
A quick search of google before I posted didn't turn up anything. Since I don't use Samsung devices, I have no way to explore for you. The only thought I have is maybe a "settings get/settings put" action might exist. This is a typical way to replace secure settings actions on MM and above. You'd have to explore if that's an option on your device . This redid post should help.
Else, maybe it can be added to the auto tools plugin. You could ask at their forum.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Thanks for your efforts. If I manage to find corresponding SmartStay setting name this could be easily solved.

Categories

Resources