[XPM] XposedMTC - multipe mods for MTCB-Headunits

agentdr8

Senior Member
Mar 4, 2007
3,639
1,877
253
Cowtown, CA
Ah yes. That's what @Malaysk was referring to. I'm downloading that rom now to see what has changed and will try to release an updated XMTC for it in the coming days.

EDIT: Apparently quite a bit has changed in MicrontekServer.java since the last time I updated XMTC. It will take some time to rewrite the module to support the new version. I may just fork the current code and have two separate versions; the current one for "legacy" roms, and a newer branch for roms going forward. Unfortunately I don't have a lot of free time at the moment, so it may take me a while to get this new rom installed on my GS and start updating code.
 
Last edited:
  • Like
Reactions: Malaysk

phil001

Senior Member
Sep 18, 2010
179
21
0
Ah yes. That's what @Malaysk was referring to. I'm downloading that rom now to see what has changed and will try to release an updated XMTC for it in the coming days.

EDIT: Apparently quite a bit has changed in MicrontekServer.java since the last time I updated XMTC. It will take some time to rewrite the module to support the new version. I may just fork the current code and have two separate versions; the current one for "legacy" roms, and a newer branch for roms going forward. Unfortunately I don't have a lot of free time at the moment, so it may take me a while to get this new rom installed on my GS and start updating code.
Ok, thanks for the update, i'll leave it with you :)
 

FordFocus2007

Senior Member
Jan 2, 2016
83
37
0
What was the reason you disabled the backview function?
I for one ( probably the only one ) would like to launch my backview camera when i want it.. I thought of installing a switch in the car but that would be my last method, software should be able to help me out.
I'm going to try install a old version of your module, but probably there is something wrong with it ( why disable something that works right.. ) and i actually don't want to lose the BT-OBD override function. So that's also a bummer

Maybe someone knows another way of opening the backview-app or a workaround, i would not mind to give up a button for it ( mtc-keys )

All input on this would be appreciated
 
Last edited:

agentdr8

Senior Member
Mar 4, 2007
3,639
1,877
253
Cowtown, CA
What was the reason you disabled the backview function?
I for one ( probably the only one ) would like to launch my backview camera when i want it.. I thought of installing a switch in the car but that would be my last method, software should be able to help me out.
I'm going to try install a old version of your module, but probably there is something wrong with it ( why disable something that works right.. ) and i actually don't want to lose the BT-OBD override function. So that's also a bummer

Maybe someone knows another way of opening the backview-app or a workaround, i would not mind to give up a button for it ( mtc-keys )

All input on this would be appreciated
It was disabled because it didn't switch the video input, which is something the MCU controls when it receives a +12V signal on the reverse camera wire. That can't be replicated with software, so a switch is likely the only way to control it.

You could get an internet-connected switch/relay (like the Switcheroo), and then use software to control that though.
 
  • Like
Reactions: FordFocus2007

FordFocus2007

Senior Member
Jan 2, 2016
83
37
0
It was disabled because it didn't switch the video input, which is something the MCU controls when it receives a +12V signal on the reverse camera wire. That can't be replicated with software, so a switch is likely the only way to control it.

You could get an internet-connected switch/relay (like the Switcheroo), and then use software to control that though.
Thanks for the reply.

A switch it will be then, the switcheroo looks promising but still not available
 
Last edited:

kelvinnn

Member
Oct 11, 2010
15
5
3
Hi @agentdr8,

Thanks for the hard work, XposedMTC is truly a life saver! ;)

Anyway, I noticed that these headunits don't show all bluetooth devices, only certain ones such as mobile phones and in this case OBD adaptors. Since you managed to patch it to support non-"OBD" strings, I was wondering which .java file I could look at to enable viewing of all bluetooth devices?

I'm trying to get some LED Lights which are controlled via Bluetooth working, and yours was the closest to any working solution (well, at least for the bluetooth OBD adaptors)...
 

agentdr8

Senior Member
Mar 4, 2007
3,639
1,877
253
Cowtown, CA
Hi @agentdr8,

Thanks for the hard work, XposedMTC is truly a life saver! ;)

Anyway, I noticed that these headunits don't show all bluetooth devices, only certain ones such as mobile phones and in this case OBD adaptors. Since you managed to patch it to support non-"OBD" strings, I was wondering which .java file I could look at to enable viewing of all bluetooth devices?

I'm trying to get some LED Lights which are controlled via Bluetooth working, and yours was the closest to any working solution (well, at least for the bluetooth OBD adaptors)...
Getting the headunits to pair to non-OBD adapters is easy enough, but the BT stack in these roms don't support all profiles (SPP, OBEX, HID, etc). Depending on what your LED lights use, it may or may not work, even if you can get around the pairing hurdle.

At any rate, take a look at these classes in MTCManager.apk and Settings.apk: com.microntek.bluetooth.BTDevice, com.android.settings.MtcBluetoothSettings, com.microntek.bluetooth.ui.SearchFragment
 

kelvinnn

Member
Oct 11, 2010
15
5
3
Getting the headunits to pair to non-OBD adapters is easy enough, but the BT stack in these roms don't support all profiles (SPP, OBEX, HID, etc). Depending on what your LED lights use, it may or may not work, even if you can get around the pairing hurdle.

At any rate, take a look at these classes in MTCManager.apk and Settings.apk: com.microntek.bluetooth.BTDevice, com.android.settings.MtcBluetoothSettings, com.microntek.bluetooth.ui.SearchFragment
Thanks for the quick reply! I've taken apart MTCManager.apk and Settings.apk, and also my LED control's APK...

