The issue I was recently having (on the previous page):
But it is solved now. As it turns out, there is a common bug in CM-based Marshmallow ROMs, that doesn't allow the granting of usage access to some apps. They don't even appear in the list. And granting the perm with a command doesn't usually work.
There is an app called App Ops, available on Play Store, by Rikka. It needs root, ADB, or system perms via Shizuku. This app correctly shows which apps can request usage access, and can be used to grant/deny the perm, bypassing the bug. LMT then shows that usage access is true rather than false.
I have several others that also needed this perm, now working fine too. I had posted this response before but it somehow didn't appear.
If someone has this issue then this post should prove useful. But I am wondering, can you explain why LMT needs usage stats? Pie seems to work fine without it.
What is the LMTFrameworkResLayer.apk for? It seems to be for getting rid of the navigation buttons on ROMs that have soft buttons but no hardware buttons, and cannot be disabled otherwise (i.e. some stock firmwares). I tried pasting it into /system/vendor/overlay and settings perms to 0644/rwrr, on reboot nav buttons are gone. But after uninstalling LMT and this APK, my ROM wouldn't boot again! At the time I was using it on ZTE Axon 7 stock firmware.
Can LMT be used to turn the screen off? I've got it work by mapping a pie key to trigger an arbitrary button, using 26 as the value. Screen turns off. But I would like to add a 3-5secs delay so that it works with secure unlock solutions (fingerprint/face/pin/pattern/etc). Does LMT trigger a global secure lock when done this way, or just an insecure root lock? It seems this action only requires root, so that is why I ask.
Good luck on the next beta, I just noticed it now and am trying!
A feature I'd like to see, but I doubt you will consider it: The ability to use LMT as a launcher. I am a minimalist and don't much care for app icons, widgets, and other functions that would be expected from a launcher. Simply having a pie launcher to get around my phone would be enough for me.
Lmt uses usage stats permission to get the currently running apps when lmt has no root. This info is then used for actions like recents in pie or the last app action.
LMTFrameworkResLayer.apk is indeed just a rro overlay, which is independent to lmt and can be used to hide the navbar.
I'm not sure what you mean with screen off and secure lock. Your method just emulates a key input (26). It is the same input, the hardware power button sends to Andoid when pressed. For that delay: lmt's key action has a chaining feature so you can send multiple keys separated by a space, e.g: 26 26 would 2 times send the power button. Also you can longpress a button, e.g. 2026 would hold the power button for 2 seconds. Now combining this, you could just wait 2 seconds and then send power button by 2000 26. If you want to do some more complex stuff, you could write a small bash script as lmt action or use e.g. Tasker.