[TASKER] Lollipop Battery Saver Homescreen Toggle - No plug-ins - Miscellaneous Android Development

Hello, today I installed Tasker as I saw that you can do a plenty of things, as long as you have imagination. As you know, lollipop has a built-in battery saver and I wanted to have a toggle for this option without having to install extra applications or plug-ins, but you have to be rooted.
For those who haven't Tasker, they can buy it from here.
For those who have it installed, let's create a task and a variable first (make sure you have unchecked the Beginner Mode in Preferences).
1) In tasks tap + button and name it as you want
2) Then tap + button again to create an action
3) Select Variables -> Variables Add -> %LPOWER with value 0 (you might have to press a button that looks like a shuffle button and then insert 0)
4) Tap + then Task -> If and enter %LPOWER Maths:equals 0
5) Tap + then Code -> Run Shell and enter "settings put global low_power 1 and check use root
6) Tap + then Variables -> Variables Set -> %LPOWER with value 1
7) Tap + then Task -> Else
8) Tap + then Code -> Run Shell and enter "settings put global low_power 0 and check use root
9) Tap + then Variables -> Variables Set -> %LPOWER with value 0
10) Tap + then Task -> End If
In the end, you can choose an icon for the task and add it as a widget on your homescreen
Attention: do not try to use it will charging. It won't work as battery saver works only while discharging

Related

cycle through brightness levels

