Question Simple LED Blinker for the rooted Motorola Edge 20 Lite(Fusion) - Motorola Edge 20 Lite

I have made "Moto_LED_Blinker.prj.xml" file. See attached file.
This is a simple LED Blinker for the rooted Motorola Edge 20 Lite(Fusion)
"Moto_LED_Blinker.prj.xml" is a project file of "Tasker" for the blinking LED notification.
It is require "Tasker" for the running it.
The LED starts to blink by:
a phone calling.
a message of some messenger applications(Eg, WhatsApp, Signal, Telegram and so on).
a charging battery.
And the LED stops to blink when open an anpplicable application.
Moto_LED_Blinker.prj.xml is not a perfect.
However, it is so nice.
Please customize it for your device.
Regards!

this sounds great!
i've never used tasker before, can it be exported as a stand alone app so people without tasker can use it?

trevtdogg said:
this sounds great!
i've never used tasker before, can it be exported as a stand alone app so people without tasker can use it?
Click to expand...
Click to collapse
Techinical Iinformation:
Moto_LED_Blinker.prj.xml makes LED on and off by writting data to /sys/class/leds/charging/brightness.
This writing operation require the ROOT permission.
It is possible to export as a standalone application and people can execute the application without Tasker.
In this case, the standalone application have to be ran with the ROOT permission.
We need ROOTED device for the running the standalone application.
I have no plan to export the standalone application.
Because:
(1) There is no easy way to verify that the standalone application is secure by another person. This is a great chance to mix malicious code into the standalone application.
(2) The standalone application can not change a triggering application for the LED blinking.
(3) After all, the standalone application needs ROOT permission.
Regards,

TakaSZK said:
Techinical Iinformation:
Moto_LED_Blinker.prj.xml makes LED on and off by writting data to /sys/class/leds/charging/brightness.
This writing operation require the ROOT permission.
It is possible to export as a standalone application and people can execute the application without Tasker.
In this case, the standalone application have to be ran with the ROOT permission.
We need ROOTED device for the running the standalone application.
I have no plan to export the standalone application.
Because:
(1) There is no easy way to verify that the standalone application is secure by another person. This is a great chance to mix malicious code into the standalone application.
(2) The standalone application can not change a triggering application for the LED blinking.
(3) After all, the standalone application needs ROOT permission.
Regards,
Click to expand...
Click to collapse
Nice work
This reminds me.. I need to fix the flashlight toggle on pbrp.
Do you know which dir is for flash / torch?
I assume it'll be one of these 3.. Not had a chance to test
Code:
/sys/class/flashlight/mt-flash-led1
/sys/class/flashlight/mt-flash-led2
/sys/class/flashlight_core/flashlight

CFKod said:
Nice work
This reminds me.. I need to fix the flashlight toggle on pbrp.
Do you know which dir is for flash / torch?
I assume it'll be one of these 3.. Not had a chance to test
Code:
/sys/class/flashlight/mt-flash-led1
/sys/class/flashlight/mt-flash-led2
/sys/class/flashlight_core/flashlight
Click to expand...
Click to collapse
@CFKod
Hi,
I had confirmed in my Edge 20 Fusion.
I think that the torch is depend in /sys/class/flashlight/mt-flash-led1/ directory.
Because:
When the torch is OFF then follwing results.
:/ #
:/ # cat /sys/class/flashlight/mt-flash-led1/torch_brightness
12
:/ # cat /sys/class/flashlight/mt-flash-led1/mode
Off
:/ # cat /sys/class/flashlight/mt-flash-led2/torch_brightness
0
:/ # cat /sys/class/flashlight/mt-flash-led2/mode
Off
:/ #
When the torch is ON then follwing results.
the mode file of mt-flash-led1 says "Torch".
:/ #
:/ # cat /sys/class/flashlight/mt-flash-led1/torch_brightness
12
:/ # cat /sys/class/flashlight/mt-flash-led1/mode
Torch
:/ # cat /sys/class/flashlight/mt-flash-led2/torch_brightness
0
:/ # cat /sys/class/flashlight/mt-flash-led2/mode
Off
:/ #
I had tried to write "Off" and "Torch" into mode file.
It was failed. It so regrettable.
:/ #
:/ # echo Off > /sys/class/flashlight/mt-flash-led1/mode
: can't create /sys/class/flashlight/mt-flash-led1/mode: Permission denied
1|:/ #
1|:/ # echo Torch > /sys/class/flashlight/mt-flash-led1/mode
: can't create /sys/class/flashlight/mt-flash-led1/mode: Permission denied
1|:/ #
1|:/ #
Regards,

