yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Indurus:
Thank you very much! I'm going to try that!

Tried it, but never done such things, so there are some questions left:

I start "SL4A" and what shall I choose then:->Menu -> add -> Shell ?

Then I give it a filename and put your code in the script content (the task I want to run is named "Standby" so i just have to add the following:

am broadcast -a net.dinglisch.android.tasker.ACTION_TASK -e task_name "Standby"

The debugger doesn't complain, but when I try to execute it in SL4A it simply does nothing.

Sorry, I'm a real noob, what am I doing wrong?

I get the message: "Broadcast completed: result=0"
[Android Software Development] Chillmann:
Iam not that firm either, just found this cmd when i was looking for executing tasker tasks via script. But "Broadcast completed: result=0" doesnt mean that its not working. I get the same message but the task has been executed.

Maybe u have to check "Allow external access" inside Tasker preferences under misc.

Next difference between our setups, but very unlikely the cause, would be that iam using a few python scripts along sl4a. Python has to be installed seperatly and comes with so called Interpreters. But i dont think that these interpreters are needed to execute shell commands.

Hope u get it working ;)
[Android Software Development] Indurus:
Thank you very much again for your help!

I checked the settings in Tasker, unfortunately this was not the cause... "Allow External Access" is (and has been) active!

I tried it with quite simple tasks like just opening an app or a simple text-popup, but it doesn't work! It happens simply nothing...
[Android Software Development] Chillmann:
I attached 1 of the scripts iam using.

By executing it within sl4a, terminal says:

Broadcasting: Intent { act=net.dinglisch.android.tasker.ACTION_TASK (has extras) }

Broadcast completed: result=0

Maybe these Python interpreters are neccesary. Google for "Python for android" and install, open it and install remaining accessories (interpreters + a few example scripts)

Dont think that the Rom has anything to do with it but iam using cMIUI http://xdaforums.com/showthread.php?t=1704387

on latest Siyah kernel

(maybe we should switch to private messaging since this is getting little off topic ^^)
[Android Software Development] bunklung:
Have you tested this? Are you referring to long press customizations in LMT? There is a LP delay, but that has to do with secondary commands.

My question is how do I send a long press of the main navigation keys to the OS which some apps require.

I asked the same question about Google Now, which requires a long press of the home button. The only response I got was, "just use the search app". It's only a work around and I suspect there is no way to send a long press of the basic navigation keys to the OS or app.

Perhaps I need to ask for a feature request? When I play scummvm, I have to turn back on the stock navigation keys on the gnex so I can long press the menu key.
[Android Software Development] aussiebum:
LMT has hardcoded options for long pressing the Home and Search keys. The Pie customisation tab that lets u define the layout and order of Pie buttons has those two.

There isn't a hardcoded one for long pressing the Menu key unfortunately. You could setup a script that runs a series of sendevent commands to emulate long press menu button behaviour (and assign the script to be run via a Pie button) but it's fiddly...

Some random google link on on using sendevent (in this case, with tasker, but the idea is the same if sticking the cmds in a script) -> https://groups.google.com/forum/?fromgroups#!msg/tasker/LJhmfxT2mj8/y92jivjmZNIJ[1-25]
[Android Software Development] EcHoFiiVe:
This app works perfectly on Galaxy Player 5.0 running PA with SGS2 settings.
[Android Software Development] fenstre:
issue when in landscape

Great app! I noticed that the orientation is not correctly detected when the phone is on its side. I set a swipe-up gesture response, and it works when the phone is in the portrait orientation and when the phone is lying on its left side. But when the phone is in landscape mode on the right side, LMT detects the gesture when I swipe down, not up. Is this a known issue and is there a way to fix it in configuration?

(The phone is a Galaxy S3.)
[Android Software Development] stkiswr:
Has anyone gotten this to work on a Verizon galaxy s3?
[Android Software Development] tiho5:
PLEASE, tell me which input device did you specify for your phone (the HTC OneX). I could not find any directions on the entire thread.

Thanks in advance!

---------- Post added at 05:17 PM ---------- Previous post was at 04:53 PM ----------

It just wouldn't work on my HTC One X. Any ideas. I love this app. Been using it for years on my win mo devices and I hate I can't have it now.
[Android Software Development] noname81:
Follow the steps in the troubleshooting section from the OP. Then post (a short) snippet from the result (getevent). Afterwards we can tell you the proper input device...
[Android Software Development] tiho5:
I am very good with WnMo, but "green" with Android and probably will not manage to follow these instructions properly... Sorry!

