yashsingh1/xdaforums huggingface dataset:
[Android Software Development] molesarecoming:
what makes it really fast and easy to use, even with one hand or via thumb, is rubberbanding. change the polar function and the finditem functions and make them care not so much about where the touch is but if the angle matches. as long as the ACTION_UP is still in a reasonable range theres no reason this shouldnt generate a click. heres an example: http://www.youtube.com/watch?v=0vS1LXM8Y3w --- as you see, it doesnt matter if i hit the buttons directly or not. that makes for a hyper fast response time and is very, very easy to navigate - way better than googles original implementation i think.

i have forgotten my schoolmath and trigometry was never my favourite. some math wizard can probably express the entire function in one contained formula. if you can optimize this code it would be nice if you can send it back to me. :cyclops:

private float getPolar(double x, double y) {
PointF size = mPanel.getSize();
int orient = mPanel.getOrientation();
switch( orient ) {
case Gravity.TOP:
case Gravity.BOTTOM:
x = (size.x / 2 - x) * (orient == Gravity.TOP ? -1 : 1);
y = orient == Gravity.BOTTOM ? mCenter.y - y : size.y + y;
break;

case Gravity.LEFT:
case Gravity.RIGHT:
x = (size.y + x) * (orient == Gravity.RIGHT ? -1 : 1);
y = (size.y / 2 - y) * (orient == Gravity.RIGHT ? -1 : 1);
break;
}
return -(((float)(Math.acos((orient == Gravity.TOP || orient == Gravity.BOTTOM ? x : y ) /
Math.sqrt(x * x + y * y)) * 180 / Math.PI) - 90) / 10);
}

/**
*
* @param polar x: angle, y: dist
* @return the item at angle/dist or null
*/
private PieItem findItem(float polar) {
if (mItems != null) {
int c = 0;
for (PieItem item : mItems) {
if (inside(polar, mTouchOffset, item)) {
return item;
}
}
}
return null;
}

private boolean inside(float polar, float offset, PieItem item) {
return (item.getStartAngle() < polar)
&& (item.getStartAngle() + item.getSweep() > polar);
}
[Android Software Development] titanreign:
I'm so happy to have LMT back!!! Is anyone able to get it to open Nova's app drawer? If so, please share how?
[Android Software Development] shaggyskunk:
You can open Nova's App Drawer - IF you have Root.
[Android Software Development] IronTechmonkey:
This is one of my unfulfilled holy Grails regarding device configuration which I've been chasing for years, admittedly not very intensely, through several Android versions and stock Moto and LOS ROMs.. I've tried this using LMT's native setting as suggested, and also tried shortcuts created through Tasker but when LMT's native setting or any of the shortcuts are invoked from LMT Pie, then if any apps or maximized the UI returns to the home screen. If no apps are maximized or no apps are open then sometimes the Nova app drawer will open. The same Tasker shortcuts run from the home screen, which implies no apps are maximized, is not surprisingly able to open the Nova app drawer.

EDIT more seriously, in the new version on stock Moto Android 10 rooted after any one instance of invoking the pie it subsequently fails to open. This occurs regardless of what was on the screen when it was open that one time. After that lmpd must be toggled off and back on and then after being invoked once it cannot be invoked again until similarly reset.
[Android Software Development] titanreign:
Thanks for the responses guys! I should have mentioned that I do indeed have root and that the native option doesn't work. Also trying to launch it via activity, shortcut, or script hasn't worked for me either.

I'm on a rooted Op7 pro running oos 11.
[Android Software Development] kasnre:
LMT 3.2

xz2c will fail after triggering once
[Android Software Development] folusmile:
Thanks so much..this build works faster on my Xiaomi note 10. More responsive
[Android Software Development] folusmile:
Why playstore detect lmt as harmful ..for the first time ever since hv been using lmt..anyone with this
[Android Software Development] noname81:
This is unfortunately also happening for me with newer versions without changing critical stuff in that area. If someone has an idea how to fix this, please let me know. I'm even not able to somehow whitelist it for play protect. Thanks!
[Android Software Development] shaggyskunk:
I have no idea if this is even possible & haven't yet taken a sip of coffee (just past 5 am here) - But if the Root component of LMT is what's triggering Play Protect - Would it be possible to have a Non Root version of LMT?