Does this mod use the white led over the top of the screen that lights up on the boot sequence?

xvivo said:
Does this mod use the white led over the top of the screen that lights up on the boot sequence?
Click to expand...
Click to collapse
Let's try below if you have rooted Edge 20 fusion. You can find which LED going ON ;-)
# echo 1 > /sys/class/leds/charging/brightness
# echo 0 > /sys/class/leds/charging/brightness

For anyone still wondering, it indeed uses the Led near the top grill.
It works well. Thanks.
I found my way around and customized it for my applications using the original application slots.
How to add more such slots?
Second question is that some apps pop up a temporary notification when they are checking for new messages (for example gmail, whatsapp). This notification triggers the script, but since it goes away, I check the phone and there is nothing there. I thought it was a bug until I found out what is happening from the "monitoring" option in tasker. Any way to stop these false alarms?

To answer my second question, I just added that it will trigger the led only if the display is off.
I also changed most off triggers to happen when the notification is cleared instead of needing to open the app.

In my case, I find a false alarm(false notifaction) in the history of notification and disable the false alarm.
> How to add more such slots?
I am very sorry. I have no answer because I don't know slot.

Good morning. Where can I find the procedure to import the file on tasker in my Edge 30 fusion? Thank you

Related

[Q] x10 mini pro keyboard backlight