But I tried all of the offered input devices in the settings one by one. None worked. It is HTC ONE X 26.

Used to have this app from the very first day on my HTC HD 2 and I am so used to it. Now I saw the new Android interface and settings and I was amazed. Great! :good: Hope for an update and a newer version to come. I have to have it. Great job again, noname, and keep up the good work!
[Android Software Development] beezar:
Turn LMT on in Settings - Accessibility. Both menu and back work fine for me on Note 4, 5.1.1
[Android Software Development] m.alkhalel:
Thanks! Back button is working now, however the menu button is still crashing the app.

Edit: search button opens Evernote for some reason.

On the older firmware version (COI1) everything works fine but on the newer 1 (COI3) I have the issues mentioned above.
[Android Software Development] Hastaloego:
fresh installed LMT v2.5 beta2 on xt1039 running SaberMod http://xdaforums.com/moto-g/4g-development/rom-unofficial-cyanogenmod-11-t3017616

killapp and killallapps doenst work for me

edit : every previous version kills it self when ever i use killapp on any other app
[Android Software Development] IronTechmonkey:
I've also been seeing the menu button crash LMT but have had trouble reproducing it intentionally. It seems to occur when I've accidentally swiped and moved my finger quickly.
[Android Software Development] Adreaver:
Just reporting that 2.5 beta 2 is running on Shamu running 5.1.1 PureNexus with zero issues. Thanks!
[Android Software Development] IronTechmonkey:
Just realized that, since switching devices ROM from CM11 to CM12.1 I can no longer run apps or use lastapp, previousapp or next app.

Using "Shortcut" - "Tasker Task" - <task name> seems an effective workaround for running apps but not for navigating among them.

[EDIT] Catching up with the times:

Changing selinux mode to permissive using "setenforce 0" at a command prompt on a naturally routed CM ROM with SuperSU restores functionality to APP, prevapp, nextapp, lastapp, kill all apps after LMT us stopped and restarted. Wahoo.
[Android Software Development] RoboJoe:
Did we ever figure out how to activate Now On Tap via LMT with the Navigation bar hidden? For some reason 'longpresshome' doesn't do it, and the 219 key just causes a System UI crash.

I suspect it's going to be a very oft-asked question before the end of the day. I don't want to have to use the Navigation bar! :) (but I will)
[Android Software Development] IronTechmonkey:
I don't know if changing selinux mode would help but it did for me. See previous post. /\ /\ /\
[Android Software Development] Hastaloego:
what version of LMT did you use ? tried the setenforce 0 but killapp or killallapps still does not work :(

Edit: hmm suddenly it works after reinstall beta2 after testing beta1
[Android Software Development] IronTechmonkey:
I'm running LMT v2.5b2 (on recent CM12.1 nightly). In order to get LMT to see the selinux mode change I did have to stop LMT which I actually did by freezing it in TiBU then defrosting it, then re-enabling it (The act of freezing then defrosting toggled LMT off). Perhaps in your case that similar type of application refresh did not happen until you reinstalled. It would have been odd if kaa did not start working while the commands did.

EDIT - Also, Tasker tasks can be used to change the selinux mode with a tap.
[Android Software Development] Gabe Johnston:
Temporary Google Now On Tap+LMT-NavBar= Solution!

This is only a temporary solution. Occasionally, Google Now On Tap functionality may stop unexpectedly whilst using this method. (Tested on Shamu)

Open LMT, and configure:

- PIE ITEM 2 LONGPRESS -> KEY -> 219

- Install: https://play.google.com/store/apps/details?id=com.gmd.hidesoftkeys&hl=en <- (GMD Auto Hide Soft Keys ★ root)

Note: You WILL need to purchase IAP for "PRO" mode to be enabled & use required functionality.

- Once "PRO" is enabled, launch and configure: General -> Navigation Mode: "None (PRO)" -> Tap the toggle next to the letter "S" at the top to activate, which will restart system.ui and hide the software keys.

You will need to manually configure the rest of the settings (Start On Boot, Device Has Soft Keys, etc) in order to succeed seamless functionality.

This is my first post on XDA, hope it's helpful!
[Android Software Development] RoboJoe:
Thanks for that info, but I don't know if I hate the Navigation Bar so much that I'd spend $4 to get rid of it. We'll see if I break down.

Thanks again!
[Android Software Development] Hastaloego:
qemu.HW.mainkeys works fine for me to get rid of navbar.

Gesendet von meinem XT1039 mit Tapatalk
[Android Software Development] jfpbookworm:
That method doesn't seem to work with key 219 though.
[Android Software Development] browcantor:
like leaving the back of the transparent screen when you click the pie, the pie is not to change the color does not
[Android Software Development] Gabe Johnston:
That's understandable, hopefully once Android 6.0 development kicks off then we'll get a method that allows the nav-bar to be disabled whilst keeping Google Now On Tap functionality.
[Android Software Development] MacDoof:
Hi,THX for this great APP. Would it be possible to make a Tesla unread Plugin for lmt?
[Android Software Development] Ev1L4o:
Anyone tested it on the new 6.0 ?
[Android Software Development] Pecata:
I have read in one of the threads that is working fine-however obtaining root and read/write in system partition is tricky. For the root we need a custom kernel and even with root the system partition isn't writable...waiting on a better root method for now...
[Android Software Development] Ev1L4o:
Yea I saw that too... Waiting a week for a proper root for now.
[Android Software Development] Pecata:
Doing the same...:)
[Android Software Development] MrKaon:
Everything working fine on Android 6 all you need is latest Beta SuperSU with permissive mode custom kernel.
[Android Software Development] neuty:
Thanks that worked perfectly for me. Had to wiggle around with the soft key toggle, but got it working.
[Android Software Development] MrKaon:
Android 6:

I'm trying to get Google Now on tap working but no success yet.

Key 219 is crashing system UI,

Also I don't understand why do I need that app to hide soft keys? It can be done by editing build.prop.

Edit:

Ok I've got it.

Editing build.prop to hide soft keys will disable key 219.

I guess we have to wait till Dev puts this functionality in to LMT (hiding soft keys without loosing Google now on tap) I happily pay for pro version.
[Android Software Development] Ev1L4o:
How do I remove the buttons ? The command in build.prop does nothing for me ?
[Android Software Development] Pecata:
Are you running 6.0 or still on 5.1.1?

If you are on 5.1.1 adding the command to the build.prop qemu.hw.mainkeys=1 should remove the navigation bar completely. Make sure you save and reboot.

It works fine on Lollipop but with Marshmallow is a bit tricky since you will need a different boot img to write to the system partition...
[Android Software Development] Atomregen:
Did you wrote this in the build.prob?:

qemu.hw.mainkeys=1
[Android Software Development] matt1515:
LMT not working properly with nexus 5 6.0 using chainfire's new boot.img and SuperSu 2.50 anyone else confirm this? Might have to wait for app update.
[Android Software Development] RoboJoe:
What does "not working properly" mean?
[Android Software Development] MrKaon:
It is working properly on mine, ElementalX + latest SuperSU Beta
[Android Software Development] lollyjay:
Didn't find any way to directly toggle NFC. Is there a way?
[Android Software Development] justibasa:
Got the same thing on my nexus 6. Running supersu 2.50 the home and back keys no longer work. Have tried reinstalling and it's still having the same issue.
[Android Software Development] Ev1L4o:
I had to do it 10 times, exactly like I did it 123123 times before when flashing roms ...... I have no idea why it did not work at start.
[Android Software Development] horza:
For me, it means that v2.5b2 installs and runs the configuration activities perfectly.

However, in the pie, tapping pie slices doesn't do anything. Bback, home and application start functions don't launch anything. However, recent apps works just fine for me.

I'm using 2 menu levels and longpress to their maximum capacity.

Freshly installed stock 6.0 on nexus 5.

Tried with 2 permissive kernels, so I don't think it's selinux this time. But the behavior is very similar to the one that we had when android first started with selinux in strict mode.

Weird stuff because both versions 2.4 and 2.5b2 worked perfectly for me on android 6 preview 1 and 2. Just stopped in the final version.
[Android Software Development] matt1515:
Sorry back, home, and menu not working. Recent apps still works.
[Android Software Development] Shepguessed:
Could it be a problem with new permissions? I had to grant permissions when turning on accessibility and it work fine. Maybe turn it on, grant permissions and see if it works.

Sent from my Nexus 6
[Android Software Development] MrKaon:
This is root problem, maybe LMT needs to be update in order to get proper Root access, Root explore has a same problem on Android 6 but others like fx explore working fine.
[Android Software Development] horza:
That didn't work for me. I just tried it twice just to make sure.

What "solved" the issue for me is flashing ElementaliX kernel. And it all works just fine now.

