FORUMS
Remove All Ads from XDA

[XPM] XposedMTC - multipe mods for MTCB-Headunits

3,462 posts
Thanks Meter: 1,716
 
Post Reply Email Thread
Discontinued
Due to a lack of free time and newer hardware (MTCD), I am no longer supporting this module. The code is freely available on my github.

XposedMTC -- mods for Huifei/RM/KLD/GS/JY headunits

Right now, the mod consists of the following features:
  • Change preferred music app from MTCMusic to something else
  • Change preferred video app from MTCMovie to something else
  • Ability to override the default mode switch behavior to include only the sources you want (in addition to Music)
  • Overridden mode switching can add your selected Nav app (in Settings->Gps) to the rotation
  • Ability to apply Loudness on boot (newer system images persist this setting)
  • Time-based dimmer and adjustable brightness level when time is outside dimming period
  • Ability to automatically set dimming start and end times based on current date, timezone, and GPS location (no data connection required)
  • Ability to learn your radio presets and re-apply them if/when the presets get lost (usually on hard-reset)
  • 3 replacement launchers for user-selected Music, Videos, and Radio apps for non-SWC vehicles
  • Preference to allow all BT OBD adapters to pair with headunit
  • Intents to start and stop the XMTC service
  • Preference to override the stock volume OSD and place volume level in the statusbar
  • Launcher to manually start the reverse camera view (BackView) -- disabled for now
  • Screen Filter integration for ultimate dimming control

Changelog
  • v1.0 - Initial release
  • v1.0.1 - Added Playerpro control intents -- forgot to change startService to sendBroadcast for Playerpro -- redownload this if you previously downloaded it
  • v1.2 - Added dimmer control, debug preference
  • v1.2.1 - Fixed switchpreference controls that were disabling themselves
  • v1.2.5 - Added replacement launchers for Music, Video, and Radio for non-SWC users
  • v1.3.0 - Rolled all beta and experimental changes into a stable build
  • v1.4.2 - Fixed BT OBD override (tested on latest Malaysk rom with a generic BT ELM327 v1.5 adapter with name CBT.)

Things for the future
  • Hard button remapping -- mtc-keys works for this
  • Add user-selected app to the mode switch rotation (e.g. Torque)
  • Fix system crash when Line-In (AUX) source is added to modeswitch rotation
  • Figure out a way to turn off the backlight completely, and allow it to be mapped to a button press/long press -- Screen Filter integration allows for complete backlight adjustment
  • Add preference to enable full backlight brightness when BackView is foreground
  • Add preference to enable dimmer control via headlight switch/illumination wire

Translations
If anyone would like to submit a translation in their native language (or one other than US English), please visit this link and contribute. Thanks!

Completed translations (thanks!)
Hungarian - @peti007

This module requires that you first install the Xposed Framework and enable the app_process.

Added the module to the Xposed Repo for easy updating from the headunit.
Attached Thumbnails
Click image for larger version

Name:	device-2014-07-22-155630.png
Views:	15502
Size:	31.3 KB
ID:	2865892   Click image for larger version

Name:	device-2014-07-22-155649.png
Views:	15283
Size:	29.4 KB
ID:	2865893   Click image for larger version

Name:	device-2014-07-22-155700.png
Views:	15148
Size:	26.7 KB
ID:	2865894  
Attached Files
File Type: apk XposedMTC_v1.0.apk - [Click for QR Code] (392.9 KB, 589 views)
File Type: apk XposedMTC_v1.0.1.apk - [Click for QR Code] (393.0 KB, 155 views)
File Type: apk XposedMTC_v1.2.apk - [Click for QR Code] (393.7 KB, 174 views)
File Type: apk XposedMTC_v1.2.1.apk - [Click for QR Code] (396.1 KB, 229 views)
File Type: apk XposedMTC_v1.2.5.apk - [Click for QR Code] (422.0 KB, 375 views)
File Type: apk XposedMTC_v.1.3.apk - [Click for QR Code] (442.5 KB, 1062 views)
File Type: apk XposedMTC_v1.4.2.apk - [Click for QR Code] (523.9 KB, 5558 views)
The Following 45 Users Say Thank You to agentdr8 For This Useful Post: [ View ] Gift agentdr8 Ad-Free
 
 
16th November 2015, 07:57 PM |#2  
Junior Member
Thanks Meter: 3
 
More
Don't know if this is the right place for this, but I've searched around and can't find an answer.

Am having a problem setting default Music app, i've changed it to poweramp, and it works great, however have noticed that when I start the radio app, then switch to poweramp, the radio app doesn't stop. Is there anything else I have to setup to get the radio app to mute when changing a music app?
16th November 2015, 08:08 PM |#3  
agentdr8's Avatar
OP Senior Member
Flag Cowtown, CA
Thanks Meter: 1,716
 
Donate to Me
More
Quote:
Originally Posted by Syphe

Am having a problem setting default Music app, i've changed it to poweramp, and it works great, however have noticed that when I start the radio app, then switch to poweramp, the radio app doesn't stop. Is there anything else I have to setup to get the radio app to mute when changing a music app?

How are you switching between PA and Radio? Mode button or launcher icon?