Hi eveybody.
i'm looking for a little piece of software which i can use to cycle through the different brightness levels. Just as i can do it with the htc home plugin.
but this plugin is too big for me. i'd love to put it into wisbars system tray or make have it in any other home plugin.
i tried the search but didn't find anything.
hopefully i just tried the wrong terms for my search and you can tell me lots of applications
thanks...
i've tried the search on this many times. would love to get that HTC Home plugin brightness icon mapped to a hardware button. no luck yet.
what a shame...
anybody else? any ideas?
Try this:
http://forum.xda-developers.com/showthread.php?t=379270
thanks!
will try....
hm... seems i'm too stupid to do it right. i don't know how i need to configure and which program i should start to cycle.
can you help m with this?
MVbklight for polaris:
- install MVbklight.1.4.1.cab
- unzip and copy to program folder (\Program Files\MalVal\MVBklight\)
- i have problems with today plugin, then delete MVBklight.dll after disable it in Settings>Today
- run Cfg.exe (MVBklCfg from Programs)
- on the second tab, first item language (set MUI), next OK
- run Cfg again
- on the first tab set "Settings for" to Manual, OK
- run Cfg again
- set "Device type" to WM5/WM6
- set "Battery DeviceIoControl code" to 0x7
- set "Power DeviceIoControl code" to 0x8
- Apply and OK
Now for cycle backlight run (from program folder):
Cmd.exe 0 2 5 7 10
or try Bklight_cycle.lnk
(cycle through 2 5 7 10, for other cycle try different numbers between 0-10)
SPB Mobile Shell 2 has what you're looking for: When the mobile shell comes up there are three screens. On mine, the brightness icon, a yellow light bulb with a dashed line below it, is in the very top left of the center screen, the one with all the program and setting icons, and allows you to cycle thru brightness levels while you're using it. I love it. I couldn't find the icon anywhere else in the shell, tho... Good luck.
Try to find ComManagerPlus developed by me
This programm can do this thing and many more. Freeware. Link later.
alladdin said:
MVbklight for polaris:
- install MVbklight.1.4.1.cab
- unzip and copy to program folder (\Program Files\MalVal\MVBklight\)
- i have problems with today plugin, then delete MVBklight.dll after disable it in Settings>Today
- run Cfg.exe (MVBklCfg from Programs)
- on the second tab, first item language (set MUI), next OK
- run Cfg again
- on the first tab set "Settings for" to Manual, OK
- run Cfg again
- set "Device type" to WM5/WM6
- set "Battery DeviceIoControl code" to 0x7
- set "Power DeviceIoControl code" to 0x8
- Apply and OK
Now for cycle backlight run (from program folder):
Cmd.exe 0 2 5 7 10
or try Bklight_cycle.lnk
(cycle through 2 5 7 10, for other cycle try different numbers between 0-10)
Click to expand...
Click to collapse
GREAT!
Thanks a lot!!!
Works wonderful.
you made me happy
I copied the .lnk file to the Start Menu -> Programs folder and I mapped it to a hardware button. Works like a champ.
1. Unpack CommManagerPlus_0.7.5.ZIP.
2. Install CommManagerPlus.cab from WM5WM6 directory on device.
3. Soft Reset device.
4. Place files from directory Lnk on device. (i.e \Programm Files\CommManagerPlus\)
5. Run CommManagerPlus.
6. Go to the Brightness tab.
7. In Brigtness Registry Section select - BackLight.
8. In ACBrightness or Single key select – ACBrightness
9. In Battery brightness key select – Brightness
10. In Mode Section check DeviceIoControl.
11. In dwIoControlCodeAC enter 8
12. In dwIoControlCodeBatt enter 7
13. InBrightness min and max set step to 2.
14. In min enter 1
15. In max enter 10
16. Tap Ok.
17. Tap Cancel.
18. Use brigtness.lnk installed from Lnk as you want.
19. Check another *.lnk
i must say that it worked like a champ (see my previous post) but I found my device a bit sluggish so I ended up removing MVBklight. How's CommManagerPlus performance wise?
hbc said:
1. Unpack CommManagerPlus_0.7.5.ZIP.
2. Install CommManagerPlus.cab from WM5WM6 directory on device.
3. Soft Reset device.
4. Place files from directory Lnk on device. (i.e \Programm Files\CommManagerPlus\)
5. Run CommManagerPlus.
6. Go to the Brightness tab.
7. In Brigtness Registry Section select - BackLight.
8. In ACBrightness or Single key select – ACBrightness
9. In Battery brightness key select – Brightness
10. In Mode Section check DeviceIoControl.
11. In dwIoControlCodeAC enter 8
12. In dwIoControlCodeBatt enter 7
13. InBrightness min and max set step to 2.
14. In min enter 1
15. In max enter 10
16. Tap Ok.
17. Tap Cancel.
18. Use brigtness.lnk installed from Lnk as you want.
19. Check another *.lnk
Click to expand...
Click to collapse
That was (almost!) exactly what I was looking for, now mapped to the pointless (for me) Orbit's Windows button.
I did change a couple of things so it mimics the way the button in the HTC Home plugin works - changed STEP to 3, and MAX to 11 (just like Spinal Tap!)
Cheers.
hbc said:
1. Unpack CommManagerPlus_0.7.5.ZIP.
2. Install CommManagerPlus.cab from WM5WM6 directory on device.
3. Soft Reset device.
4. Place files from directory Lnk on device. (i.e \Programm Files\CommManagerPlus\)
5. Run CommManagerPlus.
6. Go to the Brightness tab.
7. In Brigtness Registry Section select - BackLight.
8. In ACBrightness or Single key select – ACBrightness
9. In Battery brightness key select – Brightness
10. In Mode Section check DeviceIoControl.
11. In dwIoControlCodeAC enter 8
12. In dwIoControlCodeBatt enter 7
13. InBrightness min and max set step to 2.
14. In min enter 1
15. In max enter 10
16. Tap Ok.
17. Tap Cancel.
18. Use brigtness.lnk installed from Lnk as you want.
19. Check another *.lnk
Click to expand...
Click to collapse
hi, what else does it do? you said many more... do you have a link or other more elaborate description pls?

[Q] Toggle Lock Screen METHOD?

