Remapping hardware buttons - MTCD Android Head Units Q&A

Hi all,
I've got a new Hizpo radio with a few hardware/panel buttons. I was happy to find out that I could map functions to the short and long presses. So I added some features to it. But I want to remap the BAND button to the DAB+ app for example. Is this possible? It's not an option in the Factory settings app. I keeps opening the FM app while I don't use FM at all anymore.
Thanks!

Don't know what a Hizpo radio is but if it's an MTC HU then this thread might interest you.

Related

Is it possible to change the way the wheel controls work on MTCD (GS PX5 Oreo)?

Can anyone advise on how I could ho about changing the list of apps that gets started by the Mode function on my Xtrons unit (MTCD GS PX5 oreo)?
I know someone has done something similar with a Joying unit, but as far as I can see, they replaced the "Sofia-1-C9-Server... apk) with an alternative version.
I've pulled all the system apps to my PC via ADB (root) via WiFi, and I can see apps like MTCControlSettings.apk and MTCContolInfo.apk but there are no apks with "server" in their name
So I'm not sure where to start looking for the APK which handles the steering wheel control "Mode" handling.
Does anyone know how this is handled ?
are you able to resolve it? im having the same problem. btw my unit is a MTCE_CSN thanks
slidefriday said:
are you able to resolve it? im having the same problem. btw my unit is a MTCE_CSN thanks
Click to expand...
Click to collapse
I've not had time to investigate this.
For the moment, I've just set my Mode button to be the Home button, as thats better the cycling through a load of useless "modes" like the AV input and their useless audio and video players.
I did try to work out how the radio communicated with the system apps, but I'm having a lot of difficulty de-odex'ing (decompiling) even the radio app. Because the apps are Oreo versions, and most of the decompilers don't fully support Oreo odex (compiled application program) files
I did post a question to the general Dev part of XDA about de-odex'ing Oreo files but didnt get any responses
I would be interested in this if you figure it it out as I'd like to get dab in the list of apps it cycles through.
RogerClark said:
I've not had time to investigate this.
For the moment, I've just set my Mode button to be the Home button, as thats better the cycling through a load of useless "modes" like the AV input and their useless audio and video players.(
Click to expand...
Click to collapse
That would be enough for me, but with onboard apps or settings i haven't found a way to change it. I can use my Wheel control for changing volume and skipping music in any music app I am using, but the mode button always switches throug radio, ac input, mediaplayer and dvd.
The app for steering wheel control which was preinstalled on my head unit, doesn't react to any button and the firmware settings only to the hardware buttons of my head unit.
So, how did you do it?
nadkp said:
That would be enough for me, but with onboard apps or settings i haven't found a way to change it. I can use my Wheel control for changing volume and skipping music in any music app I am using, but the mode button always switches throug radio, ac input, mediaplayer and dvd.
The app for steering wheel control which was preinstalled on my head unit, doesn't react to any button and the firmware settings only to the hardware buttons of my head unit.
So, how did you do it?
Click to expand...
Click to collapse
In the Settings, ( think its in the Car) section, is the setting (app) which allows you to associate specific steering wheel buttons with specific actions.
I thought all generic units had this app, because the steering wheel button for each car operate differently.
My Subaru only has one wire from the steering wheel, and has 6 buttons. Each button has a different electrical resistance, and you have to press each button, and then associate a Short Press and a Long Press, on that button, to a specific action.
The controls like Volume + and - and Track + and - and Mute are pretty standard.
The only other button I have is the Mode button, and I assigned that to the "Mode" action in the settings. However the Mode operation, cycles though a predefined list.
So I simply reassigned the Mode button to the Home action.
I did try a few other things, like seeing if I could press 2 buttons at the same time e.g Mode and Track +, but it either treated this as a press on the Mode button or a press on the Track + button. So that didn't work.
If I get time, I'll have another go at decompiling the system apps, but last time I tried to do that, I could not see anything that looked like the list of apps.
If I had programmed it, I'd probably put the app names into a string resource, but goodness knows what the programmed did who wrote the system apps in these units.
RogerClark said:
In the Settings, ( think its in the Car) section, is the setting (app) which allows you to associate specific steering wheel buttons with specific actions.
Click to expand...
Click to collapse
Thanks for the quick reply. I already tried the factory settings but my steering wheel buttons won't work there. I only can set action to the buttons on my radio. Sadly I have to wait for any other solution. But thanks again for sharing your experience :good:
What brand and model of HU do you have?
Hey,
Opel/Vaux/Chevy cars have canbus hard mapped buttons.
Mine can't be configured through the in-built apps or factory settings either.
One would have to examine the canbus.apk / MTCManager to maybe update the xposed for MTCDTools.
MTCD Tools can see the button codes (3 digits), but can't map any other function or even intercept.
---------- Post added at 16:43 ---------- Previous post was at 16:43 ----------
Hey,
Opel/Vaux/Chevy cars have canbus hard mapped buttons.
Mine can't be configured through the in-built apps or factory settings either.
One would have to examine the canbus.apk / MTCManager to maybe update the xposed for MTCDTools.
MTCD Tools can see the button codes (3 digits), but can't map any other function or even intercept.
RogerClark said:
What brand and model of HU do you have?
Click to expand...
Click to collapse
I have a Xtrons PB78QSFP-B which is designed for a Ford Focus and came with a standard canbus adapter for ford. But I have the old model of the HU which has only 2GB Ram not 4.
My guess is, that Ford has hard mapped buttons too, like Xorit said it about Opel/Vaux etc
update guys! mtcdtools will do the trick! though the old mapping will flicker but still the newly assigned actions will prevail.
i can live with this already. maybe ill just find the solution to delete the factory set MODE actions :laugh:
slidefriday said:
update guys! mtcdtools will do the trick! though the old mapping will flicker but still the newly assigned actions will prevail.
i can live with this already. maybe ill just find the solution to delete the factory set MODE actions :laugh:
Click to expand...
Click to collapse
Did your have to root your unit or install anything like Xposed etc? Or does it just work with the stock firmware?
works with stock fw. im not yet doing any firmware mods
slidefriday said:
works with stock fw. im not yet doing any firmware mods
Click to expand...
Click to collapse
Good to know

