yashsingh1/xdaforums huggingface dataset:
[Android Software Development] damngood98:
Are you just talking about using key events? If so just assign one to the pie item you want to use it on
[Android Software Development] shaggyskunk:
[MENTION=1864347]noname81[/MENTION] Wondering if there's any plans to add a backup utility to LMT for settings - I don't mean for backing up the app - Just the Settings - ie: Location - Gravity - Colours - Pie Actions etc?
[Android Software Development] elhennig:
I haven't received any feedback on my question and I would really like to use both multi user setup. and LMT, which I had to disable for now
[Android Software Development] DiamondJohn:
Havent tested it personally, but have you tried using a standard backup-restore app?

What have have done once or twice (didn't work the last time I tried :confused:) when clean flashing a new ROM or transferring my config to another phone, was to copy the XML file in the data directory. Although, I do see the advantages of having it as a menu item to export and then import the settings. Which I guess would be what I previously did manually.
[Android Software Development] AnonVendetta:
[MENTION=1864347]noname81[/MENTION]: Is it OK if I include LMT in a custom ROM I'm building? The APK won't be modified at all, and I will give proper credit and a link back to this topic.

Thanks!
[Android Software Development] shaggyskunk:
It SEEMS that Samsung's Smart Switch does actually backup LMT settings - Who Knew?

?
[Android Software Development] noname81:
Sure!
[Android Software Development] ISaiDPower:
Permission

May I have your permission to upload the app to google play store?
[Android Software Development] shaggyskunk:
Just a guess - But pretty sure that if [MENTION=1864347]noname81[/MENTION] wanted it on the Play Store - He'd have put it there already ??
[Android Software Development] Genetic517:
Hello

Would someone mind showing me how to setup a button to enable/disable auto rotation? Haven't had much luck using the thread search.

Thanks!
[Android Software Development] ecksdeeay:
This won't do it alone and will need a tasker task then use this to launch the task from tasker. As 1 example...
[Android Software Development] DiamondJohn:
Do a web search, and grab the code eg. https://stackoverflow.com/questions/25864385/changing-android-device-orientation-with-adb
[Android Software Development] appro77:
Is there any way to make the pie completely invisible, including the icons?
[Android Software Development] Atomregen:
Yes, under pie colors, turn the alpha channel everywhere to 0 or insert this

#00000000,#00000000,#00000000,#00000000,#00000000,#00000000,#00000000

below.
[Android Software Development] appro77:
Thanks but I'm still seeing the icons.

Edit: I'm an idiot. I didn't click through the other options.
[Android Software Development] Chronzy:
Is it possible to release a small update that, if nothing else, supports Q? I'm waiting to upgrade till LMT works. It's been a staple app for me on every phone for years. Now I'm starting to regret being so dependent on a single app. Can I pay you?
[Android Software Development] noname81:
Oh yes, everyone has a price! :D

I didn't have much time to focus on Q and I still see some regressions but didn't have time to fix them. But I can provide a version with basic functionality soon...
[Android Software Development] Chronzy:
Will try again soon, thanks for your effort!
[Android Software Development] moosc:
Awesome I've been missing my lmt app
[Android Software Development] Brava27:
Whenever I get asked for permission from chrome regarding my location my input is not registering. When I turn LMT pie off it registers. Does anybody know why the time physics?
[Android Software Development] DiamondJohn:
I compile my own ROMs. Part of the process is checking and modifying the SELinux statements (ie the allows). Is there a list somewhere of what LMT requires to be fully operational?

All I could find was the following post which appears to have a single SELinux denial related specifically to LMT,

https://xdaforums.com/showpost.php?p=70952886&postcount=12519

02-09 15:27:37.449 W/main (11088): type=1400 audit(0.0:1394): avc: denied { search } for name="com.noname81.lmt" dev="mmcblk0p23" ino=765825 scontext=u:r:zygote:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0

which translates to an SELinux allow of:

allow zygote app_data_file:dir { search }; # com.noname81.lmt

Are there any more?
[Android Software Development] twistedwizard:
Works fine except for the activate LMT button keeps turning it self off.

I would like to have it active all the time and to activate at Boot up as well.

Any ideas?

Using an ulefone armor 3t .. soc
[Android Software Development] juliusedward:
Check if LMT is being killed by battery optimisation
[Android Software Development] twistedwizard:
Will let you know in a few

Didn't work.. still shuts off after a few minutes
[Android Software Development] channeledbymodem:
LMT refuses to stay activated

LMT 2.9. Battery optimization disabled. Accessibility enabled. Oneplus 6, OOS 9.0.7

LMT turns off the "Activate LMT" toggle with every restart. "Autostart LMT" remains enabled.

All I need from LMT is the simplest of Pie controls. I got used to using the built in pie from Gravitybox but GB is not behaving well with my setup (phone spontaneously double boots with GB enabled). I am unable to find any other pie app (e.g. Simple Pie from the Play Store) that works with Android 9. It would be nice if LMT worked correctly but since I need such a small part of its feature set I'm open to suggestions if anyone knows of a different pie app that works with Android 9.
[Android Software Development] aznriceballman:
Anyone on the Q beta 5 able to use LMT? Using the 2 button nav, I can't seem to get LMT to come in from the sides ? anyone else experiencing this?
[Android Software Development] scoobyjenkins:
OOS may be the issue, LMT works fine on an Android 9 custom ROM for me
[Android Software Development] lividhen99:
The one with the full list is how it's supposed to look, and the one that is stuck behind the keyboard when lmt is displaying over other apps. Does anyone have a fix for this?
[Android Software Development] moosc:
Lmt doesn't work on Android q. None of the beta's. Possibly the end of lmt thanks to Google's new rules about drawing over apps.
[Android Software Development] replica9000:
Drawing over apps permission (SYSTEM_ALERT_WINDOW) will need to be granted after every reboot. Won't work at all on GO version of Android Q
[Android Software Development] the-blind-bandit:
Try "activation area behind keyboard" under "pie activation".
[Android Software Development] lividhen99:
Didn't seem to do anything. ?Whatever!
[Android Software Development] trohn_javolta:
Not really LMT app related but maybe sb can help:

Can I make LMT load faster/earlier?

After every reboot it takes quite some time before LMT app is started, that's a bit annoying :(

What I tried is to turn LMT into a system app, which makes it load a bit faster after a reboot.

Still I wish I could somehow make it load earlier at boot. Any ideas?

---------- Post added at 12:35 PM ---------- Previous post was at 12:35 PM ----------

Not really LMT app related but maybe sb can help:

Can I make LMT load faster/earlier?

After every reboot it takes quite some time before LMT app is started, that's a bit annoying :(

What I tried is to turn LMT into a system app, which makes it load a bit faster after a reboot.

Still I wish I could somehow make it load earlier at boot. Any ideas?
[Android Software Development] DiamondJohn:
Maybe try adding a start in a boot script. If you are using Magisk, it has post-fs-data which runs very early, as compared to service.d
[Android Software Development] trohn_javolta:
I'm using magisk, yes. So there is a script called post-fs-data where I could try to add sth. to load LMT earlier, did I understand it correctly?

If yes, do you know where this script resides, how I would modify it correctly and what I'd have to add in there to load LMT earlier?
[Android Software Development] DiamondJohn:
ummm... your question imply you are not familiar with boot scripts, and its welllll beyond the scope of this thread. Use a web search, there are limitless examples and tutorials.

As for the location of the path, its no secret, go look on the Magisk thread. I think historically it has changed with Magisk versions. Maybe

/sbin/.magisk/modules/.core/post-fs-data.d

its convoluted probably to help hide it from things checking for root.

as for what the script would look like, again, search the web, but the following should get you started (I use it to start viper as a part of another much larger script):

#!/system/bin/sh
am start -n com.pittvandewitt.viperfx/com.pittvandewitt.viperfx.StartActivity;

To aide your search, most doco for the above command would be commonly associated with using ADB

And if you have something that works, maybe others here would benefit, so feel free to share. I dont have any issue, so have no need to build or use it.
[Android Software Development] sudisk:
Hello [MENTION=1864347]noname81[/MENTION],

I'm on Oreo rooted (S8+) and the kill app function does not work on my device.

I read here that it was fixed for Pie. Anything for Oreo?

Edit: the function actually works fine but another one seemed to be launched. There must have been a command index change that I wasn't aware of.
[Android Software Development] knives of ice:
Will there be support for Android q? Just loaded it and doesn't seem to work. I've come to sorta friends on this app really hope it continues
[Android Software Development] shaggyskunk:
Probably best to wait until Q is released as Official - Then give Devs a chance to test it... IF they have a device running Q - My 2 cents ??
[Android Software Development] Artim_96:
How exactly? pm grant com.noname81.lmt android.permission.SYSTEM_ALERT_WINDOW doesn't work, just gives back unknown permission.

EDIT: worked now, but LMT still not working. At least v2.9 on latest Q Beta
[Android Software Development] shaggyskunk:
Did you try Beta 3? ? also [MENTION=5417899]DiamondJohn[/MENTION]

https://xdaforums.com/showthread.php?p=78648043
[Android Software Development] DiamondJohn:
ooops... my bad. That was

LMT_v3.0_beta1.apk

MD5:b806346f135a3697398e6509380738f6 That did not work and hence the logcat.

Is there a beta3 of v3?

LMT_v2.9.apk

MD5: 78d2f5685db16aeec25444e15701ccba

did work.
[Android Software Development] Artim_96:
I did now. It only works if I switch position of the activation area and only once. Before that, there are toast notifications about LMT starting and stopping several times
[Android Software Development] shaggyskunk:
Double Oops - I got caught up in the beta "talk" - I have LMT v3.0 - And that's what I meant to say - So MY "Oops" too ??
[Android Software Development] ofirmz:
Latest beta please!! Someone provide
[Android Software Development] IronTechmonkey:
Maybe there is a difference of language translation happening here, but the way your request is worded makes it seem unreasonably demanding.

In any event, there has been recent discussion of betas and you might find a link to the latest by searching. If you can't find the link perhaps a better way to ask would be. "I searched but could not find a link to the newest beta. Does anyone know where I can get it"?.
[Android Software Development] ofirmz:
Good job.,
[Android Software Development] shaggyskunk:
Instead of taking the time to ask for help - Searching is not only a more efficient use of everyone's time - It's also expected ??
[Android Software Development] shaggyskunk:
It's a miracle ?
[Android Software Development] DiamondJohn:
The ironic thing here is that the search results are now flooded with people who didn't search, but ask for the b-e-t-a :eek:
[Android Software Development] shaggyskunk:
The technological marvel of Scrolling lol ? ?
[Android Software Development] ofirmz:
How to do it., I try but i didn't get those results!!?
[Android Software Development] shaggyskunk:
?View attachment 4804855
[Android Software Development] deskjet390:
LMT 2.9 and also the Beta 3.0 do not work on Android Q Beta 6 for the Pixel 3 XL.

What I encounter is that LMT service will pop up 1 time (pie controls) and then it will not come back again. A toast message saying "LMT Stopped" appears at the bottom of the screen.

If you open the LMT app and configure the activation areas (thickness, length, gravity, etc) you will be able to see the zones you have configured and a toast message saying "LMT Started". This ofcourse works for one pop up of the pie controls and then stops afterwards.

Beta version does not resolve this behavior
[Android Software Development] Beefheart:
Trying to run this on my Nvida Shield TV 7.2.3 (Android Oreo) but I'm having no joy, I suspect because there is no option to allow LMT to draw over other apps, or not one that I can find. I think Nvidia have removed it when crippling their version of Android TV or perhaps it wasn't there in the first place. I've given root access but when the app starts the screen flicks then it closes back to the launcher I have set as default. Any suggestions? I've been using LMT for years on my Shield but running non-stock firmwares, I can no longer do that though as I need to mount my NAS.
[Android Software Development] mslatter:
I've been using Pie Control while waiting for LMT... LMT is way better. SO I just keep checking back for next version. Would definitely donate if it were to come back for Q - maybe he's waiting for the final version so it's less updates which I'd understand 100%.

I have been a long time user and miss LMT...
[Android Software Development] baggord:
Hi, I'm using latest Oxygen OS on 6T and tried latest beta 3.0. It works actually but not at bottom of the screen, because I couldn't turn off the navbar.

I've tried magisk module and classic qemu.hw build.prop method. Does anyone know a way to turn it off?
[Android Software Development] Artim_96:
Isn't there a setting to switch between different navigation methods? Something like the classic navigation bar should be turned off that way. At least older devices had them. Otherwise that's the case for the device specific forum.
[Android Software Development] Teufel Hunden:
With Note 10 coming this week I hope I can get this to run on it. Ive used this on my last 4 phones
[Android Software Development] Artim_96:
Why shouldn't it work? The only big problem that really exists is with Q. On Note 10 you might need to wait for root for LMT to work more reliable, but other than that there is no obvious reason it shouldn't work. Or food Samsung some cheasy tricks on previous devices that prevented it from working? I can only speak from Note 4 and it worked there
[Android Software Development] Teufel Hunden:
Extremely new device so who knows.

I have a note 8 now and running this but like I said , ya never know
[Android Software Development] Artim_96:
Right. You never know what Samsung messes up next...
[Android Software Development] PhillyWonka:
I had this same issue with my lg v20 however what fixed it was using a substratum theme to hide it. Or another suggestion is use 'joneplus tool' to hide it that might also work too. Good luck
[Android Software Development] DaveX2012:
Cannot launch app.
[Android Software Development] 93fuelslut:
How do you kill all recents? If I have 8 apps open, how would I kill all apps in a longpress? Is it a command in scripts, etc?
[Android Software Development] DiamondJohn:
You have two questions above.

1. How do I kill all apps which may be in my recents. (more memory/process centric)

2. How do I clear my recents history (more visual). When the app may not actually be running/in memory.

For example, I run greenify, so an app *may* still appear in the recents, but in reality it has been forced closed (hibernated) and there are no signs of it in the running processes/memory.
[Android Software Development] ecksdeeay:
There's is a long script to do this with tasker but I use a simpler method linked below.

It uses touch task app to clear all as I couldn't get tasker to do it directly.

You may have to alter the x, y parameter to accommodate your devices screen.

https://taskernet.com/shares/?user=...KMwit9lKY136pILolvMvb3aELB&id=Task:Clear+Apps
[Android Software Development] 93fuelslut:
Good catch. I totally forgot abt that
[Android Software Development] IronTechmonkey:
With [MENTION=5417899]DiamondJohn[/MENTION]'s breakdown of the questions in mind:

1) LMT native kill all apps (kaa) command might suffice.

