what's the point of rooting? - Shield Android TV Q&A, Help & Troubleshooting

I just realized that this can do a lot, stock. I don't see any benefit to rooting anymore? NTFS support works out of the box.

Adblocking.

Adding to this that you can also use SPMC Launcher in place of the stock leanback launcher without need to root the device. Details can be found in the Auto-start SPMC? thread (Post #5) over at the Nvidia Shield Forum.

Main reason for the Shield TV: access to key-layouts, so I can have my remote do anything I want it to do (remap extra and any button) and not be limited by nvidia.
Second reason: Titanium backup. There are lots of backup apps, but you'll need root if you'll want to backup appdata which is stored in \data\data.
Third reason: Give Kodi/SPMC access to power states (reboot, sleep, power off, etc)
Almost forgot: My most important reason for rooting: Wifi/LAN ADB access through Total commander (http://forum.xda-developers.com/showpost.php?p=67149123&postcount=2)
For any other Android device: Tons of reasons

foomanjackel said:
Adblocking.
Click to expand...
Click to collapse
True! Never thought of that!
How does that work with YouTube? Does it skip the ad or does it hang waiting for the ad server?

DragonFlye said:
Main reason for the Shield TV: access to key-layouts, so I can have my remote do anything I want it to do (remap extra and any button) and not be limited by nvidia.
Second reason: Titanium backup. There are lots of backup apps, but you'll need root if you'll want to backup appdata which is stored in \data\data.
Third reason: Give Kodi/SPMC access to power states (reboot, sleep, power off, etc)
Almost forgot: My most important reason for rooting: Wifi/LAN ADB access through Total commander (http://forum.xda-developers.com/showpost.php?p=67149123&postcount=2)
For any other Android device: Tons of reasons
Click to expand...
Click to collapse
I don't think you need root to change key map in kodi?

Neo3D said:
True! Never thought of that!
How does that work with YouTube? Does it skip the ad or does it hang waiting for the ad server?
Click to expand...
Click to collapse
Sorry can't say if I've actually been on YouTube with the shield, so not sure on that. Root browser and naked browser are the apps which were throwing a lot of ads my way, so that's why I block. I know that sites like XDA depend on ad revenue....but the first thing I do with any android device I own, is root/block ads. Again, sorry but I will not spend my hard earned $$$ on a phone/tablet/computer that is going to bombard me with advertisements.

foomanjackel said:
Sorry can't say if I've actually been on YouTube with the shield, so not sure on that. Root browser and naked browser are the apps which were throwing a lot of ads my way, so that's why I block. I know that sites like XDA depend on ad revenue....but the first thing I do with any android device I own, is root/block ads. Again, sorry but I will not spend my hard earned $$$ on a phone/tablet/computer that is going to bombard me with advertisements.
Click to expand...
Click to collapse
it's easy to whitelist websites in your adblocker, I do this if a site is providing me with a valuable service, or if they just ask nicely, as long as their ads are unintrusive.

Neo3D said:
I don't think you need root to change key map in kodi?
Click to expand...
Click to collapse
No, you don't. You'll need root to access key-layouts (not kemaps), located in \system\usr\keylayout\. This way you can change or add button behavior for buttons not recognized by Kodi because they are reserved for Android actions. This can be done for standard or third party remotes (like Rii/Mele multi-purpose RF remotes or Harmony remotes).
For example, the 'Home' button which is not recognized by Kodi but only by the system, can be changed to do whatever you want. The 'OK' button on some remotes sends an 'enter', which does not behave as it should when using the Android TV on-screen keyboard. When changed to 'dpad_center' it does. When you use a receiver to control your volume, you can for example, map vol-up and down (if bound by Android) to page-up and down or next/previous track. Button mapping vary for each remote, of course. Below an example of a modified key-layout, with modified and original mapping (#):
Code:
#
# Generic key layout file for full alphabetic US English PC style external keyboards.
#
# This file is intentionally very generic and is intended to support a broad rang of keyboards.
# Do not edit the generic key layout to support a specific keyboard; instead, create
# a new key layout file with the required keyboard configuration.
#
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 28 DPAD_CENTER # ENTER (Ok button
key 113 MENU # MUTE
key 114 MINUS # VOLUME_DOWN
key 115 EQUALS # VOLUME_UP
key 116 POWER # POWER_TOGGLE
key 103 DPAD_UP
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 108 DPAD_DOWN
key 128 MEDIA_STOP
key 142 TAB # Power_OFF
key 143 I # Power_ON
key 158 BACK
key 168 PAGE_DOWN # MEDIA_REWIND
key 172 HOME # = EXIT
key 200 MEDIA_PLAY
key 201 MEDIA_PAUSE
key 208 PAGE_UP # MEDIA_FAST_FORWARD
key 217 SEARCH
key 353 DPAD_CENTER # = Ok

Change default launcher - forever
root Stock app remover

Xposed framework (for xprivacy)
iptables
sshd
syncing saved games
removing plex

For me making backups of my system and transferring games and saves through Titanium backup is one thing Im using it for.

I have installed stock Android but I miss the use of the remote and controller. I have no desire to play with key mapping nor buying a new controller/remote. If I reinstall stock 3.2 and root, can I install a Google play store that's not limited like the stock? Build-prop maybe?
Sent from my Nexus 6 using Tapatalk

DragonFlye said:
Third reason: Give Kodi/SPMC access to power states (reboot, sleep, power off, etc)
Click to expand...
Click to collapse
once rooted do i need to enable a setting somewhere for those option to appear? it's still showing Exit for both Kodi and SPMC.

m3g4tr0n said:
once rooted do i need to enable a setting somewhere for those option to appear? it's still showing Exit for both Kodi and SPMC.
Click to expand...
Click to collapse
Yes it can be done, IF SPMC is set as the default launcher, which means altering the default Leanback Launcher (Unfortunately you'll loose that option if the Leanback Launcher updates) or completely hiding it which also has its drawbacks
See http://forum.kodi.tv/showthread.php?tid=264102&pid=2358435&highlight=launcher#pid2358435

DragonFlye said:
Yes it can be done, IF SPMC is set as the default launcher, which means altering the default Leanback Launcher (Unfortunately you'll loose that option if the Leanback Launcher updates) or completely hiding it which also has its drawbacks
See http://forum.kodi.tv/showthread.php?tid=264102&pid=2358435&highlight=launcher#pid2358435
Click to expand...
Click to collapse
thanks. i wasn't using SPMC as default launcher.
---------- Post added at 02:25 PM ---------- Previous post was at 02:23 PM ----------
@Magissia
Magissia said:
Xposed framework (for xprivacy)
iptables
sshd
syncing saved games
removing plex
Click to expand...
Click to collapse
which method are you using to install sshd or are you using an app? (sshdroid)

m3g4tr0n said:
thanks. i wasn't using SPMC as default launcher.
---------- Post added at 02:25 PM ---------- Previous post was at 02:23 PM ----------
@Magissia
which method are you using to install sshd or are you using an app? (sshdroid)
Click to expand...
Click to collapse
Cross compile classic sshd server of your choice and start it with scripts. Android is just a linux distro with dalvik on top.

If you root can you change the resolution?. I have a tv that supports QHD resulutions, but not 4k. Would like to actually use this, however the shield is restricted to 1080p or 4k.
Also, Id love to be able to add in native xbox controller support or add the touchpad support back in. Is this possible?.
Thanks

Xposed framework is the main reason for rooting. I really hope it gets updated soon.

Xposed framework - youtube adaway
droidmote app

Related

[GUIDE] remap capacitive buttons

I know a lot of people out there are doing this already, but it didn't seem like there was a guide or anything out there for the NS. So, here we go.
(Please, make sure you know what you're doing BEFORE you apply this modification. I can't be responsible if you somehow manage to brick, or make brick-like your phone while following this guide.)
-You can do this using either adb, Terminal, or apps like Root Explorer. Since I'm trying to make this as easy as possible, I'll explain how to do this using the "File Manager" app, which can be installed via Market for FREE.
First, you need a rooted phone. If your phone is not rooted, there is extensive existing literature on how to get this done. (It's awfully easy on our Nexus S )
Run File Manager, hit Menu > More > Settings, scroll way~~ down, and make sure that "Root Explorer" and "Mount System Folders" are checked.
Navigate your way to
/system/usr/keylayout
(you'll have to move Up a step or two to find 'system' folder at root level.)
[BACKUP THE ORIGNIAL FILE WE'RE ABOUT TO MODIFY]
Long-press the file 'cypress-touchkey.kl'
Select 'Copy'
Hit 'Paste', on the upper left corner of app.
You'll be asked to rename the file. Rename it to something reasonable. (like, cypress-touchkey.kl.bakup)
Hit 'Ok'
Make sure the file you just created exists.
[START MODIFICATION]
Long-press 'cypress-touchkey.kl' (again)
Hit 'Permissions'
Make sure that ALL THREE boxed under "Write" are checked, and hit OK.
Hit 'cypress-touchkey.kl' (yet, again)
Select Text > Text Editor
Here, you'll see something like,
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 SEARCH VIRTUAL
as you've guessed, the first part,
Code:
key ###
is telling which key this command (event) is for.
So we can intuitively tell that the number for our capacitive 'Back' button is probably 158.
the next section, 'MENU, HOME, BACK, SEARCH' tells Android what these buttons should actually do.
And a pretty good list of what an Android CAN do on a key-press is listed here: http://goo.gl/vrCvJ
From the list, lookup anything that starts with KEYCODE_ and you'll find a pretty good description of what that command ('event') makes Android do.
Just add this keycode, WITHOUT the KEYCODE_ part of the code, to where the current cypress-touchkey.kl reads 'MENU, HOME, BACK, SEARCH' (according to what you want which button to do, that is)
So, for example, I've remapped my 'Search' button to bring up the App Switcher (Recent Apps). (Long-pressing the Home button just didn't cut it for me )
So, my 'cypress-touchkey.kl' looks like this:
Code:
key 139 MENU VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 APP_SWITCH VIRTUAL
Now, save your modified 'cypress-touchkey.kl' by selecting,
Menu > Save, and the exit by selecting Menu > Exit.
To be safe, let's set the permissions back to what they were.
From the File Manager App, long-press 'cypress-touchkey.kl' > Permissions,
and un-check the lower two check-boxes under the 'Write' column, and hit "OK"
Now, reboot your phone, and see if all went well
I actually tried this mod on a ICS rom, expecting the ICS app switcher to pop up, but somehow, the APP_SWITCH event seems to bring out the GB Recent App thingy.
Functionally, it still works pretty well for me. But if there's anyone out there who has any information on how to bring out the all-new ICS App switcher with a key-event, I'd really appreciate it
Hope this makes someone's life easier!
Thanks for the post.
I've tried to remap my search key as you described, but the APP_SWITCH command doesn't seem to work? Nothing happens for me. When I switch the value back to "search" that command works again, so I know the have edited the file correctly.
Any ideas? Does the kernel/rom affect this? I'm running oxygen + franco kernel.
Thanks!
Edit: Spelling.
Thanks for this, will definitely try out soon!
Follow the leader @corythug
Any idea what the app switch command is on ICS
Sent from my Nexus S 4G using xda premium
The ICS app-switch is, in my opinion, the best way to use search button key on Nexus S with ICS rom.
Hope someone will be able to find the correct command ot for that and someother creates a flashable zip to do the mod easily from recovery
Is there any way to remap the longpress on capacitive buttons?
Sent from my Google Nexus S using XDA App
cahir_cz said:
Is there any way to remap the longpress on capacitive buttons?
Sent from my Google Nexus S using XDA App
Click to expand...
Click to collapse
That's what were trying to figure out
Sent from my Nexus S 4G using xda premium
Thanks for the guide, I'll try it soon. My last few phones were from HTC and I love (or rather am so accustomed to) their button layout.
Sent from my Nexus S 4G using XDA App
Zorrich said:
Thanks for the post.
I've tried to remap my search key as you described, but the APP_SWITCH command doesn't seem to work? Nothing happens for me. When I switch the value back to "search" that command works again, so I know the have edited the file correctly.
Any ideas? Does the kernel/rom affect this? I'm running oxygen + franco kernel.
Thanks!
Edit: Spelling.
Click to expand...
Click to collapse
I don't think neither rom nor kernel should affect how this trick works ... unless maybe the rom dev. explicitly made changes to how the key events work ... which is highly unlikely ;;;;
are you sure you changed ONLY the key-event part? (HOME, BACK, etc.)
you shouldn't change the number that comes after the 'key' part of the script.
... I can't seem to think of any other reason this wouldn't work for you. :'(
Tried this, doesnt work on my kellmsking miui 2.8.1 with francos kernel :/ Changing the file does not change the button behaviour
olorin86 said:
I don't think neither rom nor kernel should affect how this trick works ... unless maybe the rom dev. explicitly made changes to how the key events work ... which is highly unlikely ;;;;
are you sure you changed ONLY the key-event part? (HOME, BACK, etc.)
you shouldn't change the number that comes after the 'key' part of the script.
... I can't seem to think of any other reason this wouldn't work for you. :'(
Click to expand...
Click to collapse
Yes, I've only changed the key-event to APP_SWITCH. Actually, I even tried copy/pasting your code into the file, still didn't work.
Thanks anyways. At least I now know how to do it, just have to figure out why it doesn't work, haha.
When using this the old recent apps comr up, meh.
Sent from my Nexus S using Tapatalk
we need to find the correct keyword for triggering the new ics app switch and it will be great
Anyone got a configuration to recommend to complement the ICS on screen buttons?
brrip said:
Anyone got a configuration to recommend to complement the ICS on screen buttons?
Click to expand...
Click to collapse
I tried logcat to see what happens when it's brought up but i'm not a dev, I know some code buy don't have a computer to try and implement for testing
Sent from my Nexus S 4G using xda premium
I tried alogcat from the market. It didn't show anything of worth after a key press.
Sent from my Nexus S 4G using xda premium
any news about that?
provolinoo said:
any news about that?
Click to expand...
Click to collapse
+1!!!
Sent from my Nexus S
Would be pretty sweet idd
Greenthy said:
Would be pretty sweet idd
Click to expand...
Click to collapse
Agreed, would love to get this working on ICS.

G2's Volume UP & Down Key Mapping.

Hello,
Holding down the volume up brings up quickmemo. Unfortunately I use Google Keep and was wondering if the keymapping for volume up could be changed to launch Google Keep.
You can't draw in Google keep...
Sent from my LG-D803 using Tapatalk 4
Brava27 said:
You can't draw in Google keep...
Sent from my LG-D803 using Tapatalk 4
Click to expand...
Click to collapse
When did he say you can draw. ..
Sent from my LG-D800 using Tapatalk 4
trh1341 said:
When did he say you can draw. ..
Sent from my LG-D800 using Tapatalk 4
Click to expand...
Click to collapse
lol...
I'd be curious about remapping the volume buttons also.
spinedoc said:
I'd be curious about remapping the volume buttons also.
Click to expand...
Click to collapse
Seems like there is no way right now. I'm hoping future ROM developers do implement this.
diffstyle said:
Seems like there is no way right now. I'm hoping future ROM developers do implement this.
Click to expand...
Click to collapse
I would soo love this feature
spinedoc said:
I'd be curious about remapping the volume buttons also.
Click to expand...
Click to collapse
I was able to remap the buttons (short press and long press) with the Xposed module called : Xposed Additions. It even lets you remap what they do while in sleep, and do something different when awake.
Install Root Explorer (only one I advise for this).
Root.
Go into \system\usr\keylayout
Edit generic.kl and gpio-keys.kl (I recommend taking backups first).
Find key 115 and 114 in both files.
Remap as you wish. I have mine set to Menu and Home.
Save and reboot.
V
spinedoc said:
I was able to remap the buttons (short press and long press) with the Xposed module called : Xposed Additions. It even lets you remap what they do while in sleep, and do something different when awake.
Click to expand...
Click to collapse
I tried it and mapped next/previous track to up and down volume buttons. Also mapped power button to pause and play when double tapping
vijay555 said:
Install Root Explorer (only one I advise for this).
Root.
Go into \system\usr\keylayout
Edit generic.kl and gpio-keys.kl (I recommend taking backups first).
Find key 115 and 114 in both files.
Remap as you wish. I have mine set to Menu and Home.
Save and reboot.
V
Click to expand...
Click to collapse
Is there a way to change/remap the soft Keys?
Slide said:
Is there a way to change/remap the soft Keys?
Click to expand...
Click to collapse
Not without framework mods, AFAIK, but I hate softkeys. Use AutoHideSoftKeys and get the best of both worlds.
V
vijay555 said:
Install Root Explorer (only one I advise for this).
Root.
Go into \system\usr\keylayout
Edit generic.kl and gpio-keys.kl (I recommend taking backups first).
Find key 115 and 114 in both files.
Remap as you wish. I have mine set to Menu and Home.
Save and reboot.
V
Click to expand...
Click to collapse
Very cool, but for a noob on this, any more direction? Want to change the up button to something else besides memo.
friguy3 said:
Very cool, but for a noob on this, any more direction? Want to change the up button to something else besides memo.
Click to expand...
Click to collapse
I highly recommend using xposed additions above. It is fantastic. My method it's quite universal though. You can remap any hardware key to any other although be weary of remapping your power key and losing the ability to switch on! Look through the generic doc I listed and you can see pretty much any key to remap to. 114 and 115 are the hardware keys for volume up and down. You can change them to camera, home, back or whatever.
V
vijay555 said:
I highly recommend using xposed additions above. It is fantastic. My method it's quite universal though. You can remap any hardware key to any other although be weary of remapping your power key and losing the ability to switch on! Look through the generic doc I listed and you can see pretty much any key to remap to. 114 and 115 are the hardware keys for volume up and down. You can change them to camera, home, back or whatever.
V
Click to expand...
Click to collapse
Downloaded and installed xposed but no idea what the hell im doing. lol looked in downloads but not sure whats going on...Think Ill back off now before I screw something up.
friguy3 said:
Downloaded and installed xposed but no idea what the hell im doing. lol looked in downloads but not sure whats going on...Think Ill back off now before I screw something up.
Click to expand...
Click to collapse
@Friguy, I don't want to hijack the thread, but if you're worried about messing anything up, get yourself clockwork mod or twpm installed so that you can make a full backup and restore. It gives you so much freedom!
Download xposed, find the apk and install it.
Find xposed in your apps and run that. Install the framework, and then goto downloads, find the module you want and download it. Go to modules and put a tick next to the module to enable it, and then reboot your phone to enable everything.
After that, find xposed additions in your apps and run that to configure it. My way is easier but additions gives you more flexibility.
V
vijay555 said:
@Friguy, I don't want to hijack the thread, but if you're worried about messing anything up, get yourself clockwork mod or twpm installed so that you can make a full backup and restore. It gives you so much freedom!
Download xposed, find the apk and install it.
Find xposed in your apps and run that. Install the framework, and then goto downloads, find the module you want and download it. Go to modules and put a tick next to the module to enable it, and then reboot your phone to enable everything.
After that, find xposed additions in your apps and run that to configure it. My way is easier but additions gives you more flexibility.
V
Click to expand...
Click to collapse
Oh I have twrp installed (been flashing for years my old gnex) just had no idea which thing to download. A lot said for xperia, so didn't know if it was for any phone. I'll give it a go this weekend. Thx.
Sent from my VS980 4G using Tapatalk 4
Thanks for the responses, I'll be trying out Exposed when I get the chance.
vijay555 said:
I highly recommend using xposed additions above. It is fantastic. My method it's quite universal though. You can remap any hardware key to any other although be weary of remapping your power key and losing the ability to switch on! Look through the generic doc I listed and you can see pretty much any key to remap to. 114 and 115 are the hardware keys for volume up and down. You can change them to camera, home, back or whatever.
V
Click to expand...
Click to collapse
Any way to remap the power button only when the device is on? i.e. only allow it to turn the device on, but not off.
No, you need the ability turn the phone off. if You get caught stuck our locked up you need the button combination get your phone to shut down
Sent from my LG-D800 using Tapatalk

[Q] No 3 dots menu any more?

When i bought the Nexus Player I had a 3 dots menu in apps.
Now I'm on android 5.1 and i did a factory reset (don't ask why. Just needed) and now I don't have 3 dots any more.
Any way to get them back? They are needed for some apps and can't be replaced by "tablet remote" for example.
same here...after updating to 5.1 the menu is gone! :*(
I might be wrong, but I think that LP 5.1 for "ATV" removed/broke the support for apps that... either don't follow Google's new Material Design guidelines or restricts apps that are coded to support the soft/hardware Menu button in Android devices. (The menu button and the the 3 dots on the GUI have equivalent functions in later versions of Android) Of course, it might also have to do with restrictions for apps that are not designed "specifically" for the Nexus Player ATV. I'm having this issue with Titanium Backup. I can't restore the apps I backed up using LP 5.0 because the Titanium interface is missing the main action buttons. The same version of Titanium works fine on my Nexus 7 running LP 5.1 for "Tablets".
tamanaco said:
I might be wrong, but I think that LP 5.1 for "ATV" removed/broke the support for apps that... either don't follow Google's new Material Design guidelines or restricts apps that are coded to support the soft/hardware Menu button in Android devices. (The menu button and the the 3 dots on the GUI have equivalent functions in later versions of Android) Of course, it might also have to do with restrictions for apps that are not designed "specifically" for the Nexus Player ATV. I'm having this issue with Titanium Backup. I can't restore the apps I backed up using LP 5.0 because the Titanium interface is missing the main action buttons. The same version of Titanium works fine on my Nexus 7 running LP 5.1 for "Tablets".
Click to expand...
Click to collapse
exactly the same problem in my case. i cant restore my titanium backup and even to set up sixaxis app. Even tablet remote that has a menu button doesn't help... Maybe there is a way to get it back?? Or does vanillipop rom has it fix?
The inability to access the 3-dots menu is one of the most frustrating changes with Android 5.1 on the Nexus Player. Sometimes you can still access the menu if you try moving a mouse cursor over the area or by using Droidmote Client's hamburger menu button but that may not always work. As for customizing Sixaxis Controller, there is a solution. If you go in to the keyboard settings menu of the Nexus Player and choose "Sixaxis Controller" as the current keyboard, a "configure" option shows up underneath it which leads you in to the settings menu for Sixaxis Controller.
Is there no way to enable this? Sending the menu key via adb input keyevent doesn't work and the little ribbon that some application have don't show up either. Seems weird to remove such an essential functionality.
First screenshot shows trying to set a background with Nova. Second shows what's supposed to be there.
If Google doesn't bring back the 3 dots menu in Android M, then I think our only hope may be to see it restored through an Xposed module. GravityBox has a "force overflow menu button" in its miscellaneous tweaks menu but it does not seem to work on Lollipop, unfortunately. I've already asked the GravityBox developer, @C3C076, if he can fix that option in a future update of his module but he's going to be very busy with a project at his job until further notice.
I'm curious if anyone was ever able to figure this out. Not being able to get to the menu on some sideloaded apps is killing me. Do custom ROMS (AOSP or CM) have this same limitation?
Yeah I really need the 3 dots as well. Setting up vnc client and can't disconnect. Too bad there isn't some app to force the bottom menu bar, or an app that could bind the 3 dot function to a button the nexus remote would be nice. I'm assuming a custom rom doesn't suffer from this.
I found a solution! These are floating nav buttons. I used to use them when I had a Nook Color and it only had 1 physical button and app implementation for softkeys wasnt very great yet. They work on Nexus Player Marshmallow! You need a mouse or a pointing device though and these have to be sideloaded.
Floating Soft Keys *Root*
https://play.google.com/store/apps/details?id=com.rhoadster91.floatingsoftkeys
Works great - doesnt auto hide but everything seems to work fine.
-or-
Button Savior - Root Version
https://play.google.com/store/apps/details?id=com.smart.swkey
Also works. Has an Auto Hide feature which is good. Less ability to edit stuff since there is a paid version. It will ask you to change accessibility services when you start, but it will then also say that device does not have this feature or something like that. The NP does. You have to go to Settings, Accessibility, Services, and then activate it. Then the app will work fine!
GabbyWC said:
If Google doesn't bring back the 3 dots menu in Android M, then I think our only hope may be to see it restored through an Xposed module. GravityBox has a "force overflow menu button" in its miscellaneous tweaks menu but it does not seem to work on Lollipop, unfortunately. I've already asked the GravityBox developer, @C3C076, if he can fix that option in a future update of his module but he's going to be very busy with a project at his job until further notice.
Click to expand...
Click to collapse
It's impossible to set xposed modules now because just like titanium backup, the menus in the xposed app are gone/missing. I tried using xposed to fix this menu button problem but no dice.
---------- Post added at 04:39 PM ---------- Previous post was at 04:36 PM ----------
minotauri said:
I found a solution! These are floating nav buttons. I used to use them when I had a Nook Color and it only had 1 physical button and app implementation for softkeys wasnt very great yet. They work on Nexus Player Marshmallow! You need a mouse or a pointing device though and these have to be sideloaded.
Floating Soft Keys *Root*
https://play.google.com/store/apps/details?id=com.rhoadster91.floatingsoftkeys
Works great - doesnt auto hide but everything seems to work fine. I had to double click the buttons to get it working.
-or-
Button Savior - Root Version
https://play.google.com/store/apps/details?id=com.smart.swkey
Also works. Has an Auto Hide feature which is good. Less ability to edit stuff since there is a paid version. It will ask you to change accessibility services when you start, but it will then also say that device does not have this feature or something like that. The NP does. You have to go to Settings, Accessibility, Services, and then activate it. Then the app will work fine!
Click to expand...
Click to collapse
Thank you so much for this!!! Now I will be able to set xposed modules i"ve been needing to set but couldn't.
minotauri said:
I found a solution! These are floating nav buttons. I used to use them when I had a Nook Color and it only had 1 physical button and app implementation for softkeys wasnt very great yet. They work on Nexus Player Marshmallow! You need a mouse or a pointing device though and these have to be sideloaded.
Floating Soft Keys *Root*
https://play.google.com/store/apps/details?id=com.rhoadster91.floatingsoftkeys
Works great - doesnt auto hide but everything seems to work fine. I had to double click the buttons to get it working.
-or-
Button Savior - Root Version
https://play.google.com/store/apps/details?id=com.smart.swkey
Also works. Has an Auto Hide feature which is good. Less ability to edit stuff since there is a paid version. It will ask you to change accessibility services when you start, but it will then also say that device does not have this feature or something like that. The NP does. You have to go to Settings, Accessibility, Services, and then activate it. Then the app will work fine!
Click to expand...
Click to collapse
I tried out Button Savior on my Nexus Player with Android 6.0 but it isn't the universal solution that I was hoping for. There are still some apps such as AdAway and Xfinity TV Go which do not work when the soft menu button (four squares) is clicked on. The function works in ZArchiver but DroidMote Client already has this capability in the form of its three lines menu button.
Ya I believe Xfinity TV Go app doesnt use the dot menu though. It's a sliding menu from the left side. I believe you can click and drag it open in Lollipop but not in Marshmallow.
IRIE4IPIER said:
It's impossible to set xposed modules now because just like titanium backup, the menus in the xposed app are gone/missing. I tried using xposed to fix this menu button problem but no dice.
---------- Post added at 04:39 PM ---------- Previous post was at 04:36 PM ----------
Thank you so much for this!!! Now I will be able to set xposed modules i"ve been needing to set but couldn't.
Click to expand...
Click to collapse
Ya no problem. Titanium backup works with this add-on. It was the main thing I was trying to use with NP actually.

Button Mapper: Remap Bixby and other buttons (no limitations if rooted)

If the Bixby button is bothering you, I present an alternative method for remapping it to whatever you want using Button Mapper. On the Note 9 specifically, there are some differences in the way Button Mapper works compared to other Bixby remappers. I am the developer of this app and intentionally made it work differently so you have a choice. Button Mapper version 0.75 or later is required for the Note 9, check links at bottom of post.
Please note that if you have rooted your Note 9, Button Mapper allows single, double and long press native Bixby remapping that works perfectly with no limitations whatsoever.
​
Advantages:
-Bixby never appears, it can be completely disabled and remapping still works
-Single press and long press actions available
-native remapping, meaning it's faster. No polling involved, it reacts to the button press input event
-far more actions and features available than other remapping apps
​
Disadvantage:
-must run adb shell command after every boot
​
The disadvantage is not that bad, because you don't need to restart your device very often. I often let my phones run for weeks without reboot.
Please don't complain about having to do the adb command after every boot. I'm simply presenting this as an alternative method for interested users who would like to put in a little extra effort to get a better experience. If this is not for you, just move on and use something else.
​
Button Mapper is free on Google Play or XDA Labs (version 0.75 or later is required for Note 9 support)
XDA Labs (latest version always available)
https://labs.xda-developers.com/store/app/flar2.homebutton
Google Play (version with Note 9 support may not be available yet)
https://play.google.com/store/apps/details?id=flar2.homebutton
I almost never reboot my device unless I have something to flash. I am very familiar with debloating my devices via ADB. I will give it a try. Thank you for offering a way for non-root users to remap the Bixby button.
This is the best app for remapping the Bixby button to something useful. Works perfectly on my Note 9 even with Bixby 2.0. People shouldn't even bother with any other app.
It takes a 30-second ADB session and you're all set. No lag, no Bixby popups. The only niggle is it needs to be restarted every reboot but that's not a big deal.
I've used BXActions but I prefer this a whole lot more. Just a cleaner experience.
Whoa.. thanks man.
This is just like I remapped the button on my rooted S8. Cant wait to try it.
I have a question though. Is it possible to run the adb from within the phone itself? I know theres a terminal app, but I believe it needs root? I can't remember.
Thanks.
Not sure what I did wrong. I was able to remap both the single press and long press, but it does the customized action as well as launch Bixby voice at the same time.
I'm happy with just disabling Bixby voice really. My device is not rooted.
Edit: Just figured out what I missed. I forgot to add "-d" to the adb command to disable Bixby assistant. Now it works perfectly. Sorry for being a dumbass. lol
MasK said:
Whoa.. thanks man.
This is just like I remapped the button on my rooted S8. Cant wait to try it.
I have a question though. Is it possible to run the adb from within the phone itself? I know theres a terminal app, but I believe it needs root? I can't remember.
Thanks.
Click to expand...
Click to collapse
It's impossible to run the command from the phone, unfortunately.
Thanks flar2!! I really appreciate all of the work that you do. This is my 3rd app that I've purchased from you, and it won't be the last! I was using bxActions, but that app pales in comparison to this button mapper. I'm just glad I stumbled across this thread. Button Mapper Pro has made my Note 9 complete, thanks again for everything you do. I look forward to what ever is next.
Hi @flar2,
In note 9, there's a system default option to control media volume using the vol buttons. See attached pic.
But when I enable vol buttons on the mapper, it results to controlling the ringtone. And even if the toggle is on for the media control, the app still overrides the action.
I see there's a pro setting to gain back the media volume.
otaconremo said:
Hi @flar2,
In note 9, there's a system default option to control media volume using the vol buttons. See attached pic.
But when I enable vol buttons on the mapper, it results to controlling the ringtone. And even if the toggle is on for the media control, the app still overrides the action.
I see there's a pro setting to gain back the media volume.
Click to expand...
Click to collapse
The app has no way of knowing about that setting, so it is ignored. You can use the default to media option in Button Mapper
Any way to get it working by pressing whilst screen is off?
poczynek said:
Any way to get it working by pressing whilst screen is off?
Click to expand...
Click to collapse
Bixby works with the screen off by default
After using bxactions for a few days, I decided to try this app instead, and it works ALOT better! Thank you OP.
I almost never reboot my phones, so the adb thing is no big deal for me.
As much as I like bxActions, I even ended up buying the pro version, I can't help but say this just works better. I made the adb command into a batch file that I can just double click so that's not much of an issue, but I do have a couple questions/requests:
Is it normal for double tap to be greyed out? Can you add an immersive toggle to the list of available commands?
One thing I liked about bxActions is the ability to change what the button does while locked/lockscreen vs unlocked, is it possible to implement that here too?
Thanks!
rejectedjs said:
As much as I like bxActions, I even ended up buying the pro version, I can't help but say this just works better. I made the adb command into a batch file that I can just double click so that's not much of an issue, but I do have a couple questions/requests:
Is it normal for double tap to be greyed out? Can you add an immersive toggle to the list of available commands?
One thing I liked about bxActions is the ability to change what the button does while locked/lockscreen vs unlocked, is it possible to implement that here too?
Thanks!
Click to expand...
Click to collapse
I'm looking into double tap. Currently it's not available for Bixby on the N9.
Note 9 lock and home
Note nine lock and home
Hey there, using this app on my Note 9 instead of bxActions. I can say its working much better but Im missing a few features. Is it possible to have a Sound/Vibrate Toggle like bxActions without going though DND mode, like on IOS? A fullscreen mode toggle action would also be really useful.
Also having different actions for buttonpresses while locked vs. unlocked would be great. Thank you!
Azizamiri796 said:
Note nine lock and home
Click to expand...
Click to collapse
cool, but how does this relate to the button mapper in any way?
@flar2:
Whenever I use USB tethering, button mapper stops working until I run the adb command again, do you know what causes this? So apparently its not only a phone reboot that deletes the adb settings but also usb tethering
destz0r said:
@flar2:
Whenever I use USB tethering, button mapper stops working until I run the adb command again, do you know what causes this? So apparently its not only a phone reboot that deletes the adb settings but also usb tethering
Click to expand...
Click to collapse
I have no idea about this
Note 9. Same to me. Phone reboot deletes the adb settings. And if i use toggle flashlight then bixby startscreen goes ON

APK to define Touchpoints with Hardware Buttons

Hey Guys,
i have a general question. Is there a mod or. APK where i can define a point/dot on my Touchscreen and map it to a Hardware Button of the car (e.g. Steering wheel Buttons)?
What i want to Do is, to control the Touchscreen without touching. Seems funny but would be perfect, cause id like the steering wheel buttons.
I am using Android Auto with HeadUnit Reloaded, and switching through music with my Buttons works perfectly. Now it would be awesome to launch Google Assistant through a Button. Inside HUR isnt the Option to map the Assistant. And in my Hal9K mood i tried several Things.
So i thought, i am. 90% Inside Android Auto and the G Assistant Touch Icon is in bottom right corner. So i need a App that points on that Display location and simulate a Touch press, when i press the steering wheel. Is that possible?
Thanks for your time and help
Best wishes
R. Schulz
Waffel57 said:
Hey Guys,
i have a general question. Is there a mod or. APK where i can define a point/dot on my Touchscreen and map it to a Hardware Button of the car (e.g. Steering wheel Buttons)?
What i want to Do is, to control the Touchscreen without touching. Seems funny but would be perfect, cause id like the steering wheel buttons.
I am using Android Auto with HeadUnit Reloaded, and switching through music with my Buttons works perfectly. Now it would be awesome to launch Google Assistant through a Button. Inside HUR isnt the Option to map the Assistant. And in my Hal9K mood i tried several Things.
So i thought, i am. 90% Inside Android Auto and the G Assistant Touch Icon is in bottom right corner. So i need a App that points on that Display location and simulate a Touch press, when i press the steering wheel. Is that possible?
Thanks for your time and help
Best wishes
R. Schulz
Click to expand...
Click to collapse
That is a great idea! There is a way to send touches on the screen. You can do it via command line, e.g. :
input tap 560 960
You can also send key events the same way:
input keyevent KEYCODE_WAKEUP
You can browse in internet for the whole list. To determine the coordinates you can enable debug mode, and there is an option that is called INPUT -> pointer location.
This will display the coordinates on the screen whether you put your finger on.
Now, to map hardware buttons I think there are a couple of applications that let you do that. You can also map the hardware button to the key M to start the assistant. If I remember properly that is the hot key from HUR to start the microphone.
Let me know how it goes, I am also interested!
EDIT: Yet another way is to trigger an intent from the HUR app:
am start -a gb.xxy.hr.mic
There are several apps that let you start intents like tasker.
Am application to map the buttons without requiring root is Button Mapper.
Sent from my ONEPLUS A3003 using Tapatalk
Fgarcor said:
That is a great idea! There is a way to send touches on the screen. You can do it via command line, e.g. :
input tap 560 960
You can also send key events the same way:
input keyevent KEYCODE_WAKEUP
You can browse in internet for the whole list. To determine the coordinates you can enable debug mode, and there is an option that is called INPUT -> pointer location.
This will display the coordinates on the screen whether you put your finger on.
Now, to map hardware buttons I think there are a couple of applications that let you do that. You can also map the hardware button to the key M to start the assistant. If I remember properly that is the hot key from HUR to start the microphone.
Let me know how it goes, I am also interested!
EDIT: Yet another way is to trigger an intent from the HUR app:
am start -a gb.xxy.hr.mic
There are several apps that let you start intents like tasker.
Am application to map the buttons without requiring root is Button Mapper.
Click to expand...
Click to collapse
Thanks for that informative and interesting answer. Thats a lot of input for me. I will try some of this stuff in the next days and let you know if it works and whats the best solution for me
Waffel57 said:
Thanks for that informative and interesting answer. Thats a lot of input for me. I will try some of this stuff in the next days and let you know if it works and whats the best solution for me
Click to expand...
Click to collapse
The other day while driving I suddenly had a question. Why cannot you use the voice activated trigger! Ok Google, to start the voice commands? That way you don't need to press the voice button.
Sent from my ONEPLUS A3003 using Tapatalk
Toggeling with voice is Okey but often i have to scream or turn volume down. Or say it multiple Times. So a key is much more comfortable to me. My Touchscreen is Not perfectly reachable during driving so steering wheel buttons would be the perfect solution for me ?
Hey Fgarcor,
I had some time so investigate the problem. What i have done so far:
Mapping all my Hardware Keys to specific keycodes:
-Google Assisstant - - > 289
-Start Route - - > 288
-Switch Spotify - - > 291
-See Notifications - - > 292
-Route Option A - - > 283
-Route Option B - - > 284
-Route Option C - - > 285
So thats all "Events" i need for android auto. Then i went into debug Mode an locate the coordinates for each section:
-Google Assisstant - - > 925 x 556 y
-Start Route - - > 224 x 450 y
- Switch Spotify - - > 215 x 550 y
- See Notifications - - > 791 x 562 y
- Route Option A - - > 260 x 175 y
- Route Option B - - > 260 x 275 y
- Route Option C - - > 260 x 375 y
So i have all Information that i needed an just have to merged them but i dont know where can i define specific commands. I tried "Button Remapper Pro" but the APK does Not detect my keycodes.
Where can i Set up some command lines? Do i have to install a specific Module in Magisk Manager? Or is there Kind of a console on my rooted Android Radio?
Sorry, i dont understand it for 100% and need your help, Thanks
Best wishes
René
Waffel57 said:
Hey Fgarcor,
I had some time so investigate the problem. What i have done so far:
Mapping all my Hardware Keys to specific keycodes:
-Google Assisstant - - > 289
-Start Route - - > 288
-Switch Spotify - - > 291
-See Notifications - - > 292
-Route Option A - - > 283
-Route Option B - - > 284
-Route Option C - - > 285
So thats all "Events" i need for android auto. Then i went into debug Mode an locate the coordinates for each section:
-Google Assisstant - - > 925 x 556 y
-Start Route - - > 224 x 450 y
- Switch Spotify - - > 215 x 550 y
- See Notifications - - > 791 x 562 y
- Route Option A - - > 260 x 175 y
- Route Option B - - > 260 x 275 y
- Route Option C - - > 260 x 375 y
So i have all Information that i needed an just have to merged them but i dont know where can i define specific commands. I tried "Button Remapper Pro" but the APK does Not detect my keycodes.
Where can i Set up some command lines? Do i have to install a specific Module in Magisk Manager? Or is there Kind of a console on my rooted Android Radio?
Sorry, i dont understand it for 100% and need your help, Thanks
Best wishes
René
Click to expand...
Click to collapse
Hi Rene,
I don't have the pro version, I just tested on my phone to associate a long press on the volume down button to start the Google assistant and it worked. So I guess for your case you can do the following to associate a key with the Google assistant, I see several options:
- On the main screen select "add buttons". Now that the hardware button is not any of the standard buttons like home, recents, volume, etc that you would find on a phone.
- then press the hardware button you want to add so the application automatically reads the code, on this case one of the keycodes that you sent before.
- associate the action with the button you just pressed, you can associate to:
--- actions: like sending keycodes (only for pro it seems), or intents (actions inside an application that can be started from outside of the application), other typical actions like volume control, home, etc
--- applications: launching one of the installed applications
--- shortcuts: available for some applications to start an action quickly.
- here you can select as action send keyevent and there you can choose to send KEYCODE_M. That is specified by HUR as the key to launch the mic, in your case assistant, that way you are independent of a change in the interface and coordinates.
- you can select also to send a shell command, and there you can write what we discussed before "input tap x y". And replace X and Y with your coordinates.
- you could also select directly the assistant under actions, veggie the last one, but I think that would trigger the assistant on your head unit Android and but in HUR.
I hope it helps, if questions, feel free to ask.
Sent from my ONEPLUS A3003 using Tapatalk
---------- Post added at 02:50 PM ---------- Previous post was at 02:46 PM ----------
Waffel57 said:
I tried "Button Remapper Pro" but the APK does Not detect my keycodes.
Click to expand...
Click to collapse
Sorry I missed this part, how did you get your keycodes in the first place?
Sent from my ONEPLUS A3003 using Tapatalk
Thanks for your reply Basically i opened Hal9K MOD Settings. There is a Option called "remap Buttons". There i can enable "keycodes" so whenever i press a key, the Code will displayed for a few seconds. I also can Change the Button functions from a define keycode list (i am Not able to enter a specific keycode). So i put all the Buttons i want to use to a defined keycode which has no function on my Radio yet.
I downloaded tasker and tried to Set up shell commands. I Used "Input tap x y" whenever the specific keycode Was Red. But it seems, tasker cant read the keycodes? I tried to put in the if statement:
getKeyCode() == 289
Keyevent.getKeyCode() ==289
Input keyevent == 289
And some combimations of that but Google assisstant wont start.
Maybe i have to implement a whole Script for that? Never die amything like that, could be funny ?
Thanks for your help so far
Shell command from tasker
Waffel57 said:
Mapping all my Hardware Keys to specific keycodes:
-Google Assisstant - - > 289
-Start Route - - > 288
-Switch Spotify - - > 291
-See Notifications - - > 292
-Route Option A - - > 283
-Route Option B - - > 284
-Route Option C - - > 285
Click to expand...
Click to collapse
Did I understand you correctly? These numbers from above were assigned by you? Or did you read them via tasker?
Sent from my ONEPLUS A3003 using Tapatalk
Correct, i assigend them in Hal9K, they were inside the list. I think i cant read them with tasker or i just have the wrong command.
Waffel57 said:
Correct, i assigend them in Hal9K, they were inside the list. I think i cant read them with tasker or i just have the wrong command.
Click to expand...
Click to collapse
Can you try with the following app? This is the one I use to know what are the values of the key pressed.
https://play.google.com/store/apps/details?id=aws.apps.keyeventdisplay
You can check whether the keys are pressed, if they are detected by Android and in that case which value are they bound with.
I am not sure whether the mapping you made was to give a keycode to a hardware button or to remap existing keycodes. In the second case I would skip the remapping and just use the original values.
You can check with this app before and after assigning the keycodes to the hardware buttons, and maybe I can understand better how does it work for you. Sorry.
Sent from my ONEPLUS A3003 using Tapatalk
Fgarcor you are absolutly right, thank you!! But this confuses me much more ? find attached a Screenshot from your apk.
It seems that the keycodes i "mapped" in Hal9K, werent really mapped. Cause in the output of "keyeventdisplay" there are different keycodes. As you mentioned, this have to be the right Codes.
Nevertheless there are just a couple of Buttons recognized but this would be Okey first of All.
A big Mysterium for me is still Tasker ? I dont know how to Set up a Profile that makes a Input tap whenever a Button was Pressed? Which variable/function Do i have to Check for the keyevent?
Im sorry for annoying you, but there is no comprehensibly thread to find on Google. Do you have some experience with tasker and Set up something like this?
I am really thankful for your help so far
Waffel57 said:
Fgarcor you are absolutly right, thank you!! But this confuses me much more [emoji85] find attached a Screenshot from your apk.
It seems that the keycodes i "mapped" in Hal9K, werent really mapped. Cause in the output of "keyeventdisplay" there are different keycodes. As you mentioned, this have to be the right Codes.
Nevertheless there are just a couple of Buttons recognized but this would be Okey first of All.
A big Mysterium for me is still Tasker [emoji85] I dont know how to Set up a Profile that makes a Input tap whenever a Button was Pressed? Which variable/function Do i have to Check for the keyevent?
Im sorry for annoying you, but there is no comprehensibly thread to find on Google. Do you have some experience with tasker and Set up something like this?
I am really thankful for your help so far
Click to expand...
Click to collapse
It looks like the 19,20,21,22 area corresponding to the arrows (up, down, left right, not necessarily in that order) and the 87, 88 could be select and back?
I think I have something similar in my head unit.
Coming back to the mapping to actions. You said that Button Mapper is not detecting your key presses when you try to add a button? Even after unmapping them from your keycodes in your head unit? Because that is the easiest way to move forward.
Regarding tasker I haven't used it much. Once I tried to set a routine but it turned out macrodroid did the job better than tasker and I sticked to it.
Let me check if I can find it how to do it in tasker.
EDIT: it seems that tasker needs a plugin called auto input where you can either select the key presses to react to, as a trigger, or they can be detected by the app. This is a paid plugin with a trial period of 7 days.
And then I read in some forums that to run a shell command you may need to have root on the device what I guess it is not the case in your display. That also made me think if button mapper or similar could run a shell command.
I need to check a bit further.
Sent from my ONEPLUS A3003 using Tapatalk
So, once again, i tried Button mapper to recognize my Button Keys but nothing will be found. I deleted all keycodes and Pressed any Button, but they wont be displayed in Button mapper.
I also have to mention that i am rooted through Hal9K, i have Magisk Manager and can give superuser for Apps (did that for Button mapper).
Thanks for searching the Internet, i tried Auto Input, but didnt had that much time So far. Seems like i have to read/watch Videos about that plugin and tasker Routines. I hope i have time for that at the weekend. But it would be awesome if it would work, cause i See a lot of opportunity in that.
Thanks for your time, maybe that will help some other Guys

Categories

Resources