[PX5] MTCE Button remapping Tutorial for Malaysk / mtce-utils

Hi there,
after struggling around with the mcte utils settings.ini file to remap buttons, I tought I might share what I learned.
This assumes, you have installed xposed, activated the mtce-utils module and placed the settings.ini file at your internal sc card (/storage/emulated/0).
Here's how to remap buttons:
PHP:
[android.microntek.service#keys]
# In this section, you have to put all GLOABL remap functions into. You can use the following ways or remapping:
# note: xxx always stands for the mtc-keycode. If you do not know them, you can use MTCD Tools -> Creata new bnding -> Obtain key sequence to get the key codes.
app_xxx=com.spotifiy.music
#--> this defines to launch any app, e.g. app_257 would in my case launch spotify when pressig OK button.
keycode_xxx = 4
# ---> with the keycode command, you can assign android keycodes. For example "4" is the back button, "87" is media next.
# a full list of android codes can be found here: https://android.googlesource.com/platform/frameworks/native/+/master/include/android/keycodes.h
activity_xxx = com.zoulou.dab/com.zoulou.dab.MainActivity
# --> this is to launch any activity. Always put a pair of app/activity with a slash in between. My example starts the DAB App.
intent_xxx= [any android intent action]
#--> this is to assign an intent. Couldn't test it yet.
keymtc_xxx= yyy
# --> this is used to reassign another mtc key.
[com.microntek.radio#keys]
# to remap buttons within specific apps, create an extra section which contains the app name [B][app.name#keys][/B]
# same as with global remapping, put the codes here as you which to reassign keys within special apps.
Well hope that makes the settings more clear for you.
BR
Christian
I just made some small corrections to the above post and want to share my settings with you:
What did I actually do?
I changed the two steering wheel keys "Mode" and "List" to Keycodes 219 and 4. 219 launches Google Assitant, 4 is to go back. This way, I can easily launch Google Assistand for calls, navigation and spotify, tunein and can minimize if needed.
I assigned keycodes 87/88 to both forward/backwards keys, so that I in most apps can go forward/backward
I assigned my favorite apps to the buttons 1-6, which are DAB, TuneIn, Spofity, FM Radio app, Google Maps and Bluetooth Phone
So I can switch easily between all those apps. As the radio app has its own buttons assigned, here the keys 1-6 are still used as usual.
What doesn't work is the part where I wanted to fix wrong forward/backward keys in radio app. Assigning backward to forward and vice versa leads to a crashing radio app (behaves like non ending loop then)
PHP:
[android.microntek.service#keys]
activity_331=com.zoulou.dab/com.zoulou.dab.activity.MainActivity
keycode_365=4
keycode_276=87
keycode_278=88
keycode_256=219
activity_283=com.zoulou.dab/com.zoulou.dab.activity.MainActivity
app_284=tunein.player
activity_285=com.spotify.music/com.spotify.music.MainActivity
activity_286=com.microntek.radio/com.microntek.radio.MainActivity
app_287=com.google.android.apps.maps
app_288=com.hb.dialer.free
[com.microntek.radio#keys]
keycode_276=90
keycode_278=89
activity_331=com.zoulou.dab/com.zoulou.dab.MainActivity
Hope this helps!
Christian
I can not make settings.ini work, do you paste the file in / storage / emulated / 0 directly or put it in the mtce-utils folder?
Hy @gforums,
thanks for the little tutorial.
Unfortunately, changing the steering wheel buttons does not work.
I am currently using Android Oreo with the Malaysk Rom.
Enclosed my settings.ini
Code:
[android.microntek.service#keys]
keycode_258=87
keycode_316=88
@elavaro19:
as I understand it you have to put the ini file directly into the directory /storage/emulated/0.
BR
gary822
@gary822 I'll try like this, I can not assign buttons for canbus and I want to remap some buttons between them the aux button to home
Dude, this is awesome stuff! Thank you so much for sharing what you learned!
But where can i find out wich key on my sterlingwhel has wich keycode?
kaderekusen said:
But where can i find out wich key on my sterlingwhel has wich keycode?
Click to expand...
Click to collapse
I've used mtcd tools, option to select a new binding and then pressing the key I want to assign. Mtcd tools should show you the mtce key code then.
kaderekusen said:
But where can i find out wich key on my sterlingwhel has wich keycode?
Click to expand...
Click to collapse
gary822 said:
Hy @gforums,
thanks for the little tutorial.
Unfortunately, changing the steering wheel buttons does not work.
I am currently using Android Oreo with the Malaysk Rom.
Enclosed my settings.ini
Code:
[android.microntek.service#keys]
keycode_258=87
keycode_316=88
@elavaro19:
as I understand it you have to put the ini file directly into the directory /storage/emulated/0.
BR
gary822
Click to expand...
Click to collapse
Did you reboot after changing the settings.ini? This is needed. Have you also activated the xposed-mtce-utils module? And checked whether the mtce key codes used are the right ones?
Are you on Malaysk?
I think I may have found the solution to this. I'll post it here if it works.
mattj949 said:
I think I may have found the solution to this. I'll post it here if it works.
Click to expand...
Click to collapse
hello, Any news ?
Thank you very much for this! I was able to figure out how to remap most of the keys on my CAN bus steering wheel controls. I'm now trying to figure out how to find an apps key codes so I can assign them to other keys on the head unit... How did you find out what the key codes are for your DAB key codes in the very last section of the settings.ini?
I have 2 apps I'm trying to figure out. One I'm trying to do is the FM radio app; [com.microntek.music#keys] and would like to make to when I press and hold the "next or previous" buttons that changes the presets, then just a single press will seek the next FM station. Do you know if there is any command lines that can be added to make it use the press and hold of a button? So that a single button can do 2 actions? I've played around with some of the units key study that has the ability to change the units buttons and can assign a single press, and press and hold, but the list of keys that can be assigned is limited.
The other I need to figure out is one button in a special app that tells it's special USB to send a signal to turn on the factory DSP amplifier. That app has button within the app that can manually send the signal, but I can't figure out how to find it's key code. And there is no Activity for it that I can use that I can find. I use an app called QuickShortcutMaker to identify an apps Activities name that it has.
Thanks.
Hey guys,
can any1 please share respectively upload the latest mtce-utils? Can't find them...
Thanks in advance
look on git hub
whitewolf8111 said:
Thank you very much for this! I was able to figure out how to remap most of the keys on my CAN bus steering wheel controls. I'm now trying to figure out how to find an apps key codes so I can assign them to other keys on the head unit... How did you find out what the key codes are for your DAB key codes in the very last section of the settings.ini?
I have 2 apps I'm trying to figure out. One I'm trying to do is the FM radio app; [com.microntek.music#keys] and would like to make to when I press and hold the "next or previous" buttons that changes the presets, then just a single press will seek the next FM station. Do you know if there is any command lines that can be added to make it use the press and hold of a button? So that a single button can do 2 actions? I've played around with some of the units key study that has the ability to change the units buttons and can assign a single press, and press and hold, but the list of keys that can be assigned is limited.
The other I need to figure out is one button in a special app that tells it's special USB to send a signal to turn on the factory DSP amplifier. That app has button within the app that can manually send the signal, but I can't figure out how to find it's key code. And there is no Activity for it that I can use that I can find. I use an app called QuickShortcutMaker to identify an apps Activities name that it has.
Thanks.
Click to expand...
Click to collapse
--> activity_331=com.zoulou.dab/com.zoulou.dab.MainActivity
The keycode from the key I want to assign can be obtained my "mtcd key tool" or in hal9k rom, where you can activate that keycodes are displayed by key press. In my case, key 331 is the "1"-key from my orginal radio.
the app/activity combination can by obtained by the app "package name viewer" that lists you app names / activities of your insalled apps.
I do not know, how you can change behaviour between short and long press.
Also, how to change the behaviour of the keys within an app, is difficult. You can work with Intents, but I am not used to it.
gforums said:
--> activity_331=com.zoulou.dab/com.zoulou.dab.MainActivity
The keycode from the key I want to assign can be obtained my "mtcd key tool" or in hal9k rom, where you can activate that keycodes are displayed by key press. In my case, key 331 is the "1"-key from my orginal radio.
the app/activity combination can by obtained by the app "package name viewer" that lists you app names / activities of your insalled apps.
I do not know, how you can change behaviour between short and long press.
Also, how to change the behaviour of the keys within an app, is difficult. You can work with Intents, but I am not used to it.
Click to expand...
Click to collapse
Thank you for your help! I think I have most of it all working the way I want now, but I will keep playing around with it some more. :good:
@gforums or anyone with the answer, has anybody been able to remap a wireless keyboard/remote? Mainly I'm trying to get the volume and mute to work. I know that the volume is controlled by the MCU and the remote want's to control the media volume which does nothing on our units. I'm just not quite sure how it should be written for the mtce-utils .ini file.
MCU volume up/down codes for MTCE are: 273/281 respectively. And the remote/native android codes for volume up/down are: 24/25 respectively.
has anyone already tried get this running on android 9 (PX5)?
As xposed is needed and in android 9, xposed only can be installed as magisk module, I can't get it working.
So currently I do not know a way to change canbus keys in Android 9.
Anyone of you does?
Best regards,
Christian
Hi,
I'm running android 9, I installed Xposed, but how do you instal mtce-utils ? Can't find them anywhere.
Thanks

No option to program "long click" for steering wheel buttons?

I have a PX6 4/64 GB head unit.
When programming steering wheel buttons I only get the option to program "short click". I can't find any options for "long click". In the screenshots from Hal9k it looks like short click and long clock would be displayed at the same screen.
As default I had SWC chosen in factory settings, but then only volume buttons worked. So I changed to CanKey, and now all the buttons work, but I can't chose and option for long click. I have the same problem on stock and custom ROMs. I have tried different CanBus profiles for my car in factory settings, but the default one is the only one that seems to work okay.
Is there something I can try to make long clicks work, or is it just not supported by my car? Couldn't find much information with a search on these forums.
Is the car a BMW? Sounds like the problems I have
jrobbom5 said:
Is the car a BMW? Sounds like the problems I have
Click to expand...
Click to collapse
No, it's a Mercedes-Benz. Maybe something with german cars?
dape16 said:
No, it's a Mercedes-Benz. Maybe something with german cars?
Click to expand...
Click to collapse
Same problem for me for a 2010 Jeep Grand Cherokee (built under Merceds not FCA).
In Malaysk ROM full version (don't know about free) there is an option for programming double press of steering wheel buttons. I tried it and it works very well. Unfortunately I had other problems with that ROM so I can not use it.

Question Remap TEYES T-Pro Steering wheel buttons

Hey guys. About a year ago I installed a Teyes T-Pro in my '14 Focus ST, and while its better than the ST1 radio I had with a 4" screen, I hate this thing. An entire 1 inch vertical segment of the screen does not work, the screen does not turn on when the ambient temp is below 50 degrees F (until it heats itself up, takes like 25+ min in winter), subwoofer pre out doesn't work, and many many more stupid issues.
The reason I'm posting, though, is I would like to remap one of the steering wheel keys. The built in app to do this, of course, does nothing. Apps like button remapper also do nothing, probably bc the buttons function over CAN-Bus. When I press the microphone button on my steering wheel it opens an app called "car-info" which also does almost nothing. I am wondering if there is a way to have another app (google assistant) open right after this "Car-info" app opens. Also, if anyone has any experience with the T-Pro any input would be very appreciated. TEYES Tech support never responded to my multiple messages, of course, and I can't seem to find a head unit that sucks less and I don't want to roll the dice on another Teyes product.
Any input would be greatly appreciated...
Thanks a ton
Anyone got anything?
perrymike15 said:
Anyone got anything?
Click to expand...
Click to collapse
Contact TEYESAustralia, Hopefully they can give you a solution
What kind of car do you have (year, make, model, etc)?
Did you install the T-Pro yourself?
Do you have schematics for your car? If so, how do your steering wheel buttons connect to the old head unit?
Can you tell from the schematics if the buttons are resistive or not? Only resistive buttons can be remapped.
If your SWC are resistive, then you should be able to directly connect those buttons to the T-Pro inputs...I believe they are labelled key1 and key2. If the SWC are not resistive, I don't believe there is anything you can do about remapping them.

[Help] Assign button to app on MTCE PX5

Hello everyone.
I could not find a MTCE section and was unsure where to post, so I am posting this to the MTCD/MTCB/Android Head-Units threads. Sorry mods, please close or merge as you see fit.
I have a PX5 running Android 10. MCU version is MTCE_HXD_V3.62e_1 and would like to assign a phisical button (preferably a steering wheel button) to open TorquePro.
I found the remap function on factory options, but there are two problems with this:
First, only the volume buttons on my steering wheel show up on the buttons list, and not the "mode" button I wanted to use for this. Maybe this has something to do with CAN-Bus configurations? Or should I reset and map the buttons manually in order for them to show up? I think they all work. This "mode" button I don't use currently cycles between radio, media player and DVD and the skip track buttons also function as supposed, although being absent from the list.
Second, even if I forget about the steering wheel and try to map it to one of the buttons on the unit itself (like the DVD button I don't use) I can only map preset functions, like navigation, DVD, mute, etc. and not individual apps.
So I need either a third-party app that allows me to map Torque to a button, or a way to add torque to the mapable funcions on the factory options.
Any thougts on how to do this?
BTW, I tried MTCDtools but it doesn't seem to work. All I get from it is a "app keeps crashing" error message.
Thank you all!
Yes mtcE is an mtcD type. So you're in the right place.
All right, one step in the right direction. Yet MTCDtools didn't work. I installed the APK and it doesn't even open, all I get is a crashed app error message everytime I try starting it...
Any ideas what is going wrong here?
Have you tried the modified version 1.10, from AirOne70? #493
Not yet, just the one from f1x's GitHub. Will try it today. Thank you.
Pavel-71 said:
Have you tried the modified version 1.10, from AirOne70? #493
Click to expand...
Click to collapse
I have tried it, and it worked, so thank you!
Although it was just a partial success. I have a "source" button on my steering wheem which is used to cycle through radio/DVD/media player/etc. and managed to make it open Torque, like I wanted. The problem is that it also mantains the original function, so it launches Torque AND changes the media source on the same time.
I guess I need to "disconnect" the original functio. Any ideas on how to do this?
Thank you!
DC69 said:
I have tried it, and it worked, so thank you!
Although it was just a partial success. I have a "source" button on my steering wheem which is used to cycle through radio/DVD/media player/etc. and managed to make it open Torque, like I wanted. The problem is that it also mantains the original function, so it launches Torque AND changes the media source on the same time.
I guess I need to "disconnect" the original functio. Any ideas on how to do this?
Thank you!
Click to expand...
Click to collapse
Unfortunately, I can't help you with that, try reading the thread, maybe someone has already solved it.

Categories

Resources