Question Is it possible to detect fold/unfold using tasker? - Oppo Find N

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.

Related

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

[Q] Tasker unreliable on SGS III

Hi all,
i've installed the Tasker Trial (from the developer site) a few days ago on my SGS III (no root, using stock rom).
I want Tasker to disable my Lockscreen security when i'm at home. Recently i tried this setup:
Profile: Trusted Zone
State: Wifi Connected [ SSID:ssid1/ssid2 MAC:* IP:* ]
A1: Secure Settings [ Configuration:Clear Password/Wait For Unlock ]
Profile: Untrusted Zone
State: Not Wifi Connected [ SSID:ssid1/ssid2 MAC:* IP:* ]
Abort Existing Task
A1: Secure Settings [ Configuration:Set Pin ]
Click to expand...
Click to collapse
I've tried nearly every setting i could imagine. With and without "Secure settings" plugin, pattern or pin on lockscreen, foregrund mode with notification icon or background without notification. Also i've registered Tasker and secure settings plugin as device admin in security settings.
My problem is, after setting up all necessary profiles and tasks everything seems to be fine, but after a while the display is locked even though i'm connected to my wifi at home. (yes, wifi is enabled all the time, even in lockscreen ;-) )
Also i've noticed that tasker sometimes displays a notification saying "Low memory". On SGS3? Realy?
I hope anyone could help me how to run tasker in a reliable way on sgs3.
Thanks in advance.
Hey man, sorry I can't help but I am running one task on my Spirit GS III.
My task is to connect to Wi-Fi according to the near cell tower.
Anyway, mine seems to be working just fine.
Sent from my SPH-L710 using xda app-developers app
I dint think everything is perfect with tasker and ics. I think I red in the google groups about some things that may not function perfectly.
I have my lockscreen disabled when Bluetooth is connected in my car, and when it's connected to power. Sometimes it works, sometimes it doesn't. Sorry, that's the best I can offer you.
Sent from my GT-P1000 using Tapatalk 2
I've used tasker since my desire days. I had profiles that turn wifi on and off and go into silent mode etc.
The only profile that doesn't work for me is turning off the LED. In fact for me I haven't found anything that will turn off the LED
Sent from my GT-I9300 using Tapatalk 2
Thank you guys.
I've also searched the web.
Unfortunately, i think there is a problem with Tasker and ICS (especially with SGS3?).
Maybe there will be an update for tasker...
Does anyone of you knows an app which allows me to control the Lockscreen behaviour through Wifi status?
eLiTeFLO said:
Does anyone of you knows an app which allows me to control the Lockscreen behaviour through Wifi status?
Click to expand...
Click to collapse
Give Delayed Lock a go, there's a free trial in the store. Works perfectly on the S3
Sent from my CM9 TouchPad
It's working like a charm for me to enable/disable the lock screen security with Tasker and secure settings. I need it because of our Internet certificate at our University.
fl4m3y said:
It's working like a charm for me to enable/disable the lock screen security with Tasker and secure settings. I need it because of our Internet certificate at our University.
Click to expand...
Click to collapse
Can you post your setting for Tasker and secure settings please. Do you use pin or pattern on the lockscreen?
@Isadora: I'll give it a try
Sent from my GT-I9300 using xda app-developers app
Yes No problem... I just need to translate my tutorial. Just wait a bit
And I'm using pattern
eLiTeFLO said:
Can you post your setting for Tasker and secure settings please. Do you use pin or pattern on the lockscreen?
@Isadora: I'll give it a try
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
I use Pattern, and this worked for me.
1)
Press the "+" to create a new profile. Name it what you want (I called it "unlock at home")
Press the "state" button.
Press the "Net" button.
Press the "Wifi Connected" button
Press the search button for the "SSID" and choose your network (wifi must be turned on!)
Press the green accept button.
2)
Now the "Task Selection" window appear.
Press "New Task" and name it whatever you want (I called it "Unlock")
Press the "+" button
Press the "Display" button
Press the "Keyguard" button
Set the Keyguard status to "Off"
Press the green accept button.
Press the green accept button again.
3)
Now you are back at the main profile window. Long press on the name you made for 2).
Press "Add Exit Task"
Press "new task" and name it what you want (I called it "Lock")
Press the "+"
Press the "Display"
Press the "Keyguard"
Set the status to "On"
Press green accept button.
You are done.
Now you phone will disable the keyguard when you are connected your home wifi network and enable it when you are not connected.
Notice. If you turn the screen off and on again within a second or two, the screen will turn off again, dunno why. So when you test it, turn the screen off and wait like 5 seconds and then turn it on.
Good luck
fl4m3y said:
Yes No problem... I just need to translate my tutorial. Just wait a bit
And I'm using pattern
Click to expand...
Click to collapse
I made this tutorial for the eduroam networks at german/european universities. In this tutorial it will be explained how to setup an automatic enableing/disableing pattern lock. At my university place I have to use pattern or pin lock because of the "telekom root ca 2 certificate", otherwise the internet won't work. So the described steps should be very similar to your problem.
I edited the parts so you can use it 1:1
Requirements:
- Installed and working BusyBox App
- Installed and working Secure Settings App
--->Installed Helper in Secure Settings
- Installed and working Tasker
- Create Lockscreen (Password, Pin or Pattern Lock)
--------------------------------------------------------------------------------------------------
Open Tasker Application:
- Create new profile and name it like you want.
- At the "First Context" choose location and locate the place where you don't need the secure lockscreen. Instead of location you can choose whatever you want. In e.g. WiFi
- If you're done, just add a "New Task" and name it e.g. "deactivate pattern" or how you like
- Add an action ( Plugin -> Secure Settings -> Edit -> choose at DEV ADMIN ACTIONS "Password/Pin" or at HELPER ACTIONS "Pattern Lock"
---> For Password/Pin use these settings:
imageshack.us/photo/my-images/266/screenshot2012071109483.png
---> For Pattern Lock use these settings:
imageshack.us/photo/my-images/69/screenshot2012071109551.png
- Save the settings and check them all. You got a new profile with one task now. Long press at the task and add an "Exit Task". Use the same steps from above ( the last 2 steps ) just name it e.g. "activate pattern"
---> For Password/Pin use these settings:
(Insert your security Informations)
imageshack.us/photo/my-images/267/screenshot2012071109574.png
---> For Pattern Lock use these settings:
imageshack.us/photo/my-images/515/screenshot2012071109571.png
- Save all the settings you made and then you should have a profile which shows minimum one context and 2 tasks ( Input and Exit task)
That's it... i hope it work! If not let me know Tasker and Secure Settings are a very powerful tool and handle them with care!
Good Luck
Thanks to all of you.
Today i've tried the Trial version of "Delayed Lock" from the market with the Wifi Plugin.
An what should i say?
It works like a charm :good:
Less features than Tasker, but less expensive...
Nevertheless i will try your profiles even if i think i tried this settings before
Regards
For me it doesn't quite work.
When I turn off the pattern lock, it activates swipe unlock instead of no unlock screen.
I tried to turn off keyguard too, but with no effect at all.
I'm on stock rom with root.
Same for me, but I like it so. Don't know if this is a bug or a feature.
Sent from my GT-I9300 using xda app-developers app
Guys, check Tasker website, there's a beta version there. It might solve your problems.
EDIT: check if you have the latest version: 1.3u1 I haven checked before posting, there is no more beta. Sorry.
Sent from my GT-I9300 using Tapatalk 2
Ok maybe i got something: When you configure a VPN or install a new certificate, Android deactivates the possibilty to choose the less secure options in the security / lockscreen menu. If you now delete any VPN connection and/or user defined certificates, tasker and secure settings should work. At least for me it does. Can anyone verify this?

[Q] Tasker and Turning on GPS

I have the ME7, Rooted Verizon phone. I'm trying to use Tasker to turn on my GPS when it detects BT is connected. Basically i only use BT in the car, so i have it set to have the display brighten, not time out, full volume, etc. so i can use the phone through the car radio. The problem is that GPS won't turn on. I downloaded the extra services thing it said to, but still no joy.
Any help?
Thanks
druidath said:
I have the ME7, Rooted Verizon phone. I'm trying to use Tasker to turn on my GPS when it detects BT is connected. Basically i only use BT in the car, so i have it set to have the display brighten, not time out, full volume, etc. so i can use the phone through the car radio. The problem is that GPS won't turn on. I downloaded the extra services thing it said to, but still no joy.
Any help?
Thanks
Click to expand...
Click to collapse
I have MDK running Tasker but I use start of an app to trigger GPS ON. Can you set your profile to start GPS when you start a certain app?
I also have profiles that when I'm at home or at work (cell near) that GPS is off. GPS may have to be in the default state of "ON" in order to do what you're asking. You may have to create profiles to turn it off as well, but leave the default to "ON". I hope that makes sense to you. Make sure you have the latest version of Tasker: 4.1u3.
I don't think that ME7 to MDK would make a difference in Tasker, but it may.
You need to download secure settings AND install the helper from within it and then to use the GPS on off feature you use the option under plugins>secure settings NOT the one under networks and then edit the configuration for the plugin
Sent from my SCH-I545 using xda app-developers app
Sent from my SCH-I545 using xda app-developers app
thanks. i already had the SS and Helper, but didn't realize it was in the plugins, not the standard GPS.
Thanks so much!
thanks. i already had the SS and Helper, but didn't realize it was in the plugins, not the standard GPS.
Thanks so much!
When i open maps gps turns on , i want that when i exit app gps turns off , is there any task for this?
GT-N9005 Xnote Rom
SecHolutils & Phone Weaver
I've been using Phone Weaver for my profiles. I have "drive" set up to turn on GPS when I would normaly leave for work, then it turns off at 8am then back on at 4:30, off at 5pm... I needed to download secholeutils.apk and toss it in /system/app and set permissions. Works flawlessly. If I need to drive somewhere during the day, I just hit the "Drive" profile.
DID anyone get back to you
inancatil said:
When i open maps gps turns on , i want that when i exit app gps turns off , is there any task for this?
GT-N9005 Xnote Rom
Click to expand...
Click to collapse
DID anyone get back to you? Or did you find a way to accomplish this? I would assume that you would just have to create another profile and reverse the gps to off.
How to GPS on maps launch
inancatil said:
When i open maps gps turns on , i want that when i exit app gps turns off , is there any task for this?
GT-N9005 Xnote Rom
Click to expand...
Click to collapse
In order to do this you will need secure settings and helper and tasker installed assuming you have all this based on this thread
First you will set up two tasks
1) Task to turn on gps
example: Secure settings: GPS on then Flash "Happy Driving
2) set up a DIFFERENT task to turn off GPS using secure settings
create a profile that activates on an app launch. then tasker will require you link this with a task, choose the gps on task.
Next long press on the task (while in the profiles tab not the tasks tab) an option for "add exit task" should appear that will allow you to link the gps off task
exit tasks are tasks that tasker executes when the conditions are no longer true Maps is launched=gps on task upon app close=gps off task is run
Diego1751 said:
In order to do this you will need secure settings and helper and tasker installed assuming you have all this based on this thread
First you will set up two tasks
1) Task to turn on gps
example: Secure settings: GPS on then Flash "Happy Driving
2) set up a DIFFERENT task to turn off GPS using secure settings
create a profile that activates on an app launch. then tasker will require you link this with a task, choose the gps on task.
Next long press on the task (while in the profiles tab not the tasks tab) an option for "add exit task" should appear that will allow you to link the gps off task
exit tasks are tasks that tasker executes when the conditions are no longer true Maps is launched=gps on task upon app close=gps off task is run
Click to expand...
Click to collapse
How to enable location settings using this task? I am unable to do so.
svj1187 said:
How to enable location settings using this task? I am unable to do so.
Click to expand...
Click to collapse
Location settings? Or GPS? Location settings is the phones access to Google location API's.
---------- Post added at 07:29 AM ---------- Previous post was at 07:24 AM ----------
svj1187 said:
How to enable location settings using this task? I am unable to do so.
Click to expand...
Click to collapse
If you want to turn on GPS install secure settings and helper from inside secure settings. Your going to need root. When making the task click plugin>secure settings>GPS and select the state you want. (On off or toggle)
Diego1751 said:
In order to do this you will need secure settings and helper and tasker installed assuming you have all this based on this thread
First you will set up two tasks
1) Task to turn on gps
example: Secure settings: GPS on then Flash "Happy Driving
2) set up a DIFFERENT task to turn off GPS using secure settings
create a profile that activates on an app launch. then tasker will require you link this with a task, choose the gps on task.
Next long press on the task (while in the profiles tab not the tasks tab) an option for "add exit task" should appear that will allow you to link the gps off task
exit tasks are tasks that tasker executes when the conditions are no longer true Maps is launched=gps on task upon app close=gps off task is run
Click to expand...
Click to collapse
I didn't get this post the first time I read it. From "Profiles" tab, click on profile to open... then long click on the task to get the "Add exit task" option. Finally works like I have wanted it to all along.
inancatil said:
When i open maps gps turns on , i want that when i exit app gps turns off , is there any task for this?
GT-N9005 Xnote Rom
Click to expand...
Click to collapse
Hi,
For me following worked:
Duplicate the Profile where you turn on GPS
Edit the duplicate like this:
invert the selected apps (press the invert button) so all other apps are selected
then set the action to GPS off.
Hope this helps.
Best regards,
Philipp
Philipp the Magician said:
Hi,
For me following worked:
Duplicate the Profile where you turn on GPS
Edit the duplicate like this:
invert the selected apps (press the invert button) so all other apps are selected
then set the action to GPS off.
Hope this helps.
Best regards,
Philipp
Click to expand...
Click to collapse
While true that will work I would recommend using the exit task option. When you get more advanced with tasker it will benefit you greatly plus the way you said it is kind of "incorrect". It will work in this case but in others it won't correctly

