Backup and Reset toggle Tasker - Galaxy S 4 Q&A, Help & Troubleshooting

Hi guys
Hoping someone can help out if there is a way, I am looking to setup a Tasker rule that so that Backup and Reset options only activate while WIFI is connected, unfortunately Tasker does not have a built in option so is there a command I can use in Javascript or Shell via Tasker to activate/deactivate this?
I have tried searching through the Android API but of course can only find commands for disabling/enabling it on the app side not the OS side.
Sent from my GT-I9505 using Tapatalk 4 Beta

Related

Moto x - offline recognition (solved!!!!!)

NEEDS TASKER & (ROOT desired but not necessary)
I don't like Google Now most of the time.
I prefer the likes of Utter!, Eva, AutoVoice and Tasker
which uses offline voice recognition for messages, emails, memos, reminders & events
This saves battery and is usually faster.
I can now go to my desired application from saying "OK Google, Hello" with my Moto X
on standby with or without a data connection......no Google now needed!
I can then run an offline voice rec program such as a Tasker action, Autovoice, Utter or Eva.
In Tasker 2 easy profiles to enter,
For when mobile data on
(profile) event/variable set: variable %WIN value *voice*
(action)
System Volume 0
Kill App: App Voice Search / Use Root : on
System Volume 7
Load App "your app"
Task: Stop
For mobile data off - saves battery (most used as no root needed)
(profile) event/variable set: variable %WIN Value *sorry*
Net / Mobile data: on
Load App "your app"
Task: Stop
Say "OK Google, Hello" to your phone for fastest results
I'm no techie but if this can be improved let me know
regor99 said:
NEEDS TASKER & (ROOT desired but not necessary)
I don't like Google Now most of the time.
I prefer the likes of Utter!, Eva, AutoVoice and Tasker
which uses offline voice recognition for messages, emails, memos, reminders & events
This saves battery and is usually faster.
I can now go to my desired application from saying "OK Google, Hello" with my Moto X
on standby with or without a data connection......no Google now needed!
I can then run an offline voice rec program such as a Tasker action, Autovoice, Utter or Eva.
In Tasker 2 easy profiles to enter,
Click to expand...
Click to collapse
Also need to allow Tasker Accessibility in Settings
regor99 said:
NEEDS TASKER & (ROOT desired but not necessary)
I don't like Google Now most of the time.
I prefer the likes of Utter!, Eva, AutoVoice and Tasker
which uses offline voice recognition for messages, emails, memos, reminders & events
This saves battery and is usually faster.
I can now go to my desired application from saying "OK Google, Hello" with my Moto X
on standby with or without a data connection......no Google now needed!
I can then run an offline voice rec program such as a Tasker action, Autovoice, Utter or Eva.
In Tasker 2 easy profiles to enter,
For when mobile data on
(profile) event/variable set: variable %WIN value *voice*
(action)
System Volume 0
Kill App: App Voice Search / Use Root : on
System Volume 7
Load App "your app"
Task: Stop
For mobile data off - saves battery (most used as no root needed)
(profile) event/variable set: variable %WIN Value *sorry*
Net / Mobile data: on
Load App "your app"
Task: Stop
Say "OK Google, Hello" to your phone for fastest results
I'm no techie but if this can be improved let me know
Click to expand...
Click to collapse
My need to use voice recognition offline because much of the time I am out where there is no reception. I am brand new at tasker so I have a couple of questions about the above profiles.
- My Moto X is not rooted. Does the line < Kill App: App Voice Search / Use Root : on > require root? (It looks like it to a newbie)
- Does the line < Net / Mobile data: on > turn mobile data on? If so, wouldn't that mean that in fact I need reception and data plan?
Thanks to anyone who sees this and can advise me.
Sorry, I don't know much about this but I'm also trying to figure it out. There must be quite a few users out there interested in this. What's annoying is that Google supports offline voice dictation since jelly bean. One would have hoped local commands would work without data (like setting an alarm our composing a message).
I don't seem to follow the instructions above. I don't have tasker but I use llama a lot. I would get tasker if it means I can do this.
What's the significance of the variable?
eldamobo said:
Sorry, I don't know much about this but I'm also trying to figure it out. There must be quite a few users out there interested in this. What's annoying is that Google supports offline voice dictation since jelly bean. One would have hoped local commands would work without data (like setting an alarm our composing a message).
I don't seem to follow the instructions above. I don't have tasker but I use llama a lot. I would get tasker if it means I can do this.
What's the significance of the variable?
Click to expand...
Click to collapse
OK figured this out. It's using tasker to look for the "Sorry we seem to be having data issues" error message during a no-data state.
Then tasker can kick off the offline voice app.
I've got it working and it works with utter OK - you will want to launch the utter shortcut to start listening immediately, so you may need the Autoshortcut plugin.
I think the enable data thing "Net / Mobile data: on" should be off..
In other words:
(profile) event/variable set: variable %WIN Value *sorry*
and Net / Mobile data: off
(action)
Load App "your app"
Task: Stop
I'm not sure why you need the task:stop, but it works with or without.
The accessibility thing is key, because it allows tasker to read the screen contents.
I think this came from this thread on google: https://groups.google.com/forum/#!msg/tasker/tq6dTBhf2g4/sldxn9f0QYQJ
eldamobo said:
OK figured this out. It's using tasker to look for the "Sorry we seem to be having data issues" error message during a no-data state.
Then tasker can kick off the offline voice app.
I've got it working and it works with utter OK - you will want to launch the utter shortcut to start listening immediately, so you may need the Autoshortcut plugin.
I think the enable data thing "Net / Mobile data: on" should be off..
In other words:
(profile) event/variable set: variable %WIN Value *sorry*
and Net / Mobile data: off
(action)
Load App "your app"
Task: Stop
I'm not sure why you need the task:stop, but it works with or without.
The accessibility thing is key, because it allows tasker to read the screen contents.
I think this came from this thread on google: https://groups.google.com/forum/#!msg/tasker/tq6dTBhf2g4/sldxn9f0QYQJ
Click to expand...
Click to collapse
Where are you selecting "Net/Mobile data: off"? Is it a second profile? I can't seem to find that option. Also when you mean load app "your app"...does that mean the voice app? I use Aoutovoice for all my voice control stuff. I have everything running great with Tasker, autovoice, and google now api...but really want the offline touchless.
Thanks
This is where I find taskers ui a bit confusing. You want to set two conditions for the profile.
One is the sorry message, the other is the state that you have no data. To do this long press on the profile condition you have (i assume it's the win variable one) then add another condition.
Yes "your app" is whatever offline app you use. I use utter now, but auto voice should work too, just fire the recognize command?
You mention you have auto voice working with the Google now api, does that mean you're rooted using the xposed framework module?
Keep in mind that overall, this approach is a clever hack. I'm not sure what the implications are of having Tasker setup as an accessibility service, but that's the price one must pay.
eldamobo said:
This is where I find taskers ui a bit confusing. You want to set two conditions for the profile.
One is the sorry message, the other is the state that you have no data. To do this long press on the profile condition you have (i assume it's the win variable one) then add another condition.
Yes "your app" is whatever offline app you use. I use utter now, but auto voice should work too, just fire the recognize command?
You mention you have auto voice working with the Google now api, does that mean you're rooted using the xposed framework module?
Keep in mind that overall, this approach is a clever hack. I'm not sure what the implications are of having Tasker setup as an accessibility service, but that's the price one must pay.
Click to expand...
Click to collapse
I know to long press and add, but I'm not finding where the no data state is. I found mobile networks, but it only has 5 boxes with 2g,3g,3g-HSPA,4g, and invert. Would it be check all?
Yes, I'm rooted running xposed framework. With the google now api, I can use any command I have setup, with the screen of by saying "OK GOOGLE,...".
Thanks
---------- Post added at 02:28 PM ---------- Previous post was at 02:25 PM ----------
That was it! I got it! Check all boxes...the invert makes it data off. Duh.
---------- Post added at 02:33 PM ---------- Previous post was at 02:28 PM ----------
I got it! Check all and invert will make it data off. You do have to say something right after "OK GOOGLE" for it to try and then it opens the Autovoice voice search box.
Cool. I don't use data so I just toggle off WiFi disconnected
Right now tho one disappointment is tasker is consuming 50 megs of ram
eldamobo said:
Cool. I don't use data so I just toggle off WiFi disconnected
Right now tho one disappointment is tasker is consuming 50 megs of ram
Click to expand...
Click to collapse
Solve this - shut down tasker and all processes, and restart. ~15meg usage.
This sounds great and all because I like using Utter. But how do we know if Utter is using the low power X8 speech recognition core or the S4 cores? Is there any way to keep a log of that info?
Sent from my XT1053 using xda app-developers app
overthatscreen said:
This sounds great and all because I like using Utter. But how do we know if Utter is using the low power X8 speech recognition core or the S4 cores? Is there any way to keep a log of that info?
Sent from my XT1053 using xda app-developers app
Click to expand...
Click to collapse
The touchless control is what opens google now. The googlenow api then takes over if its linked with autovoice/tasker. So, it's not actually running until touchless control activates it.
Sent from my XT1060 using xda app-developers app
So you're saying the Google Now api knows to use the low power CPU core?
Sent from my XT1053 using Tapatalk
No, the touchless control app uses the low power processor. When touchless control activates Google now, then the googlenow.api activates whatever app its tied to
Sent from my XT1060 using xda app-developers app
So this workaround, does it use the low power core?
Sent from my XT1053 using Tapatalk
overthatscreen said:
So this workaround, does it use the low power core?
Sent from my XT1053 using Tapatalk
Click to expand...
Click to collapse
The low power cores are only used while the screen is out listening for the hotword. As soon as touchless control detects the hotword, the main cores are fired up anyway, as they are needed for the much more advanced tasks like continuous speech recognition and the subsequent search. So it doesn't matter whether it's Google Now or any other app that is started by touchless control - the low power core is only used to detect the hotword. So in other words: Yes, the low power core is still used since touchless control is still doing the hotword recognition.
OK sounds good then. I just wanted to clarify that. I hated using Utter on the Galaxy S4 with the screen off because it always killed the battery. I'll give this a shot and see how it turns out.
Sent from my XT1053 using Tapatalk
If you have root, you could use the Xposed module GoogleOfflineVoice to force offline voice recognition.
sent via tapatalk
http://forum.xda-developers.com/showthread.php?t=2634630
Sent from my XT1058 using XDA Premium 4 mobile app
---------- Post added at 05:14 PM ---------- Previous post was at 05:14 PM ----------
Just noticed eksasol typed that... Oh well there's the link... Works perfect here
Sent from my XT1058 using XDA Premium 4 mobile app
I need to try this, but reversing, when I don't have Mobile Data On, active Utter

Need help with setting up Tasker for Greenify no root

Hi guys. I don't know if you are familiar with the non root version of greenify, but basically you press the hibernation button and the process goes on by itself.
I tried using tasker to auto hibernate upon display off but it doesn't seem to work. It does indeed start up the hibernation process but it doesn't force close the apps as its intended to do. Can anyone help?
Sent from my LG-D802 using XDA Premium 4 mobile app
vPro97 said:
Hi guys. I don't know if you are familiar with the non root version of greenify, but basically you press the hibernation button and the process goes on by itself.
I tried using tasker to auto hibernate upon display off but it doesn't seem to work. It does indeed start up the hibernation process but it doesn't force close the apps as its intended to do. Can anyone help?
Sent from my LG-D802 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Dumb question, but did you add tasker to the exception list?
super114 said:
Dumb question, but did you add tasker to the exception list?
Click to expand...
Click to collapse
Yes I did. I doubt the problem lies within Tasker as such but more the fact that the force closure of apps can't proceed when screen is off. Tasker does its job well.
Sent from my LG-D802 using XDA Premium 4 mobile app
Make sure u go into accessibility under settings and check the box for tasker if not tasker won't be able to be automatic on stock rom

[Q] Lock screen camera shotcut

Hi,
While using the camera shortcut from lock screen, I noticed that location tag was turned off.
There is no option to turn it on again from the camera app, using the shortcut.
Using the usual camera app from home screen does however give you the option to save the location tag.
Why is this happening? Does it have something to do with access not provided to GPS without unlocking the device first?
Any way to bypass this?
Thanks! :good:
I can't help you with your question however I can say that your phone doesn't need to be unlocked for GPS to function.
Apps such as Facebook and Google now regularly check your location. You can do it manually on android device manager too.
Sent from my SM-G900F using XDA Free mobile app
I think this is a security measure.As you can access the camera without unlock your phone ,that would be quite dangerous.
我從使用 Tapatalk 的 SM-G900F 發送

immersive mode - active edge (and remapping) still works on lockscreen

Thought this might help some people get a little extra use out of a Pixel 2 feature: I'm using Custom Quick Settings to hide the nav bar and of course active edge stopped working, but I noticed it still functioned on the lockscreen. Squeeze-launching the assistant from the lockscreen is pointless to me because I still have to fingerprint- or pattern-unlock my phone before it will tell me anything, but I installed Button Mapper and although there's some warning in its description about not working while the phone is off, it does actually detect squeezes on both the ambient display screen and lockscreen.
I now have squeeze set up to toggle flashlight, since that's something I almost always need to do when the phone is locked and toggling it through quick settings is kind of annoying. This way I don't even have to look at the screen. But the point of this post is, if there's any task you want to be able to trigger while your phone is off, you can use squeeze to do that even if you have full-time immersive mode on.
I get permission denied when trying to type the script on my PC using ADB. How did you get around that?
Sent from my Pixel 2 XL using XDA Labs
sharkie405 said:
I get permission denied when trying to type the script on my PC using ADB. How did you get around that?
Sent from my Pixel 2 XL using XDA Labs
Click to expand...
Click to collapse
What script and where? Please!!!
Sent from my Pixel 2 XL using Tapatalk
bryantjopplin said:
What script and where? Please!!!
Sent from my Pixel 2 XL using Tapatalk
Click to expand...
Click to collapse
"Script" was the wrong word to use. When I toggle the "Customize" button to attempt to use Active Edge in the app Button Mapper, it tells me to use my PC and adb to execute this command:
Code:
adb shell sh /data/data/ flar2.homebutton/keyevent.sh
When I attempt to do so, I get "Permission Denied."
I've used adb to allow the Custom Navigation Bar app to make changes and it works just fine with that app.
sharkie405 said:
"Script" was the wrong word to use. When I toggle the "Customize" button to attempt to use Active Edge in the app Button Mapper, it tells me to use my PC and adb to execute this command:
Code:
adb shell sh /data/data/ flar2.homebutton/keyevent.sh
When I attempt to do so, I get "Permission Denied."
I've used adb to allow the Custom Navigation Bar app to make changes and it works just fine with that app.
Click to expand...
Click to collapse
Adb shell only works with root right?
Sent from my Nexus 6 using Tapatalk
EDIT: NEVERMIND I found it.
---------- Post added at 09:41 PM ---------- Previous post was at 09:38 PM ----------
Shell doesnt require root, i believe /data does tho
sharkie405 said:
"Script" was the wrong word to use. When I toggle the "Customize" button to attempt to use Active Edge in the app Button Mapper, it tells me to use my PC and adb to execute this command:
Code:
adb shell sh /data/data/ flar2.homebutton/keyevent.sh
When I attempt to do so, I get "Permission Denied."
I've used adb to allow the Custom Navigation Bar app to make changes and it works just fine with that app.
Click to expand...
Click to collapse
That's what I figured. Which brings me back to how the OP managed to get the Button Mapper app working with active Edge on a not-yet-rootable Pixel 2 XL...?
Sent from my Pixel 2 XL using XDA Labs
Nice find, I can confirm this works. I have mine mapped to turn on the flashlight also, much more useful for me. Never really use it to activate google, especially since with the new "Hey google" hotword its much more natural to say that now.
KHANrad_SIN said:
Nice find, I can confirm this works. I have mine mapped to turn on the flashlight also, much more useful for me. Never really use it to activate google, especially since with the new "Hey google" hotword its much more natural to say that now.
Click to expand...
Click to collapse
How did you get the ADB command to work on your PC? Did it just work for you? See the last two posts above.
Sent from my Pixel 2 XL using XDA Labs
Okay, I think I figured it out. I went into application settings and went into the button mapper permissions and gave it permission for all three. I don't see why that would have to be the case, but after doing that I tried putting in the ADB command again and it worked. Now I have active Edge to turn on and off the flashlight. Sweet!
Sent from my Pixel 2 XL using XDA Labs
sharkie405 said:
Okay, I think I figured it out. I went into application settings and went into the button mapper permissions and gave it permission for all three. I don't see why that would have to be the case, but after doing that I tried putting in the ADB command again and it worked. Now I have active Edge to turn on and off the flashlight. Sweet!
Sent from my Pixel 2 XL using XDA Labs
Click to expand...
Click to collapse
Didn't have permission to access, makes since
Sent from my Nexus 6 using Tapatalk
I'm getting permission denied to when I run The "adb shell sh /data/data/ flar2.homebutton/keyevent.sh" command in ADB. I also went to App Permissions and check all three items: Camera, Phone and Storage. Also went to the Advanced section and allowed App to modify system settings. Still doesn't work. Any help would be appreciated.
JeffBea said:
I'm getting permission denied to when I run The "adb shell sh /data/data/ flar2.homebutton/keyevent.sh" command in ADB. I also went to App Permissions and check all three items: Camera, Phone and Storage. Also went to the Advanced section and allowed App to modify system settings. Still doesn't work. Any help would be appreciated.
Click to expand...
Click to collapse
Remove the spaces between data/flar2 to resolve the permissions denied message. The rest: I can't get it to work either.
enzeem2010 said:
Remove the spaces between data/flar2 to resolve the permissions denied message. The rest: I can't get it to work either.
Click to expand...
Click to collapse
Thanks, that worked.
I can confirm that this does work with phone in lock screen as well. It also works with the phone unlocked.
This works great. Love it!
Ok, figured it out too. I'm averse to allowing Google to follow my everything, so I hesitated at the location tracking permissions needed for Google Assistant, but once I followed through, it finally worked.

DND when driving

Hi,
I am using a 6T with latest version of Android.
I installed the driving detective, but it is not automatically switching on the dnd function when i am driving.
Checked the settings and it is on auto detect.
Anybody have a suggestion, or a working app. I don't want to manually switch things on and off all the time.
Thx
dennisb71 said:
Hi,
I am using a 6T with latest version of Android.
I installed the driving detective, but it is not automatically switching on the dnd function when i am driving.
Checked the settings and it is on auto detect.
Anybody have a suggestion, or a working app. I don't want to manually switch things on and off all the time.
Thx
Click to expand...
Click to collapse
I use Tasker for this.
Downloaded! Looks like an interesting tool!
Does the Tasker put the phone in silent 100 percent. I think it didn't do that before because of that slider button feature.
Sent from my ONEPLUS A6013 using Tapatalk
Latest version of the AA work really well on my MZD. DND never been triggerd if i pluged in the cable and wait for AA to start itself.
Sent from my ONEPLUS A6013 using Tapatalk
Doesn't the "do not disturb" feature do this? It's built in.
dennisb71 said:
Hi,
I am using a 6T with latest version of Android.
I installed the driving detective, but it is not automatically switching on the dnd function when i am driving.
Checked the settings and it is on auto detect.
Anybody have a suggestion, or a working app. I don't want to manually switch things on and off all the time.
Thx
Click to expand...
Click to collapse

Categories

Resources