Noticed it used something called GATT. Something to do with Bluetooth Low Energy. Did a few string searches and don't see it. Do you mean that the BT stack for all these profiles were stripped intentionally? Or can we add it back from another RK3188 ROM? (i.e, TV sticks, etc)
 

agentdr8

Senior Member
Mar 4, 2007
3,639
1,877
253
Cowtown, CA
Thanks for the quick reply! I've taken apart MTCManager.apk and Settings.apk, and also my LED control's APK...

Noticed it used something called GATT. Something to do with Bluetooth Low Energy. Did a few string searches and don't see it. Do you mean that the BT stack for all these profiles were stripped intentionally? Or can we add it back from another RK3188 ROM? (i.e, TV sticks, etc)
Generic ATTribute Profile. I don't know if these roms support that profile. I had issues getting my Valentine One (v1c) working, and it just uses SPP, which is pretty common. No such luck, even after pairing.
 

lincoln_dj

Member
Feb 26, 2011
15
0
0
Lincoln
hi guys. probably a noob question, but I dont seem to be able to get the timed screen dimming to do anything. I've tried setting the time manually so I can sit there watching it but get no brightness change. Clicking "start service" and "stop service" makes the program start and stop according to the status bar.

Maybe it is being over-rided by the system brightness? I've tried system brightness set to both Auto and light/dark.

I'm running the latest Malaysk rom on an RK3188 KLD6 "S07" head unit.

Cheers.
 

agentdr8

Senior Member
Mar 4, 2007
3,639
1,877
253
Cowtown, CA
hi guys. probably a noob question, but I dont seem to be able to get the timed screen dimming to do anything. I've tried setting the time manually so I can sit there watching it but get no brightness change. Clicking "start service" and "stop service" makes the program start and stop according to the status bar.

Maybe it is being over-rided by the system brightness? I've tried system brightness set to both Auto and light/dark.
Here's what I would try: verify in Settings that the system date/time is set to proper time and timezone, and not set to auto. Set the dimming start time to current time +1 minute. Set dimming end time to sometime in the morning (5AM). Set the dimming amount to 10. Close out of XMTC prefs. Wait for 1-1.5 minutes and the backlight should change.

If it doesn't change, enable debugging in XMTC prefs and reboot. Then repeat the test and post the Xposed Installer logs.
 

gb37270

Senior Member
Apr 9, 2015
122
17
0
Tours
i have problem with XposedMTC.
when I select Music to my favorite music app (mymusic), application crash .
if I choose another app (jetaudio, poweramp) , does it work .
For MyVideo and myRadio, all apps works...just MyMusic crash
 

Us-Marshal

Senior Member
Jan 29, 2015
61
15
0
youtu.be
I have an interesing issue with XposedMTC when using my steering wheel controls/buttons.

I've used it for the past year on my Coudu ROM without any issues, but recently installed an RK3188 and the latest MAL ROM. If I install XposedMTC, I get odd 'double' key presses in Poweramp and it advances/rewinds two tracks at a time and mutes the audio.

I uninstall it and everything works, but I REALLY like the ability to override the source/mode selection rotation list using my steering wheel source/mode button.

Any ideas?
 
Last edited:

agentdr8

Senior Member
Mar 4, 2007
3,639
1,877
253
Cowtown, CA
I have an interesing issue with XposedMTC when using my steering wheel controls/buttons.

I've used it for the past year on my Coudu ROM without any issues, but recently installed an RK3188 and the latest MAL ROM. If I install XposedMTC, I get odd 'double' key presses in Poweramp and it advances/rewinds two tracks at a time and mutes the audio.

I uninstall it and everything works, but I REALLY like the ability to override the source/mode selection rotation list using my steering wheel source/mode button.
Are you also using Headunit Service? There's a few different mods installed by default on Malaysk roms that might conflict or provide similar functionality.
 

Malaysk

Senior Member
Jan 31, 2011
1,653
5,678
153
Are you also using Headunit Service? There's a few different mods installed by default on Malaysk roms that might conflict or provide similar functionality.
Hi agentdr8! The new firmware Chinese programmers completely redesigned ( Smali) MTSManager.apk - and now your module XposedMTC does not work (MODE button resets the unit) . Here are this file
 

Attachments

2shaelib

Member
May 18, 2014
14
0
0
i have problem with XposedMTC.
when I select Music to my favorite music app (mymusic), application crash .
if I choose another app (jetaudio, poweramp) , does it work .
For MyVideo and myRadio, all apps works...just MyMusic crash
Im having the same issue. Really enjoyed this.

I would love to see this app get updated with better controls of what apps should open, in what order. Which one should be killed completly (for example nav apps should be allowed to run in the background but audio apps should be killed if a new one is switched to.

I would also like to see a UI Popup that would show what it is about to change to rather than actually changing. only if you stop pressing the switchmode button should it then switch to the highlighted app from the list.
 

holofury

Member
Sep 20, 2007
7
0
0
Bielefeld
Im having the same issue. Really enjoyed this.

I would love to see this app get updated with better controls of what apps should open, in what order. Which one should be killed completly (for example nav apps should be allowed to run in the background but audio apps should be killed if a new one is switched to.

I would also like to see a UI Popup that would show what it is about to change to rather than actually changing. only if you stop pressing the switchmode button should it then switch to the highlighted app from the list.
Try using "MediaPlayer" instead of "MyMusic".
MediaPlayer is the standard media player on these devices.
MyMusic afaik is just a little app which stops other media sources and then starts the app which you have selected. When it tries to start itself, it gets into a loop and crashs. :)