Remapping Shield TV remote (new) buttons for JBL Link Bar

by spano45

Looking for some help. The remote that came with the link bar stopped working. I bought a Shield tv remote (toblerone shaped one) to replace it. Pairing was easy but the power button won't work. I can't figure out a way to get the power button to work so my guess is I have to resort to remapping.

The jbl remote would power on and off my tv (LG C8) via CEC. That's what is like to do with this remote. I am currently trying to use the app button remapper. When I do the only other actions that are similar it either puts the jbl to sleep or bring up the Android power dialog. The app has the ability to write in your own shell command that will run when a specific button is pressed.

Anyone know what command I would need to type in to execute what I'm looking for?

-Mr-ReX

It's write secure. BTW which app you're talking about? If it is Button Mapper then there's a setup you can download and run while adb debugged(no need to enter commands). But if it's any other app then this the command.

adb shell pm grant packageName android.permission.WRITE_SECURE_SETTINGS

if it is Button Mapper then

adb shell pm grant flar2.homebutton android.permission.WRITE_SECURE_SETTINGS