@7175
Do you mind sharing that 'ass backwards reach around java-to-shell-to-java input.jar navbar binded jscript'? I've been trying to get those cursor keys on this 4.2 ROM I'm using. I'm not sure it will work, but it's worth a try.
Sent from my Galaxy Nexus using Tapatalk 2
Knew someone else was interested in this! I highly suggest installing xposed framework and using gravitybox jb to add the navbar cursor control you're looking for. Here is the complicated ass_backwards_reach_around method I've used before though:
So this is how dpad up/down/left/right works through app_process and input.jar with the "input" shell command:
Code:
> /system/bin/input keyevent "n"
### "n" is 19 to move up, 20 to move down, 21 to move left, 22 to move right..
### (btw, tab is 61, esc is 111, and ctrl is 113, alt is 57, and enter is 23. You can use terminal ide's {best app ever} keylogger to check keys)
Now what we gotta do is translate this to an "intent" with JScript which is very tricky, and successfully and somewhat more easily add it to the navbar bind string in the /data/data/com.android.providers.settings/databases/settings.db sqlite database.
Before adding a buttons for left and right cursor control, goto settings and add some dummy's on the far left and right navbar locations, we'll be replacing those next.
Download SQlite Editor and open up /data/data/com.android.providers.settings/databases/settings.db, open table "system", and scroll down to the entry name "navigation bar config". Click on field to the right of "navigation bar config" and click the pencil icon to edit. A window should open with your navbar setup something like:
"...far.left.action...|**back**|**home**|**recents**|...|...far.right.action..."
We want to replace the "...far.*.action..." text with intents to cursor control.
This is a sample intent for cursor up, I couldn't find what I was using before but it should be something like this, su is needed in all of this cause its a clearly a hack.
Code:
#Intent;action=Runtime.getRuntime().exec(new String[]{ "su","-c","input keyevent 19"});end
If that intent doesn't work try search engine-ing "#Intent;action=Runtime.getRuntime().exec(new String[]{ "su","-c","input keyevent 19"});end". Also check this out:
http://pastebin.com/T4d7MgXP
Then just exit the sqlite editor, run "sync" in temu, maybe reboot and test it out.
Again though, I strongly recommend using gravity box.
Hope this helps.
BTW, this entire procedure can be wrapped into a very hacky sqlite one-liner that you can fire off from adb. SQLite Editor is much easier to use though, same author as Root Explorer, and Root Explorer should have sqlite editor builtin if you got that. Just thought I'd mention it.
EDIT.. forgot to mention, backup your /data/data/com.android.providers.settings/databases/settings.db before editing it. This is like heart surgery. Not aortic but like a lower ventricle patch job.