Android Q- cannot disable "dark mode" - Google Pixel 3 XL Guides, News, & Discussion

This is on by default in Android Q Beta 1 and can't be disabled as far as I know. I've checked everywhere and developer options. Anyone notice the same?

I read in a lot of posts that there is no toggle in DP1, you have to run an adb command.
If you're familiar with tasker, you can just create a quick toggle that runs those commands easily.

you can also factory reset. If you factory reset, you can turn on system wide dark mode by turning on battery saver.

Have you tried to turn off the battery saver option?

Go to the play store and download "settings database editor"
Open it and open the drop down menu that says system table and select secure table.
Then find ui_night_mode in the big list tap it and select edit value and set it to 0, 1, or 2. 0 = Auto mode 1 = always bright mode 2 = always dark mode.

StykerB said:
Go to the play store and download "settings database editor"
Open it and open the drop down menu that says system table and select secure table.
Then find ui_night_mode in the big list tap it and select edit value and set it to 0, 1, or 2. 0 = Auto mode 1 = always bright mode 2 = always dark mode.
Click to expand...
Click to collapse
I haven't this parameter in my pixel 3 under Android Q.
I have search on other table and same

titof174 said:
I haven't this parameter in my pixel 3 under Android Q.
I have search on other table and same
Click to expand...
Click to collapse
Have the same issue...can't find the value in the table.
Installed Q over the air with not activated "darkmode"

Gordietm said:
You can toggle dark mode with this:
https://www-xda--developers-com.cdn...a-developers.com/android-q-toggle-dark-theme/
Click to expand...
Click to collapse
This trick was working

Related

[Guide] Turn off notification light at night *Requires Root and Tasker*