[Tutorial] Swipe fingerprint sensor to switch between apps Lenovo Zuk style

I FOUND A WAY!
Okay, so for this you need:
Magisk
Xposed for Magisk (possibly also works with normal Xposed)
UnrestrictedGetTasks module found in Xposed Installer
The Apk at the bottom of the first post (Credits to in.abhi9) installed in /system/priv-app (just pop it in any magisk module you have installed in the same folders, so ./system/priv-app/theapk.apk).
a fingerprint gestures app like this that can launch shortcuts or tasker tasks.
using Tasker: In Tasker you need to create two tasks each containing the "run shell" action (they need root). In the first you put "am start in.abhi9.apphistory/in.abhi9.recentswipo.SwipeLeftActivity" and in the second "am start in.abhi9.apphistory/in.abhi9.recentswipo.SwipeRightActivity"
finally link left- and right swipes from the Fingerprint Gestures app to the correct tasker tasks and Bob's your uncle.
using shortcuts: you will need a launcher like nova or action launcher that can launch app activities. In the fingerprint gestures app, select shortcuts, nova/action activities, Recentswipo, and then SwipeLeftActivity and SwipeRightActivity accordingly.
enjoy superior app switching!
Of course you can map any trigger to the tasks you created, they don't have to be fingerprint swipes. I suppose screen swipe gestures can come in handy too!
Original post:
The latest Lenovo Zuk phones have an amazing feature (named U-touch) that let's users swipe their fingerprint scanner to switch apps. This is not just the switch-to-last-app feature we had since Nougat, but it remembers the app-order. Here are two video's to demonstrate what I mean:
https://www.youtube.com/watch?v=wS-LSoraPZg
https://www.youtube.com/watch?v=3sYf4H8yMHw
It seems like the fastest way ever to switch between open apps and as I like to multitask a lot (between more than 2 apps) I'm looking for an app, mod, module, Tasker profile, whatever, to make this happen. It doesn't really matter if it uses the fingerprint scanner (using the Oreo fingerprint gestures api) or if we have to swipe over our navigation bar. Does such a thing exist at all?
Click to expand...
Click to collapse
One thing I really miss about my z2 force was being able to lock the phone with the fingerprint scanner can you use this with tasker to make that happen?
Shaffer678 said:
One thing I really miss about my z2 force was being able to lock the phone with the fingerprint scanner can you use this with tasker to make that happen?
Click to expand...
Click to collapse
Yes you can, tasker can already do that with "system lock" (however that disables the use of the fingerprint reader on the lock screen).
Are you rooted? Then you can simply create a task with a shell command (with root enabled) "input keyevent POWER", that will emulate a power button press. If you like you can then execute that task from the fingerprint gestures app
Works here without Xposed installed
djide said:
Works here without Xposed installed
Click to expand...
Click to collapse
Nice! I tried that as well but the recent apps wouldn't be loaded due to Google removing the ActivityManager.getRecentTasks() command in AOSP, are you perhaps running a custom rom?
I also found out you can just run GMD gestures to go to the previous and next app without xposed (but with root) either with gestures or with the fingerprint swipe mapped to a gmd shortcut
Humpie said:
Nice! I tried that as well but the recent apps wouldn't be loaded due to Google removing the ActivityManager.getRecentTasks() command in AOSP, are you perhaps running a custom rom?
I also found out you can just run GMD gestures to go to the previous and next app without xposed (but with root) either with gestures or with the fingerprint swipe mapped to a gmd shortcut
Click to expand...
Click to collapse
With GMD, would I still need unrestricted get tasks and tasker?
Thanks!
arcticnights said:
With GMD, would I still need unrestricted get tasks and tasker?
Thanks!
Click to expand...
Click to collapse
Nope! Just root apparently
Humpie said:
I also found out you can just run GMD gestures to go to the previous and next app without xposed (but with root) either with gestures or with the fingerprint swipe mapped to a gmd shortcut
Click to expand...
Click to collapse
Can you elaborate a little bit more about how to set this up with GMD and Fingerprint Swipes?
JeromeLeung said:
Can you elaborate a little bit more about how to set this up with GMD and Fingerprint Swipes?
Click to expand...
Click to collapse
If you open the fingerprint gestures app and assign a shortcut to a certain swipe, select the gmd shortcuts from the list, application, next/previous app respectively.
I however still use the xposed version as it can reach the homescreen using swipes (similar to the Zuk) instead of cycling the opened apps and the animation is smoother.
Humpie said:
If you open the fingerprint gestures app and assign a shortcut to a certain swipe, select the gmd shortcuts from the list, application, next/previous app respectively.
I however still use the xposed version as it can reach the homescreen using swipes (similar to the Zuk) instead of cycling the opened apps and the animation is smoother.
Click to expand...
Click to collapse
Those were the exact steps I took, but for some reason after I select "next/previous app" it just returns to the list of shortcuts instead of registering the shortcut with the gesture. However, I'm going to give the xposed version a try after your insight about the animation being smoother. I'm all for smoother animations! :good: Thanks again for your help.
JeromeLeung said:
Those were the exact steps I took, but for some reason after I select "next/previous app" it just returns to the list of shortcuts instead of registering the shortcut with the gesture. However, I'm going to give the xposed version a try after your insight about the animation being smoother. I'm all for smoother animations! :good: Thanks again for your help.
Click to expand...
Click to collapse
Oh that's odd, oh well... You'll probably enjoy Xposed, I haven't used it since Marshmallow due to it lacking behind, so it's fun to be able to use it again (go Gravitybox)! And I don't even notice a performance hit at all (which I was worried about), the only downside is the safety net, but hey, Android Pay isn't available here anyway.
Humpie said:
Oh that's odd, oh well... You'll probably enjoy Xposed, I haven't used it since Marshmallow due to it lacking behind, so it's fun to be able to use it again (go Gravitybox)! And I don't even notice a performance hit at all (which I was worried about), the only downside is the safety net, but hey, Android Pay isn't available here anyway.
Click to expand...
Click to collapse
If you use systemless Xposed for Magisk you can just disable the module and reboot to pass Safety Net. Works for all my banking apps and Android Pay :good:
Thank you for showing this awesome feature!
How exactly do you install it as system app? Is it even necessary? I was successful just installing the apk as normal app and then using Nova launcher.
Tried using the tasker method but the finger gesture app kept crashing even though the Tasker tasks seemed to work when testing inside Tasker.
pokeman said:
Thank you for showing this awesome feature!
How exactly do you install it as system app? Is it even necessary? I was successful just installing the apk as normal app and then using Nova launcher.
Tried using the tasker method but the finger gesture app kept crashing even though the Tasker tasks seemed to work when testing inside Tasker.
Click to expand...
Click to collapse
It's probably crashing because it's isn't a system app yet. The easiest way to make it a system app is using a systemizer module in magisk (I believe it uses terminal emulator when it's installed, it's explained in the module description anyway). Or you could do it the "cheating" way and put the apk in your root directory /magisk/(a module)/system/priv-app/RecentSwipo/RecentSwipo.apk
Installing to priv-app wont work, app wont appear. Installing it to /system/app or simply install the apk work though. Although if it installed as user app, the service might be killed in the background.
GMD Solution wont work, the Fingerprint Swipe app unable to assign the proper shortcut. I think the problem is with the GMD.
otonieru said:
Installing to priv-app wont work, app wont appear. Installing it to /system/app or simply install the apk work though. Although if it installed as user app, the service might be killed in the background.
Click to expand...
Click to collapse
Oh strange, well if that works for you
otonieru said:
GMD Solution wont work, the Fingerprint Swipe app unable to assign the proper shortcut. I think the problem is with the GMD.
Click to expand...
Click to collapse
I see, you're right, I just tried it and it didn't work... I'll see if I can still find a workaround
Works for me... put the apk in root/system/priv-app and changed the permissions to 755
Can't get the shell code to work: getting this when ran in terminal
taimen:/ $ su
/in.abhi9.recentswipo.SwipeRightActivity <
Starting: Intent { act=android.intent.action
MAIN cat=[android.intent.category.LAUNCHER]
mp=in.abhi9.apphistory/in.abhi9.recentswipo.
wipeRightActivity }
Error type 3
Error: Activity class {in.abhi9.apphistory/i
.abhi9.recentswipo.SwipeRightActivity} does
ot exist.
I used systemizer module from Magisk to turn the app to a system apk, installed BusyBox and changed SeLinux to premissive. What am I doing wrong?
djide said:
Can't get the shell code to work: getting this when ran in terminal
taimen:/ $ su
/in.abhi9.recentswipo.SwipeRightActivity <
Starting: Intent { act=android.intent.action
MAIN cat=[android.intent.category.LAUNCHER]
mp=in.abhi9.apphistory/in.abhi9.recentswipo.
wipeRightActivity }
Error type 3
Error: Activity class {in.abhi9.apphistory/i
.abhi9.recentswipo.SwipeRightActivity} does
ot exist.
I used systemizer module from Magisk to turn the app to a system apk, installed BusyBox and changed SeLinux to premissive. What am I doing wrong?
Click to expand...
Click to collapse
Is recentswipo already listed in ypur app drawer ?
Also, no need for the terminal stuff, just use nova or any other app that can get shortcut to activities
otonieru said:
Is recentswipo already listed in ypur app drawer ?
Also, no need for the terminal stuff, just use nova or any other app that can get shortcut to activities
Click to expand...
Click to collapse
Thanks, that was what was missing... Used Magisk to turn it into a system app. Good to go

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

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

Categories

Resources