2) Tasker: I don't want to go too far off topic but here's how I've been doing this:

> Show recents (Tasker native) OR Run shell using root "input keyevent APP_SWITCH"

> Wait 500ms (optional).

> Run shell using root "input swipe [appropriate values]" (in my case 358 80 358 952 50). Note: Depending on ROM and SU combination you might have to add "su -c " or other parameters to the beginning of shell commands, and using the wrong one can force reboot the device.

> Wait 500ms (optional)

> Run shell using root "input tap [appropriate values] (in my case 894 172)

> Stop
[Android Software Development] DiamondJohn:
I do not think its off topic, but that may be because I am also interested ;)

A little while back, I was navigating through the file system on my device (looking for more "targets" of a different app I publish here, OT), and I happened across a directory that actually stored the images (png) that were used for the apps in the recents pane :cyclops:

I didn't note it down at the time, and I forget where it was now:o, but I remember when I found it, i thought to myself that it may be an avenue to clear the recents using a script (in combination with a kill-all type command). I remember that at the time, it seemed very logical where it was, and not overly convoluted just for the sake of it. Might be worth another wonder. My current ROM has a clear all button built in, and my LMT menu is pretty full (both short and long press). Not a fan of automated screen clicks and I do not use tasker, preferring pure scripting.
[Android Software Development] Antibaka:
Okay so the android 10 is out. No desserts is that why I can't use the pie with the new gesture navigation? [MENTION=1864347]noname81[/MENTION]
[Android Software Development] stanley321:
Can I use LMT on Android 10?