I've posted this before, but it got buried and other people have asked about it so I figured I'd put it in its own thread. I find the notification light very annoying at night, but the only way I could find to shut off the notifications was buggy at best. This way will allow you to pick whatever triggers you have access too in tasker to control whether the light is allowed to turn on or not.
Some background: when a notification comes in, the system sets the file led_pattern in /sys/devices/virtual/sec/led to something non-zero. 3 is a slow blinking blue light, 1 is solid red, I forget what the others are now. When the screen is turned on, this is reset to zero, and when the screen is turned off, if the notification bar hasn't been opened (and the program with the notification hasn't been opened) the value is reset to something non-zero. So, I created a simple task to change the value back to zero:
Create a new task, then select Script>Shell. Enter the following command:
echo 0 > /sys/devices/virtual/sec/led/led_pattern
Check the 'Use Root' box
Then your task is done. Try it once to make sure you have accepted whatever superuser popups (you'll need to always allow this for it to work on its own).
Now create a profile, and for the context select Event>UI>Notification. You may need to check tasker on the accessibility menu if you haven't already (it will prompt you if necessary). Add whatever other contexts you want (I have a variable that's set when I turn on my nighttime menu that I check for so the light will blink during the day but not at night). You could easily just pick a block of time to turn it off instead. If you don't add other contexts this will always block your light, so make sure you've done some check to block it only at night. Add the task you created to this profile.
Next create another profile with the context State>Display>Display State set to Off, and add in the other secondary (ie night time) contexts. Call the same task you created above. This will prevent the light coming back on if you turn the display on and off at night after receiving a notification.
The only quirk I've found so far is that if you receive a google voice text, the light instantly turns purplish/pink normally. On my phone it will come on for a split second before tasker can kill it.
If you have any issues with this please let me know and I'll see what I can figure out.
I turn my phone over so the light and screen are face down. Case has a lip on it so screen doesn't touch the table. Problem solved.
-Hai guise don't feel like looking at 5 pages but I haz problems on the pre-alpha release and I don't know why.
joshindc said:
I've posted this before, but it got buried and other people have asked about it so I figured I'd put it in its own thread. I find the notification light very annoying at night, but the only way I could find to shut off the notifications was buggy at best. This way will allow you to pick whatever triggers you have access too in tasker to control whether the light is allowed to turn on or not.
Some background: when a notification comes in, the system sets the file led_pattern in /sys/devices/virtual/sec/led to something non-zero. 3 is a slow blinking blue light, 1 is solid red, I forget what the others are now. When the screen is turned on, this is reset to zero, and when the screen is turned off, if the notification bar hasn't been opened (and the program with the notification hasn't been opened) the value is reset to something non-zero. So, I created a simple task to change the value back to zero:
Create a new task, then select Script>Shell. Enter the following command:
echo 0 > /sys/devices/virtual/sec/led/led_pattern
Check the 'Use Root' box
Then your task is done. Try it once to make sure you have accepted whatever superuser popups (you'll need to always allow this for it to work on its own).
Now create a profile, and for the context select Event>UI>Notification. You may need to check tasker on the accessibility menu if you haven't already (it will prompt you if necessary). Add whatever other contexts you want (I have a variable that's set when I turn on my nighttime menu that I check for so the light will blink during the day but not at night). You could easily just pick a block of time to turn it off instead. If you don't add other contexts this will always block your light, so make sure you've done some check to block it only at night. Add the task you created to this profile.
Next create another profile with the context State>Display>Display State set to Off, and add in the other secondary (ie night time) contexts. Call the same task you created above. This will prevent the light coming back on if you turn the display on and off at night after receiving a notification.
The only quirk I've found so far is that if you receive a google voice text, the light instantly turns purplish/pink normally. On my phone it will come on for a split second before tasker can kill it.
If you have any issues with this please let me know and I'll see what I can figure out.
Click to expand...
Click to collapse
Tasker is a confusing app to me. I've tried to enter this in a few times but can't seem to get it to work. Is there any chance you could help me out and let me know more of a step by step? This guide seems to jump around a bit (it could be my extreme lack of experience with Tasker). This sounds like it is exactly what I am looking for though. The led on the GS3 is so freaking bright it lights up my whole room when it is charging at night. I *could* turn it over as suggested above but I have two problems with that:
A) We are better than our phones, aren't we? We should be able to get them to bend however we want! Why compromise?
B) I use my phone as my alarm clock and I don't want to fumble around to flip it over before I can silence it while I'm still mostly asleep.
Thanks for the guide. I will have to give this a try. I tried something else but it didn't seem to have any effect. Any idea where to find the other codes to make the LED turn on differently when you want?
---------- Post added at 06:29 PM ---------- Previous post was at 06:24 PM ----------
Relentless D said:
Tasker is a confusing app to me. I've tried to enter this in a few times but can't seem to get it to work. Is there any chance you could help me out and let me know more of a step by step? This guide seems to jump around a bit (it could be my extreme lack of experience with Tasker). This sounds like it is exactly what I am looking for though. The led on the GS3 is so freaking bright it lights up my whole room when it is charging at night. I *could* turn it over as suggested above but I have two problems with that:
A) We are better than our phones, aren't we? We should be able to get them to bend however we want! Why compromise?
B) I use my phone as my alarm clock and I don't want to fumble around to flip it over before I can silence it while I'm still mostly asleep.
Click to expand...
Click to collapse
Don't know if you are aware or not, but you can turn off the LED while charging using the build in settings. Go to Settings -> LED indicator and uncheck Charging. It shouldn't light up at all until you get some kind of notification.
ADC_112358132134 said:
Thanks for the guide. I will have to give this a try. I tried something else but it didn't seem to have any effect. Any idea where to find the other codes to make the LED turn on differently when you want?
---------- Post added at 06:29 PM ---------- Previous post was at 06:24 PM ----------
Don't know if you are aware or not, but you can turn off the LED while charging using the build in settings. Go to Settings -> LED indicator and uncheck Charging. It shouldn't light up at all until you get some kind of notification.
Click to expand...
Click to collapse
Yea I know. The thing is that I would like it to light up while charging (and change color when charged) just not between 11PM and 7AM
So, I haven't tested it for this (although I am now...) because I just have the charging LED setting turned off. I think this should work fine, although if you've killed the battery full notification you might get the green light coming on once charging completes (which you can probably deal with with an additional profile). Here's a more detailed description of the task setup:
1) Open Tasker and go to the 'Tasks' tab at the top of the screen.
2) Click on the green [+] at the bottom of the page to create a new task. Then name it something (LED kill?) and tap the green check button.
3) Click the [+] in the lower right hand corner to add an Action to your task.
4) Select 'Script', then 'Run Shell' from the Menus that pop up.
5) Under 'Command' type "echo 0 > /sys/devices/virtual/sec/led/led_pattern" without the quotes
6) Check the 'Use Root' box, then click the green check at the bottom of the window.
7) Now you should see the Task Edit window. Click the blue 'play' button at the bottom right of the window to run the task now. If you get a Superuser popup make sure you've checked the box to remember your selection, and accept the SU request. Now tap the green check box to save the task.
* Now you have a task that can turn off the light, but you need a way to trigger it. In tasker you do this by setting up profiles, which you can think of as triggers that will call the task. We want to trigger it to kill the LED whenever the phone turns it on. The phone will turn on or change the light at 2 different times:
A) When you receive a notification
B) When you turn off the screen (This will 'reset' the led if you turn on the screen and then turn it back off without clearing the notification) It will also turn on the led if the phone is charging and you've left that setting checked.
So, lets proceed:
8) Tap the 'Profiles' Tab at the top of the screen.
9) Tap the green [+] to create a new profile. Name it something like "Notification Kill" and click the green check box.
10) Select 'Event', then 'UI', then 'Notification' from the menus that pop up. Click the green check at the bottom of the Notification window that pops up (all the default settings are fine).
10a) At this point I think I was prompted the first time I did this to add Tasker to the accessibility permissions. If this happens, scroll down in the accessibility settings window that pops up and check the box next to Tasker. Then hit the back button to go back to Tasker.
11) Now select the task you just created (LED Kill) from the Task Selection window that pops up
* Now if you leave Tasker you should be blocking all notification LED lights. But you only want to turn them off at night! So you need to add another Context to this profile.
12) Long press on the Context (left hand side of the profile you just created where it says 'Notification *,*' and has a Orange ! triangle)
13) Select 'Add' from the popup, then select 'Time'
14) Pick the time range that you want the LED turned *OFF*. In your case you should pick From: 23:00 and To: 07:00.
15) Click the green Check and you're done with this profile.
* Now you've taken care of the (A) reason for the light coming on. But you need to take care of (B) as well, in case you check your phone during the 'night' hours, or if it's plugged in.
16) Repeat step (9), but name it 'ScreenOffLEDKill' or something easier to type.
17) Select 'State', then 'Display', then 'Display State' from the popup menus.
18) Make sure 'Off' is selected from the 'Is' dropdown menu, and click the green check box.
19) Select the task you created earlier again (LED Kill)
20) Repeat Steps 12-15 for this profile (Long press on 'Display State Off'...)
Now you should be set! If this still isn't working let me know and I'll try and troubleshoot it with you.
Relentless D said:
Yea I know. The thing is that I would like it to light up while charging (and change color when charged) just not between 11PM and 7AM
Click to expand...
Click to collapse
ADC_112358132134 said:
Thanks for the guide. I will have to give this a try. I tried something else but it didn't seem to have any effect. Any idea where to find the other codes to make the LED turn on differently when you want?
Click to expand...
Click to collapse
Just try different numbers. You can test it out and actually make the lights come on with the screen on from terminal emulator/adb or play with the tasker shell options. Try the following commands after getting superuser rights (by typing 'su' in the terminal emulator):
echo 7 > /sys/devices/virtual/sec/led/led_pattern
You get a slightly pulsing blue led. Substitute other numbers for the 7 and play around. You can turn off the LED by setting it to 0. You can also try echoing a value to led_b, led_g, or led_r, which will turn on the blue, green, and red leds (probably 255 is the maximum value). From what I've seen, whatever you set last overwrites whatever else you've done. So, if you set pattern to 7, then led_b to 255, the led will switch to solid blue from the pulsing light. If you then set led_r to 100, it will switch to dim red, but it won't maintain the led_b setting. I don't really have any interest in further customizing the led so I haven't played around with it much more. I haven't really figured out how to use led_blink either. If you find out more post here!
Josh
joshindc said:
Now you should be set! If this still isn't working let me know and I'll try and troubleshoot it with you.
Click to expand...
Click to collapse
Beautiful! I'll punch this in tomorrow at work. Thank you so much for helping me out!
Thank you so much for this post. Your method works perfectly. This is exactly something that I was trying to do but couldn't figure out. Great job! :good:
Just FYI, when Tasker updates from the market, it appears that sometimes the update disables the tasker accessibility service. If that happens this technique will no longer work. So, make sure to check that the accessibility service is still enabled after a Tasker update.
Thought I add a mapping of the colors to save some time to the next person...
Code:
0 = Disabled
1 = Static Red
2 = Blinking red (fast)
3 = Blinking blue (slow)
4 = Blinking red (slow)
5 = Green
6 = Static blue
7 = Static pulsing blue
Awesome, informative thread! Giving it a bump for those who want more, better information. Could anybody post the XML code in color-coded format? It helps me understand how to set it up exactly. Thanks to you for the hard work!
joshindc said:
I haven't really figured out how to use led_blink either. If you find out more post here!
Click to expand...
Click to collapse
This is a bit off topic, but since you went there I'll share some of my findings on led_blink. It turns out you can use it to create any color, but I haven't figured out how to make it... uh... blink.
At first, since led_blink usually contains 0 0 0, I thought it was simply the rgb colors with values up to 255 (just like with led_r, led_g, led_b). But, after a lot of trial-and-error, I found that it's actually hex. But that's not all. You also have to send led_blink additional information. Let me try to explain.
If you echo a string of numbers to led_blink, it seems to ignore the first two. The next two are red, then green, then blue (spaces are interpreted as zero, it seems). So, if you sent:
echo 00ff0000 > /sys/devices/virtual/sec/led/led_blink
you'd get a solid bright red light. But, here's the thing... led_blink would only contain "ff 0 0", since the first two numbers don't seem to stick. If you tried to send green the way you would intuitively think ("0 255 0"), you'd get led_blink set to "25 50 0" - which, to be fair, is still mostly green. Using the hex values plus the leading two digits, you can make the led any solid color you want.
So, what's left to figure out is:
What do the first two numbers mean, if anything? It doesn't seem to matter what they are.
How do you make it blink?
I swear, at one point when I was messing around with numbers (I wrote a Tasker task to make it easier to write to and read from led_blink) that I saw it rapidly blinking, but I don't know how I got there.
If someone can figure out how to get it blinking, Tasker would become a serious Light Flow alternative.
LightFlow can handle this and all notification aspects so much easier and with 1 button click (versus Tasker).
I use the hell out of Tasker, but I use LightFlow for ALL notifications - lights, sounds, vibrations, pop-up windows, etc. And you can set it to kill any notifications of any type you set by time of day. At 10:30pm all my lights stop flashing and come back on at 6:30am for example.
Does it work on any device? Or it is only for Galaxy S3
Sent from my GT-I9300 using Tapatalk 2
iirc led control from the play store has "night time" setting that will disable the led during times you specify
I'm using this command to turn off the led for specific Whatsapp groups, using specific contexts.
Sent from my GT-I9300 using Tapatalk 2
joshindc said:
So, I haven't tested it for this (although I am now...) because I just have the charging LED setting turned off. I think this should work fine, although if you've killed the battery full notification you might get the green light coming on once charging completes (which you can probably deal with with an additional profile). Here's a more detailed description of the task setup:
1) Open Tasker and go to the 'Tasks' tab at the top of the screen.
2) Click on the green [+] at the bottom of the page to create a new task. Then name it something (LED kill?) and tap the green check button.
3) Click the [+] in the lower right hand corner to add an Action to your task.
4) Select 'Script', then 'Run Shell' from the Menus that pop up.
5) Under 'Command' type "echo 0 > /sys/devices/virtual/sec/led/led_pattern" without the quotes
6) Check the 'Use Root' box, then click the green check at the bottom of the window.
7) Now you should see the Task Edit window. Click the blue 'play' button at the bottom right of the window to run the task now. If you get a Superuser popup make sure you've checked the box to remember your selection, and accept the SU request. Now tap the green check box to save the task.
* Now you have a task that can turn off the light, but you need a way to trigger it. In tasker you do this by setting up profiles, which you can think of as triggers that will call the task. We want to trigger it to kill the LED whenever the phone turns it on. The phone will turn on or change the light at 2 different times:
A) When you receive a notification
B) When you turn off the screen (This will 'reset' the led if you turn on the screen and then turn it back off without clearing the notification) It will also turn on the led if the phone is charging and you've left that setting checked.
So, lets proceed:
8) Tap the 'Profiles' Tab at the top of the screen.
9) Tap the green [+] to create a new profile. Name it something like "Notification Kill" and click the green check box.
10) Select 'Event', then 'UI', then 'Notification' from the menus that pop up. Click the green check at the bottom of the Notification window that pops up (all the default settings are fine).
10a) At this point I think I was prompted the first time I did this to add Tasker to the accessibility permissions. If this happens, scroll down in the accessibility settings window that pops up and check the box next to Tasker. Then hit the back button to go back to Tasker.
11) Now select the task you just created (LED Kill) from the Task Selection window that pops up
* Now if you leave Tasker you should be blocking all notification LED lights. But you only want to turn them off at night! So you need to add another Context to this profile.
12) Long press on the Context (left hand side of the profile you just created where it says 'Notification *,*' and has a Orange ! triangle)
13) Select 'Add' from the popup, then select 'Time'
14) Pick the time range that you want the LED turned *OFF*. In your case you should pick From: 23:00 and To: 07:00.
15) Click the green Check and you're done with this profile.
* Now you've taken care of the (A) reason for the light coming on. But you need to take care of (B) as well, in case you check your phone during the 'night' hours, or if it's plugged in.
16) Repeat step (9), but name it 'ScreenOffLEDKill' or something easier to type.
17) Select 'State', then 'Display', then 'Display State' from the popup menus.
18) Make sure 'Off' is selected from the 'Is' dropdown menu, and click the green check box.
19) Select the task you created earlier again (LED Kill)
20) Repeat Steps 12-15 for this profile (Long press on 'Display State Off'...)
Now you should be set! If this still isn't working let me know and I'll try and troubleshoot it with you.
Click to expand...
Click to collapse
I have à Sony xperia Z with jelly bean.
Do you know where i can find the folder there?
In the folder sys/devices/virtual there is no folder sec....
I can't find where i can turn off the charging led at night.
Thanks @joshindc! You are the man. I've been looking for something like this forever. This LED Profile works great! Thanks again. :highfive:
Cheers.
joshindc said:
So, I haven't tested it for this (although I am now...) because I just have the charging LED setting turned off. I think this should work fine, although if you've killed the battery full notification you might get the green light coming on once charging completes (which you can probably deal with with an additional profile). Here's a more detailed description of the task setup:
1) Open Tasker and go to the 'Tasks' tab at the top of the screen.
2) Click on the green [+] at the bottom of the page to create a new task. Then name it something (LED kill?) and tap the green check button.
3) Click the [+] in the lower right hand corner to add an Action to your task.
4) Select 'Script', then 'Run Shell' from the Menus that pop up.
5) Under 'Command' type "echo 0 > /sys/devices/virtual/sec/led/led_pattern" without the quotes
6) Check the 'Use Root' box, then click the green check at the bottom of the window.
7) Now you should see the Task Edit window. Click the blue 'play' button at the bottom right of the window to run the task now. If you get a Superuser popup make sure you've checked the box to remember your selection, and accept the SU request. Now tap the green check box to save the task.
* Now you have a task that can turn off the light, but you need a way to trigger it. In tasker you do this by setting up profiles, which you can think of as triggers that will call the task. We want to trigger it to kill the LED whenever the phone turns it on. The phone will turn on or change the light at 2 different times:
A) When you receive a notification
B) When you turn off the screen (This will 'reset' the led if you turn on the screen and then turn it back off without clearing the notification) It will also turn on the led if the phone is charging and you've left that setting checked.
So, lets proceed:
8) Tap the 'Profiles' Tab at the top of the screen.
9) Tap the green [+] to create a new profile. Name it something like "Notification Kill" and click the green check box.
10) Select 'Event', then 'UI', then 'Notification' from the menus that pop up. Click the green check at the bottom of the Notification window that pops up (all the default settings are fine).
10a) At this point I think I was prompted the first time I did this to add Tasker to the accessibility permissions. If this happens, scroll down in the accessibility settings window that pops up and check the box next to Tasker. Then hit the back button to go back to Tasker.
11) Now select the task you just created (LED Kill) from the Task Selection window that pops up
* Now if you leave Tasker you should be blocking all notification LED lights. But you only want to turn them off at night! So you need to add another Context to this profile.
12) Long press on the Context (left hand side of the profile you just created where it says 'Notification *,*' and has a Orange ! triangle)
13) Select 'Add' from the popup, then select 'Time'
14) Pick the time range that you want the LED turned *OFF*. In your case you should pick From: 23:00 and To: 07:00.
15) Click the green Check and you're done with this profile.
* Now you've taken care of the (A) reason for the light coming on. But you need to take care of (B) as well, in case you check your phone during the 'night' hours, or if it's plugged in.
16) Repeat step (9), but name it 'ScreenOffLEDKill' or something easier to type.
17) Select 'State', then 'Display', then 'Display State' from the popup menus.
18) Make sure 'Off' is selected from the 'Is' dropdown menu, and click the green check box.
19) Select the task you created earlier again (LED Kill)
20) Repeat Steps 12-15 for this profile (Long press on 'Display State Off'...)
Now you should be set! If this still isn't working let me know and I'll try and troubleshoot it with you.
Click to expand...
Click to collapse
Seems cool. Will try out
I stumbled upon a Tasker plugin from BlackDino that lets you change the Galaxy S3 LED settings. It might be a bit easier to use and gives some extra functionality.
http://forum.xda-developers.com/showthread.php?t=2117829