Android ICS (stock) allows you to choose between several lock screen methods (None, Slide, Face Unlock, Pattern, PIN and Password). Is there a way to toggle between these methods quickly? Most of the time, I like to have no lock screen at all, but if I need to plug it in to charge where I can't keep an eye on it, I like to set a PIN unlock so that a casual passerby (co-worker; family member) is prevented from just casually exploring my phone. The problem is that this is tedious and slow. I'd like to set a master PIN and then just have a one-click way to go between PIN unlock and none at all. Does anyone know of a way to do this?
Motorola Droid Razr Maxx, ICS 4.0.4.
I've been looking for a way to do this for a long time now! "No Lock Screen" almost works, but it's flaky for me on Jelly Bean and it doesn't really toggle between methods... it just toggles the lock screen altogether.
I was wondering the same thing. I have been looking for an app that would allow a fast toggle or an auto setting like when I leave work or home the lock screen goes away while driving.
Finally! I was able to achieve this functionality with 'Tasker' and 'Secure Settings'. I don't think it's doable without root access though.
I now have a shortcut (technically a widget) on my home screen with an icon that looks like a padlock and the label, "Lock".
When tapped in its initial state, it enables the PIN lock with a password set when the action is created in 'Secure Settings', the icon changes to a key, and the label changes to "Unlock".
When tapped again, the icon/label revert and the PIN lock is removed.
It works perfectly.
EDIT: If anyone's interested, I'll do a quick how-to.
Yes, please, would you kindly post a step-by-step. And write it like you're training a herd of idiots, if you would please? Thank you.
Sent from my DROID RAZR using Tapatalk 2
Sorry it's taken me so long to reply! I'm busy as hell lately. I'll post the basic steps. Let me know if you need me to clarify anything or if it doesn't work.
Notes/Warnings:
When using Secure Settings's 'Password/Pin feature, always use a password you'll remember to avoid locking yourself out.
These steps don't include the icon change effect on the home screen shortcut I described in my last post. The label will change, however. It's easy enough to add actions to change the icon.
I can't see how this could cause any problems or damage but, if it does, I'm not liable!
Requirements:
Root
Tasker
Secure Settings
Process:
Open Secure Settings and make sure 'Device Administrator' is enabled (checked) in the app's preferences.
Open Tasker and go to the 'Tasks' tab. Add a task (green plus icon) named "Lock"
Tap the 'Add Action' button (blue plus icon), and select the 'Task' category
Add an 'If' statement. Set the name (text field on left) to "%Locked", the comparator (center button) to 'Equal To' (a tilde ~) and the value to "0". <- That's a zero.
Add another action: Tasker > Set Widget Label. Set the 'Name' field to "Lock" and the 'Label' field to "Unlock". You can leave 'If' unchecked here.
Add another action: Variable > Variable Set. Set the 'Name' field to "%Locked" and the 'To' field to "1" <- That's a one. Nothing else should be checked off.
Add another action: Plugin > Secure Settings. Click the 'Edit' button next to 'Configuration.'
Select 'Password/Pin' and make sure the button at the top says 'Enabled' (if it doesn't, tap it.)
Make sure 'Device Admin Enabled' is checked off and enter your password or pin (your choice - either works.)
Click the "Save' icon (floppy disk) and then the green check mark icon
Add an action: Task > Else. Leave 'If' unchecked.
Add anaction: Tasker > Set Widget Label. Set the 'Name' field to "Lock" and the 'Label' field to "Lock". Leave 'If' unchecked.
Add an action: Variable > Variable Set. Set the 'Name' field to "%Locked" and the 'To' field to "0" <- That's a zero. Nothing else should be checked off.
Add an action: Plugin > Secure Settings. Click the 'Edit' button next to 'Configuration.'
Select 'Password/Pin' and make sure the button at the top says 'Disabled' (if it doesn't, tap it.)
Make sure 'Device Admin Enabled' is checked off. The 'Enter password once before unlocking' check box is personal preference. If you check it off, you'll be prompted for your password when you toggle the lock screen off. I personally think it would be overkill.
Click the "Save' icon (floppy disk) and then the green check mark icon
Add an action: Task > End If.
Click the 'Image Select' button. (It's the colorful, single-icon button above the play button icon at the bottom right of the screen.)
Select an image to use for the home screen icon
Click the green check mark icon. The task is now saved and you should be back in the 'Tasks' tab. Hit the green check mark here too.
Now all you have to do is add the Tasker > Task > Lock widget to your home screen.
You're done! Test it out.
I hope this helps. Again, let me know if you run into any issues.
derrikc said:
Sorry it's taken me so long to reply! I'm busy as hell lately. I'll post the basic steps. Let me know if you need me to clarify anything or if it doesn't work.
Notes/Warnings:
When using Secure Settings's 'Password/Pin feature, always use a password you'll remember to avoid locking yourself out.
These steps don't include the icon change effect on the home screen shortcut I described in my last post. The label will change, however. It's easy enough to add actions to change the icon.
I can't see how this could cause any problems or damage but, if it does, I'm not liable!
Requirements:
Root
Tasker
Secure Settings
Process:
Open Secure Settings and make sure 'Device Administrator' is enabled (checked) in the app's preferences.
Open Tasker and go to the 'Tasks' tab. Add a task (green plus icon) named "Lock"
Tap the 'Add Action' button (blue plus icon), and select the 'Task' category
Add an 'If' statement. Set the name (text field on left) to "%Locked", the comparator (center button) to 'Equal To' (a tilde ~) and the value to "0". <- That's a zero.
Add another action: Tasker > Set Widget Label. Set the 'Name' field to "Lock" and the 'Label' field to "Unlock". You can leave 'If' unchecked here.
Add another action: Variable > Variable Set. Set the 'Name' field to "%Locked" and the 'To' field to "1" <- That's a one. Nothing else should be checked off.
Add another action: Plugin > Secure Settings. Click the 'Edit' button next to 'Configuration.'
Select 'Password/Pin' and make sure the button at the top says 'Enabled' (if it doesn't, tap it.)
Make sure 'Device Admin Enabled' is checked off and enter your password or pin (your choice - either works.)
Click the "Save' icon (floppy disk) and then the green check mark icon
Add an action: Task > Else. Leave 'If' unchecked.
Add anaction: Tasker > Set Widget Label. Set the 'Name' field to "Lock" and the 'Label' field to "Lock". Leave 'If' unchecked.
Add an action: Variable > Variable Set. Set the 'Name' field to "%Locked" and the 'To' field to "0" <- That's a zero. Nothing else should be checked off.
Add an action: Plugin > Secure Settings. Click the 'Edit' button next to 'Configuration.'
Select 'Password/Pin' and make sure the button at the top says 'Disabled' (if it doesn't, tap it.)
Make sure 'Device Admin Enabled' is checked off. The 'Enter password once before unlocking' check box is personal preference. If you check it off, you'll be prompted for your password when you toggle the lock screen off. I personally think it would be overkill.
Click the "Save' icon (floppy disk) and then the green check mark icon
Add an action: Task > End If.
Click the 'Image Select' button. (It's the colorful, single-icon button above the play button icon at the bottom right of the screen.)
Select an image to use for the home screen icon
Click the green check mark icon. The task is now saved and you should be back in the 'Tasks' tab. Hit the green check mark here too.
Now all you have to do is add the Tasker > Task > Lock widget to your home screen.
You're done! Test it out.
I hope this helps. Again, let me know if you run into any issues.
Click to expand...
Click to collapse
Finally managed to come and thank you! I've been looking for some way to do this for ages. I've now got 2 widgets one to disable the pattern lock and just have the key guard (i use this most of the time) and one to disable the key guard all together (when I know I want instant access to my homescreen.
Thanks again!
Thank you! It works perfectly! I just installed Tasker and am pretty overwhelmed by all the possibilities. For now, I exported the Lock task to an app and have NFC Task Launcher launch it upon connecting or disconnecting from my home network, hoping to make it more foolproof by using Tasker for this as well.
derrikc said:
Sorry it's taken me so long to reply! I'm busy as hell lately. I'll post the basic steps. Let me know if you need me to clarify anything or if it doesn't work.
Notes/Warnings:
When using Secure Settings's 'Password/Pin feature, always use a password you'll remember to avoid locking yourself out.
These steps don't include the icon change effect on the home screen shortcut I described in my last post. The label will change, however. It's easy enough to add actions to change the icon.
I can't see how this could cause any problems or damage but, if it does, I'm not liable!
Requirements:
Root
Tasker
Secure Settings
Process:
Open Secure Settings and make sure 'Device Administrator' is enabled (checked) in the app's preferences.
Open Tasker and go to the 'Tasks' tab. Add a task (green plus icon) named "Lock"
Tap the 'Add Action' button (blue plus icon), and select the 'Task' category
Add an 'If' statement. Set the name (text field on left) to "%Locked", the comparator (center button) to 'Equal To' (a tilde ~) and the value to "0". <- That's a zero.
Add another action: Tasker > Set Widget Label. Set the 'Name' field to "Lock" and the 'Label' field to "Unlock". You can leave 'If' unchecked here.
Add another action: Variable > Variable Set. Set the 'Name' field to "%Locked" and the 'To' field to "1" <- That's a one. Nothing else should be checked off.
Add another action: Plugin > Secure Settings. Click the 'Edit' button next to 'Configuration.'
Select 'Password/Pin' and make sure the button at the top says 'Enabled' (if it doesn't, tap it.)
Make sure 'Device Admin Enabled' is checked off and enter your password or pin (your choice - either works.)
Click the "Save' icon (floppy disk) and then the green check mark icon
Add an action: Task > Else. Leave 'If' unchecked.
Add anaction: Tasker > Set Widget Label. Set the 'Name' field to "Lock" and the 'Label' field to "Lock". Leave 'If' unchecked.
Add an action: Variable > Variable Set. Set the 'Name' field to "%Locked" and the 'To' field to "0" <- That's a zero. Nothing else should be checked off.
Add an action: Plugin > Secure Settings. Click the 'Edit' button next to 'Configuration.'
Select 'Password/Pin' and make sure the button at the top says 'Disabled' (if it doesn't, tap it.)
Make sure 'Device Admin Enabled' is checked off. The 'Enter password once before unlocking' check box is personal preference. If you check it off, you'll be prompted for your password when you toggle the lock screen off. I personally think it would be overkill.
Click the "Save' icon (floppy disk) and then the green check mark icon
Add an action: Task > End If.
Click the 'Image Select' button. (It's the colorful, single-icon button above the play button icon at the bottom right of the screen.)
Select an image to use for the home screen icon
Click the green check mark icon. The task is now saved and you should be back in the 'Tasks' tab. Hit the green check mark here too.
Now all you have to do is add the Tasker > Task > Lock widget to your home screen.
You're done! Test it out.
I hope this helps. Again, let me know if you run into any issues.
Click to expand...
Click to collapse
Thank you so much!!
I've been looking for something like this on Play Store for ages.
It worked perfectly for me without root access
omg, thanks so much, it works flawlessly sooo far... that was worth the 3$ for tasker... I hope it stays working perfetly. would there be a way to add another task to even disable the screen completely so that I land on the homescreen after pressing the powerbutton (without the need of the swype to unlock over the lockscreen)? so that I'd have 3 statuses:
1. pin based lock
2. lock but without pin (e.g. when carrying it in the bag so that there's no accidentally phone call done)
3. no lock at all (e.g. when it's laying on the table at home)
EDIT: I've done it myself:
here it is: http://pastebin.com/Vy573bn8 save it to XML and then import it. you might need to adopt your own password in secure settings plugin.
what it does is:
you can add the widget to your homescreen and toggle though the following states:
1. pin based lock
2. lock but without pin (e.g. when carrying it in the bag so that there's no accidentally phone call done) --> so you need to swype over the lockscreen to unlock
3. no lock at all (e.g. when it's laying on the table at home) --> power button displays the homescreen immediately
according to the 3 states, the widget always shows the actual state in its label, e.g. "PIN lock" as label means, that currently the phone is locked by PIN. further, the image of the widget changes itself, between
1. an key-icon
2. an hand-icon (which means you need to swype)
3. an unlock-icon
Hi all...! Great post...! Thanks!!
Is there a way to do this but with a pattern lock instead of using a pin?
Thanks!
Chale
Yeah you can do it by using secure settings plugin, but pattern is only possible if you are rooted
see here http://www.intangibleobject.com/home under helper actions
i've copied derrikc's method (don't have root) and it works just fine.
However is it possible to have the PIN not totally removed (i.e. temporarily disabled) so that it returns on boot? Currently if the task is left at unlocked then it remains unsecure at boot. I have tried setting up a tasker boot startup profile to always set a PIN at boot but it takes at least 10 seconds to actually take effect. To avoid this delay I could also run a tasker profile at shutdown to set a PIN but this is obviously bypassed if the battery is simply pulled, surely there's a better way?
I'm currently using a stock Galaxy S4, my old root S2 had Jkay's app which modified the systemui/framework to allow a toggle to do exactly this.. by default the PIN/pattern lock screen was enabled on boot but could be toggled on/off and would automatically appear on next boot
derrikc said:
Sorry it's taken me so long to reply! I'm busy as hell lately. I'll post the basic steps. Let me know if you need me to clarify anything or if it doesn't work.
I hope this helps. Again, let me know if you run into any issues.
Click to expand...
Click to collapse
Thanks!
You are the best!
Does anybody knows how to do this with pattern instead of pin??
Thanks
Sent from my Nexus 4 using xda app-developers app
Thanks for this tutorial
Task:
Pattern On/off (8) A1: Secure Settings [ Configurationattern Lock Toggle Package:com.intangibleobject.securesetti*ngs.plugin Name:Secure Settings ]
Task for Toggle widget ( slide/pattern)
Toggle Pattern On /off (9) A1: Variable Add [ Name:%TOGGLE Value:1 Wrap Around:2 ] A2: Secure Settings [ Configurationattern Lock Enabled Package:com.intangibleobject.securesetti*ngs.plugin Name:Secure Settings ] If [ %TOGGLE = 0 ] A3: Set Widget Icon [ Name:Toggle Pattern On /off Icon:ipack:greenfloralhd:lock5 ] If [ %TOGGLE = 0 ] A4: Set Widget Label [ Name:Toggle Pattern On /off Label:Lock on ] If [ %TOGGLE = 0 ] A5: Secure Settings [ Configurationattern Lock Disabled Package:com.intangibleobject.securesetti*ngs.plugin Name:Secure Settings ] If [ %TOGGLE = 1 ] A6: Set Widget Icon [ Name:Toggle Pattern On /off Icon:ipackrangejellyhd:lock3 ] If [ %TOGGLE = 1 ] A7: Set Widget Label [ Name:Toggle Pattern On /off Label:Lock off ] If [ %TOGGLE = 1 ]
I found this video with instructions on how to enable the lock pattern instead but I need it simplified because I have no idea how to enter this information.
phillysdon04 said:
Thanks for this tutorial
Task:
Pattern On/off (8) A1: Secure Settings [ Configurationattern Lock Toggle Package:com.intangibleobject.securesetti*ngs.plugin Name:Secure Settings ]
Task for Toggle widget ( slide/pattern)
Toggle Pattern On /off (9) A1: Variable Add [ Name:%TOGGLE Value:1 Wrap Around:2 ] A2: Secure Settings [ Configurationattern Lock Enabled Package:com.intangibleobject.securesetti*ngs.plugin Name:Secure Settings ] If [ %TOGGLE = 0 ] A3: Set Widget Icon [ Name:Toggle Pattern On /off Icon:ipack:greenfloralhd:lock5 ] If [ %TOGGLE = 0 ] A4: Set Widget Label [ Name:Toggle Pattern On /off Label:Lock on ] If [ %TOGGLE = 0 ] A5: Secure Settings [ Configurationattern Lock Disabled Package:com.intangibleobject.securesetti*ngs.plugin Name:Secure Settings ] If [ %TOGGLE = 1 ] A6: Set Widget Icon [ Name:Toggle Pattern On /off Icon:ipackrangejellyhd:lock3 ] If [ %TOGGLE = 1 ] A7: Set Widget Label [ Name:Toggle Pattern On /off Label:Lock off ] If [ %TOGGLE = 1
I found this video with instructions on how to enable the lock pattern instead but I need it simplified because I have no idea how to enter this information.
Click to expand...
Click to collapse
I've seen this video before. And also don't know how to do this in tasker
Sent from my Nexus 4 using xda app-developers app
bubu. said:
omg, thanks so much, it works flawlessly sooo far... that was worth the 3$ for tasker... I hope it stays working perfetly. would there be a way to add another task to even disable the screen completely so that I land on the homescreen after pressing the powerbutton (without the need of the swype to unlock over the lockscreen)? so that I'd have 3 statuses:
1. pin based lock
2. lock but without pin (e.g. when carrying it in the bag so that there's no accidentally phone call done)
3. no lock at all (e.g. when it's laying on the table at home)
EDIT: I've done it myself:
here it is: http://pastebin.com/Vy573bn8 save it to XML and then import it. you might need to adopt your own password in secure settings plugin.
what it does is:
you can add the widget to your homescreen and toggle though the following states:
1. pin based lock
2. lock but without pin (e.g. when carrying it in the bag so that there's no accidentally phone call done) --> so you need to swype over the lockscreen to unlock
3. no lock at all (e.g. when it's laying on the table at home) --> power button displays the homescreen immediately
according to the 3 states, the widget always shows the actual state in its label, e.g. "PIN lock" as label means, that currently the phone is locked by PIN. further, the image of the widget changes itself, between
1. an key-icon
2. an hand-icon (which means you need to swype)
3. an unlock-icon
Click to expand...
Click to collapse
Sorry for sounding like a noob but I just bought Tasker just for this single task. Can you explain how to import the file? Would really appreciate some help to get this up and running.
EDIT:
Used the detailed description to get it up and running and it works great so I think I can figure out how to get a three state toggle.
This worked for me !!
https://www.youtube.com/watch?v=czL60aXswBM
Not working at all. Android 7(Linage OS 14.1). LG G3 d855

Nexus 6 + Cast + ARUR + Tasker

Hi all,
I have searched high and low for setting up tasker with my nexus and chromecast for appradio. It has been an absolute nightmare but have managed to patch together a working profile. Here is how I did it.
Add profile -> State -> Net-> BT Connected -> Name & Address press magnifying glass and select your already paired app radio
New Task -> Name whatever you want.
1. App -> Launch App (ARUnchained Reloaded)
2. Code -> Run Shell -> input tap 1972 561 (this taps start in arur)
3. Net -> Wifi Off
4. Net -> Wifi Tether On
5. Task -> wait 10 seconds
6. App -> Launch App (Chromecast)
7. Task -> wait 2 seconds
8. Code -> Run Shell -> input tap 127 195 (Chromecast menu button)
9. Task -> wait 2 seconds
10. Code -> Run Shell -> input tap 409 1040 (Cast screen button)
11. Task -> wait 5 seconds
12. Code -> Run Shell -> input tap 822 880 (taps chromecast in your car)
13. task -> wait 2 seconds
14. Code -> Run Shell -> input tap 2484 719 (taps home button)
The only way I could kill all the apps when I leave the car is by using a dummy app as the trigger to close arur, chromecast, turn tether off etc.
If the above profile could be improved on I would love to hear them. Next up I am going to use NFC in car to really tighten this all up as I think it could be a lot faster.
Cheers!
Hi guys, I have added a video on youtube of it in action but cannot post it here as I haven't posted 10 times. If anyone wants the link please pm me.

[Tasker App] AOD When Notification Received Mate 20 Pro

Hey Guys,
I have a simple solution for very bad AOD in Huawei Mate 20 Pro. This tasker profile is used for only toggle AOD screen when a specified app sends a notification to smartphone and disable AOD when this notifications are cleared.
It is a very simple solution.
Here is the step one for Toggling AOD when notification received:
1- Go Tasker -> Profiles and touch on bottom right + symbol.
2- Select from list ->Application and select all deserved apps can wake AOD screen and press ->Back
3- Touch "New Task" give it a name (optional obviously) and again press touch bottom right + symbol.
4a- Now you need an action category. Follow Settings -> Custom Settings
4b- Select this settings:
Type: Secure
Name: aod_switch
Value: 1
and press back button. Enable from top of the Tasker application
Here is the step one for Disabling AOD when notification cleared:
1- Go Tasker -> Profiles and touch on bottom right + symbol
2- Select from list ->Application and exactly like did on "Toggling numbor 2" BUT THIS TIME YOU NEED SELECT "INVERT" FROM BOTTOM OF APP SELECTING SCREEN.
3- Touch "New Task" give it a name (again optional obviously) and again press touch bottom right + symbol.
4a- Now you need an action category. Follow Settings -> Custom Settings
4b- Select this settings:
Type: Secure
Name: aod_switch
Value: 0
and press back button. Enable from top of the Tasker application
So, I mean reverting Toggling settings for disabling AOD
And thats it. This is the solution that I figured out myself.
This is the import link: https://taskernet.com/shares/?user=AS35m8kn2ZlYFlMeaURIg%2FjBzJ0X0SUYgJ2wgf4EVNmYj987Yy55QIBaNJ9Qf06uBeihM01L1q4%3D&id=Profile%3AAOD+off+Notification

How To Guide AOD activeclock (clocktransition) bug workaround on non-flagship phones

This guide is mainly for those who know what the "clocktransition" or "activeclock" bug is, where your AOD brightness drops significantly after a few seconds of AOD set to always on while you have the under-display FP reader on.
This workaround functions by turning AOD off and then on after the screen turns off, eliminating this bug from happening.
It's not perfect but gets the job done.
We use an app called "Tasker" from the Playstore (as well as "Tasker Settings")
Here's the guide:
Open Tasker Settings first just to make sure it's running
You can do this at any time, but make sure you remove Tasker from apps that can optimize battery usage (the app will constantly remind you about this anyway)
Open Tasker and go to the "Tasks" tab (dismiss any of the annoying reminders you get from Tasker)
* Add a new task (+ sign at the bottom) and give it a name. Any will do. I will name it "Aod off-on"
Then add an Action on the screen it takes you to (+ sign at the bottom)
In the "Select Action Category" pop up, search for "Wait" and select it. This "Wait" command is done so that there is a few seconds before the task can turn AOD off and on so you can fully appreciate the clocktransition animation. You can add any value you want here. I recommend between 3 to 7 seconds but it's up to you.
Save (back button)
Add a new action
In the "Select Action Category" pop up, search for "Custom Setting"
In the drop down menu under "Type", select "System" instead of "Global"
In "Name", type aod_mode
In "Value", type 0
Save (back button)
Add a new action
In the "Select Action Category" pop up, search for "Custom Setting"
In the drop down menu under "Type", select "System" instead of "Global"
In "Name", type aod_mode
In "Value", type 1
Save (back button)
You are done with your task, now go back and create a profile that will trigger it
Switch back to the "Profiles" tab and add a new profile (with +)
Select "Event" -> Search for "Display Off"-> Leave Normal Priority
Go back and it will request that you select a task, select the one you created
You should be done. Now, the task will activate everytime you turn the screen off.
Note: If this doesn't work for you, you'll probably have to edit the task and in both instances where you change the aod value to 1 and 0, you'll have to give it root permissions (there should be a checkbox when editing the task and the action to use root)
Enjoy, let me know if it works for you!

Categories

Resources