I disabled all the gesture nav and went back to 3 button nav bar, but still can't LMT Pie.
[Android Software Development] Artim_96:
No, not at the moment
[Android Software Development] noname81:
I have it running! :D
[Android Software Development] tardis_42:
Brilliant! Is that the last beta version from the thread, or something new not posted yet?
[Android Software Development] noname81:
No, this version is not public yet. Once Android 10 were out I updated my main phone to have a reason to fix LMT. :) The last days I fixed several bugs. I seems quite stable atm so I think I can push a first alpha/beta the next days.
[Android Software Development] shaggyskunk:
Ya big Tease lol ??

?
[Android Software Development] machostallion:
Looking forward to this. Using the built in Android gestures is so frustrating compared to lmt.
[Android Software Development] kenkiller:
Oh god I need it back ASAP. Default options are horrible.
[Android Software Development] Atomregen:
But how to get rid off the stock navigation? Hide with ADB isn't enough for me.
[Android Software Development] mr_schticker:
Came here to see if there was any development going on. I knew I should have waited to update. Using a phone without LMT is just so clunky.

Can't wait to see if the dev gets this working again.
[Android Software Development] DiamondJohn:
Crazy idea for multi paged LMT

Let me start by saying I have no association with the development of LMT or [MENTION=1864347]noname81[/MENTION], I am just a random person out on the internet. But he may chime in to say what a bad idea the following actually is :silly:

I had a thought of being able to paginate through different configs of LMT, from LMT. Maybe a "next page" or a tabulated type arrangement, so I tested the concept. I don't have a current need, but thought someone else might want to take this idea further.

I created a path (assume all scripts are run under su)

md /data/local/lmt;

Created an LMT config using the interface, and copied the LMT.xml to the directory named as LMT1.xml

cp /data/data/com.noname81.lmt/shared_prefs/LMT.xml /data/local/lmt/LMT1.xml;

cleared out that config, and created a totally different LMT config and copied that to the new path

cp /data/data/com.noname81.lmt/shared_prefs/LMT.xml /data/local/lmt/LMT2.xml;

Now from a shell, I could switch between the different LMT configs using the scripts

PID=$(pidof com.noname81.lmt);
kill $PID;
cat /data/local/lmt/LMT1.xml > /data/data/com.noname81.lmt/shared_prefs/LMT.xml;
am startservice com.noname81.lmt/.TouchService;

and

PID=$(pidof com.noname81.lmt);
kill $PID;
cat /data/local/lmt/LMT2.xml > /data/data/com.noname81.lmt/shared_prefs/LMT.xml;
am startservice com.noname81.lmt/.TouchService;

And it seemed to work! :highfive:

Things that will make it more useful or improve it:

Create LMT interface items to automate the running of the scripts to switch between different LMT configs

Instead of a "kill" maybe a stop service would work and be more "polite"

At the end of the script, possibly a sleep and send a screen touch event to the hot-spot area to show/activate/display the new LMT

Conceptually in my testing it worked, and I also do not see any reason as to the practical limit of how many LMT's you could page through

PS: I am using LMT_v3.0_beta1.apk on Pie
[Android Software Development] Cryn_058:
I've been having an issue with lmt, sometimes the pie function doesnt launch any app. It happens specially after rebooting.

However, killing the app and opening it again fixes it. It's an easy workaround and I know you're busy adding Android 10 support, so I understand if you cant take a look at it right now.

Im using Android Pie and LMT 3.0, I'm almost sure it's the latest public beta. Also, im sorry if this has been posted before, I couldnt fine anything

Anyway, here are some logs: https://del.dog/urawomukex.cs
[Android Software Development] Antibaka:
Are you using it with the Gesture navigation? I'm kinda getting used to the gesture navigation but at the same time i still want the LMT, i hope they're compatible!!
[Android Software Development] noname81:
No, I normally activate immersive mode via lmt action to hide the normal navbar and rely completely on lmt for navigation.

Some screens (they are getting more in Android 10 :)) have an overlay protection and lmt's pie is not able to come up. In these use cases I can bring up the navbar via swipe or use gestures to navigate back.

Android 10's gesture navigation uses the sides now also as hot areas and they will definitely interfere with lmt in some way. Since you cannot configure on which side e.g. the back handling will happen, you could just try to configure lmt in a way to not interfere with these areas (e.g. above/below).
[Android Software Development] noname81:
Can you test it again, once the new beta is out? I did several fixes and it would be interesting, if this problem is fixed or still happening. Thanks
[Android Software Development] noname81:
Actually this is a bad idea! :D

Just a joke. If it's working for you it's fine. Just be aware that lmt reads the xmls just at app startup. So just restarting the service won't be sufficient. You have to (gracefully :)) close and restart lmt.