I've tried searching in the forums, but no luck..
I've installed CM6-v3.1 on my phone, and now it seems that the backlight on the pull-out-keyboard always is on? (as long as the phone's not at standby) It drains my battery.. Any ways to fix this?
Also, I wonder if it's possible to get the key-setup fixed for the pull-out-keyboard?
It's now in English, and I have an Norwegian phone..
Then I have 3more letters in my alphabet (æ-ø-å), which means I have some extra keys on it.. The keyboard is messed up with the signs, but not the letters and numbers.. f.inst. : my dot button (.) and the '':'' button now shows ''?'' and ''!'' ..
My ''æ'' button shows dot (.) and '':''...
See my point ? I think I just need the Original SE ''pull-out-keyboard'' file to replace the CM file? If, how do I get it?
Please answer my first question first, as that is more important to me
Thanks!
HanMedSverd said:
I've tried searching in the forums, but no luck..
I've installed CM6-v3.1 on my phone, and now it seems that the backlight on the pull-out-keyboard always is on? (as long as the phone's not at standby) It drains my battery.. Any ways to fix this?
Also, I wonder if it's possible to get the key-setup fixed for the pull-out-keyboard?
It's now in English, and I have an Norwegian phone..
Then I have 3more letters in my alphabet (æ-ø-å), which means I have some extra keys on it.. The keyboard is messed up with the signs, but not the letters and numbers.. f.inst. : my dot button (.) and the '':'' button now shows ''?'' and ''!'' ..
My ''æ'' button shows dot (.) and '':''...
See my point ? I think I just need the Original SE ''pull-out-keyboard'' file to replace the CM file? If, how do I get it?
Please answer my first question first, as that is more important to me
Thanks!
Click to expand...
Click to collapse
the keyboard light is a quick dirty fix coz we have bigger bugs to solve now i fixed it that way for now
and don't panic the led almost don't eat battery mike and i will look into it after fixing the bigger bugs
and please reflash make an backup in xRecovery flash se firmware back
then please copy the /syetem/usr folder and sent it to me (pm) and i will fix your keyboard (i thougt it was the same as swedish (try to flash that one first) if it dont work sent me your usr folder)
after you sent it you can place your floyo backup back
Owain
i have the same problem here.. Not just about killing battery owain, but it reduce our own visibility of the keyboard characters itself when we are on the bright room.. Maybe there's a generic fix that we can apply by ourself if that's quite easy for us?
Well anyway if it's easy to fix then i guess you must be already bundling it on the next version Thanks so much for the hard work.
hansip87 said:
i have the same problem here.. Not just about killing battery owain, but it reduce our own visibility of the keyboard characters itself when we are on the bright room.. Maybe there's a generic fix that we can apply by ourself if that's quite easy for us?
Well anyway if it's easy to fix then i guess you must be already bundling it on the next version Thanks so much for the hard work.
Click to expand...
Click to collapse
if you really wanna turn it of do this in root explorer
put a "0" in "/sys/devices/platform/msm_pmic_misc_led.0/brightness" file and save it now your led is off and if you want it on again just put a 1 or any number above 1 in the file it is quite simple lol
im trying to get it nice fixed in the CM settings but that kinda hard so when i fail at that i will try another way bash script i guess
owain94 said:
put a "0" in "/sys/devices/platform/msm_pmic_misc_led.0/brightness" file and save it now your led is off and if you want it on again just put a 1 or any number above 1 in the file it is quite simple lol
Click to expand...
Click to collapse
with Tasker and Locale Execute plugin, you can automate this task so that keyboard led turns on when keyboard is out and it turns off when not out
owain94 said:
Please reflash make an backup in xRecovery flash se firmware back
then please copy the /syetem/usr folder and sent it to me (pm) and i will fix your keyboard (i thougt it was the same as swedish (try to flash that one first) if it dont work sent me your usr folder)
after you sent it you can place your floyo backup back
Owain
Click to expand...
Click to collapse
Ok, I got a little confused in there.. Im really a noob so ;
* Reflash to CM again? And then make backup.
* Then flash to SE fw. and copy ''/syetem/usr'' (< u mean system right?)
* Then flash back to CM again, and w8 4 U fix 4 me?
(About the SWE. Keyb. : Sweden have 3 letters 2, but it's not the same symbol.. :S Then I'll probably get the key-setup right, but it will input the swedish letters?)
Thanks 4 the help! (I dont rlly care about the backlight, just wondered ^^)
P's, I did take backup in xRecovery b4 starting with CM (and thats the 2.1-update1 version..). Is it possible 2 find the file in the backup? or i can send u the backup? Then I wont have 2 reflash..
Also : When im gonna reflash, which program should I use 2 backup my apps ?
My keyboard : http://www.google.com/imgres?imgurl...ndsp=21&ved=1t:429,r:16,s:19&biw=1366&bih=625
drsood said:
with Tasker and Locale Execute plugin, you can automate this task so that keyboard led turns on when keyboard is out and it turns off when not out
Click to expand...
Click to collapse
Really ?
I tried it, but no chance that tasker detect the keyboard out event.
You did it ?
regs
Dominic
Edit :
Sorry, I am stupid, of course it works, I had to enable the task
just flashed the ''danish.zip'' works perfectly" ;D
TESTED and working like a charm...
with Tasker and Locale Execute plugin on the STATE Keyboard Out, executing echo "1" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness and as exit task echo "0" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness
starting from the above minimal procedure, you could customize as you want (else trigging from light intensity) the keyboard led behaviour...
respect
I have that same issue about that special bottom right button "àü" in Belgium, which had to show me a panel of symbols or could push it with another key to have a special letter like these "é è ë ê à ç"
it should normally be the same as the french keyboard (don't know if they have QWERTY or AZERTY keyboards tho)
liquidsk said:
TESTED and working like a charm...
with Tasker and Locale Execute plugin on the STATE Keyboard Out, executing echo "1" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness and as exit task echo "0" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness
starting from the above minimal procedure, you could customize as you want (else trigging from light intensity) the keyboard led behaviour...
respect
Click to expand...
Click to collapse
hello how to change /sys/devices/platform/msm_pmic_misc_led.0/brightness into 1 or 0???
im trying to do with rootexplorer but when i open this file via text editor it shows blank & after i changed the value & exit after saving its not changed means file remains blank..
please help?
liquidsk said:
TESTED and working like a charm...
with Tasker and Locale Execute plugin on the STATE Keyboard Out, executing echo "1" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness and as exit task echo "0" >> /sys/devices/platform/msm_pmic_misc_led.0/brightness
starting from the above minimal procedure, you could customize as you want (else trigging from light intensity) the keyboard led behaviour...
respect
Click to expand...
Click to collapse
Not sure where to input these commands. Mind give me a simplistic step by step where to go to input these commands? thanks in advance!
ctalcant said:
Not sure where to input these commands. Mind give me a simplistic step by step where to go to input these commands? thanks in advance!
Click to expand...
Click to collapse
Make sure u have installed Tasker and Locale Execute plugin (from market)
after that just import the attached profile into tasker...
drsood said:
with Tasker and Locale Execute plugin, you can automate this task so that keyboard led turns on when keyboard is out and it turns off when not out
Click to expand...
Click to collapse
Please help me with this :
I don't want the backlight to be off.. I just want it to be off when the keyboard is in, and if it's out> I want it to turn off when not touched, and turn on as long as I use the buttons..
Think thats how the default in the 2.1-update1 SE fw was..
At least thats how it was on my phone
Working with locale plugin ... just one thing, every time I open or close physical keyboard, a notification appears, echo "x" >> .... on half of my screen, how to remove it ?
D4rKn3sSyS said:
Working with locale plugin ... just one thing, every time I open or close physical keyboard, a notification appears, echo "x" >> .... on half of my screen, how to remove it ?
Click to expand...
Click to collapse
u must have entered the command as "echo..........."
just add @ infront of the command and the notifications (toasts) should disappear e.g. "@ echo...."
drsood said:
u must have entered the command as "echo..........."
just add @ infront of the command and the notifications (toasts) should disappear e.g. "@ echo...."
Click to expand...
Click to collapse
Nice man thanks
keyboard light
Works perfect for me tasker+locale execute= problem solved. thanks.,..
widget
I'll be the first to admit that I'm a noob. But it seems to me that if you can switch it at runtime with a command it would be fairly easy to make a widget for the switching right?
That way you can manually select at any moment whether you want the light to be on or not. (Possibly working together with the solution above to automatically switch it off when the keyboard isn't out.)
In-deep-taskin'
JDRX said:
I'll be the first to admit that I'm a noob. But it seems to me that if you can switch it at runtime with a command it would be fairly easy to make a widget for the switching right?
That way you can manually select at any moment whether you want the light to be on or not. (Possibly working together with the solution above to automatically switch it off when the keyboard isn't out.)
Click to expand...
Click to collapse
In Tasker you have the ability to "link" the keyb-light-on command to the keyb-out state, aswell to "link" the keyb-light-off script to the keyb-in state (or as exit task)...
BUT
you could also make the command on + off on exit task (keyb-in) LINKED to a variable determined by an external condition (external LIGHT intensity):
in simple words:
hi tasker, i would like to have my keyboard backlight on when i slide out my physical qwerty but only ***IF*** the ambient light level is not enough to make me easily identify the buttons, then, please tasker, turn off the light when I close my qwerty if before you have turned it on.
To achieve this behaviour, just check the ***If*** box by editing the execute command in the created task (keyb-light-on when keyb-state=out) to set the If variable. Select as variable **Light level** (%LIGHT) and link it to a math **Condition Operator** like "less than" (<) then put the desired percentage of ambient light below which (in this case) the command keyb-light-on triggered by keyb-out state will get executed. Remember to also create an exit task with the keyb-light-off execute command (obviously without setting the **IF** variable).
Note:
On tasker, the first time you use the %LIGHT (light level variable) you should expose your device first a while in a dark place, then a while in a WELL lightened place. Do that in order to allow tasker to set properly the on-off border working conditions to internally understand light sensor datas
Hope that could help.
Any doubt --> post here
best regards,
respect!

Screen Bleed Workarounds

I'm really sensitive to the button backlight screen bleed on these phones. Here are two things which have helped me so far:
1. mVideoPlayer https://market.android.com/details?id=afzkl.development.mVideoPlayer&feature=search_result
This is the only video player I have found which disables the button backlight when playing in the dark.
2. Screen Filter https://market.android.com/details?id=com.haxor&feature=search_result
Allows you to disable the button backlight all together!!! Set the filter to 100% if you don't want it to dim your screen and the de-select the check box for soft-key backlight.
Ideally I would prefer to find an app which will timeout the capacitive back lighting but I have not been able to find one.
Dude... you just fixed my phone!
I used the screen filter app and it works perfect!
I mean those buttons are in the same place all the time why do they even need to be lit?
Thanks for sharing~
Turboboxer said:
Dude... you just fixed my phone!
I used the screen filter app and it works perfect!
I mean those buttons are in the same place all the time why do they even need to be lit?
Thanks for sharing~
Click to expand...
Click to collapse
I felt the same way
Thanks a lot that screen bleed is gone. Doesn't bother at all now. Never need the keys at the bottom to light anyways.
Sent from my HTC_Amaze_4G using xda premium
Tasker + Locale Execute Plug-in
OR
Tasker + Secure Settings (Recommended)
Secure Settings -> Market Link
Local Execute Plug-in -> Market Link
Tasker -> Market Link
There is a difference between the Market Version and Off market version -> http://tasker.dinglisch.net/faq-ov.html
Command to turn off softkeys backlight -> echo 0 > /sys/class/leds/button-backlight/brightness
For Locale Execute Plug-in, "@! echo 0 > /sys/class/leds/button-backlight/brightness" without the quotes
heyodee said:
Tasker + Locale Execute Plug-in
OR
Tasker + Secure Settings (Recommended)
Secure Settings -> Market Link
Local Execute Plug-in -> Market Link
Tasker -> Market Link
There is a difference between the Market Version and Off market version -> http://tasker.dinglisch.net/faq-ov.html
Command to turn off softkeys backlight -> echo 0 > /sys/class/leds/button-backlight/brightness
For Locale Execute Plug-in, "@! echo 0 > /sys/class/leds/button-backlight/brightness" without the quotes
Click to expand...
Click to collapse
Nice, but why spend the money if you only using it for that feature??? Couldn't you just run the echo from a Terminal?
vw671 said:
Nice, but why spend the money if you only using it for that feature??? Couldn't you just run the echo from a Terminal?
Click to expand...
Click to collapse
Tasker is arguably one of the best apps ever developed on android. Its feature extensive. A must have app for all android devices. Then again, that's my setup, tot i share
vw671 said:
Nice, but why spend the money if you only using it for that feature??? Couldn't you just run the echo from a Terminal?
Click to expand...
Click to collapse
Yes it can be tun straight from terminal emulator.
Code:
su
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 0333 /sys/class/leds/button-backlight/brightness
The second line makes the changes permanent until reboot. Otherwise locking the screen and unlocking again, as well as some other things, will turn the backlights back on again.
To undo the permanence, type this:
Code:
su
chmod 0647 /sys/class/leds/button-backlight/brightness
vw671 said:
I felt the same way
Click to expand...
Click to collapse
+1,000,000 and thanks OPoster for this!!!
the screen filter darkens it a lot..
Felinos11 said:
the screen filter darkens it a lot..
Click to expand...
Click to collapse
Set it to 100% to disable the filter.
Thank you!!! Great find! Now there's not a single flaw with my phone .
For some weird reason, after installing Screen Filter, I was unable to install a third-party application downloaded from the Internet, the Install button froze. Then after uninstalling Screen Filter everything went back to normal...
Just in case someone else bumps into the same problem
lgtsanev said:
For some weird reason, after installing Screen Filter, I was unable to install a third-party application downloaded from the Internet, the Install button froze. Then after uninstalling Screen Filter everything went back to normal...
Just in case someone else bumps into the same problem
Click to expand...
Click to collapse
have had trouble sideloading apps too
I just reboot when it happens
fixed the last 3 times. Seems to happen every couple of days for whatever reason
Awesome thanks a lot .. works great
lgtsanev said:
For some weird reason, after installing Screen Filter, I was unable to install a third-party application downloaded from the Internet, the Install button froze. Then after uninstalling Screen Filter everything went back to normal...
Just in case someone else bumps into the same problem
Click to expand...
Click to collapse
Just pull down the taskbar and click on the screen filter icon to disable it , and your apps should install like normal .
I have tasker and I just downloaded secure settings. However I am confused by your instructions. How do I set this up? Do I create a profile if so what profile? What type of task do I assign that profile? Sorry to sound like a tasker newbie but I am. I saw your post purchased tasker and tried to set it up but there is no clear cut way.
Sent from my HTC_Amaze_4G using XDA App
cirrob said:
I have tasker and I just downloaded secure settings. However I am confused by your instructions. How do I set this up? Do I create a profile if so what profile? What type of task do I assign that profile? Sorry to sound like a tasker newbie but I am. I saw your post purchased tasker and tried to set it up but there is no clear cut way.
Sent from my HTC_Amaze_4G using XDA App
Click to expand...
Click to collapse
Create New Profile -> Softkeys Light
First Context -> Event -> Display -> Display ON
**The Task should pop up**
Add New -> Plugin -> Secure Setting -> Run Command ( from dropdown)
Use Root (Checked)
Command Name (backlight) or whateva
Command is
chmod 644 /sys/class/leds/button-backlight/brightness (make file writable for chanages
echo 1 > /sys/class/leds/button-backlight/brightness (turn softkeys backlight on)
sleep 10 (wait 10 seconds)
echo 0 > /sys/class/leds/button-backlight/brightness (turn softkeys backlight off)
chmod 444 /sys/class/leds/button-backlight/brightness (make readonly to prevent changes by system)
Thats it, you can tweak however you like, or tell it to stay off when a particular app is running in Fore Ground stuff like that
***You could add a second context to the first So when you are in a bright environment, it doesn't come on
Second Context -> State -> Sensor -> Light Level --- Range (0-15)
Thanks! I will try this when I get home today. I appreciate your detailed and patient response.
Sent from my HTC_Amaze_4G using XDA App
OK I think I did something wrong. I created the profile just fine and then created the task by cutting and pasting the text of your command in the run command field of secure settings. Hit apply and nothing has changed.
Am I missing a step?
Sent from my HTC_Amaze_4G using XDA App

Access Stock Do Not Disturb functionality in OP3-OP6

I've complained about the OP6 DND settings, and after switching from my Essential the settings I had on there for work and sleep were still taking effect on my phone. Digging around a bit, it looks like the stock options are still there but OnePlus just hid them.
Proof - https://imgur.com/a/grHAY5V
They can be accessed with a little app from XDA Labs which just opens the window from within Settings.
https://play.google.com/store/apps/details?id=com.aiuspaktyn.nodisturb&rdid=com.aiuspaktyn.nodisturb
1+ added back DND scheduling in 5.1.6 (if I recall correctly)
maddler said:
1+ added back DND scheduling in 5.1.6 (if I recall correctly)
Click to expand...
Click to collapse
They did, but it's not as good as the stock ones with weekday, weekend..
mgear356 said:
They did, but it's not as good as the stock ones with weekday, weekend..
Click to expand...
Click to collapse
fair enough.
It works fine but, be careful : there is no icon in status bar to show when DND mode is on.
I actually created a thread about an issue i was having where a DND rule from my previous phone got carried over and was activating it on my OP6. Up until now there was nothing i could do to remove it because there were no settings for it. This has allowed me to delete that rule! Thank you.
I use tiles from playstore
Enviado desde mi ONEPLUS A6003 mediante Tapatalk
Tasker does this best, with no limitations or missing status bar icons.
Action used is 'Custom Setting'
Type: System
Name: dnd_mode_enabled
Value: 0 or 1
Use 1 to switch DND on, 0 to switch off.
heywtf said:
Tasker does this best, with no limitations or missing status bar icons.
Action used is 'Custom Setting'
Type: System
Name: dnd_mode_enabled
Value: 0 or 1
Use 1 to switch DND on, 0 to switch off.
Click to expand...
Click to collapse
Hi there, thanks for the tip;
However i get an error while running it as it needs extra permission; I have grant AutoTools the Secure Settings permissions; Is there anything else i need to tweak?
EDIT: Got it. You need to run adb shell pm grant net.dinglisch.android.taskerm android.permission.WRITE_SECURE_SETTINGS as well for tasker to get permission;
EDIT 2: its not working... Under custom settings type is "Global", "Secure" or "System" ?
@geovass type is system. Make sure that you've got https://play.google.com/store/apps/details?id=com.joaomgcd.taskersettings installed
hash87 said:
@geovass type is system. Make sure that you've got https://play.google.com/store/apps/details?id=com.joaomgcd.taskersettings installed
Click to expand...
Click to collapse
Yeah, i have this already installed; Still wont work... strange...
EDIT: I missed your note that it needs to be set as "System". Now it works!
@hash87 - do you have a list for all the different custom setting for Tasker?
heywtf said:
Tasker does this best, with no limitations or missing status bar icons.
Action used is 'Custom Setting'
Type: System
Name: dnd_mode_enabled
Value: 0 or 1
Use 1 to switch DND on, 0 to switch off.
Click to expand...
Click to collapse
I tried this with the new Android Pie update for OP6 and it seems that it doesn't work anymore.
Anyone knows another solution to get this working again?
What does Tasker's auto-detect mode say when you toggle DND manually while it's listening for changes?
It detects zen_mode from 0 to 1.
But I realised that native tasker Do Not Disturb action works as expected now.

Lock screen. Help

Hello,
How to make it possible to take a selfie and send that to the cloud every time when someone touches the lock screen.
Samsung note10 rooted.
Thanks.
IMHO means unauthorised use of one’s image.
Lock screen Help
For security purposes, if you only touch the screen on lockscreen a photo is taken by front cam and sent to the cloud, all these types of applications do such things but when entering the password only. How to do it, please help.
jbxr said:
For security purposes, if you only touch the screen on lockscreen a photo is taken by front cam and sent to the cloud, all these types of applications do such things but when entering the password only. How to do it, please help.
Click to expand...
Click to collapse
This is close what you are looking for, except the cloud.
https://play.google.com/store/apps/details?id=org.twinone.intruderselfie
As one-liner, just for the buttons, might need some adjusting to your device:
(make sure that the front camera is selected one)
while true; do toolbox getevent -c 1 /dev/input/event1 && am start -a android.media.action.STILL_IMAGE_CAMERA_SECURE && sleep 1 && input keyevent 27 && input keyevent 26; done
Click to expand...
Click to collapse
Pros: -
Cons: phone stolen/mashed
How about just keeping that thing near you...
Thanks but, I tried the Intruder Selfie, but I meant a solution not necessarily from the app store, because I will add that is about a rooted phone, wich is taking a photo or log with an entry about the event, not when entering the password wrong or good, but whenever when you contact/ touch/ swipe, or the screen somehow wakes up when the lock screen is active and send it to the cloud or store it outside the phone.
I would like to add that I have been looking for it for a long time and I must admit that it is a challenge for me, not just a need, and it is strange that there is no such thing yet.
If just logging is enough then you can find everything what has happened from android's own log I'm sure. How to filter things you're interested in? IDK...
By using getevent:
while true; do echo $(date) >> /sdcard/mylog.txt && toolbox getevent -l -q -c 1 >> /sdcard/mylog.txt; done
Click to expand...
Click to collapse
Photo would be better, but if there's a problem or is it impossible then just a log entry about a specific event, i.e. touching the screen when the lock screen is enabled, and sending it immediately to an e-mail or to the cloud. Sending it outside the phone is a must have not on sd.
/sdcard is usually your internal memory.
jbxr said:
Photo would be better.
Click to expand...
Click to collapse
There is all sort of spy|hidden|background cameras, but very few stay in PlayStore.
Here is one that says it's opensource, but where's the source?...
https://forum.xda-developers.com/showthread.php?t=1934513

Question Is it possible to detect fold/unfold using tasker?

Is it possible to detect fold/unfold using tasker? And then execute some tasks as a result?
lombrozo said:
Is it possible to detect fold/unfold using tasker? And then execute some tasks as a result?
Click to expand...
Click to collapse
Apparently it is by looking at the log; kaledh44 has worked it out.
see this thread;
Nova Launcher lock rotation brave toggle desktop-mode (Using Tasker)
Using Tasker to change the default launcher for OPPO FIND N, by canceling Oppo's method to enforce their launcher. -- Requirements 1- Tasker (paid ~3$). --- Autoinput (2$), for Brave desktop/phone mode auto switiching. 2- Launcher of your...
forum.xda-developers.com
In Tasker create a new profile choose Event and search for logcat entry.
>>>Fold
Component
OplusFoldingAngleManager
Filter
notifyFaceHallEventChanged status:3
>>>Unfold
Component
OplusFoldingAngleManager
Filter
notifyFaceHallEventChanged status:0
And create a task for it
Done
kaledh44 said:
In Tasker create a new profile choose Event and search for logcat entry.
>>>Fold
Component
OplusFoldingAngleManager
Filter
notifyFaceHallEventChanged status:3
>>>Unfold
Component
OplusFoldingAngleManager
Filter
notifyFaceHallEventChanged status:0
And create a task for it
Done
Click to expand...
Click to collapse
Amazing! Thanks!
@kaledh44 do you know if is possible to have Gmail and GMaps in phone mode also in the internal display?
Thank you
danilos2k said:
@kaledh44 do you know if is possible to have Gmail and GMaps in phone mode also in the internal display?
Thank you
Click to expand...
Click to collapse
by using shell command
(adb shell wm density 300)
The only problem that we dont have root access which is needed to run this command in tasker
This appears to have been changed since.
The above solutions no longer worked for me consistently on Galaxy Fold 4.
I managed to get it working with this: ( Tested only on Galaxy Fold 4 )
Folded / Closed: Logcat Entry
Component: DeviceStateProviderImpl
Filter: notifyDeviceStateChangedIfNeeded, newState=0
Unfolded / Opened: Logcat Entry
Component: DeviceStateProviderImpl
Filter: notifyDeviceStateChangedIfNeeded, newState=1
These events are executed once, as/when the inside screen turns on/off.

Categories

Resources