User-agent: Mediapartners-Google Disallow: User-agent: * Disallow: /search Allow: / Sitemap: http://nano7mobile.blogspot.com/sitemap.xml Nano Mobile: tasker
Affichage des articles dont le libellé est tasker. Afficher tous les articles
Affichage des articles dont le libellé est tasker. Afficher tous les articles

[Q] Disable twist camera with tasker? topic






I want to play Just Dance Now Chromecast app on my unlocked/rooted verizon xt1060 DE. The dance moves occasionally set off the camera and I get ejected from the dance room and my daughter starts to win :P

Instead of opening the camera and manually disabling the twist camera feature, I thought maybe rooted tasker could disable twist camera while Just Dance Now (or other apps) is open.

Can this be done? Any help please. Thank you :)






[HOW-TO] Repair Smart Stay + with Tasker (root) topic






INTRO

Hey everyone!

Some of you, like me, loved to use the smart stay feature of Samsung, they disables the dimming of the screen while you are looking at it.

Unfortunately, on the latest builds (CM11 like CM12), this app is broken. What happens is that, when an app is using the camera and another tries to access it, there is a conflict. For example, you are using the camera. If smart stay + tries to see if you are still there, it tries to access the camera which is already in use. And so, the camera app doesn't know what to do and crashes ^^

A way to repair this is to modify directly the app to pause the search when the camera is already in use, but we can't do that, the only one who can is the app dev ^^ Another way is to refuse access to the camera when using the camera app, but not sure how we can do that... The way I did is bypassing this error by killing smart stay + when I use a specific app like the camera ;)


Apps

To do this, you need to install :
  • Tasker : lets you automate stuff depending of the state of the phone, an app, or even the sensors,

  • Secure Settings : lets you change the phone settings directly from Tasker,

  • TaskKill : lets Tasker kill apps using several different methods.

Watch out! Make sure you have the latest version of each, or else bugs may appear!


Lets Start!

So, start by installing as those apps, and install the latest version of Smart Stay + (if you are on CM12, you can't download it from Play Store cause it's incompatible, so you need to use the apk from the Internet). Don't launch Smart Stay +, and don't enable its setting in the accessibility menu on the phone!

First off, we need to give root rights to Secure Settings. Launch the app, then go to the System+ tab and enable it. It will then ask for root rights, accept and we are good to go on.


Kill Switch

Now, launch Tasker and go on the profile tab (if you want to follow everything in english in the app, press the 3 dots in the upper right corner, then Preferences, go all the way down in the UI tab, then change the language). Create a new context using the + icon on the bottom of the app, then chose Application. A list of all your apps will be shown, so you need to chose which app will kill the other one. Here, I want the Camera app to be the "killer", so I chose the apps using the camera (I have Camera Next as well as the stock camera, so I chose both) :


To go back, do not press the X button on the upper right corner! It will erase your config ;) Press the button on the upper left corner to go back to the profiles. The app will show you then a menu where you can enter a new task. Chose New Task and name it "Kill". A new screen will be shown :


Click +, then go into Plugin, and you will see all the plugins. Click on TaskKill, then press on the Pen logo on the upper right corner to config the plugin. Here, you can choose the method to use to kill, and the app. You need to use the Extrem method, or else Smart Stay will keep rebooting... Choose Smart Stay in the list, then click apply. Set the Timeout to 0, then save it by clicking on the upper left corner, and return to the profiles list.
Here is what we should see :



Starting the App

We now need to start smart stay after we finished using the camera, and it's a bit tricky. You can either start the app using Tasker, but it will ask for you to enable the accessibility option of Smart Stay (happens every time), and that is really a bummer... That made me look if we can't directly turn on that setting from Tasker, so that we don't need to open the settings, close the app, etc... And it is! We can change that settings from Tasker using a plugin! Buuuut, the catch is that we need root...

Soooo to enable this setting, you need to long press on the action we just did named "Kill", and add an Exist Task. Next, do a new task named "Start". After, choose the plugin Secure Settings, then press on the Pen logo on the upper right corner to config the plugin. Here, you can choose which action you want. Go to System+ Actions, then press Accessibility Services. A new menu will appear, where you can see the different apps that has an Accessibility Setting. Choose Smartstay+, and make sure the button underneath it is Disabled (so that it disables that setting). Save it, then go back to the profiles list using the button on the upper left corner.
Here is what you should see :



Testing

Tada! Done! You can now launch the camera app without having it bug! To test it out, you can go on each action, like "kill" and press the play button on bottom of the screen. You will see that the notification is closed. Go into the "start" action and press play, you will that icon return! Go try it out using the camera app!


Misc / Other Method

You may ask why I didn't use the Secure Settings in the first place, and the reason is that it doesn't work well. The app isn't totally killed, it's just paused, so we don't know if it still has access to the camera, or if it is draining battery... Using TaskKill ensure us that it isn't running in the background, and so not draining any battery.

For Android L users, you may know that with Smart Lock, you can unlock the phone with your face. To do so, Android uses the stock camera app. This means that you won't have any bugs at all using that unlocking method with Smart Stay, thanks to our bypass :D