TASKER profiles 2013

Alright, lets show off some tasker profiles! Im always interested in ideas other have cooked up. I'll show you guys some stuff i came up with.
Hit thanks if you like it!
Ill start populating the post. I realize that tasker profiles are a royal pain in the butt to read, so im going to create some colapsable projects.
Ill also color code certain things and ill try to stay consistent..Ill try to add a project every day. So the first one will be my car project.
Tips:
To avoid confusion with all the collapse-ables, close the ones youre done reading.
Have Secure Settings installed, and swipe to the helper section and install helper
HAve autovoice, you gotta start using this at some point..its pretty awesome.
%PACTIVE is a variable that means "profiles active"
you can long press a profile and press the settings button on the top right and if you scroll down you can uncheck the "display in notification" if you dont want your tasker notification to be over-populated
Projects will be Blue
Profiles will be orange
Enter tasks will be green.
Exit Tasks will be red.
If statements will start and end with pink.....end if
CAR PROJECT
This project has a couple of tasks that do stuff that are related to the car. hence the name.. It does the following:
1: When you get in the car, the screen will stay on, and if it does somehow close, the keyguard will be disabled. This prevents too much fiddling with the phone...This is turned off when you get out.
2: Alters volume levels and brightness when getting in and out of the car.
3: Marks down what time you got out of the car, starts counting how long youve been out of your car, and takes the GPS coordinates of your location when you get out of the car.
The purpose of this is so youll always know when you got out of the car, how long you have been parked (in case of parking meters, parking hours etc..) and allows you to navigate to your car so youll never lose it after parking in some obscure location.
This is done with minimalistic text to display that info, and upon pressing it, will activate the task to navigate back to your car. Ill attach a screen shot.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
4: When someone calls, my phone asks me if i want to answer it, instead of ringing, upon yes, it does, upon no it doesnt.
5: reads me my text, I have nothing to hide, but you could easily implement the yes/no prompt if you want it read to you or not.
6: turns wifi on, gps on, and you can add a bluetooth on if you want.
HERE ARE THE PROFILES:
Profile: Car Mode
Context:
State -> Docked any
State -> Headset plugged in
But really this could be anything.
Tasks:
Enter Task:
Load App -> Car Home (http://blog.brianmoses.net/2012/10/manually-installing-googles-car-home-app.html)
Secure Settings -> GPS Enabled
Wifi -> Off
System Volume -> 7
Media Volume -> 15
Auto Brightness -> on
Notification Volume -> 7
Secure Settings -> Keep Display On
Secure Settings -> Keyguard Disabled
Variable Set -> %SEARCHWIFI ~ 0 (Youll see why later)
Exit Task:
Variable Set %HOURSINCE ~ 0
Variable Set %MINSINCE ~ 0
IF - %TIME > 12.00 {
MINIMALISTIC TEXT -> (variable) ampm = PM
Variable Set -> %PARKEDTIME to (%TIME-12.00)
}
else if - %TIME < 12.00 {
MINIMALISTIC TEXT -> ampm = AM
%PARKEDTIME to %TIME
}
end if
MINIMALISTIC TEXT parkedtime = %PARKEDTIME
Secure Settings -> Keyguard Enabled
Secure Settings -> Lock Device
Secure Settings -> Keep display on - never
Kill App -> Car Home
Get Location -> GPS, timeout -> 100seconds
Variable Set -> %PARKEDAT ~ %LOC
Secure Settings -> GPS Disabled
Variable Set %SEARCHWIFI ~ 1
Profile: Update Time Since (Update what minimalistic text will show)
This counts how long youve been parked for and assigned an HOUR variable and a MINUTE variable to minimalistic text.
Since the "repeat" thing in tasker has a minimum of 2 minutes, i just made two of the same tasks and made the other wait a minute before starting.
Conext:
Every 2 minutes
Tasks: Timesince1
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Timesince2
wait -> 1 minute
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Profile: Read Text
context:
Received Text any
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Read SMS
Silent mode -> on
Say -> %SMSRN says. %SMSRB
silent mode-> off
Profile: Car Call (Asks me if i want to answer the call or not, then the response will be passed off to another profile called CAR RESPONSE)
context:
Call incoming
Variable Value - %PACTIVE ~ *Car Mode*
Enter Task:
Media Control -> Pause (simulate media button)
Ringer Volume -> 0
Say -> Should i answer this call?
Auto voice recognize (Triggers autovoice to listen to you)
Exit Task:
Media Control Play
Profile: Call Response
Do the same for a "NO response" except the command in autovoice will be "no" and the task will end the call.
context:
AutoVoice recognized -> check event behavior, command = yes
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Take Call
Take Call...lol
THIS ONE IS A TASK
Make this task so you can set your minimalistic texts tap behavior to open a tasker shortcut and then select this one.
IT will allow you to navigate to your car when you tap the widget, you may need to change the wait task if it takes longer for your phone to turn on GPS (not get a lock)
Create a task:
Secure Settings GPS Enabled
Wait 3 seconds
Open Map (this is a task under the APP task) Mode-> Navigate To, Address %PARKEDAT
TO SET UP MINIMALISTIC TEXT:
Im not going to tell you what the font should be, what size or what color the font should be etc etc, ill just tell you how to add the variables to minimalistic text
Tap and hold on your homescreen and add a 2x2 Widget
Delete all the premade stuff
if you swipe to the layout tab and press the "+" youll get a bunch of options to add stuff.
Swipe over to the MISC tab, and add a static text and a local variable. Theres a bug in Minimalistic text where if you add a bunch of local variables at once, itll make the values of them all the same..so youll have to add the things one at a time..pain in the butt i know.
so add a static text and a local variable. over and over till you have 4 local variables and 3 static texts.
have 3 rows, delete the ones you dont need by tapping the 3 dots and pressing delete row.
I have it set up like this:
----------------------------------------------------------------------------
[Static text = Parked At:]
----------------------------------------------------------------------------
[Locale Variable = parkedtime] [locale variable = ampm]
----------------------------------------------------------------------------
(optional)[static text icon = user interface-> hand pointy thingy]
----------------------------------------------------------------------------
[static text = Parked For: ]
----------------------------------------------------------------------------
[locale variable = hoursince] [static text = Hrs.] [locale variable = minsince]
----------------------------------------------------------------------------
Then swipe over to "Tap Behaviour" and check "start another activity"
press select and activity or shortcut
swipe right to the shortcut tab
select the "Find Car" task we created earlier
pick an icon for it if it asks by pressing the button on the lower right hand corner
END CAR PROJECT
WIFI PROJECT
These tasks will automate turning your wifi on and off based on locations you are at often. I.E. your house, your work, your buddies house, your girlfriends house, etc...
It works via the cell near state, however im not perfectly clear on how much battery this drains, so i took an extra precaution by having a %SEARCHWIFI variable, set to either 1, or 0, (on or off, respectively). This variable's value is easily changed in any profile, so its easy to avoid conflicting profiles, as well as saves battery by not continuously searching for cellphone towers.
What i do with this, is have a profile, Near Home for example, and when im in a new location i want to automatically connect to, i just clone it, change the name, re-search cellphone towers and voila! I have like 10 of these and it works perfectly. So ill only make a "Near Home" profile, then you can clone that.
I like to have a pattern lock when im out and about, but i dont like having one when im at a buddies house, or at my own house, so i have tasker deal with that. If you want this, first you have to set a pattern lock code. then this will take effect.
Profile: Search Wifi?
Context:
Not Wifi Connected (check invert after the wifi connected task)
Variable Value -> %PACTIVE !~ *Car Mode*
Enter Task:
Variable Set -> %SEARCHWIFI ~ 1
Exit Task:
Variable Set-> %SEARCHWIFI ~ 0
Profile: Wifi Time-Out
If you are near one of the places and you somehow disconnect, tasker will wait 20 seconds to see if youre still disconnected and if you are , turn wifi off, turn the pattern lock on, and in 10 minutes, if youre still in the area it will try to connect again. of course you can change the times to whatever you want.
Context:
Not Wifi Connected
task:
Wait 20 seconds
if - %WIFII !~ *connect*
Secure settings -> pattern lock enabled
Variable set -> %SEARCHWIFI ~ 0
Wifi -> off
end if
wait 10 minutes
Variable set -> %SEARCHWIFI ~ 1
Profile: Near Home
context:
Cell near (press scan)
state -> Variable Value -> %SEARCHWIFI ~ 1
Enter Task:
Wifi On
Secure Settings -> Pattern lock disabled
exit Task:
if - %WIFII !~ *connect* (i know this is overkill)
secure settings -> patternlock disabled
wifi off
end if
END WIFI PROJECT
REQUESTS PROJECT:
Voice commands in car to perform various responses to a received text, requested by oscar615
NOTE: autovoice recognize doesnt play well with pop-up sms windows...sometimes works, sometimes only works after you close the pop up.
oscar615 said:
Wow, your car code is almost what I was thinking about earlier today. About the only difference is when I get a text I would like it to give me 3 audible choices. 1- send a pre recorded text letting them know i am in the car. 2- Give me the option to do nothing and 3- the option to call the person who sent the text and have the phone set to speaker, and pause any music that is on. The problem is I am so new to tasker and really have no idea how to do this. I will study your code to see if I can learn what you did and maybe add the other options to it. I want it to all be voice responses and and prompts.
Do you have any idea what needs to be added to what you have created in order to get what I want?
Anyway great work. Thanks for doing this thread and posting your profiles.
Click to expand...
Click to collapse
Profile: Driving Text
context:
event -> received text any
state -> variable value - %PACTIVE ~ *car mode* (or whatever profile you have for your car)
task:
silent mode on
misc -> say -> Text received by %SMSRN. What should i do?
wait 150ms
plugin -> autovoice recognize
silent mode off
Profile: Cant talk
context:
autovoice recognized -> check event behavior -> command = can't
state -> variable value - %PACTIVE ~ *car mode*
task:
phone -> send sms -> number: %SMSRF, Message: Sorry, im driving, cant talk right now, check 'store in messaging app'
profile: call back
context: plugin -> autovoice recognized, check event behavior, command = call
state -> variable value - %PACTIVE ~ *car mode*
task:
call -> number: %SMSRF, check auto dial
With autovoice, if the command is "can't" you can say anything, and as long as "can't" is somewhere in the sentence, it will perform that action. unless you specified otherwise, but i wont get into that. If you say anything other than those, it will just close.
end oscar's request
END REQUEST PROJECT
Please kindly attach the xml files as well.
Sent from my SHV-E210S
ecoolcat said:
Please kindly attach the xml files as well.
Sent from my SHV-E210S
Click to expand...
Click to collapse
Yes please!
Tunein Radio request
SO this looked like a promising thread to ask this in, if it hasn't died already....
I would like to set a task to start tunein radio pro, then subtask different stations with commands like "tasker radio paradise", "tasker radio local 1", "tasker radio local 2", "tasker radio record"(to save the currently playing stream) "tasker radio stop record", etc.
Is it possible for tasker to take command of an app and have it do custom calls for app specific functions? I'm a newb dealing with tasker as I don't even own the app yet. However if I could confirm these types of commands work I'll bite in a heartbeat.
Coyote0420 said:
SO this looked like a promising thread to ask this in, if it hasn't died already....
I would like to set a task to start tunein radio pro, then subtask different stations with commands like "tasker radio paradise", "tasker radio local 1", "tasker radio local 2", "tasker radio record"(to save the currently playing stream) "tasker radio stop record", etc.
Is it possible for tasker to take command of an app and have it do custom calls for app specific functions? I'm a newb dealing with tasker as I don't even own the app yet. However if I could confirm these types of commands work I'll bite in a heartbeat.
Click to expand...
Click to collapse
Tasker does not control apps.
knx2 said:
Tasker does not control apps.
Click to expand...
Click to collapse
Ah.. that's disappointing. Was really hoping to have a setup where I could just tell it what station to play. I would assume the only way to do what I'd like would be to save the stream url's and have tasker open them with whatever app can play a stream directly?
As a side question, is there an app that can use the "draw over other apps" ability of android that can assume control and setup complex scripting of commands? Root would of course be a requirement but are there other limitations to android that would prevent such an app?
Coyote0420 said:
Ah.. that's disappointing. Was really hoping to have a setup where I could just tell it what station to play. I would assume the only way to do what I'd like would be to save the stream url's and have tasker open them with whatever app can play a stream directly?
As a side question, is there an app that can use the "draw over other apps" ability of android that can assume control and setup complex scripting of commands? Root would of course be a requirement but are there other limitations to android that would prevent such an app?
Click to expand...
Click to collapse
Yeah tasker does that, and it can do what you tried explaining earlier..although its a bit clunky.
You just tell tasker to do things through the input -> d-pad option while making your task. You can also emulate swipes and touches through a shell command called input. Heres the link explaining how, its quite simple..
http://www.pocketables.com/2013/07/how-to-emulate-touch-input-using-tasker-and-root.html
Although I did not understand, but thank you for sharing. :good:
Anti -Theft Profiles
Well , here are some of my Anti -Theft profiles!
There are quite afew but they all work together to make the best Anti - Theft app
SMS GPS - remotely on gps
SMS WIFI - remotely on wifi
Wifi status - Get the wifi status via sms
Battery Status - Get battery level via sms
SMS lock phone - Lock phone via sms (By enabling keyguard with specific pin)
Detect Sim Crad change - Detects if sim card is swapped and automatically sends you an SMS using the swapped number.
eBoody said:
Alright, lets show off some tasker profiles! Im always interested in ideas other have cooked up. I'll show you guys some stuff i came up with.
Hit thanks if you like it!
Ill start populating the post. I realize that tasker profiles are a royal pain in the butt to read, so im going to create some colapsable projects.
Ill also color code certain things and ill try to stay consistent..Ill try to add a project every day. So the first one will be my car project.
Tips:
To avoid confusion with all the collapse-ables, close the ones youre done reading.
Have Secure Settings installed, and swipe to the helper section and install helper
HAve autovoice, you gotta start using this at some point..its pretty awesome.
%PACTIVE is a variable that means "profiles active"
you can long press a profile and press the settings button on the top right and if you scroll down you can uncheck the "display in notification" if you dont want your tasker notification to be over-populated
Projects will be Blue
Profiles will be orange
Enter tasks will be green.
Exit Tasks will be red.
If statements will start and end with pink.....end if
CAR PROJECT
This project has a couple of tasks that do stuff that are related to the car. hence the name.. It does the following:
1: When you get in the car, the screen will stay on, and if it does somehow close, the keyguard will be disabled. This prevents too much fiddling with the phone...This is turned off when you get out.
2: Alters volume levels and brightness when getting in and out of the car.
3: Marks down what time you got out of the car, starts counting how long youve been out of your car, and takes the GPS coordinates of your location when you get out of the car.
The purpose of this is so youll always know when you got out of the car, how long you have been parked (in case of parking meters, parking hours etc..) and allows you to navigate to your car so youll never lose it after parking in some obscure location.
This is done with minimalistic text to display that info, and upon pressing it, will activate the task to navigate back to your car. Ill attach a screen shot.
4: When someone calls, my phone asks me if i want to answer it, instead of ringing, upon yes, it does, upon no it doesnt.
5: reads me my text, I have nothing to hide, but you could easily implement the yes/no prompt if you want it read to you or not.
6: turns wifi on, gps on, and you can add a bluetooth on if you want.
HERE ARE THE PROFILES:
Profile: Car Mode
Context:
State -> Docked any
State -> Headset plugged in
But really this could be anything.
Tasks:
Enter Task:
Load App -> Car Home (http://blog.brianmoses.net/2012/10/manually-installing-googles-car-home-app.html)
Secure Settings -> GPS Enabled
Wifi -> Off
System Volume -> 7
Media Volume -> 15
Auto Brightness -> on
Notification Volume -> 7
Secure Settings -> Keep Display On
Secure Settings -> Keyguard Disabled
Variable Set -> %SEARCHWIFI ~ 0 (Youll see why later)
Exit Task:
Variable Set %HOURSINCE ~ 0
Variable Set %MINSINCE ~ 0
IF - %TIME > 12.00 {
MINIMALISTIC TEXT -> (variable) ampm = PM
Variable Set -> %PARKEDTIME to (%TIME-12.00)
}
else if - %TIME < 12.00 {
MINIMALISTIC TEXT -> ampm = AM
%PARKEDTIME to %TIME
}
end if
MINIMALISTIC TEXT parkedtime = %PARKEDTIME
Secure Settings -> Keyguard Enabled
Secure Settings -> Lock Device
Secure Settings -> Keep display on - never
Kill App -> Car Home
Get Location -> GPS, timeout -> 100seconds
Variable Set -> %PARKEDAT ~ %LOC
Secure Settings -> GPS Disabled
Variable Set %SEARCHWIFI ~ 1
Profile: Update Time Since (Update what minimalistic text will show)
This counts how long youve been parked for and assigned an HOUR variable and a MINUTE variable to minimalistic text.
Since the "repeat" thing in tasker has a minimum of 2 minutes, i just made two of the same tasks and made the other wait a minute before starting.
Conext:
Every 2 minutes
Tasks: Timesince1
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Timesince2
wait -> 1 minute
If - %TIMESINCE = 60 {
Variable Set -> %HOURSINCE to %HOURSINCE + 1 (do maths)
Variable Set -> %MINSINCE to 0
MINIMALISTIC TEXT - minsince = %MINSINCE
MINIMALISTIC TEXT - hoursince = %HOURSINCE
}
end if
if - %TIMESINCE < 60 {
Variable Set -> %MINSINCE to (%MINSINCE + 1) (do maths)
MINIMALISTIC TEXT -> minsince = %MINSINCE
MINIMALISTIC TEXT -> hoursince = %HOURSINCE
}
end if
Profile: Read Text
context:
Received Text any
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Read SMS
Silent mode -> on
Say -> %SMSRN says. %SMSRB
silent mode-> off
Profile: Car Call (Asks me if i want to answer the call or not, then the response will be passed off to another profile called CAR RESPONSE)
context:
Call incoming
Variable Value - %PACTIVE ~ *Car Mode*
Enter Task:
Media Control -> Pause (simulate media button)
Ringer Volume -> 0
Say -> Should i answer this call?
Auto voice recognize (Triggers autovoice to listen to you)
Exit Task:
Media Control Play
Profile: Call Response
Do the same for a "NO response" except the command in autovoice will be "no" and the task will end the call.
context:
AutoVoice recognized -> check event behavior, command = yes
Variable Value -> %PACTIVE ~ *Car Mode*
Task: Take Call
Take Call...lol
THIS ONE IS A TASK
Make this task so you can set your minimalistic texts tap behavior to open a tasker shortcut and then select this one.
IT will allow you to navigate to your car when you tap the widget, you may need to change the wait task if it takes longer for your phone to turn on GPS (not get a lock)
Create a task:
Secure Settings GPS Enabled
Wait 3 seconds
Open Map (this is a task under the APP task) Mode-> Navigate To, Address %PARKEDAT
TO SET UP MINIMALISTIC TEXT:
Im not going to tell you what the font should be, what size or what color the font should be etc etc, ill just tell you how to add the variables to minimalistic text
Tap and hold on your homescreen and add a 2x2 Widget
Delete all the premade stuff
if you swipe to the layout tab and press the "+" youll get a bunch of options to add stuff.
Swipe over to the MISC tab, and add a static text and a local variable. Theres a bug in Minimalistic text where if you add a bunch of local variables at once, itll make the values of them all the same..so youll have to add the things one at a time..pain in the butt i know.
so add a static text and a local variable. over and over till you have 4 local variables and 3 static texts.
have 3 rows, delete the ones you dont need by tapping the 3 dots and pressing delete row.
I have it set up like this:
----------------------------------------------------------------------------
[Static text = Parked At:]
----------------------------------------------------------------------------
[Locale Variable = parkedtime] [locale variable = ampm]
----------------------------------------------------------------------------
(optional)[static text icon = user interface-> hand pointy thingy]
----------------------------------------------------------------------------
[static text = Parked For: ]
----------------------------------------------------------------------------
[locale variable = hoursince] [static text = Hrs.] [locale variable = minsince]
----------------------------------------------------------------------------
Then swipe over to "Tap Behaviour" and check "start another activity"
press select and activity or shortcut
swipe right to the shortcut tab
select the "Find Car" task we created earlier
pick an icon for it if it asks by pressing the button on the lower right hand corner
END CAR PROJECT
WIFI PROJECT
These tasks will automate turning your wifi on and off based on locations you are at often. I.E. your house, your work, your buddies house, your girlfriends house, etc...
It works via the cell near state, however im not perfectly clear on how much battery this drains, so i took an extra precaution by having a %SEARCHWIFI variable, set to either 1, or 0, (on or off, respectively). This variable's value is easily changed in any profile, so its easy to avoid conflicting profiles, as well as saves battery by not continuously searching for cellphone towers.
What i do with this, is have a profile, Near Home for example, and when im in a new location i want to automatically connect to, i just clone it, change the name, re-search cellphone towers and voila! I have like 10 of these and it works perfectly. So ill only make a "Near Home" profile, then you can clone that.
I like to have a pattern lock when im out and about, but i dont like having one when im at a buddies house, or at my own house, so i have tasker deal with that. If you want this, first you have to set a pattern lock code. then this will take effect.
Profile: Search Wifi?
Context:
Not Wifi Connected (check invert after the wifi connected task)
Variable Value -> %PACTIVE !~ *Car Mode*
Enter Task:
Variable Set -> %SEARCHWIFI ~ 1
Exit Task:
Variable Set-> %SEARCHWIFI ~ 0
Profile: Wifi Time-Out
If you are near one of the places and you somehow disconnect, tasker will wait 20 seconds to see if youre still disconnected and if you are , turn wifi off, turn the pattern lock on, and in 10 minutes, if youre still in the area it will try to connect again. of course you can change the times to whatever you want.
Context:
Not Wifi Connected
task:
Wait 20 seconds
if - %WIFII !~ *connect*
Secure settings -> pattern lock enabled
Variable set -> %SEARCHWIFI ~ 0
Wifi -> off
end if
wait 10 minutes
Variable set -> %SEARCHWIFI ~ 1
Profile: Near Home
context:
Cell near (press scan)
state -> Variable Value -> %SEARCHWIFI ~ 1
Enter Task:
Wifi On
Secure Settings -> Pattern lock disabled
exit Task:
if - %WIFII !~ *connect* (i know this is overkill)
secure settings -> patternlock disabled
wifi off
end if
END WIFI PROJECT
REQUESTS PROJECT:
Voice commands in car to perform various responses to a received text, requested by oscar615
NOTE: autovoice recognize doesnt play well with pop-up sms windows...sometimes works, sometimes only works after you close the pop up.
Profile: Driving Text
context:
event -> received text any
state -> variable value - %PACTIVE ~ *car mode* (or whatever profile you have for your car)
task:
silent mode on
misc -> say -> Text received by %SMSRN. What should i do?
wait 150ms
plugin -> autovoice recognize
silent mode off
Profile: Cant talk
context:
autovoice recognized -> check event behavior -> command = can't
state -> variable value - %PACTIVE ~ *car mode*
task:
phone -> send sms -> number: %SMSRF, Message: Sorry, im driving, cant talk right now, check 'store in messaging app'
profile: call back
context: plugin -> autovoice recognized, check event behavior, command = call
state -> variable value - %PACTIVE ~ *car mode*
task:
call -> number: %SMSRF, check auto dial
With autovoice, if the command is "can't" you can say anything, and as long as "can't" is somewhere in the sentence, it will perform that action. unless you specified otherwise, but i wont get into that. If you say anything other than those, it will just close.
end oscar's request
END REQUEST PROJECT
Click to expand...
Click to collapse
Hey, any chance you would be willing to post the xml files for that car project ? im really interested in it
Oi.
N5*S.K.6*E.X.1.0*ART*TWRP.2.7.1.0*rad.2.08
n5sk6gapps127artex1.0twrp2.7.1.0rd2.08
n5sk6g'ps127ex1arttwrp2710v4a2330rd208
helo?
n5sk6.4.v1gapps157artex1.0twrp2.7.1.0rd2.08
----------------------------------------------------------------------------
have doubts about Slim? click here:
http://slimroms.net/index.php/faq
---------- Post added at 10:28 AM ---------- Previous post was at 10:26 AM ----------
[emoji20]
n5sk6.4.v1gapps157artex1.0twrp2.7.1.0rd2.08
----------------------------------------------------------------------------
have doubts about Slim? click here:
http://slimroms.net/index.php/faq
Hey there
Sent from my LG-D851 using XDA Free mobile app
Hi, Could I request a tasker profile?
I read that you can kinda export to an app; and that´s what i´m looking
http://android.stackexchange.com/qu...ll-pattern-lock-gets-activated-after-interval
there´s even a Tasker script but i don´t know how to do...
eBoody said:
Hey there
Sent from my LG-D851 using XDA Free mobile app
Click to expand...
Click to collapse
need your help to complete a task i created, i need to send my gps coordinates to any number as a message and to my Email.
what i have done so far is :
mobile data on
secure settings gps enabled
get location
-----------------------------------------How do i send the captured gps location to a number and my email?
secure settings gps disabled
in addition to the above if there is a way to keep sending the updated coordinates that would be fabulous, this is for tracing the device if it is lost or stolen.
Edinho376 said:
Hi, Could I request a tasker profile?
I read that you can kinda export to an app; and that´s what i´m looking
http://android.stackexchange.com/qu...ll-pattern-lock-gets-activated-after-interval
there´s even a Tasker script but i don´t know how to do...
Click to expand...
Click to collapse
tyagi2014 said:
need your help to complete a task i created, i need to send my gps coordinates to any number as a message and to my Email.
what i have done so far is :
mobile data on
secure settings gps enabled
get location
-----------------------------------------How do i send the captured gps location to a number and my email?
secure settings gps disabled
in addition to the above if there is a way to keep sending the updated coordinates that would be fabulous, this is for tracing the device if it is lost or stolen.
Click to expand...
Click to collapse
I made a PROJECT with both of your requests, that means you import it long pressing the home icon on the bottom left of tasker and press import, then navigate where you saved this xml
https://docs.google.com/file/d/0B7iTLxpFAyDRVFhvUDVhOVhJdFk/preview?pli=1
Sent from my LG-D851 using XDA Free mobile app
Thanks mate
Sent from my GT-N7100 using Tapatalk
eBoody said:
I made a PROJECT with both of your requests, that means you import it long pressing the home icon on the bottom left of tasker and press import, then navigate where you saved this xml
https://docs.google.com/file/d/0B7iTLxpFAyDRVFhvUDVhOVhJdFk/preview?pli=1
Sent from my LG-D851 using XDA Free mobile app
Click to expand...
Click to collapse
Bro, I really appreciate your efforts to make this but I honestly must say that I don´t know where or how to use this project. Sorry sorry sorry
I don´t have tasker, neither the demo version; so my question is:
Is there a way to export this project as an apk? Or could i make this work with any free app?
Don´t give up on me hahahaha :fingers-crossed:
Buy Tasker. It's two trips to the vending machine. If you can afford a smart phone and the bill to go with it then support the people that make the apps.
Edinho376 said:
Bro, I really appreciate your efforts to make this but I honestly must say that I don´t know where or how to use this project. Sorry sorry sorry
I don´t have tasker, neither the demo version; so my question is:
Is there a way to export this project as an apk? Or could i make this work with any free app?
Don´t give up on me hahahaha :fingers-crossed:
Click to expand...
Click to collapse
Even if I were to export it as an app, you would still need tasker installed for the app to work
Aside from that, tasker is the most amazing app ever created bar none, by far. It's a huge reason android is king. I really recommend you get it and tinker with it on your free time.
Sent from my LG-D851 using XDA Free mobile app

Screenshot with Proximity Sensor

Hello, I am looking for an app that will use the proximity sensor on my phone to capture a screenshot. I tried one called quickscreenshot but it didnt seem to be supported on my phone. I also have tasker if anyone knows a profile to do this. Thanks!
R_Chin said:
Hello, I am looking for an app that will use the proximity sensor on my phone to capture a screenshot. I tried one called quickscreenshot but it didnt seem to be supported on my phone. I also have tasker if anyone knows a profile to do this. Thanks!
Click to expand...
Click to collapse
You just need a profile "ProxVar" with a task that checks if the proximity sensor is active and set a variable %PROX and one profile "ProxScreen" to react to this variable so it takes a screenshot. I would recommend to include the "wait" function (the part included in the [ ] brackets) to ensure that the screenshot task will only being activated if the proximity sensor is covered for one second to avoid accidential screenshots.
Profile: ProxVar
State: Proximity
Task: SetProx
Variable / SetVariable %PROX to 1
Exit Task: ResetProx
Variable / SetVariable %PROX to 0
Profile: ProxScreen
State: Variable %PROX = 1
Task: ScreenshotProx
[Task / Wait 1 Second]
Task / If %PROX Matches *, 1,*
-> take screenshot
I take a screenshot by using the Secure Settings plugin for Tasker and chose "Actions" -> "Execute Shortcut" -> "Slim Shortcuts" -> "Screenshot"
orville87 said:
You just need a profile "ProxVar" with a task that checks if the proximity sensor is active and set a variable %PROX and one profile "ProxScreen" to react to this variable so it takes a screenshot. I would recommend to include the "wait" function (the part included in the [ ] brackets) to ensure that the screenshot task will only being activated if the proximity sensor is covered for one second to avoid accidential screenshots.
Profile: ProxVar
State: Proximity
Task: SetProx
Variable / SetVariable %PROX to 1
Exit Task: ResetProx
Variable / SetVariable %PROX to 0
Profile: ProxScreen
State: Variable %PROX = 1
Task: ScreenshotProx
[Task / Wait 1 Second]
Task / If %PROX Matches *, 1,*
-> take screenshot
I take a screenshot by using the Secure Settings plugin for Tasker and chose "Actions" -> "Execute Shortcut" -> "Slim Shortcuts" -> "Screenshot"
Click to expand...
Click to collapse
Thanks you very much. I am trying this now. The only thing I am having trouble with is the secure settings and getting it to screenshot. When I went to execute shortcut I cannot find the slim shortcuts you are talking about for the screenshot.
R_Chin said:
Thanks you very much. I am trying this now. The only thing I am having trouble with is the secure settings and getting it to screenshot. When I went to execute shortcut I cannot find the slim shortcuts you are talking about for the screenshot.
Click to expand...
Click to collapse
Hmm, maybe this is part of my Custom ROM. Otherwise you could run a command to execute the screenshot. As I have no access to my PC right now, I can't search for the corresponding command.
R_Chin said:
Thanks you very much. I am trying this now. The only thing I am having trouble with is the secure settings and getting it to screenshot. When I went to execute shortcut I cannot find the slim shortcuts you are talking about for the screenshot.
Click to expand...
Click to collapse
So, I found this plugin, which you can use to trigger a screenshot in Tasker.
R_Chin said:
Thanks you very much. I am trying this now. The only thing I am having trouble with is the secure settings and getting it to screenshot. When I went to execute shortcut I cannot find the slim shortcuts you are talking about for the screenshot.
Click to expand...
Click to collapse
Okay, if the above linked app does not work, you can set up a task that runs a shell command to take the screenshot (which would be the far more easier way as no additional app is required). The command for this is
Code:
/system/bin/screencap -p %filename
where "%filename" is a variable describing the path to the folder (plus a variable name, depending on date/time for example) where the screenshot should be stored. For me, this would be
Code:
/system/bin/screencap -p /storage/emulated/0/Pictures/Screenshots/Screenshot_%DATE%TIME.png
This method will take a screenshot, but wouldn't show you the "Screenshot captured" notification. But you can add a toast notification to indicate that the screenshot has been captured by adding Alarm -> Flash to the screenshot task and enter something like "Screenshot captured" as a toast title.
I hope that I was able to help you set up your proximity-screenshot profile for Tasker
Decided to put this instructions into one big post.
You have to set up two profiles, one for checking if the proximity sensor is currently covered and another profile to execute the task for screenshot capturing.
The first profile ProxVar uses a task called SetProx, which will set a variable %PROX to 1 if the proximity sensor is covered and an exit task ResetProx to reset %PROX to 0 if it is no longer covered. It will also abort the task ScreenshotProx for screenshot capturing, in case that the proximity sensor has been covered by accident. You might also add another state Display On to trigger this profile only when your device's screen is turned on to prevent Tasker from taking countless screenshots when your device is in your pocket.
Profile: ProxVar
State: Proximity
State: Display On
Task: SetProx
Variable / SetVariable %PROX to 1
Exit Task: ResetProx
Variable / SetVariable %PROX to 0
Task / Stopp Task ScreenshotProx
The second profile will react to the %PROX variable. In case %PROX matches 1, its corresponding task ScreenshotProx will start by waiting one second and check again, if the proximity sensor is covered by checking the %PROX variable again. If %PROX is still 1, it will run the shell command to execute the screenshot capturing and save it to the specified folder (/Pictures/Screenshots in your internal memory) with the current date and time in its name. Afterwards, it will display a short toast notification to verify that the screenshot has successfully been captured.
Profile: ProxScreen
State: Variable %PROX = 1
Task: ScreenshotProx
Task / Wait 1 Second
Task / If %PROX Matches *, 1,*
Code / Run Shell
Code:
/system/bin/screencap -p /storage/emulated/0/Pictures/Screenshots/Screenshot_%DATE%TIME.png
Alarm / Flash "Screenshot captured"
Task / End If
In case you want to change the target folder for the screenshots to be saved, you can use any file manager to determine the path of the desired folder and enter it into the above stated shell command.
orville87 said:
You just need a profile "ProxVar" with a task that checks if the proximity sensor is active and set a variable %PROX and one profile "ProxScreen" to react to this variable so it takes a screenshot. I would recommend to include the "wait" function (the part included in the [ ] brackets) to ensure that the screenshot task will only being activated if the proximity sensor is covered for one second to avoid accidential screenshots.
Profile: ProxVar
State: Proximity
Task: SetProx
Variable / SetVariable %PROX to 1
Exit Task: ResetProx
Variable / SetVariable %PROX to 0
Profile: ProxScreen
State: Variable %PROX = 1
Task: ScreenshotProx
[Task / Wait 1 Second]
Task / If %PROX Matches *, 1,*
-> take screenshot
I take a screenshot by using the Secure Settings plugin for Tasker and chose "Actions" -> "Execute Shortcut" -> "Slim Shortcuts" -> "Screenshot"
Click to expand...
Click to collapse
orville87 said:
Okay, if the above linked app does not work, you can set up a task that runs a shell command to take the screenshot (which would be the far more easier way as no additional app is required). The command for this is
Code:
/system/bin/screencap -p %filename
where "%filename" is a variable describing the path to the folder (plus a variable name, depending on date/time for example) where the screenshot should be stored. For me, this would be
Code:
/system/bin/screencap -p /storage/emulated/0/Pictures/Screenshots/Screenshot_%DATE%TIME.png
This method will take a screenshot, but wouldn't show you the "Screenshot captured" notification. But you can add a toast notification to indicate that the screenshot has been captured by adding Alarm -> Flash to the screenshot task and enter something like "Screenshot captured" as a toast title.
I hope that I was able to help you set up your proximity-screenshot profile for Tasker
Click to expand...
Click to collapse
Thank you so much. The app works great. I tried the code just to test and it didn't seem to work. Thanks so much!
orville87 said:
Okay, if the above linked app does not work, you can set up a task that runs a shell command to take the screenshot (which would be the far more easier way as no additional app is required). The command for this is
Code:
/system/bin/screencap -p %filename
where "%filename" is a variable describing the path to the folder (plus a variable name, depending on date/time for example) where the screenshot should be stored. For me, this would be
Code:
/system/bin/screencap -p /storage/emulated/0/Pictures/Screenshots/Screenshot_%DATE%TIME.png
This method will take a screenshot, but wouldn't show you the "Screenshot captured" notification. But you can add a toast notification to indicate that the screenshot has been captured by adding Alarm -> Flash to the screenshot task and enter something like "Screenshot captured" as a toast title.
I hope that I was able to help you set up your proximity-screenshot profile for Tasker
Click to expand...
Click to collapse
So the app doesn't actually work as I though. I'm gonna try the code. So I just go code and then shell command. And put it in there?
R_Chin said:
So the app doesn't actually work as I though. I'm gonna try the code. So I just go code and then shell command. And put it in there?
Click to expand...
Click to collapse
Yes, when you select the shell command you just put this command line there. Ensure that the folder Screenshots exists inside of the folder Pictures on your internal storage. Otherwise it won't work. And you need root access to execute this command, so check the "Use root" box.
orville87 said:
Okay, if the above linked app does not work, you can set up a task that runs a shell command to take the screenshot (which would be the far more easier way as no additional app is required). The command for this is
Code:
/system/bin/screencap -p %filename
where "%filename" is a variable describing the path to the folder (plus a variable name, depending on date/time for example) where the screenshot should be stored. For me, this would be
Code:
/system/bin/screencap -p /storage/emulated/0/Pictures/Screenshots/Screenshot_%DATE%TIME.png
This method will take a screenshot, but wouldn't show you the "Screenshot captured" notification. But you can add a toast notification to indicate that the screenshot has been captured by adding Alarm -> Flash to the screenshot task and enter something like "Screenshot captured" as a toast title.
I hope that I was able to help you set up your proximity-screenshot profile for Tasker
Click to expand...
Click to collapse
orville87 said:
Yes, when you select the shell command you just put this command line there. Ensure that the folder Screenshots exists inside of the folder Pictures on your internal storage. Otherwise it won't work. And you need root access to execute this command, so check the "Use root" box.
Click to expand...
Click to collapse
So I put the command in and I have root and I ran the shell with a pop-up after to make sure the shell ran all the way through which it said it did. But when I checked my photos there was nothing there and I have the folder which it should be trying to save to. Any ideas?
R_Chin said:
So I put the command in and I have root and I ran the shell with a pop-up after to make sure the shell ran all the way through which it said it did. But when I checked my photos there was nothing there and I have the folder which it should be trying to save to. Any ideas?
Click to expand...
Click to collapse
Could you check the path of the folder where you want to store the screenshots? Is it /storage/emulated/0/Pictures/Screenshots? Otherwise you have to use the path to your folder instead. For quick verification of the functionality of the task you can run the task from Tasker by clicking on the triangular symbol in the left corner when you have selected the ScreenshotProx task.
I assume you have granted super user access to Tasker via SuperSU or whatever super user app you are using.
orville87 said:
Could you check the path of the folder where you want to store the screenshots? Is it /storage/emulated/0/Pictures/Screenshots? Otherwise you have to use the path to your folder instead. For quick verification of the functionality of the task you can run the task from Tasker by clicking on the triangular symbol in the left corner when you have selected the ScreenshotProx task.
I assume you have granted super user access to Tasker via SuperSU or whatever super user app you are using.
Click to expand...
Click to collapse
Yes the file path is correct and tasker has permission. I went to run the screenshotprox and it went through everything gave the if task a green light but didn't go to the screenshot command
R_Chin said:
Yes the file path is correct and tasker has permission. I went to run the screenshotprox and it went through everything gave the if task a green light but didn't go to the screenshot command
Click to expand...
Click to collapse
I attached my setup. Please check if you have the same on your device.
The task ScreenshotCommand is the same as the ScreenshotProx.
Some German translations (IDK why Tasker had those commands in German with overall language set to English):
Shell ausführen = Run Shell
Popup-Benachrichtigung = Flash
orville87 said:
So, I found this plugin, which you can use to trigger a screenshot in Tasker.
Click to expand...
Click to collapse
orville87 said:
I attached my setup. Please check if you have the same on your device.
The task ScreenshotCommand is the same as the ScreenshotProx.
Some German translations (IDK why Tasker had those commands in German with overall language set to English):
Shell ausführen = Run Shell
Popup-Benachrichtigung = Flash
Click to expand...
Click to collapse
I just went through there were a couple things different but i changed everything to be like yours. I even went into the screenshotcommand task and played it and as my finger went over the sensor it turned the if statement to green and then back to red when removing my finger, it just doesnt take the screenshot. If i run the proxset manually then run the screenshotcommand it will go through everything and give a toast notification but then no pciture. I am going to try and change the path so it just goes in my pictures instead of a sub folder.
R_Chin said:
I just went through there were a couple things different but i changed everything to be like yours. I even went into the screenshotcommand task and played it and as my finger went over the sensor it turned the if statement to green and then back to red when removing my finger, it just doesnt take the screenshot. If i run the proxset manually then run the screenshotcommand it will go through everything and give a toast notification but then no pciture. I am going to try and change the path so it just goes in my pictures instead of a sub folder.
Click to expand...
Click to collapse
Hmm, maybe you have to cover the proximity sensor a little bit longer.
orville87 said:
Hmm, maybe you have to cover the proximity sensor a little bit longer.
Click to expand...
Click to collapse
Correction upon inspecting my files via root explorer i noticed it is taking the screenshots. It just isnt showing up in the gallery. Any idea. And also in tasker it doesnt seem to be running the SetProx task all the time. Like the profile isnt green.
R_Chin said:
Correction upon inspecting my files via root explorer i noticed it is taking the screenshots. It just isnt showing up in the gallery. Any idea. And also in tasker it doesnt seem to be running the SetProx task all the time. Like the profile isnt green.
Click to expand...
Click to collapse
Okay, so it is capturing the screenshots. Good. Maybe you have disabled the media scanner for your device or put a .noMedia file into the Screenshots folder, thus the screenshots are not shown in your gallery.
The SetProx task will only been triggered if you cover the proximity sensor due to the fact that it reacts to the state Proximity, which is only being activated when the proximity sensor is covered. Try covering the proximity sensor while in the Profile section of Tasker and you may see that the ProxVar profile's name will turn green.
R_Chin said:
Correction upon inspecting my files via root explorer i noticed it is taking the screenshots. It just isnt showing up in the gallery. Any idea. And also in tasker it doesnt seem to be running the SetProx task all the time. Like the profile isnt green.
Click to expand...
Click to collapse
if u guys need a app for this , maybe i can code one using all the useful u guys have provided in the post, would you guys be interested in such a app??
orville87 said:
Hmm, maybe you have to cover the proximity sensor a little bit longer.
Click to expand...
Click to collapse
orville87 said:
Okay, so it is capturing the screenshots. Good. Maybe you have disabled the media scanner for your device or put a .noMedia file into the Screenshots folder, thus the screenshots are not shown in your gallery.
The SetProx profile will only being triggered if you cover the proximity sensor due to the fact that it reacts to the state Proximity, which is only being activated when the proximity sensor is covered. Try covering the proximity sensor while in the Profile section of Tasker and you may see that the profile's name will turn green.
Click to expand...
Click to collapse
So how would i fix the media scanner so that it shows in my gallery. And yea i realized after i said that it was because i wasnt activating it haha. Also thank you so much for your help, you are helping me understand tasker more as i am semi new and also I hated taking screenshots with the buttons.

Change keys light duration whit terminal..

Hello,
Small guide to change the soft key light duration.
Download emulator.
Open and grant permissions (su)
After this you have to digit
settings put system button_key_light 0
THIS FOR ALWAYS OFF..
IF YOU NEED ALWAYS ON DIGIT
settings put system button_key_light -1
NEED 1.5 SEC? NO PROBLEM DIGIT
settings put system button_key_light 1500
FOR 6 SEC
settings put system button_key_light 6000
NO OTHER ENTRY ARE AVAILABLE..
TESTED ON S7 EDGE..EXYNOS G935F..
If you share please enter the link of my post. thank you.
Also works well with Tasker and the run shell command. I have them disabled at night when reading as they are to bright. Didn't know about the different time settings.

Disable charging LED?

I use my phone to read in bed at night. I have two questions.
Does anyone know how I can disable the charging LED?
Does anyone know of a way to increase the intensity of night mode beyond the stock settings?
If it helps I have Xposed and magisk. Oh also, I would prefer not to use gravity box for Oreo, as it seems to mess up some things with the status bar.
I want to do this too , I don't understand why there isn't an option to turn it off.
I downloaded Lightmanager and lightflow to try and turn it off, unfortunately didn't work.
Same. Sure wish at least the LED brightness could be controlled.
With lightning manager, config the color with 000001 (it doesn't work with 000000)
Only way is to turn off LED for all.
Settings > Display>Blink LED
For those who were interested, I solved this by using the app Light Flow.
I use tasker to do this and the secure settings plugin. In the secure settings plugin I run the following script:
settings put system battery_charging_led 0
This will only disable the charging led. Change the 0 for a 1 to turn it on again.
Hexyl said:
I use tasker to do this and the secure settings plugin. In the secure settings plugin I run the following script:
settings put system battery_charging_led 0
This will only disable the charging led. Change the 0 for a 1 to turn it on again.
Click to expand...
Click to collapse
Does this still work for you on latest Android?
It works on Lineage Android 9 on OnePlus 3T.
Thank you!

Categories

Resources