For many people who have Locked Bootloaders - Or for those who choose not to Root their devices - This could perhaps be a solution for the warning?
[Android Software Development] PhilPan:
I am getting huge battery drain. Number 1 on the list at 20%?
[Android Software Development] shaggyskunk:
What Device & OS?

Rooted or Non Root?

Tried Clearing Cache - Maybe Data as well?

LMT is using zero% on my S20 Ultra Snapdragon variant running One UI V3.1 No Root.
[Android Software Development] PhilPan:
I'm on a rooted Pixel 6 pro. Cache and data of the LMT App?
[Android Software Development] shaggyskunk:
Yeah - I'd start with Cache & Data of LMT - Note that when you Wipe the Data - You'll have to set up LMT again.

But there's no way that LMT is working properly with that amount of Battery usage - So that's why I'm suggesting Wiping.

Pretty sure that it's not an issue with LMT itself.
[Android Software Development] PhilPan:
I was getting the harmful play protect error..but I stopped it...would that have to do with it?
[Android Software Development] shaggyskunk:
Yeah likely - If it was my device - I'd Uninstall the apk & Reinstall it & just ignore the Play Protect warning for LMT. You'll have to explicitly allow the installation - Because Play Protect's default action will be to block the installation.

The Dev addressed the warning up a little bit.

Probably because of whatever code that enables LMT to work with Root.
[Android Software Development] IronTechmonkey:
@noname81, Regarding, the glitch I previously mentioned (but for which no supporting details were provided).

Moto G7 Power, stock Moto Android 10, rooted w/Magisk, in a clean installation of LMT 3.2 (disabled at the start of the test) the attached log captures the following:

- Switch from Mattlog to LMT configuration.

- Enable LMT

- Invoke Pie = it works.

- Invoke Pie again = it does not work.

This does not occur on a Moto G Power (2020), stock Android 11, rooted w/Magisk.

FWIW, on one of these devices I did at one time have to use old trick and create a directory for images because I could not set them through the UI. If that was on the same Android 10 device that is now having the problem there might be a common cause. The log indicates an issue accessing resources but IDK why that would occur on the second attempt to invoke the Pie, although I could see how both of those things might relate to s common permissions issue. If I can provide any more information please say so. Thanks.

[EDIT] Attached log not saving. Grrrrrrr.OK, this is ridiculous (XDA's failure to provide reliable features) The log file will not attach. This is just unbelievable, a site supposedly dedicated to development at which log file cannot be attached. Gah! 'll keep trying but if there is another way to share it I will.

[EDIT2]Had to open the file in word-pad of all things and save in Unicode format.
[Android Software Development] IronTechmonkey:
The problem attaching logs to posts relates to the content of the log regardless of what app collects it or if adb does so. I had to use word[ad to save as unicode format. Providing a log has become a bigger project than testing and logging the issue. the log is attached to this post and the one in which I describe the issue. https://xdaforums.com/t/app-root-lmt-launcher-v2-9.1330150/post-86071879
[Android Software Development] titanreign:
If you're referring to setting custom icons I got around this by mounting as rw instead of ro.
[Android Software Development] IronTechmonkey:
Thanks for the tip. I don't mind having to use my workaround for the image files and only mention it in case it informs the new issue with the new version. I don't see how the mounting status could be the cause of the new issue because the previous versions of LMT did not experience it, but it's good to know another trick. Thanks again.
[Android Software Development] titanreign:
Starting with either A10 or 11 everything is ro. Makes it a real PITA even for rooted users.
[Android Software Development] IronTechmonkey:
I'm aware of how that matters when we are selecting the image files in newer OS, but as described in my report this is a new issue occurring only in the new version of the app on the same Android 10 device which does not experience the issue in LMT 3.1, and the issue does not occur on an Android 11 device. It would seem that since this was not a problem with the previous version of LMT on this device that it should not be a problem with the new version either.

Additionally, the device having the new issue is not the one which requires work around for images but I'm glad you mentioned it because that made me check to make sure. To your point the Android 11 device is the one that requires workarounds for images but on that device the new version of LMT functions fine
[Android Software Development] AaronCompNetSys:
Been running the new version on my Fold 3 all day and it's been flawless. Thank you. Having the back button working in LMT (among my other functions) and no crashing has restored my productivity in Android again and I'm using the cover screen one-handed without any stress. This one app has reduced the strain on my right hand so much over the many many years that I would have no problem paying a fifty bucks for it. Still blows my mind that no OEM has it. Wasn't there a company that used CyanogenMod and had pie built in?
[Android Software Development] shaggyskunk:
Someone smarter than me probably already knew this - Or already figured it out - But Toggling Off Play Protect & then Toggling it back On & Then running Play Protect's scan again & I no longer see the warning.
[Android Software Development] noname81:
You're right. I never activated it again but I also tested it now and the warning is gone! :D
[Android Software Development] 5upon:
Thank you so much for diving back in for a final (?) release.

I have been using LMT since its early days across Lineage, Samsung, OnePlus and Pixel ROMs. To me Android without LMT would be a huge regression in usability, almost equal to jumping to iOS.

Please consider putting the source on GitHub if you plan to step away permanently. Thanks again and best regards.
[Android Software Development] newellj79:
Did anybody loose settings upgrading from 3.1 to 3.2?
[Android Software Development] shaggyskunk:
Nope - Wouldn't have thought so - Unless you uninstalled it before hand.
[Android Software Development] noname81:
Hi, I checked the log and cannot see a real crash log from LMT. It's only stated that LMT window died. I'm a bit clueless what could be the issue here.
[Android Software Development] kasnre:
xz1c The trigger pie position will shift.
[Android Software Development] IronTechmonkey:
Thanks for checking it out. I've been testing to find possible culprits to no avail but I don't think this is necessarily an app crash, check out this additional detail which I did not previously realize, it occurs once on each side. Invoke Pie on right side then unable to invoke pie again on right side but able to invoke pie on left side one time then unable to invoke on either side. Then toggling LMT resets.

I had already been wondering if this might be related to some miscommunication between LMT and the device about the device's display attributes and then saw the previous post. A shift of the Pie position ater one use would be consistent with these symptoms and without app crash.

A log capturing the opening of the LMT config or the installation of the app might (or might not) contain clues.
[Android Software Development] IronTechmonkey:
Does it appear in one place the first time and then other place after that?

Does it happen once on each side of the device?

If so it may be related to an issue I've been experiencing.
[Android Software Development] midyuki:
zenphone5z

android10:unroot

will fail after triggering once
[Android Software Development] shaggyskunk:
The Dev can't do anything without a log.
[Android Software Development] IronTechmonkey:
That's the same thing that's happening to one of my devices. You can see details a few posts previous. Device details and a log might help figure it out.
[Android Software Development] midyuki:
It didn't crash and PIE stopped working, so it was the same phenomenon.

Thank you for telling me.
[Android Software Development] phubarr:
I'm so grateful for the continued support, noname81! I just donated €45 (~$47 USD) and it's worth every penny to have my beloved LMT launcher back! I've silently missed it SO much! I believe a device's power (utility and usability) is defined by its interface, and LMT is the best there is! Thank you again!!

P.S. My particular issue was that I was using a custom (rooted) Android 10 ROM (Resurrection Remix) on my OnePlus 6T and none of the navigation controls worked. They work great now!

P.P.S. Piepointer is an absolute BRILLIANT feature! For anyone with a modern-day large screen, it's a MUST!!
[Android Software Development] noname81:
Thanks a lot for the donation! 😀
[Android Software Development] awakener777:
I am so thrilled to have a working version of LMT on my new Pixel 6 Pro! It's been so long since I've used this and boy have I missed it.

I'm only just setting up now but I do have a question. When assigning an app to the pie, is there a way to have the app list populate apps from my work profile as well? Or if not, how can I add apps from my work profile to the pie? Thank you!
[Android Software Development] robsquared:
I can reproduce this issue on 2 Huawei tablets (MediaPad M6 10.8 and 8.4 running Harmony OS 2 (which appears to just be android 10, maybe 11). I have a Pixel 6 Pro which has been running LMT 3.2 just fine. I did not have this issue with LMT 3.1. I'd be glad to add any details in the thread that may help the developer.

Edit: Also donated, i can't believe I hadn't donated before, I've been using LMT for years and love it.
[Android Software Development] noname81:
The work profile is a different user, so it won't work out of the box. You can try to start an app from a different user via command line/adb as discussed here:

How to use adb to install and debug an app in a work profile?

I developed an android app which works fine. But if I install it into a Work Profile, it sometimes fails. The installation into a Work Profile is currently done by distributing the app via a private

stackoverflow.com

If this is working, you could e.g. assign the "am" call to a pie item as script action.
[Android Software Development] noname81:
Thanks for the donation! 😀

To check if it's the same issue, we could check the logcat. Then the hint, that it was working with LMT v3.1 is a good hint. I checked what I did for 3.2 and reverted all pie related changes, except bumping the SDK version LMT compiles against. Can you please test the attached test version?

Edit: Removed since testing done.
[Android Software Development] IronTechmonkey:
LMT v3.2 test_pie.apk seems to fix the issue of Pie not invoking on second attempt. Tested in clean installation and on top of 3.1.
[Android Software Development] noname81:
Nice! :) Since I did multiple changes, we need to find out, which one broke it. Can you please also test this version? Thanks!

Edit: Removed since testing done.
[Android Software Development] IronTechmonkey:
This one is good in regards to the invoking twice issue as well. Tested in clean install and on top of 3.1 but not on top of previous 3.2.
[Android Software Development] noname81:
So this was just a little alpha change it did for pie flickering on my pixel with Android 12. I wrapped the code change with an "ifdef Android 12" now. Let's see if it's working for all use cases. Can you again test this version? Thanks!

Edit: Uploaded this version now as LMT v3.2 to the OP with change log.
[Android Software Development] awakener777:
Please forgive me as it's probably been 7+ years since using terminal emulator but i don't think I'm getting the results we are looking for as seen in the image. I may be doing something wrong or missing something to use adb in terminal. I do have debugging enabled.

I will say I have no problem putting both instances of the app on a home page. I'm coming from Samsung Galaxy Note 10+ and I was able to put both instances of an app in Samsung's One UI quick launcher.

I'm not sure if it's relevant information, but I'm using the app Island to clone apps. I'm pretty sure it just places it into a work profile though.

Edit: I've included a screenshot of my Note 10+ with both instances of chrome in the quick launcher I was referencing.
[Android Software Development] noname81:
Hi, "adb" is the host tool to "communicate" with Android and "adb shell" opens a shell on your phone. So just remove those two strings and just call dumpsys directly with terminal emulator.
[Android Software Development] awakener777:
Ahh okay, that's right. Everything is flooding back to me. So I realized opening an app through pie opens it normally and if I open it again through pie it opens the cloned version of the same app, and this is good enough for me! I very much appreciate your responses!
[Android Software Development] awakener777:
So by default, holding the power button opens Google assistant on pixel 6. I like the feature but with LMT, OPENPOWERMENU only opens the power menu if you change the default setting to do the same. Otherwise, it also opens the assistant.
[Android Software Development] noname81:
Do you have root? Then you can try to send the key code instead:

https://developer.android.com/reference/android/view/KeyEvent

Keycode power is 26 and if you want to Longpress it, put 2026. I don't know if this will work for you though.
[Android Software Development] awakener777:
That's awesome. I've never used that function before, but it did work. Since power menu is brought to by hitting power and volume up, I think put in 26,24 just like that and it work. Idk if separating it with a comma is correct, but it does what I intended.
[Android Software Development] noname81:
Nice. Fyi, the OP has some details for keys in the FAQ. Comma is sending both keys simultaneously and a space is sending them sequentially. Longpress is as discussed e.g. 2000 + keycode.
[Android Software Development] IronTechmonkey:
LMT v3.2 test_pie3.apk also looks good in clean install and on top of 3.1 Also for what this is worth to those discussing key commands, key 26 still works to turn off display and LMT's native power menu item functions well on this Moto G7 Power Stock Android 10 rooted Magisk.

Note: This test was just for a quick look at the failure to invoke issue and I did not dig much further except to see that an update on top of 3.1 looked normal upon quick visual inspection, IE settings and button functions seemed to carry over properly.
[Android Software Development] robsquared:
I have tested this apk on both my Huawei tablets and Pixel 6 Pro. Everything seems to be working as expected.
[Android Software Development] nacos:
V3.2 work flawlessly on Samsung S20, rooted, microG, Android 10.

Donated €10 🤝

Thank you for your excellent work and consistent support!

Happy holidays!
[Android Software Development] peterthevicar:
I had the problem with only the first invocation of lmt working. This apk fixed it for me.

Moto G8 plus, Android 10
[Android Software Development] robygt:
Hi guys, I truly beg your forgiveness, I'd like to download latest version but I can't see it in op. It's been a while I'm not paying visit to XDA, can you help a blind noob? Edit; nevermind, found!
[Android Software Development] shaggyskunk:
Just go back a page to find the latest.

OR

Post in thread '[APP][ROOT] LMT Launcher v3.2' https://xdaforums.com/t/app-root-lmt-launcher-v3-2.1330150/post-86135873
[Android Software Development] Tonus1:
I have beeing using LMT for 10 years now. Amazing.

Have to donate. Had to, didn't. Let me a moment.

Edit : Done. Remains small but you know small drops make rivers.
[Android Software Development] curecc:
thanks
[Android Software Development] mugendon:
This seems to get me every expiration. Panic that LMT is not working, tinkering around with my device until I finally accidentally open the info and see that the app expired. You really need a popup for that :) Either way this reminded me how long I already used the app which is definitely worth a donation ;-)
[Android Software Development] shaggyskunk:
You're aware that the latest version has no expiry date?
[Android Software Development] mugendon:
Nope, thanks for the heads up :-)
[Android Software Development] shaggyskunk:
Latest version is posted just a page or two back.
[Android Software Development] mugendon:
Yep already installed but didn't look at the info tab. Also since there is not yet an official changelog in the op I just missed that detail :-)
[Android Software Development] IronTechmonkey:
You did not miss anything. That's the same version which we were testing as if beta and the tests were successful so it is being assumed that is the next official version but I don't believe that was announced by the developer yet.
[Android Software Development] jshare:
Love LMT. On my 4th phone with it. Just donated. Thanks @noname81
[Android Software Development] mugendon:
I meant i missed the detail that it is now no longer expiring :)
[Android Software Development] noname81:
Hi all, fyi: I just uploaded the latest LMT test version as LMT v3.2 to the OP and also added a change log. Thanks!
[Android Software Development] carandcar:
@noname81. Thank you for your continued development! 20897652949434157
[Android Software Development] Rockishi:
I've loved LMT for years.

But help! I've installed the new 3.2 and the apps in the pie don't launch. My workflow is thrown off. Any suggestions? Attached is a screen recording.

http://u.pc.cd/qD67
[Android Software Development] shaggyskunk:
Maybe start by saying what device & os?

Rooted or not?
[Android Software Development] noname81:
And also a logcat would hopefully give insights here.
[Android Software Development] Rockishi:
Thanks guys. I ended up figuring out that I needed to reinstall Magisk Manager and granting LMT permissions.

By chance what app do you use to capture logcats?
[Android Software Development] DiamondJohn:
I either use ADB over WIFI or my own app (TeMeFI); which also has filtering built in
[Android Software Development] IronTechmonkey:
2 commonly used apps for logging are.

Matlog: A few years since last updated but still good for capturing basic logs.

Logcat extreme: more features and much more recently updated.
[Android Software Development] 93fuelslut:
How do we change app icons in the new update? I'll select my icon pic, lmt says stopped, started, but nothing changed
[Android Software Development] jay_jay_n:
What version did u install or what did u do to get it to work right? I'm having the same issue on my z fold 2 and 3 using the 3.2apk
[Android Software Development] robsquared:
I installed the one attached that conditionally used a different api version per android version. My LMT app just says it's version 3.2.
[Android Software Development] noname81:
Hi all, the last weeks I observed random crashes with LMT (LMT just was deactivated and I needed to start it manually). Checking the problem this is due to a crash when Android wants to backup LMT's settings. Since this is quite annoying and I was not able to fix the root cause for this yet, I decided to deactivate LMT's backup feature for now and to release a new test version. So here it is.

Let me know if you also encountered this problem and if it's now fixed for you.

Thanks!