Another method that was pointed out by triviums (1+1 forums) is to use Smart Stay EX Pro. It has an option to disable scanning when certain apps are launched. But, after testing this out, it doesn't work as well as my method. There is a missing option in that app which is Smart Timeout. Without this feature, it still scans if the user is there, even though he is typing something or scrolling a page. Smart Stay + has this feature for free :D)

If this could be implemented (cause on the photos on Google Play, the feature is there for PRO users, but after installing you don't see it...), then it may be better (no need to kill and restart app, which takes some battery). If this doesn't work, then the battery you gain from not killing the app is lost in the use of the camera when it isn't necessary...






Tasker not working (enable wifi/disable mobile data at home) topic






For whatever reason, this tasker profile/task is not working and I have no idea why. I want mobile data turned off when my N5 connects to my home wifi network, then I want wifi turned off and mobile data turned on when I leave the range of my home wifi. I found a Tasker profile that people claim to have working, but it doesn't work on mine. If I manually run the tasker task, it works, but if I leave it alone, it does random crap. Sometimes when I get home, wifi and mobile are both turned on and sometimes they're both turned off. They're never in the right state. Any ideas? The Tasker info came from this:



Quote:









Using Tasker (I'm sure Locale could do this as well, but haven't used it):

It's easiest to do this while in range of the network you want to use to control the mobile data setting.

Create a new profile that's active when connected to your WiFi network

From the Profiles tab, touch the "+" at the bottom of the screen to create a new profile.

On the "First Context" menu, select "State"

On "Select State Category", choose "Net", then "Wifi Connected"

Click the magnifying glass next to "SSID" and select your network name.

Leave the MAC, IP, and Invert fields blank.

Touch the back button

Create an Entry task that will be executed when you connect to your network

On the "Enter Task" menu, touch "New Task"

Enter "Data off" in the "New Task Name" (can be anything you'd like, or blank)

On the "Task Edit" screen, click "+" to add an Action

On "Select Action Category", select "Net", then "Mobile Data", then set "Set" to "Off"

Touch back to return to the main screen Profiles tab.

Create an Exit task that will be executed when you disconnect from your network

Long press the task name you created ("Data off"), and select "Add Exit Task"

Touch "New Task", enter name "Data on"

Selection Action Category "Net", then "Mobile Data", and set "Set" to "On"

Touch back to return to the main screen Profiles tab.

Congratulations, You should now have a profile named "Wifi Connected, {your SSID}", with an entry task (green arrow) of "Data On" and exit task (red arrow) of "Data Off". (tap the profile name to show or hide these details).

Repeat for any number of networks; you can reuse the tasks you created by selecting their names on the "Enter Task" menu.










Tasker Integration VIA API topic






Hi All,

I'm trying to use Tasker to build a widget and track usage metrics for MX Player. I'm using Tasker's "send intent" function along with a few extras to launch particular files at particular positions.

What I'd also like to be able to do is detect when MX Player stops playing, save the current file and current position to be resumed by the widget later. From the API it seems that this information is available (refer Result: com.mxtech.intent.result.VIEW) but I can't get Tasker to see this information. I'm not sure if this is an issue with the way MX Player broadcasts or with how Tasker listens (and the associated configuration)

Can anyone confirm that com.mxtech.intent.result.VIEW is a broadcast intent, and if so how I might get Tasker to react to its status changing?

Thanks,
Michael






[Q] Tasker Question topic






Hi and thx for clicking on this thread to help me out, as an not native speaker its hard for me to speak or write english but easy to understand, i hope you guys understand what i mean:

in tasker i set up a task:

1. Launch App
2. wait 10 seconds (for app to start)
3. wait 300ms
4. run shell command (input tap...)
5. goto action number (number 3)

it works perfectly but how can i stop the loop in the app itself?
maybe by shaking phone oder press sleep button on the device?
or what i would prefer by taping on other space on display...

maybe:
if not taped on run shell command (input tap 400 800)
do stop tasker task
else
goto action number (number 3)

i dont know how, can you guys tell me please? i would be so happy :o






Tasker profiles for the GS5 topic






1. Nightly Reboot- Reboots your phone at 4:00am every night ONLY if plugged in to a charger.
https://www.dropbox.com/s/vu6fmike04...t.prf.xml?dl=0

2. Gaming- Increases min CPU freq to 2265600 and max CPU freq to 2457600 while in games. Then as an exit task, sets it back to normal.
https://www.dropbox.com/s/7fz9jocp5f...g.prf.xml?dl=0

3. Nightly Power Saving- From 2:30am till 9:00am turn auto sync off, interrupt mode set to none, notification LED off, background data disabled, background app processes at most 2, and turn on power saving mode. As an exit task, everything gets set back to normal. **REQUIRES SECURE SETTINGS PLUGIN!**
https://www.dropbox.com/s/5sc84a9jmq...l?dl=0

Feel free to share a Tasker task of your own :)






[Q] Tasker Silent on Lollipop? topic






I just upgraded to a Lollipop ROM and I'm wondering is there a way using Tasker to put the phone into silent? (Or the "none" notification setting) Currently all my old profiles just put it on vibrate.

EDIT: Got it. There's an option for "interrupt mode" under audio.