I managed to remap prime video button by using Tasker app which I sideloaded to my box. The only downside is that you need to disable the app which uses the button(do this first as step 0.)
I will try to make a video tutorial but don't expect great English :)
Steps:
1. Sideload tasker.apk ( https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm ) and install it!
2. In the Mi box settings go to
Apps - Special app access - Display over other apps
and enable the Tasker app
3. Open the Tasker app and follow these steps (I can't see the Tasker app in my applications so I use X-plore to start it)
- Add profile - go to "profile" tab and add a profile (the plus thing)
- select "event", then at the bottom of the popup type "logcat entry". then select it.
- at the "Component" row, click the magnifying glass icon, a popup shows up then press "ok"
Tasker will probably need special permissions to continue and you will need to use ADB from your PC(google what ADB is and how to use it. Follow these steps:
1.Enable Developer options
Go to settings-Device Preferences-About-Build and press the Build 7 or 8 times to enable
2.Go to Developer options and enable "USB debugging".
3.Also in Developer options go to "Select USB Configuration" and select MTP(Media Transfer Protocol)
4.Download adb zip as shown in this tutorial:
https://www.xda-developers.com/install-adb-windows-macos-linux/
5.Start ADB in cmd and run this command
adb connect 192.168.1.xx (change ip to your box IP. You can find your IP in your wifi options) Your box will ask you to accept connection so press OK.
6.Run this two commands:
adb shell pm grant net.dinglisch.android.taskerm android.permission.READ_LOGS
adb shell am force-stop net.dinglisch.android.taskerm
-
you should be at homescreen with a play button hovering, press it to start recording, then press the assistant key once, then stop recording(I used Android box remote app on my phone as a mouse because i couldn't press the button with a remote).
-
now you see a huge list of logcat events, and look for something that looks like: "WindowsManager: interceptKeyTq keycode=191 interactive=true keyguardActive=false policyFlags=22000001"
-
then set it to whatever task you want. Press the + button in tasks, add a name, and choose an action. I choosed App action which now opens TvMate app when I press Prime video button
4. Try your new button :) Optionally you could get rid of the Prime video(or Netflix) logo by printing a sticker over it :D
If you need any help just ask!!
How does this not happy a million upvotes?! I've tried so many things, and this is the only one that actually worked. Thanks so much for the info and walkthrough :)