Before that I tried it on latest stock+permissive patch and on latest Uber-L. It didn't work in either.

But it does work on latest ElementalX.

Root app was the same with all of them - SuperSu beta 2.50
[Android Software Development] Shepguessed:
Yes good point, I should have mentioned that I am using elemental kernel as well. Maybe that's the secret? ?

Sent from my Nexus 6
[Android Software Development] matt1515:
Ya that makes sense thanks I'm sure a solution to this will come soon
[Android Software Development] :
It works with 6.0 version of elementalx, but it does not with the 6.0.1. From what I know, the only change is that selinux is set to enforcing in 6.0.1. I'm using supersu 2.50 both times.

So, as it seems, lmt has a problem with selinux not being set to permissive.
[Android Software Development] #sharath:
When i use kill app function, LMT also gets killed. This is happening in marshmallow.
[Android Software Development] matt1515:
I think that is exactly the issue hopefully it's not too difficult to get it working.
[Android Software Development] RoboJoe:
Are you running 2.5 beta 2?
[Android Software Development] lollyjay:
Running 2.5b2 on Bad Boyz 6.0.0 Nexus 7 2013, Elemental X 5.01 beta. Can't get apps to run. Any app I select does not open app from pie. App opens correctly from home screen.
[Android Software Development] MrKaon:
+1
[MENTION=1864347]noname81[/MENTION]

LMT doesn't work in Android 6 with SELinux enforced kernel despite having root access.

Thanks :good:
[Android Software Development] Hrithan2020:
has anyone figured out how to simulate now on tap using lmt ? [home long press not working]
[Android Software Development] matt1515:
Just to confirm I tried LMT with chainfire's kernal but used SELinuxModeChanger app to switch to permissive and LMT works. Simple solution instead of flashing another kernel until this gets fixed.
[Android Software Development] awakener777:
I have the same problem with the latest CM12.1 nightly. Running jflteatt Samsung galaxy s4.
[Android Software Development] shadowcliffs:
When I was linking the pie to apps, somehow the arbitrary app list only has very limited numbers of apps. It's on a Samsung S4 with Able95's S6 rom v4.5.

I read the op but didn't find this issue being mentioned. Since it's such a long thread, a quick answer is appreciated.
[Android Software Development] Freak07:
[MENTION=1864347]noname81[/MENTION]

I think I found a Little bug on android 6. When using the kill foreground and and switch to homescreeen toggle it kills lmt itself instead.

Here is a log. Let me know if You need another one.

https://drive.google.com/file/d/0BxbxiBXaZVu-MHluNVU5WGprTzQ/view?usp=docslist_api
[Android Software Development] RoboJoe:
Are you on the Beta2 version? This issue was resolved in that version, I'm pretty sure.
[Android Software Development] Freak07:
Thanks you're right! I accidentally installed the wrong version.

Thanks again and have a nice day :)
[Android Software Development] alberturer:
Works partially

Running Android 6 on my Nexus 6 with ElementalX 3.02 (wich is enforced) and Beta SuperSU 2.52 and it works but it is slow in nearly all the actions (has a delay of +1 second, except with recent apps) and there are some that doesnt work like Last, Previous, and Next App. On lollipop was working smoothly.