If you're not using a mode button on steering wheel controls, then you have to use the included launchers called MyMusic, and MyRadio in order to properly switch audio sources.
The Following User Says Thank You to agentdr8 For This Useful Post: [ View ] Gift agentdr8 Ad-Free
16th November 2015, 08:21 PM |#4  
Junior Member
Thanks Meter: 3
 
More
My unit has hardware buttons which launch the sources, so I use those, I did notice launching MyMusic did mute the radio (think it launched MTCMusic), but the "Media" button on the unit just launched poweramp (after changing default app in xposedmtc) and left the radio going.
16th November 2015, 08:30 PM |#5  
agentdr8's Avatar
OP Senior Member
Flag Cowtown, CA
Thanks Meter: 1,716
 
Donate to Me
More
Quote:
Originally Posted by Syphe

My unit has hardware buttons which launch the sources, so I use those, I did notice launching MyMusic did mute the radio (think it launched MTCMusic), but the "Media" button on the unit just launched poweramp (after changing default app in xposedmtc) and left the radio going.

Oh I see. You can use mtc-keys to remap those buttons to launch the MyMusic and MyRadio activities.
The Following User Says Thank You to agentdr8 For This Useful Post: [ View ] Gift agentdr8 Ad-Free
16th November 2015, 08:53 PM |#6  
Junior Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by agentdr8

Oh I see. You can use mtc-keys to remap those buttons to launch the MyMusic and MyRadio activities.

cheers, I'll give that a try next time I get in the car
The Following User Says Thank You to Syphe For This Useful Post: [ View ] Gift Syphe Ad-Free
16th November 2015, 09:50 PM |#7  
agentdr8's Avatar
OP Senior Member
Flag Cowtown, CA
Thanks Meter: 1,716
 
Donate to Me
More
Quote:
Originally Posted by Syphe

cheers, I'll give that a try next time I get in the car

I believe the proper mtc-keys.ini syntax would look something like:

activity_##=com.dr8.xposedmtc/.activities.Music
activity_##=com.dr8.xposedmtc/.activities.Radio

Where ## is the keycode of that particular button.
The Following User Says Thank You to agentdr8 For This Useful Post: [ View ] Gift agentdr8 Ad-Free
16th November 2015, 10:59 PM |#8  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by agentdr8

Oh I see. You can use mtc-keys to remap those buttons to launch the MyMusic and MyRadio activities.

Quote:
Originally Posted by Syphe

cheers, I'll give that a try next time I get in the car

Hi,
I have been having similar issue with my Pumpkin head unit which also has hard buttons. I'm running XposedMTC and mtc-keys modules and I'd already used mtc-keys to map my "MEDIA" hard button to music app directly as XposedMTC on its own didn't do it for my chosen music app. When I switch from music app (Mixzing) to Radio the music app is still playing.

I hadn't spotted the "MyMusic" and "MyRadio" activities in the app drawer screen before (only had the unit just over a week) but even using these these instead of the hard buttons the music app still plays over the radio and vice versa (i.e one doesn't stop the other). Shame as when I found your posts above I thought these activities would be the solution to my issue and I could just remap hardware buttons to these with mtc-keys.
16th November 2015, 11:06 PM |#9  
agentdr8's Avatar
OP Senior Member
Flag Cowtown, CA
Thanks Meter: 1,716
 
Donate to Me
More
Quote:
Originally Posted by WestlakeSt

When I switch from music app (Mixzing) to Radio the music app is still playing.

Originally the only supported media player in XMTC was Poweramp, but I've since added PlayerPro, and few others that utilize generic Android intents for control. It's possible Mixzing doesn't listen for these intents, and specific support would need to be added.
The Following User Says Thank You to agentdr8 For This Useful Post: [ View ] Gift agentdr8 Ad-Free
16th November 2015, 11:16 PM |#10  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by agentdr8

Originally the only supported media player in XMTC was Poweramp, but I've since added PlayerPro, and few others that utilize generic Android intents for control. It's possible Mixzing doesn't listen for these intents, and specific support would need to be added.

Hi agentdr8,
Thanks for the information. I will try Poweramp and PlayerPro as Mixzing is just one of a few alternative apps I'm trying out so not committed to keeping it at this stage. If Poweramp or Player Pro work well for a car head unit in terms of user interface and hardware abilities (i.e. hard buttons working as I want) then I will purchase one or the other.
Will get the trials for each app and give them a try tomorrow.

Kind regards,
Steve
17th November 2015, 01:10 AM |#11  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by agentdr8

I believe the proper mtc-keys.ini syntax would look something like:

activity_##=com.dr8.xposedmtc/.activities.Music
activity_##=com.dr8.xposedmtc/.activities.Radio

Where ## is the keycode of that particular button.

Hi agentdr8,
I have now tried Poweramp and PlayerPro and both will switch the radio off if I use the MyMusic/MyRadio icons. So I tried using the above syntax in the mtc-keys.ini for the appropriate key codes but this doesn't appear to work. I amended them on the off chance that it may have needed to be "MyMusic" and "MyRadio" at the end of each line (as that is what the icons are called in the app drawer part) but either way nothing is triggered on pushing the buttons.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes