yashsingh1/xdaforums huggingface dataset:
[Android Software Development] elonus:
I have a bug report about PiePointer as well. It only seems to work when root is hidden from LMT. If root either is allowed or denied for LMT it does not work, but if Magisk Hide is set to hide root form LMT it works fine.

I have attached logcats. The first one is from when I give LMT root access. The second one is from when I don't hide root form LMT but I also deny it root access. The third one is from when I hide root from LMT.

Steps I took in each logcat:

1. Install LMT

2. Open LMT and grant permissions i.e. file storage, draw over other apps.

3. Grant/deny root access if root is not hidden

4. Turn on accessibility service

5. Open LMT and set Pie Item 2 to Home and Pie Item 2 LongPress to PiePointer

6. Enable LMT

7. Try to use PiePointer

In the cases cases where root is not hidden the PiePointer animation is shows as normal, but when releasing the screen nothing happens.

EDIT: Forgot to say that I'm using a OnePlus 7t on Android 10
[Android Software Development] doctorew:
[MENTION=1864347]noname81[/MENTION] - I've used LMT since the early version 1 days. thank you for getting this working on 10.

Everything works. it feels like coming back home!
[Android Software Development] tyc600:
[MENTION=1864347]noname81[/MENTION] - Is there an intent to restart LMT? I want to dynamic change icons(mobileDataOnIcon/mobileDataOffIcon),it need to restart Lmt to refresh cache.For now "force-stop" and "startservice" were used,but it takes too much time(3~4sec), any hints?
[Android Software Development] noname81:
Instead of doing "force-stop" you can just stop the service instead of force stopping the whole app with "stopservice", since lmt's service is exported. This should be a lot faster.
[Android Software Development] noname81:
Thanks for the logs and the good bug descriptions. The problem seems to be _all_ actions which require root on OnePlus phones with Android 10. A lot of actions have non root implementations as well, but the root ones are often preferred, since they are e.g. faster. So when you hide root from lmt, it falls into non root mode and activates other action implementations. This is what you see with the pie pointer, which also has an implementation based on accessibility permission.

I don't see the root cause of the problem in your logs, so it will be hard to track down this device specific issue. Can you test to set your device into selinux permissive mode, force restart lmt and check if it's working? Thanks!
[Android Software Development] tyc600:
Thanks for your prompt reply.

I tried in tasker shell code,it's no significant difference. Is that possile to implement a public activity or intent to restart LMT in next version? native restart process is much faster.
[Android Software Development] DiamondJohn:
I would try taking Tasker out of the loop, as it may possibly be a source of delay. i.e. time it as a simple shell script. Did you do it as shell script code triggered by Tasker, or as "Tasker actions"; I have never used Tasker, but I assume they have a pre-built list of actions to choose from (ie "macros" type of thing)

Also, I had a related idea (to enable paging between multiple Pie configs), and during trialing it (a few months ago now), I can't say I noticed a lag; but I guess I cant say I explicitly did not notice a lag. All I can say is, that I remember it as being usable.

My idea is documented in the post: https://xdaforums.com/showpost.php?p=80191099&postcount=13944
[Android Software Development] IronTechmonkey:
FWIW; In an erstwhile experiment with dynamic LMT icons (eg wifi on/off = same image in different colors) I used Tasker tasks (effectively macros) to 1) delete, copy and or rename the appropriate icon files, then 2) a Tasker shell command (not built in) to run "killall com.android.lmt", then 3) let LMT restart automatically. In my case the tasks also included state changes (such as wifi/mobile data on/off) and short wait commands so there was additional lag but even without those factors there was a bit more lag that I was comfortable with when going right back into LMT for something.

Note:root was required to do the aforementioned and in some ROM/SU combinations this required a particular checkbox in Tasker and in others required an su or su -c parameter before the command. U/sing the wrong combinationin some instances would cause freeze and reboot. Not an LMT issue but rather a warning to be cautious when playing with root and shell commands.
[Android Software Development] tyc600:
Do you mean use LMT "Trigger an arbitrary script" command to perform restart LMT? That's really an alternate way to achieve this process, it still takes ~3sec per my test, no significant improvement against tasker shell code.

---------- Post added at 04:39 PM ---------- Previous post was at 04:32 PM ----------

following is my tasker shell code, it's almost same as your idea:highfive::

cp /storage/emulated/0/Download/CommonTools/LMT_icons/%mobiledata.png /storage/emulated/0/Download/CommonTools/LMT_icons/pie2.png && am stopservice com.noname81.lmt/.TouchService && am startservice com.noname81.lmt/.TouchService

it takes ~3 sec
[Android Software Development] DiamondJohn:
I had a couple of ideas. The first actualy involves a change to LMT. And to be clear, this is not a request from me now, just an idea.

If LMT responded to the following three intents, it may enable faster times by not having to stop and start it.

1. Hide Pie

2. Reload Pie config XML

3. Show Pie

The other idea that may be worth a try to minimise the 3 sec delay

(am stopservice com.noname81.lmt/.TouchService)&
cp /storage/emulated/0/Download/CommonTools/LMT_icons/%mobiledata.png /storage/emulated/0/Download/CommonTools/LMT_icons/pie2.png;
am startservice com.noname81.lmt/.TouchService;

The idea being to start the shutdown as early as possible, and run the shutdown asynchronously during the copy. The assumption here is that it shuts down before the restart is triggered. There are multiple ways to check and stop that.
[Android Software Development] tyc600:
your optimized code is helpful ! :good:

now half time consumption (~1.6sec).
[Android Software Development] jiraianam:
I see in a video one guy have that app with a lot of level in pie, how can I put more then 2 levels in that app?
[Android Software Development] DiamondJohn:
are you certain its LMT? do you have the link to the video?

Maybe asking the guy directly would be your best bet.

The following is also an idea I had for paginated Pie.
[Android Software Development] jiraianam:
Wow have only two levels 1:06, sorry I think was more. [MENTION=1864347]noname81[/MENTION] please make and option to choose how many levels the user want, I use my android with 640dpi and I want like 5 levels, thank you

https://www.youtube.com/watch?v=F_YklDOrCzE
[Android Software Development] tecnicopascoal:
Look my experience compact pie with 640dpi. I need more customization of levdl and item
[Android Software Development] DiamondJohn:
I am assuming the duplicate icons at different levels do different things. The other thing to remember, is that each hot-spot also has a long press action, effectively doubling your hot-spots.

---------- Post added at 23:49 ---------- Previous post was at 23:28 ----------

I just went back and checked my code. I noticed I used a "kill". Although not very "polite":rolleyes:, it may be worth a try, as I would expect it force-ably shuts the process down quicker. However, I would also guess its the starting of the service that takes the majority of the time.

Have you timed each individual step?
[Android Software Development] tyc600:
sorry for my late reply.

killall command is invalid on my device.

my tested each step is as below:

force-stop: ~1.9s

cp: 166ms

startservice:~1.6s

stopservice:~1.6s

stopservice can save 300ms than force-stop.
[Android Software Development] DiamondJohn:
There are many ways to skin a cat.

Do you have busybox installed? KillAll is part of busybox.

one method which may actually help with times is sending a kill signal. There are many options, and maybe, just maybe, one will force/trick LMT to not need to reload/restart the service, but trigger the reload. You can play with these using this app i built. Although it specifically does not use busybox, it will show you the way to fin what the options are.

busybox killall -l

https://xdaforums.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260

You can find the feature in the menu under:

Application Info /Manage>State>Kill All - Send Signal

But if your ROM doesn't support it,I dont think it will work for you. Maybe some kind of symlink-y thingy :confused:

Another thing I have used in the past is getting all threads of a process by name, and then looping though each thread (pid) and killing that. But that wont decrease the time at all.

Getting all the threads is also shown in the above app under:

Busybox>PS Threads User Limited

and enter "noname"

---------- Post added at 11:44 ---------- Previous post was at 11:21 ----------

also look at https://unix.stackexchange.com/ques...child-process-when-sent-to-its-parent-process

you can send the signals using plain kill
[Android Software Development] elonus:
I tried selinux permissive, but there doesn't seem to be any change in behavior. Do you want logs with permissive as well?
[Android Software Development] jasonwch:
on my android 10, seems like LMT suddenly not working,

no trigger area (process still there), then suddenly back working itself
[Android Software Development] tecnicopascoal:
for me its working
[Android Software Development] jasonwch:
seems like it always disabled at around this timeframe. It's still running in notification bar, accessibility still ON, and still activated. Then no matter I deactivate and reactivate, turn OFF/ON accessibility, it still doesnt appear at all. Need device restart
[Android Software Development] Valiante:
Is it possible to add Chrome Pie featurea into LMT Launcher? More specifically, having subactions for each pie "slice" and more browser specific actions?
[Android Software Development] Primokorn:
Thank you so much for your helpful reply... LMT doesn't work since I switched to Android 10. I reinstalled the app from scratch, rebooted, posted logs...
[Android Software Development] drneet:
Same here... On Android 10.. just keep saying switch lmt accessibility service.. it's on in settings.. tried switching accessibility service off and on.. still same error

On version 3.1
[Android Software Development] DiamondJohn:
let mestart by saying i can see your sarcasm.

Just letting you guys know my experience. I have my daily phone runningOreo, adn two test /devphones, noth running the exact same Android 10 ROM. I tried installing LMT on the 1st dev and it didnt work:mad: so I just moved on. Anyway, a few days later I was using the otehr dev phone (and missing LMT), so I installed it on the second phone, and it worked!

I have not investigated to find what the difference is, but it would indicate to me that it is something I have done differently (ie config) between the two devices, and not necessarily a limitation of LMT.
[Android Software Development] shaggyskunk:
LMT 3.1 is working as expected on my Samsung S10+ One UI V2.0 Snapdragon variant - ie: No Root using Accessibility Settings.
[Android Software Development] Primokorn:
No root + Accessibility access is indeed enough for Back action for example but I have a SU request as soon as I try to open an app. If I reject the request then nothing happens. If I accept... nothing happens (new installation from scratch using v3.1 from OP).
[Android Software Development] jasonwch:
May i know if [MENTION=1864347]noname81[/MENTION], the developer still working on this great app? this app just a life save for big screen phone like mine.

Beside the problem that it randomly not being able to trigger (force kill the app also not working, only restart the device works)

I found another issue related to Chromium based browser which blocks some incompatible "Drawing over apps" app, makes Site access prompting box frozen

support.google.com/chrome/thread/8680724?hl=en
[Android Software Development] shaggyskunk:
noname posted here just in the last couple of weeks... So I believe that he's still involved with LMT.
[Android Software Development] Brava27:
Fantastic job!
[Android Software Development] 93fuelslut:
Anyone having problems getting LMT to work with DU? The nav keys aren't responding. Back, home, and recents.
[Android Software Development] doctorew:
I've flashed more than a half dozen custom ROMs in the last few weeks, DU included - LMT works on each of them, AOSP and stock-based
[Android Software Development] parmafran:
I struggled for a while getting it to work properly on 10 roms. My mistake was to restore a previous back up from Pie in titanium. It was fine when I reinstalled the apk clean, then just brought the data from my backup. That probably isn't your problem, but I thought I would mention. It might help someone!
[Android Software Development] 93fuelslut:
What device?

---------- Post added at 12:32 AM ---------- Previous post was at 12:31 AM ----------

I just deleted the app, and started over with no luck. What device do you have? I wonder if a kernel could help
[Android Software Development] parmafran:
Pocophone
[Android Software Development] doctorew:
Pixel 2xl
[Android Software Development] jasonwch:
did anyone face this issue when using lmt at Android 10?

https://bugs.chromium.org/p/chromium/issues/detail?id=1005136
[Android Software Development] Artim_96:
That's not a bug, it's a feature. Besides Google disallowing apps to draw over things like the settings app, if anything covers these permission dialogs, they won't respond. You'll have to disable LMT every time you want to use one of those dialogs plus any other app that can draw over other apps that's constantly in the foreground and you'll even have to wait for the "toast message" in the lower third of the screen telling you LMT has been disabled to fade away.
[Android Software Development] 93fuelslut:
Same here

---------- Post added at 01:11 AM ---------- Previous post was at 01:10 AM ----------

Same here. That's odd
[Android Software Development] jasonwch:
true,but i saw some apps also doing drawing over the app working, e.g. Facebook messenger. so i think this can be solved?
[Android Software Development] Artim_96:
If they use the chat bubble API there might be an exception for that. Otherwise there are actually two methods to display these dialogs, only one refuses to work when there is an overlay. But don't expect Google to change back to the non blocking method
[Android Software Development] jasonwch:
ok, understood thanks :o
[Android Software Development] 93fuelslut:
Anyone having trouble setting icon image on 3.1?

I'll set an image, toast notification will say, "lmt stopped" "lmt started". But no change
[Android Software Development] whitedavidp:
I am on Android Pie, using 3.1, and setting images from flles on my internal storage. I checked and I have given LMT storage permission. It makes sense that it should need this to read the icon files. Maybe you need this?
[Android Software Development] 93fuelslut:
Yeah I have it access but still no luck

Almost seems like it's using the default or system icons and I have to find a way to override it
[Android Software Development] Michael R:
I am having problems. it does not activate. Only a few times, even though I have increased the area of ​​sensitivity.

Enviado de meu ONEPLUS A5010 usando o Tapatalk
[Android Software Development] kenor4:
LMT consums too much battery in Andorid 10 EMUI 10.1

LMT consums too much battery in Andorid 10 EMUI 10.1.

Anyone else with this probleme?
[Android Software Development] Cedoresti:
for me, this the best launcher :) i use from start dev :)

lool: https://www.youtube.com/watch?v=a3OUG93qZ0Q
[Android Software Development] goldsilver13:
No
[Android Software Development] Artim_96:
Since I haven't yet seen this issue: of you plan on using the current Android 11 beta, LMT might interfere with the keyboard. I had to disable LMT, otherwise no keyboard would show up once it started. Have yet to try rooting Android 11 and see if granting root permissions will help, but keep that in mind

EDIT: nope, root also won't help

EDIT2: works now with beta 2
[Android Software Development] iestynapmwg:
I've just upgraded to Android 10, and of course installed LMT. I can't seem to get the back and home buttons on the pie menu to work, though. Recents, and an app-launching button do work. Any ideas?
[Android Software Development] DiamondJohn:
Have you checked for SELinux disallows?

If you are not sure how, i have built this app ( TeMeFI ) which may make it easier. You can find the feature in the menu under:

► Logcat
► Logcats
► Filter By Level
Logcat - SELinux

Of course run it a few times (ie home and back) to trigger the disallows (if thats the problem), and then run the method

The other thing I would try is a send keys from a root ADB shell. Or you could use the app above again. You can find this under:

► Currently Running
► Send Keys
▪► Send Keys (ROOT) *
KEYCODE_HOME (3)
KEYCODE_BACK (4)
[Android Software Development] iestynapmwg:
Well, i have SELinux set to permissive, so that shouldn't be an issue? I did try out the tool you linked to, just in case. Thanks for that, by the way :)

The send key events did nothing, neither from the tool nor a root terminal...
[Android Software Development] DiamondJohn:
If you are permissive, then SELinux should NOT be a problem. It will still log what would of been denied, but it still logs, with "permissive=1" at the end of the log. But it is not blocked/denied.

That shows that something is not right. I personally recently did a test flash of 10 custom ROM on a test phone, and my recents did not work. The phone I tested it on also had a hardware button, where the recents also did not work, nor the send keys method. I wiped my data and cache & dalvik (a dirty shortcut to a clean flash). After doing that, the recents starting working. All on LMT, the hardware button and the send keys command.

i.e. It wasn't an issue with LMT, but with my ROM. The fact that send keys for home does not work on your device, would make me very suspicious that there is something else not working on your phone.
[Android Software Development] iestynapmwg:
In my case the navbar's home and recent buttons do work.

Hmm... I've been trying out different roms. Each time, though, i have wiped system, data, dalvik, and cache. Could there be something "stuck" somewhere, left over from a previous rom that's interfering with my current? Is there an alternative, "more clean" flash? :)
[Android Software Development] DiamondJohn:
Ask others who have flashed this ROM to the same device, they may have the same experience and a soln. The problem to duplicate (without installing LMT) would be send keys not working. Also, check your device specific forum.

As for a "cleaner" flash, yes. You could re-format your partitions; data, cache and system, and then re-flash. But thats getting very extreme, and may not stop it from happening again, without you knowing why its happening now, and you could be back with the same problem, when it may not even solve the issue this first time. And if your really going for a fresh start, flashing your original firmware would be even more extreme, but again, possibly not help.
[Android Software Development] neekless:
On which roms do you face this issue?
[Android Software Development] iestynapmwg:
Most recently, AICP and Corvus. Working on the "something stuck" assumption, my latest try is with Syberia, after actually formatting /data again, and then the usual clean install. It seems to work now! Don't know if it's the rom, or the formatting... I would have to try one of the others again, but i'd like to get one rom fully working, now that this works :)
[Android Software Development] neekless:
I'm having this issue with aosip too. I took a look at the source code of AICP, Corvus, aosip, and havoc. All of them has this commit

https://github.com/AICP/frameworks_base/commit/cb22470e3de25cd8f4954e84c974eaafe353e03d#diff-c5b8fef5f49a5c66b65fce9b16ac9665

While Syberia doesn't. I think changing from

InputDevice.SOURCE_KEYBOARD

to

InputDevice.SOURCE_NAVIGATION_BAR

is causing the back and home keycodes to fail. Unfortunately I think these roms need it for their custom gestures, so idk how likely it is that roms will reverse it. Hopefully [MENTION=1864347]noname81[/MENTION] can do something about this.
[Android Software Development] Tab_Triggerhappy:
NA anymore
[Android Software Development] Dbj.Dhaval:
Any update on this? I too am now facing this issue on one plus 7pro. RR rom, ASOIP Rom
[Android Software Development] Shamestick:
Hey there, I know it has been 4months now since this but I am having problems on DU and I would like to know if you managed to figure out a solution.

I went from stock rom June 2020 update with LMT working fine, I updated my factory image to August and then flashed DU 14.6 August official and now LMT actions (back, home, regents) won't function. The pie comes out as expected but nothing happens.

Device: pixel 2
[Android Software Development] 93fuelslut:
Alot of du users had this. I went with pixel dust and works fine
[Android Software Development] Shamestick:
Thanks for getting back to me.

I'll try another kernel as well and see if that changes anything. This is the first rom I've flashed in 2.5 years since getting my pixel 2 (former flashing fanatic) and I'm looking to set and forget, update about once per month haha.
[Android Software Development] DiamondJohn:
I am not running DU and have no personal issues with LMT. But,,when i read your post. i was wondering have:

1. Tried using sendkeys in a shell?does that work?

2. If 1 works, have you tried triggering a custom script (using sendkeys) for the home, back & recents instead of the built in methods.

Just a thought of what I would try if it did not work for me.
[Android Software Development] stanley321:
On Android 11 official now, most functions seems to be working fine, but Splitscreen seems to be crashing the system and make it freeze up!
[Android Software Development] noname81:
Which device are you using? Seems like the wrong values for touchscreen to screen factors are set...

Sent from my Nexus 4
[Android Software Development] noname81:
When you only want to use the pie set mode to pie only and you don't have to care about the input device. It's only used for gestures. Regarding your button problem: Seems like lmt gets no root permissions!? Try replacing superuser with supersu. This helped another guy with an Alcatel...

Sent from my Nexus 4
[Android Software Development] salsaholic:
Thanks a million, that did the job! I remember seeing supersu mentioned, but didn't really understand what that meant. Now I learnt ;)

Now I only need to figure out if it is necessary to remove superuser (and how) - at least LMT doesn't seem to bother.

BTW: Any plans to make the UI a bit friendlier, i.e. no number input for choices? Not that I want to complain, but it would make exploring the app so much more convenient (the digit input always requires a few extra taps: activate keyboard, place cursor at end, remove old value, switch to digits ...)

This app might be a good reason to finally root my Huawei Ascend P1 as well, even though it has hardware buttons :)
[Android Software Development] ars0n:
Thanks for the quick reply!! I am using a Gnex codename android rom 4.1.2 with nova launcher!
[Android Software Development] ars0n:
FIX - Guess it helps if you select your input device. Somehow I overlooked that, everything else was working fine.. =X
[Android Software Development] noname81:
Yes. No correct input device -> no gestures :D

Sent from my Nexus 4
[Android Software Development] noname81:
I know, but since lmt is a fun project for me I'm too lazy to do a perfect ui. Perhaps I'll improve it a little bit in the future... :D

Sent from my Nexus 4
[Android Software Development] barome:
Wonderful app for my Nexus 4 ! Thanks to the dev !
[Android Software Development] lokenok:
can we have a option to open the keyboard?