On big devices, this app is a must have :(

Edit:

I just saw this post

And now, with the 2.4 stable version of LMT is working like a charm. So many thanks for this wonderfull app, i'm using it since my first smartphone. :)
[Android Software Development] noname81:
Hi, I would not recommend using 2.4 since it deactivates selinux and will be flagged by the Google app scanner as malicious app. But I updated my devices to Android 6 today and already did a fix in LMT to support M. As always I'll test the changes some days and release a new beta... Thanks!
[Android Software Development] alberturer:
I didnt know about that it deactivates selinux. Am i going to have some problems later?, do i need to reinstall my enforced kernel or SuperSU?

By the way, there was a message for google asking me to continue installing, i said yes because i trust you :D

Cheers from Peru.
[Android Software Development] noname81:
It just deactivates selinux for 1 second to start lmt and then reactivates selinux again. But since it touches the selinux state it was flagged as malicious app.

This was the reason I changed the handling in v2.5. Selinux state is not touched anymore and the device stays more safe. And beta3, which I'll release soon, will support Android 6.0...
[Android Software Development] me_mod:
Will beta3 support now on tap?
[Android Software Development] noname81:
I didn't check it yet. Does someone know details?
[Android Software Development] RoboJoe:
What kind of details are you looking for?
[Android Software Development] jpierce:
I can confirm that it works right now if you leave navbar on bottom and use LMT on right and or left using key 219, I use it every day. On marshmallow. If you remove navbar it's a no go though. I would like to remove navbar and use LMT [emoji3]
[Android Software Development] jfpbookworm:
Running Nexus 6 Cataclysm, Key 219 works if I set the navbar height to 0% rather than using the qemu.hw.mainkeys=1 technique to remove the navbar.
[Android Software Development] Pecata:
Interesting-how did you do that? Another build.prop edit? Does it interfere with LMT or other apps to use full screen?
[Android Software Development] jpierce:
Where did you locate that in build prop. Can't find in marshmallow using root explorer.
[Android Software Development] noname81:
So it looks like the now on tap code is put into the navbar code in Android. When you remove the navbar via build.prop the complete code gets deactivated. If we don't find a way to trigger the feature via intent, etc. I see no possibility to get it working with lmt. As mentioned you can only set navbar to 0% instead of deactivating it.
[Android Software Development] RoboJoe:
There must be some way; Google wouldn't lock out devices with hardware buttons, would they?
[Android Software Development] jfpbookworm:
It's a custom ROM setting. I don't know how to do it in stock.

LMT works fine, and aside from Now on Tap I working I can't tell the difference between that and the build.prop approach.
[Android Software Development] Pecata:
Since I have rooted and installed lmt everything seems to work properly, however I have noticed a delay when using lmt for home and back, but not when I use it to display recent apps....strange-that delay wasn't present in Lollipop...I am on stock M, rooted. Anyone else noticing that?
[Android Software Development] matt1515:
Switch to permissive
[Android Software Development] Pecata:
I am sorry what do you mean by switch to permissive? Do you mean istall a different kernel?

---------- Post added at 21:33 ---------- Previous post was at 21:07 ----------

Also I have noticed that the script to unpin pinned apps setuidgid 1000 am lock-task stop doesn't work for me anymore.
[Android Software Development] noname81:
Lmt is just working in fallback mode in M at the moment (As if root wasn't available). I'll post an update for Android M soon...
[Android Software Development] Pecata:
Thank you so much for the quick response! Patiently waiting for the update! I do appreciate all of your work!
[Android Software Development] MontAlbert:
Works OK for me on Nexus 6 marshmallow with kernel in permissive mode. Only thing I can't get it to do is to open phone app to make a phone call. Couldn't figure it out so instead made a Tasker task to run the app and triggered the shortcut to that task using lmt instead. Worked OK that way but thought it was strange I couldn't get it to open the phone app directly from lmt.
[Android Software Development] Natakranta:
I confirm. I was testing LMT 2.5 beta 2 on Nexus 5 with MultiROM and Stock 6 with ElementalX 6.0 (Selinux permissive) as secondary ROM. The only app I couldn't start from the pie was dialer. [MENTION=1864347]noname81[/MENTION], could you please check it in the new version you are testing now before releasing?

Massive thanks for your instant reaction to Marshmallow.

The Answer to The Ultimate Question of Life, the Universe, and Everything is: CLEAN FLASH.
[Android Software Development] matt1515:
Handy app to have

http://xdaforums.com/showthread.php?t=2524485
[Android Software Development] noname81:
Hm, I just tested to open the the dialer via Lmt:

Lmt action -> activity -> com.Google.Android.dialer -> com.Android.dialer.DialactsActivity for the dial pad or com.Android.dialer.RecentCallListActivity for the recent calls.

Android 6 on Nexus 6: Lmt v2.5. Is this not working for you?
[Android Software Development] lionelhuts:
Key 219 works for me. I was able to remove/hide the nav bar by using the pro version of the app GMD Auto Hide Soft Keys.
[Android Software Development] MrKaon:
Can this hide and unhide option of nav bar be put into LMT without disabling it completely by editing build.prop?
[Android Software Development] Kappa Lamda:
You can use GMD Autohide. No need to edit build.prop

https://play.google.com/store/apps/details?id=com.gmd.hidesoftkeys&hl=en
[Android Software Development] MrKaon:
Thanks will try it but having that option built into LMT would be great feature.
[Android Software Development] Natakranta:
I was setting the pie slice choosing: application -> Phone.

I'll check out when I have access to wife's phone where MM is flashed.

The Answer to The Ultimate Question of Life, the Universe, and Everything is: CLEAN FLASH.