[XPM] XposedMTC - multipe mods for MTCB-Headunits - MTCB Software Development

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.

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?

Syphe said:
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?
Click to expand...
Click to collapse
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.

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.

Syphe said:
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.
Click to expand...
Click to collapse
Oh I see. You can use mtc-keys to remap those buttons to launch the MyMusic and MyRadio activities.

agentdr8 said:
Oh I see. You can use mtc-keys to remap those buttons to launch the MyMusic and MyRadio activities.
Click to expand...
Click to collapse
cheers, I'll give that a try next time I get in the car

Syphe said:
cheers, I'll give that a try next time I get in the car
Click to expand...
Click to collapse
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.

agentdr8 said:
Oh I see. You can use mtc-keys to remap those buttons to launch the MyMusic and MyRadio activities.
Click to expand...
Click to collapse
Syphe said:
cheers, I'll give that a try next time I get in the car
Click to expand...
Click to collapse
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. :crying:

WestlakeSt said:
When I switch from music app (Mixzing) to Radio the music app is still playing.
Click to expand...
Click to collapse
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.

agentdr8 said:
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.
Click to expand...
Click to collapse
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

agentdr8 said:
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.
Click to expand...
Click to collapse
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.

WestlakeSt said:
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.
Click to expand...
Click to collapse
Hmm. I may have to export those activities in the manifest, based on what I read on the mtc-keys info.
EDIT: Since I have an intent filter on those activities, they should be exported by default. The mtc-keys syntax might need tweaking. Try activity_##=com.dr8.xposedmtc.activities/Radio

@agentdr8, can you please add a dark theme to this app? I mean, black background and white text?
It kills my eyes every time I open it...
Cheers!

robertut said:
@agentdr8, can you please add a dark theme to this app? I mean, black background and white text?
It kills my eyes every time I open it...
Click to expand...
Click to collapse
I'll add it to my list for the next release.

Many thanks in advance.

WestlakeSt said:
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.
Click to expand...
Click to collapse
I'm getting the same thing. When I change mtc-keys, my home screen just receives a home key press (I think).
If I change activity to app and set a package name, it loads the app, so just an issue with activity_xx not resolving.

agentdr8 said:
Hmm. I may have to export those activities in the manifest, based on what I read on the mtc-keys info.
EDIT: Since I have an intent filter on those activities, they should be exported by default. The mtc-keys syntax might need tweaking. Try activity_##=com.dr8.xposedmtc.activities/Radio
Click to expand...
Click to collapse
Syphe said:
I'm getting the same thing. When I change mtc-keys, my home screen just receives a home key press (I think).
If I change activity to app and set a package name, it loads the app, so just an issue with activity_xx not resolving.
Click to expand...
Click to collapse
Hi again,
Just to update. I am still not having much luck with getting the hardware keys to work. I have tried the following combinations in the mtc-keys.ini file (only one pair at a time) and rebooted the unit each time
43 is my "MEDIA" button and 42 is my "BAND" button which I would like to map to Poweramp and Radio respectively.
activity_43=com.dr8.xposedmtc/.activities.Music
activity_42=com.dr8.xposedmtc/.activities.Radio
activity_43=com.dr8.xposedmtc/.activities.MyMusic
activity_42=com.dr8.xposedmtc/.activities.MyRadio
activity_43=com.dr8.xposedmtc.activities/Music
activity_42=com.dr8.xposedmtc.activities/Radio
activity_43=com.dr8.xposedmtc.activities/MyMusic
activity_42=com.dr8.xposedmtc.activities/MyRadio
activity_43=com.dr8.xposedmtc.activities/.Music
activity_42=com.dr8.xposedmtc.activities/.Radio
activity_43=com.dr8.xposedmtc.activities/.MyMusic
activity_42=com.dr8.xposedmtc.activities/.MyRadio
NB: I tried "MyMusic" and "MyRadio" since that is the name of the icon if you go to the apps drawer.
With some of the above, pushing the hardware button would take me back to the home screen, but wouldnt stop anything playing or launch anything else. To be clear, if I'd launched Poweramp with the MyMusic activity in the app drawer and then pushed the BAND hardware button, the unit would return to the home screen, but poweramp would still be playing and the radio would not launch.
Other combinations would do nothing at all.
Are there any other possible combinations I could try i.e. dots and slashes being in different places?
Just for information to anyone who is going to try and suggest help I know next to nothing about android programming or how apps work behind the scenes so please feel free to be very patronizing in how to possibly get this working in the mtc-keys ini file. :fingers-crossed:

WestlakeSt said:
Are there any other possible combinations I could try i.e. dots and slashes being in different places?
Just for information to anyone who is going to try and suggest help I know next to nothing about android programming or how apps work behind the scenes so please feel free to be very patronizing in how to possibly get this working in the mtc-keys ini file. :fingers-crossed:
Click to expand...
Click to collapse
I'll take a look at mtc-keys and figure out what the proper syntax is. It definitely wouldn't be the My* names, as those are just the labels for the launcher icons. The activity classes are named Music and Radio.

WestlakeSt said:
Hi again,
Just to update. I am still not having much luck with getting the hardware keys to work. I have tried the following combinations in the mtc-keys.ini file (only one pair at a time) and rebooted the unit each time
43 is my "MEDIA" button and 42 is my "BAND" button which I would like to map to Poweramp and Radio respectively.
activity_43=com.dr8.xposedmtc/.activities.Music
activity_42=com.dr8.xposedmtc/.activities.Radio
activity_43=com.dr8.xposedmtc/.activities.MyMusic
activity_42=com.dr8.xposedmtc/.activities.MyRadio
activity_43=com.dr8.xposedmtc.activities/Music
activity_42=com.dr8.xposedmtc.activities/Radio
activity_43=com.dr8.xposedmtc.activities/MyMusic
activity_42=com.dr8.xposedmtc.activities/MyRadio
activity_43=com.dr8.xposedmtc.activities/.Music
activity_42=com.dr8.xposedmtc.activities/.Radio
activity_43=com.dr8.xposedmtc.activities/.MyMusic
activity_42=com.dr8.xposedmtc.activities/.MyRadio
NB: I tried "MyMusic" and "MyRadio" since that is the name of the icon if you go to the apps drawer.
With some of the above, pushing the hardware button would take me back to the home screen, but wouldnt stop anything playing or launch anything else. To be clear, if I'd launched Poweramp with the MyMusic activity in the app drawer and then pushed the BAND hardware button, the unit would return to the home screen, but poweramp would still be playing and the radio would not launch.
Other combinations would do nothing at all.
Are there any other possible combinations I could try i.e. dots and slashes being in different places?
Just for information to anyone who is going to try and suggest help I know next to nothing about android programming or how apps work behind the scenes so please feel free to be very patronizing in how to possibly get this working in the mtc-keys ini file. :fingers-crossed:
Click to expand...
Click to collapse
You can try writing app_43=package name instead of activity_43=activity. You can find the package name of the application using an app from play store, search for package name viewer.

p_mike83 said:
You can try writing app_43=package name instead of activity_43=activity. You can find the package name of the application using an app from play store, search for package name viewer.
Click to expand...
Click to collapse
For most packages, that's fine, as there's only a single activity within it. But with XMTC, the default activity is the preferences, and then there's the 3 My* activities.

Related

[App] Recent Plus - volume control in recent apps dialog for CM7

What is Recent Plus!?
It is a small app in an early state that replaces the "recent apps" dialog that appears when you long-press the home button. It shows the recently opened apps as before but additionally shows a volume slider. See screenshots. Requires CM7.
UPDATE: Recent Plus in Market
Why?
As you all know, the nook color is a wonderful device but it is lacking hardware buttons. A typical and really nice remedy is to install keysmod / Hard-key editor and bind the volume buttons to back and menu. Problem: you can no longer easily change the current volume while in an app, especially when it is running in fullscreen.
It started with this post and I am now moving it here.
Requirements:
* a device running a recent nightly of cyanogenmod 7
Installation:
(0. install the keysmod so you have back/menu instead of the volume buttons)
1. install the apk that is attached to this post, UPDATE: Recent Plus in the Market
2. go to "Settings", "Cyanogenmod Settings", "Input", "long-press home settings": check "Use custom application" and then choose "Select custom application", tap "Applications" (yes, another tap here in that list! This is the first entry), finally select "Recent Plus!"
3. done. Now you can long press home to switch apps and change the volume
TODOs/Problems:
1. Not sure what happens with devices other than the nook and/or different roms
2. The number of recent apps can not be configured yet
Looking forward to your feedback!
History:
v0.7: (July 9, 2011)
color application label by status (white: running, gray: suspended, dark: closed) - can be turned off
fixed a force close bug when switching to apps in certain states
instead of force closing display an error message instead
Recent Plus in the Market
v0.6: (Apr 12 2011)
optional brightness slider (see settings)
v0.5:
crappy looking settings menu
select which volumes you want to control in the settings
v0.4:
fix android compatibility mode messing up the layout
v0.3:
visual stuff (Button background, longer app names)
different button layout in landscape/portrait
more apps
v0.2: initial release
(reserved)
Excellent app. My only problem is I cannot add recent plus as a custom application. I followed all of the steps exactly. Any advice?
matalo said:
Excellent app. My only problem is I cannot add recent plus as a custom application. I followed all of the steps exactly. Any advice?
Click to expand...
Click to collapse
I need more info. What does "cannot add as a custom application" mean? Could you follow all steps? Which Rom and which version are you running?
Kudos to you! This is exactly what I need to put everything together and eliminate the need to switch keys and such. Thanks for making an awesome app!
Ok, I figured out why I was only getting a small window that couldn't fit everything... I turned off Compatibility Mode in Spare Parts and now the Recent Plus window is big and works properly.
Does anyone have this working right at the default "on" setting for Compatibility Mode?
Nice idea. Works. Wishing i was on CM now
RoboRay said:
Ok, I figured out why I was only getting a small window that couldn't fit everything... I turned off Compatibility Mode in Spare Parts and now the Recent Plus window is big and works properly.
Does anyone have this working right at the default "on" setting for Compatibility Mode?
Click to expand...
Click to collapse
Worked fine for me. I also notice that there's an option in the settings to "show recent apps title". I unchecked it, but it still shows the title of the recent apps. Maybe you guys can work something out of it. Like having Compatibility Mode and still show the volume slider.
And, thanks.
RoboRay said:
Ok, I figured out why I was only getting a small window that couldn't fit everything... I turned off Compatibility Mode in Spare Parts and now the Recent Plus window is big and works properly.
Does anyone have this working right at the default "on" setting for Compatibility Mode?
Click to expand...
Click to collapse
Thanks for finding that out. I think I know how to fix that.
I just uploaded a new version that should fix the compatibility problem. Thanks again RoboRay.
MACLUIS1 said:
I also notice that there's an option in the settings to "show recent apps title". I unchecked it, but it still shows the title of the recent apps.
Click to expand...
Click to collapse
The are currently no options you can change. The stuff in that settings menu only applies to the default recent app switcher application.
Works great. Landscape mode works well too. Only thing id like to see is it control the complete system volume, not just media. You really have a great handy app. Is this only compatible with cm7 or is there future plans to have it work with other builds.
john10101 said:
Works great. Landscape mode works well too. Only thing id like to see is it control the complete system volume, not just media. You really have a great handy app.
Click to expand...
Click to collapse
Well, I can change it to affect all or only some of the different volumes. The thing is that I am not sure what is the best thing to do. The normal volume button is aware of the context and only changes that volume but I am not sure how to do that.
I don't like the idea of adding several sliders on the screen. Would having a settings menu to decide which volumes are affected help? Opinions?
john10101 said:
Is this only compatible with cm7 or is there future plans to have it work with other builds.
Click to expand...
Click to collapse
Well, the app itself is independent of the rom, but you need a way to launch it using a hardware button. I am not aware of a way to do this without support in the rom. One might be able to do something like "tap home -> launch recent plus", "double tap home -> go to home", not sure. This is similar to the softkeys behavior...
timoskrempel said:
Well, I can change it to affect all or only some of the different volumes. The thing is that I am not sure what is the best thing to do. The normal volume button is aware of the context and only changes that volume but I am not sure how to do that.
I don't like the idea of adding several sliders on the screen. Would having a settings menu to decide which volumes are affected help? Opinions?
Click to expand...
Click to collapse
Personally i would be fine with it doing full system volume, for my usage i dont think i need the ability to control different volume's. a settings option would be best for all around functionality for all users. i would suggest you hide it (press menu in app for it to show up) a settings menu would also give you ability to add features in the future if you choose so. I think there are people out there who would like this screen to do more then it does now. Myself all i want is a volume slider, This is much cleaner then having to use any other apps ive tried.
Thank you again for your hard work. This is going to be a staple apk, on my nook
timoskrempel said:
I don't like the idea of adding several sliders on the screen. Would having a settings menu to decide which volumes are affected help? Opinions?
Click to expand...
Click to collapse
A button to either pop out a selection menu or even to simply step through the different volume types with multiple presses might work. Tucked away behind the Menu button would make for a cleaner UI, though.
Media volume is the critical one to have by default, though, at least on a phoneless tablet... How often do people really have to change their Notifications volume on the fly? Adding a way to select the other volumes could certainly increase the app's usefulness outside the NC community, as well as to anyone who does constantly adjust the other volumes, though.
An option to adjust ALL volume levels with one slider would be very helpful, for instance when using with headphones -- see below.
RoboRay said:
Media volume is the critical one to have by default, though, at least on a phoneless tablet... How often do people really have to change their Notifications volume on the fly?
Click to expand...
Click to collapse
Yeah, about that... I was listening to music at a nice comfortable level using headphones, when I received an email... since RecentPlus only adjusted the media volume, the notification sound was deafening and had my ears ringing for a few moments.
tj!2k7 said:
An option to adjust ALL volume levels with one slider would be very helpful, for instance when using with headphones -- see below.
Yeah, about that... I was listening to music at a nice comfortable level using headphones, when I received an email... since RecentPlus only adjusted the media volume, the notification sound was deafening and had my ears ringing for a few moments.
Click to expand...
Click to collapse
Settings > CM > Sound > Always play on speaker > Notifications > Check
Or, use settings on the same page to attenuate them while using headphones, if you do want notification sounds out the 3.5mm jack.
FC when trying to switch to Yahoo Mail. I don't know if you can make anything out of that, just wanted to let you know
RoboRay said:
Settings > CM > Sound > Always play on speaker > Notifications > Check
Or, use settings on the same page to attenuate them while using headphones, if you do want notification sounds out the 3.5mm jack.
Click to expand...
Click to collapse
Yeah, that was one of the first things I did with CM7 as I love that feature on my phone... and I've got Not, Ring, and Alarm all set to play on speaker -- however -- have you actually tried the "always play on speaker" feature?
I've got two NCs here, and it doesn't work on either one -- most recent: CM7n30.
Can other folks confirm that this feature is working properly?
Edit: Based on some experimentation with Tasker just now, I don't think the NC hardware is actually capable of determining when headphones are plugged in.
Arbelzapf said:
FC when trying to switch to Yahoo Mail. I don't know if you can make anything out of that, just wanted to let you know
Click to expand...
Click to collapse
I installed yahoo mail but I can not reproduce this. It crashes when you hit the yahoo icon inside the recent app list? Does this happen every time?

quick shortcut for a specific bluetooth device pair?

Any one is familiar with an app or widget for quick shortcut to a specific bluetooth device (lets say my BT headset or my stereo) and pair to it with 1 click from the homescreen?
and maybe another toggle click would unpair it.
I want to put 3 shortcuts on my homescreen for each BT device so I'd have it quicker.. instead of going to settings>Bluetooth>and pair manualy the one.
I've tried to search on market and google but seems like the dev's ideas was only to short me up into the bluetooth settings and not to a specific user..
Thanks,
Yarden.
mcjordan92 said:
Any one is familiar with an app or widget for quick shortcut to a specific bluetooth device (lets say my BT headset or my stereo) and pair to it with 1 click from the homescreen?
and maybe another toggle click would unpair it.
I want to put 3 shortcuts on my homescreen for each BT device so I'd have it quicker.. instead of going to settings>Bluetooth>and pair manualy the one.
I've tried to search on market and google but seems like the dev's ideas was only to short me up into the bluetooth settings and not to a specific user..
Thanks,
Yarden.
Click to expand...
Click to collapse
Well, there isn't anything (I think) that let's you select the device directly from the homescreen. However, you could use something like QuickTooth, at least you save a couple of steps since you only press the icon on the homescreen and are directly in the bluetooth settings. It won't be 1 click, but 2
Well, as I thought..
But I must say that your app is the nicest and easiest of all that I tried.. fits exactly for my purpose, the others just do another million things which I don't need.
So thank you!
If still someone else might find the one, don't hesitate to show it up here
Yarden.
mcjordan92 said:
Any one is familiar with an app or widget for quick shortcut to a specific bluetooth device (lets say my BT headset or my stereo) and pair to it with 1 click from the homescreen?
and maybe another toggle click would unpair it.
I want to put 3 shortcuts on my homescreen for each BT device so I'd have it quicker.. instead of going to settings>Bluetooth>and pair manualy the one.
I've tried to search on market and google but seems like the dev's ideas was only to short me up into the bluetooth settings and not to a specific user..
Thanks,
Yarden.
Click to expand...
Click to collapse
:good: There is solution - combination of free tools:
first of all pair all your BT devices in your BT settings
install "Llama" (great and free app for any everyday automation needs and it support Locale plugins!) ... or other such tool (Locale, Tasker)
install "Bluetooth Auto Connect" (by Jakub Klos) from Play store - it has build-in plugins for Locale and Tasker
create homescreen shortcut, select Llama, then choose "Custom event actions" from the list ... you are now in in Llama shortcut setup:
tap "Llama shortcut name" and name it (for example I have 2 shortcuts named: "BT repro", "BT headphone")
tap "Add action" button (down on screen), scroll to and choose "Bluetooth" and then choose "Bluetooth On" - this will turn on BT first (yes, you don't have to turn it on - the shortcut will take care of it too )
tap again "Add action" button (down on screen), scroll to and choose "Locale plugin" and then you should see "Bluetooth Auto Connect" - tap it - now you are in "Bluetooth Auto Connect" app, set it up as follows :
"All devices" should be UNchecked so you can select concrete "Device"
"Profile action" should be "Connect"
"Media audio" and "Call audio" is up to you ...
now all is set and you need to just hit phone "Back" button until you are on your homescreen and Llama shortcut should be sitting right there
now repeat all steps to create second, third, ... shortcut With decent launcher you can customize even the icons of shortcuts.
And final tip: install "Widgetsoid" and you can create your widgets (2x1, 3x1, 4x1, ...) - add any system "toggles" like wifi, brightness etc... and you can add there "homescreen shortcuts" too - widgetsoid can display comfortably 6 to 8 toggles/icons in one 4x1 (screen width) widget so you save precious space
And after all this works, you should deep dive in Llama and use it for your daily automation (time/location based volume profiles etc.).
Don't forget to rate all these apps - they all deserve it ...
Ave to wireless music!
Works once, then dud!
Hi whiteowl,
I tried this method on my phone, which has jellybean 4.2.2.
This method works flawlessly for one time. The bluetooth starts and device pairs automatically.
But after that, it doesn't connect to the device at all.
Any solution to this?
Install QuickShortcutMaker. Navigate to Activities. Select "Settings" to display all Settings activities. Them select "com. android.settings/com.samsung.andriod.settings.bluetooth.BluetoothScanDialog. Click Create. Done!
I released an Android app this year called ShortTooth for this exact problem. Create customized single-click shortcuts to connect to any paired Bluetooth device. One of the screenshots shows 3 different shortcuts for different devices. It has a free 14-day trial.
I'm looking for internal/alpha/beta testers if you (or anyone) is interested. The app will be free for internal and alpha testers.
jh2019 said:
I released an Android app this year called ShortTooth for this exact problem. Create customized single-click shortcuts to connect to any paired Bluetooth device. One of the screenshots shows 3 different shortcuts for different devices. It has a free 14-day trial.
I'm looking for internal/alpha/beta testers if you (or anyone) is interested. The app will be free for internal and alpha testers.
Click to expand...
Click to collapse
me!
mcjordan92 said:
me!
Click to expand...
Click to collapse
Awesome! I'm new to XDA developers, so I'm not sure what the best way to trade info is -- I'll need your google account email. You can send an email to the email listed on the app page ([email protected]), and I'll add you to the list, and we can go from there. Also since I'm new, I can't post links yet, so you'll have to search for it on Google Play by the exact name.
I'll do some beta testing. I just downloaded it from playstore.
- JediSQL

[7.1-12] Physical Button Master Control 4.4

Hi
I am presenting you here a Xposed module allowing you to take full control over the keys in your device!
When the screen is off/locked/on this module allows you to:
- send media play signals
- send media next/previous signals
- send volume up/down signals
- launch app shortcut actions
- simulate key presses
...with any buttons your phone might have!
And also:
- Disable original button functions
- Send a play signal when devices get plugged in
- Send signals only when selected devices are plugged in
- Set music volume when play signals are sent
- Set a media player to send the signals to
- Launch the selected player before sending signals
Features can be greatly customized to suit all possible needs!
Compatible with all Android versions from 7.1 to 12.
Download: Physical Button Master Control on Xposed Module Repository
If you found this mod useful consider donating me a coffee, this will help me code ^^
If you want to help other people see this app in your language, feel free to contribute on CrowdIn:
PBMC translation project on CrowdIn
How to report problems efficiently?
- Enable the 'Debug log' in PBMC settings
- Use PBMC functions that don't work as intended
- Export the logs from Xposed app and put them on PasteBin
- Post here/send me the link along with more information about your device
Source Code: https://github.com/XspeedPL/PhysicalButtonMod
Frequently Asked Questions
Q: Simply doesn't work?
A: Make sure your device is rooted, Xposed Installer is installed, and PBMC is enabled within the module menu of Xposed. After this, reboot. If it still doesn't work proceed to next steps (such as posting debug logs).
Q: I just installed PBMC and I found out that my home/recents/back/power button cannot be mapped. Fix?
A: You need to reboot first. With the module active, all buttons will work.
Q: Can I use this module to disable original button functions?
A: Yes, you can do this by setting the 'Do nothing' action on a mapping.
In example, to prevent volume up button from increasing the volume, set it's 'Single press' action to 'Do nothing'.
Q: How can I disable vibrations?
A: When you add an action, you can move the "Use vibration" slider to 0ms. It's as simple as that.
Q: I used the option to hide the app from the launcher, how can I open it now?
A: Go to the Xposed Installer -> Modules -> click on the PBMC module to open it.
Q: I have set a single-press action to my home/power button. How can I wake the device up now?
A: It's quite simple, any unmodified action will act as the original button function. Double-press or hold, depending on which ones have you not set.
Q: My media player is starting delayed using PBMC, why is that happening and what can I do?
A: It's because of the OOM killer most of the times, it's a mechanism in Android that kills unactive apps.
You see, when the receiver app is already active, it handles signals instantly.
But, when it has to be started (media players can get killed when it isn't playing anymore), it can take longer, depending on available RAM and amount of tasks running in the background.
So, what can you do? There are ways of protecting apps from getting killed by OOM killer. You could also limit the number of tasks running in the background (to make sure there is some RAM free).
Q: I have a problem that isn't listed here. What do I do?
A: You can use the 'Feature Requests' and 'Bug Reports' sections on top or post your problem on this thread, BUT remember to provide useful information, like: device info, Xposed/LogCat logs, list of other modules, detailed steps to reproduce the problem. Refer to the first post for instructions on getting Xposed logs.
How to report problems efficiently?
- Enable the 'Debug log' in module settings
- Use module functions that don't work as intended
- Export the logs from Xposed app and put them on PasteBin
- Post here/send me the link along with more information about your device
Will this work with Google play music?
awakener777 said:
Will this work with Google play music?
Click to expand...
Click to collapse
I haven't tested, but I'm sure it will.
How about add the option of resume the music when I conncet the headset?
@XspeedPL can you implement Gingerbread support plz?
argo7 said:
How about add the option of resume the music when I conncet the headset?
Click to expand...
Click to collapse
I could, but then would need to make an interface to disable unwanted features.
I guess it should be done in a few days.
killoid said:
can you implement Gingerbread support plz?
Click to expand...
Click to collapse
I think there should be no problem.
XspeedPL said:
Hi
I've been searching for a Xposed mod to control the music player with the physical buttons (volume and camera buttons), but I haven't found any mod for music play/pause. So I've decided to make one.
It's simple, when the screen is off:
- pressing the camera button sends a media play/pause signal
- holding the volume up/down button for 300ms sends a media next/previous signal
Current version: 1.1
Download:
repo.xposed.info/module/xeed.xposed.cbppmod
Click to expand...
Click to collapse
And you think that you would be able to disable the lockscreen controls?
Enviado desde mi XT1032 mediante Tapatalk
argo7 said:
And you think that you would be able to disable the lockscreen controls?
Click to expand...
Click to collapse
Hmm, I don't see a reason for that, but I guess that would be possible, yes.
XspeedPL said:
Hmm, I don't see a reason for that, but I guess that would be possible, yes.
Click to expand...
Click to collapse
Pls do that ) It would be amazing
Enviado desde mi XT1032 mediante Tapatalk
1.2
New version: 1.2
Changes:
Added an ability to send play media signal when headphones get connected
Added a settings activity that allows to control which features to use
Made the module compatible back to SDK level 8 ('Froyo' 2.2)
Click to expand...
Click to collapse
XspeedPL said:
New version: 1.2
Click to expand...
Click to collapse
thank you for GB support! it seems to not work with poweramp,i havn't tested it with other players though. i am using galaxy y duos,stock 2.3.6 rom.
& another req, my phone has no camera button but has a physical home button. can you make an option to use home botton to control play/pause? my home keycode is 3.
Not Working on Nexus 5 4.4.2
Hi thanks for buidling apps for the comunity.
I've tested it on my nexus 5 running AOSP 4.4.2 and it's not working.
Nothing happens when I hold vol up and down buttons while the screen is locked off.
matlink said:
Hi thanks for buidling apps for the comunity.
I've tested it on my nexus 5 running AOSP 4.4.2 and it's not working.
Nothing happens when I hold vol up and down buttons while the screen is locked off.
Click to expand...
Click to collapse
Yeah, I just found out too that the latest version has a bug that prevents the volume buttons from working!
An update is being made as I type.
Thanks. I like this module. However it does not work on my s3 running pacman 4.2.2. I tested with Google play music, Apollo, doubletwist. None works. (just reported).
1.3
New version: 1.3
Changes:
Fixed a bug that prevented next/previous signals from being sent
Added a lot of customization options to the settings activity
Allowed different keys to be used
Click to expand...
Click to collapse
killoid said:
thank you for GB support! it seems to not work with poweramp,i havn't tested it with other players though. i am using galaxy y duos,stock 2.3.6 rom.
& another req, my phone has no camera button but has a physical home button. can you make an option to use home botton to control play/pause? my home keycode is 3.
Click to expand...
Click to collapse
Should be fixed now, also I added the ability to change the keys.
matlink said:
Hi thanks for buidling apps for the comunity.
I've tested it on my nexus 5 running AOSP 4.4.2 and it's not working.
Nothing happens when I hold vol up and down buttons while the screen is locked off.
Click to expand...
Click to collapse
rookiegenius said:
Thanks. I like this module. However it does not work on my s3 running pacman 4.2.2. I tested with Google play music, Apollo, doubletwist. None works. (just reported).
Click to expand...
Click to collapse
Should be working now, update.
Very useful, works flawlessly so far on my s4 on stock 4.3... Thanks Dev
Sent from my GT-I9500 using Tapatalk
XspeedPL said:
Hi
I've been searching for a Xposed mod to control the music player with the physical buttons (volume and camera buttons), but I haven't found any mod for music play/pause. So I've decided to make one.
It's simple, when the screen is off:
- plugging in headphones sends a media play signal
- pressing a set button can send a media play/pause signal
- holding a set button for a set amount of time sends a media next signal
- holding a set button for a set amount of time sends a media previous signal
Features can be customized in settings activity 'PBMC Settings'.
Compatible down to Android 2.2 'Froyo'.
Current version: 1.3.1
Download: Physical Button Music Control on Xposed Module Repository
Click to expand...
Click to collapse
Could you possibly upload or PM me your source code and I will fix the issues pertaining to it not working on certain music apps? I have downloaded and tested and confirm the latest version does NOT work with Pandora. However, i have decompiled the apk and semi-fixed it. I got it to skip tracks but the play pause is happening twice, meaning, it pauses the music, then immediately plays again. If i could get the source code i could easily fix this issue. You can check here with an app i made allowing users to control the music from their notifications and it works across the board. I do know how to make it work
I have written xposed modules, and would hate to start over on ANOTHER volume skip mod. There are like 4 of them lol. So if you would share your source code with me, i will fix it and give it back to you to upload and share. I do not want the "credit" or recognition for this app. Just for making it work on Pandora and other music apps.
Of course, if i do not receive any source code, i will make my own module. Lol.
Thanks man!

[App] CarService + PhoneRemoteStatus SWC (Steering Wheel Control) for 3rd Party Apps

If you like my apps, and want to support my work, please, press "donate" button on the left or "Gift KeiserSozey" on the bottom and buy me a beer !
CarService :
Allows steering wheels and front panel buttons to control a 3rd party music player
To adjust buttons key codes :
- Start CarService application
- Press next/previous buttons on front panel and steering wheel and note down the corresponding key codes
- Go to the SWC/Music service settings and type the keycodes
Intents to start/stop services (e.g. to start services from Tasker app):
- Start SWC/Music service :
Code:
com.keisersozey.carservice.swc_music_action.START_SERVICE
- Stop SWC/Music service :
Code:
com.keisersozey.carservice.swc_music_action.STOP_SERVICE
- Start Phone Status service :
Code:
com.keisersozey.carservice.phone_action.START_SERVICE
- Stop Phone Status service :
Code:
com.keisersozey.carservice.phone_action.STOP_SERVICE
Activities to start services (e.g. to start services from Trigger app) :
- Start SWC/Music service :
Code:
com.keisersozey.carservice.SwcMusicStartActivity
- Start Phone Status service :
Code:
com.keisersozey.carservice.PhoneStatusStartActivity
NEW FEATURE !!!
It is now possible to display the current battery and network status of your phone on the notification bar and on a widget on your home screen
V2.1.3:
- Added broadcast receiver to start/stop services (e.g. to start services from Tasker app)
- Added activities to start services (e.g. to start services from Trigger app)
V2.1.2:
- Spotify control : removed limitations ("play with 'next' " function available etc...)
V2.1.1:
- Phone status service : now display signal strength and data network type on notification bar
- Added support for Spotify with some limitations : "play with 'next' " not available, no resume after mute OFF and after phone call.
V2.0.2:
- Home widget (Phone status) : graphical modifications, size bug fixed
- Filter on SWC button (Key-code filter) to prevent multiple key-codes events bug
- Music paused when Bluetooth activity starts and SWC buttons ignored as long as it is running
V2.0.1:
- Parameter "Ignore playing state": Activate it when music app seems to not be compatible with CarService (music does not pause or play when pressing SWC buttons)
- Bug fixed : SWC/Music service continues to run when it is deactivated
V2.0.0 :
- New feature : Phone status on notification bar and home widget
- UI has been fully redesigned (more beautiful !)
- Now, it is not required to restart application or reboot the unit to apply changes in parameters
- 2 key-codes parameters by functions (e.g. to map "Next" button from both steering wheel and front panel)
- Added "Rewind" and "Fast forward" functions
- Added "Behavior" settings category : you can disable some behaviours managed by app like "Pause on mute" etc ...
- Now, buttons triggering is ignored when any of built-in applications (Microntek app) is running (not only radio)
Known bugs with the widget : some problems with the size. If your home screen allow to resize widgets, insert it in an almost empty screen and resize it, then move it where you want. I will fix this bug as soon as possible.
RemotePhoneStatus:
The client application to install on your phone. It sends the statuses to CarService through WiFi on local network or using your phone as a WiFi access point.
WARNING : For the moment, this application drains battery when the service is ON ! So it is highly recommended to enable it only when you're in your car.
You can automate starting of the service with Trigger or Tasker app :
Use activity "com.keisersozey.remotephonestatus.ActivityStartService" and "com.keisersozey.remotephonestatus.ActivityStopService"
Or by sending intents (no tested yet...) : "com.keisersozey.remotephonestatus.action.START_SERVICE" and "com.keisersozey.remotephonestatus.action.STOP_SERVICE"
V1.1.0:
- Fixed bug : sometimes app does not find CarService application
V1.0.0: first release
Find it also on http://huifei.fs-fileserver.de/ on "release directory"
CarService : new version coming soon
I'm currently working on a new reworked version of CarService with improved functions and new features :
Music:
- SWC Control of a large list of players : by now, are supported : PowerAmp, Google Music, Spotify, Deezer, JetAudio, N7 Player (More on demand)
- Change current controlled player from SWC button or widget
Phone calls:
- Make a call or answer from a standard dialer app (tested with ExDialer) or from vocal command with Google voice
- If you're fed up with the bad quality of the head unit Bluetooth, use an external Bluetooth handset or built-in car Bluetooth system by connecting its audio output to the head unit audio input. CarService will manage to switch-on audio input when making or receiving call. Using this method, it will be possible to stream music from Phone by switching-on audio-input with a widget button.
Improvements:
- Restart service when leaving sleep mode
- Start service earlier on boot and be able to use SWC controls as soon as possible
- Be able to customize actions on SWC button by starting a Tasker script
- Visibility of phone status notification icons configurable.
... and more
When it will be ready, this version will be available on Play Store at cheap price and a trial period.
UPDATE: On my Todo-list:
- Support for players : AIMP, Pandora, Player Pro, Rocket, DSub, Napster, Slacker, MTC Radio, MTC Music, Rhapsody, Pocket Casts, Wavesink (DAB+)
Player does not react
Hi,
i tried your app on my head unit (kgl rk3188 1024x600, i think). After setting it up, i can see the "next" and "previous" toasts pop up, but google play music doesn't react. Do i need to have my head unit rooted? Or is there something else i could have missed?
dschiesu said:
Hi,
i tried your app on my head unit (kgl rk3188 1024x600, i think). After setting it up, i can see the "next" and "previous" toasts pop up, but google play music doesn't react. Do i need to have my head unit rooted? Or is there something else i could have missed?
Click to expand...
Click to collapse
No need to root.
Do you have another player installed ? (like poweramp or another one)
Is "Spotify control" parameter unchecked in the settings ?
Also, Google Music has to be the default player.
KeiserSozeyFr said:
No need to root.
Do you have another player installed ? (like poweramp or another one)
Click to expand...
Click to collapse
I have an Podcast Player (pocket cast) installed.
Is "Spotify control" parameter unchecked in the settings ?
Click to expand...
Click to collapse
I tried it checked and unchecked
Also, Google Music has to be the default player.
Click to expand...
Click to collapse
How do i make it the default player?
dschiesu said:
How do i make it the default player?
Click to expand...
Click to collapse
Try with XposedMTC mod :
http://forum.xda-developers.com/showthread.php?t=3247910
I don't know how to do it more easilly
Please as support for Slacker Radio.
Sent from my Nexus 5 CAF using Tapatalk
xluisx said:
Please as support for Slacker Radio.
Sent from my Nexus 5 CAF using Tapatalk
Click to expand...
Click to collapse
It's in my ToDo list already !
Amazon music
Hi, Could you add Amazon music app?
Thank you
Great app, however i've got 1 problem i'm trying to fix.
Am using poweramp as my player, and Carservice controls it fine.
When I switch to Radio, Poweramp stops playing, however when I turn off the car, next time I start the car, the radio app starts, and Poweramp starts in the background and plays where it left off.
Any ideas on how to fix this? I can probably create a llama profile to work around it, but thought it might be a very simple checkbox i'm missing or something.
Syphe said:
Great app, however i've got 1 problem i'm trying to fix.
Am using poweramp as my player, and Carservice controls it fine.
When I switch to Radio, Poweramp stops playing, however when I turn off the car, next time I start the car, the radio app starts, and Poweramp starts in the background and plays where it left off.
Any ideas on how to fix this? I can probably create a llama profile to work around it, but thought it might be a very simple checkbox i'm missing or something.
Click to expand...
Click to collapse
Did you activate auto-play on Poweramp app or on CarService ?
How is the "new version" coming along? if you need a beta tester i'll help out, no problems
KeiserSozeyFr said:
Did you activate auto-play on Poweramp app or on CarService ?
Click to expand...
Click to collapse
It's disabled on both, so not sure what is causing it to start.
Syphe said:
It's disabled on both, so not sure what is causing it to start.
Click to expand...
Click to collapse
Maybe Startup Builder App ?
Cheers, turned it off there, now it doesn't auto start, so time to figure out how to get it auto playing *only* when it is in focus
Hello,
does vocal commands for phone call/music playback work?
Thanks
Fabien
fabien_m2002 said:
Hello,
does vocal commands for phone call/music playback work?
Thanks
Fabien
Click to expand...
Click to collapse
Vocal commands will work only for call, using "Ok Google" feature
EDIT - i just read the post for your new release and it looks like you are addressing everything here.
i have a newer model deck i just got, it has a different letter combo than the ones on the wiki and is made by eonon. Same quad core cpu as the others and your program worked with some fumbling with the settings: with the default ones the buttons did very odd things, i had to turn off some options and got them working!
A few things i meant to ask about:
1) when i turn off ignition but deck only goes into standby, when it comes out of standby the service is off and i need to re-enable it. I'm planning on doing a tasker profile to fix this, not sure if you were aware of this or if anyone else has this bug.
2) If you have a phone connected the buttons will still control spotify in my case, but it will start making my phone stream as well through the bt app, so they are both playing music and being controlled at the same time, a fix for that is i disabled media playback on my phone. Pretty sure a proper one requires a modified bt app since its clearly poorly written if it cant detect something else is playing music.
3) The service loads last on boot, which is normal since its not registered as a system service But it kinda sucks and it would be great if it could be made to load as system and have priority. I havent played around with android code in a while, i remember there was a way to do this, wondering if you know how? When i did it i wrote my service in C in NDK and I had it registered to start on boot, i remember you can add it to a file, i have not touched the SDK much so not sure how that works out, but it should be similar.
Otherwise great job! Thanks for creating this.
I have small problem with CarService.
When i turn Phone Status OFF, after next boot it's ON again.
How can i permanently disable Phone Status? I need only SWC/Music
You need to turn it off in the subsection for Phone Status settings, not just the top level menu. This caught me out too

[XPM] MTC-Keys Button remapping tool - by MVG-V70

Malaysk said:
++++ Added a module for Xposed from MVG-V70 with Russian Forum (I thank him very much for the good job) mtc-keys, which allows action to remap the buttons radio.
Click to expand...
Click to collapse
Very nice addition. One less thing on my plate now
I hope MVG-V70 doesn't mind, but for those here that don't have 4pda.ru accounts, I've downloaded the file and attached it here.
It requires a text file named mtc-keys.ini located at /sdcard/mtc-keys/ that contain remapping definitions. From the original post (translated by google):
The configuration file must be a redefinition of the buttons on the inside of the map (/ mnt / sdcard or / mnt / internal_sd depending on the version of Android) in the catalog mtc-keys and called mtc-keys.ini
file to download happens when you start the radio.
Example mtc-keys / mtc-keys.ini
app_51 = ru.yandex.yandexmaps
Click to expand...
Click to collapse
Just in case people aren't clear, this is not my work. I'm just resharing it for those not on malaysk's roms and want to try it out.
jacekruf said:
Im still trying to fight with this mtc-key setup.
Dmesg showing only that key was press and that is screen below is from xposed log.
I just want to change one key from DVD to MXplayer pro.
Module is working fine, xposed as well file is looking good but every time i press DVD button all i got is standard dvd player.
Help.
Click to expand...
Click to collapse
I had a difficult time myself getting this to work. I looked high and low, and found a little bit of information here and there. So I complied everything I found and put together this tutorial. Hopefully this helps.
mtc-keys 2.5 from developer MVG-V70 on 4pda.ru (a russian site)
Must have access to root
Need to install:
Exposed framework
CarService
AppInfoViewer
mtc-keys 2.5
A root browser
Download and install mtc-keys 2.5
Create the folder (mtc-keys) (no uppercase letters)
The folder must be located in one of the following spots depending on the version of andriod. **It will not work if the mtc-keys directory is in the wrong place**
/mnt/sdcard/
/mnt/internal_sd/
/mnt/external_sd/
To discover the buttons keycode open CarService - clear the log and press a button, its keycode will appear
To discover package name download AppInfoViewer
Create the text file mtc-keys.ini within the folder mtc-keys folder
i.e.
/mnt/external_sd/mtc-keys/mtc-keys.ini
a four line mtc-keys.ini example: (all lowercase)
app_84=com.clearchannel/iheartradio.controller
app_42=com.opera.mini.native
app_3=com.microntek.bluetooth
action_45=apps
MTC Instructions taken from 4pda.ru site:
app_xx = package name
xx-button code, the package name, the name of the package installed program. eg: app_42 = ru.yandex.yandexmaps on the DVD is assigned to the program Yandex If you press when you run the program is already running, it is inactive.
activity_xx = name of the package / class name
xx-button code, the package name, the name of the package installed program, the class name, the full name of the class Activiti.
We aktiviti triggered should be set sign exported = "true", or the present list Navi button is assigned to the call of the main window ES-Explorer.
action_xx = action
xx-button code, the effect is one option from the list: home, menu, back, apps, screenshot.
eg: action_51 = apps button Navi is assigned access the list of applications.
intent_xx = intent
sending broadcast Intents.
event_xx = button code
MY CAR BUTTON MAP
Leftside;
DVD = 42
TV = 73
RADIO = 43
MEDIA = 84
LEFT KNOB/ PUSH = 4
LEFT KNOB CLOCKWISE = 19
LEFT KNOB CCW = 27
Rightside;
PLAY/PAUSE = 3
TRACK DOWN = 45
TRACK UP = 46
NAVI = 51
RIGHT KNOB PUSH = UNDEFINED
RIGHT KNOB CLOCKWISE = 59
RIGHT KNOB = 58
a four line mtc-keys.ini example:
app_84=com.clearchannel/iheartradio.controller
app_42=com.opera.mini.native
app_3=com.microntek.bluetooth
action_45=apps
This changes the behavior as such:
DVD = 42 = OPERA
TV = No change
RADIO = 43 = No change
MEDIA = 84 = IHEART RADIO
PLAY/PAUSE = 3 = BLUETOOTH
TRACK DOWN = 45 = RECENT APPS
TRACK UP = Nochange
NAVI = No change
Hopes this sheds some light.
---------- Post added at 03:23 PM ---------- Previous post was at 03:08 PM ----------
dranny69 said:
Hi I would like some advice if possible , i have just got my steering wheel controls working and i have mapped the volume buttons and track up and down buttons . the volume control is working fine and the skip track buttons are working fine on the stock music player but on any other music player skip track buttons do not work ? is there a music player that is better than the poor stock one that will work with the track up/down buttons ? thanks
Click to expand...
Click to collapse
Try:
http://forum.xda-developers.com/and...app-modding-radio-music-movie-kld-jy-t3217197
It is better, don't know if it will work for you.
forum.xda-developers.com/showthread.php?p=63615305&highlight=mtc-keys+2+5#post63615305
Mtc-keys 2.5 from developer MVG-V70 on 4pda.ru (a russian site)
Must have access to root
Need to install:
Exposed framework
CarService
AppInfoViewer
mtc-keys 2.5
A root browser
Download and install mtc-keys 2.5
Create the folder (mtc-keys) (no uppercase letters)
The folder must be located in one of the following spots depending on the version of andriod. **It will not work if the mtc-keys directory is in the wrong place**
/mnt/sdcard/
/mnt/internal_sd/
/mnt/external_sd/
To discover the buttons keycode open CarService - clear the log and press a button, its keycode will appear
To discover package name download AppInfoViewer
Create the text file mtc-keys.ini within the folder mtc-keys folder
i.e.
/mnt/external_sd/mtc-keys/mtc-keys.ini
a four line mtc-keys.ini example: (all lowercase)
app_84=com.clearchannel/iheartradio.controller
app_42=com.opera.mini.native
app_3=com.microntek.bluetooth
action_45=apps
MTC Instructions taken from 4pda.ru site:
app_xx = package name
xx-button code, the package name, the name of the package installed program. eg: app_42 = ru.yandex.yandexmaps on the DVD is assigned to the program Yandex If you press when you run the program is already running, it is inactive.
activity_xx = name of the package / class name
xx-button code, the package name, the name of the package installed program, the class name, the full name of the class Activiti.
We aktiviti triggered should be set sign exported = "true", or the present list Navi button is assigned to the call of the main window ES-Explorer.
action_xx = action
xx-button code, the effect is one option from the list: home, menu, back, apps, screenshot.
eg: action_51 = apps button Navi is assigned access the list of applications.
intent_xx = intent
sending broadcast Intents.
event_xx = button code
This might be related a little to this thread, we went from needing a forum to maybe having too many forums haha. There's a way to flip the direction of your up / down in the factory settings, correct? Which setting is that exactly, I can't tell by the labels.
Thanks to everyone above who has posted about the mtc-keys module.
I am gradually getting things to work how I want and have been able to successfully remap my "MEDIA" button to launch my preferred music playing app.
Now a few more issues have come up. I can't work out how to get the play/pause, skip forward and skip back buttons to work in the music app I am using. I have worked out the key codes using CarService but I dont know how to write the entries in the .ini file to use these functions in the app. Any one have any ideas how to do this. I assume it will use the activity_xx or action_xx parameter but how can I find out what these are from my music app (currently trying out Mixzing).
Also, with the stock apps if you were in music player and pushed the radio button (called BAND on my head unit) it would close the music app and open the radio and you wouldnt get both playing over each other. Similarly opening the music app would close the radio. This no longer works, so is there a way I can get it to terminate or close the music app if I push radio button or terminate radio if I launch the music app?
I have searched this a fair bit and havent come up with much and the original post being in Russian isnt helping.
Any help or advice anyone is willing to provide would be most welcome.
Kind regards,
Steve
WestlakeSt said:
Any one have any ideas how to do this. I assume it will use the activity_xx or action_xx parameter but how can I find out what these are from my music app (currently trying out Mixzing).
Click to expand...
Click to collapse
It depends on how that media player expects commands to come to it. Some use the generic Android media intents, others use app-specific intents. The easiest way to find out is to send generic android intents from a shell (or Terminal). If it responds, then you're good. You can also try sending keyevents for specific keys, and see if it responds to those.
agentdr8 said:
It depends on how that media player expects commands to come to it. Some use the generic Android media intents, others use app-specific intents. The easiest way to find out is to send generic android intents from a shell (or Terminal). If it responds, then you're good. You can also try sending keyevents for specific keys, and see if it responds to those.
Click to expand...
Click to collapse
Hi agentdr8. Thanks for your help (here and in the other thread ). I have now started using Poweramp and the play/pause, next track, prev track hard buttons work fine without any need to use mtc-keys.
Can the MTC-keys make that:
I would like to use radio and Poweramp app by pressing hard button rotatory.
- When I listening poweramp and press the Radio button, will be the result: radio start and Poweramp app killed. I made this with rules of LLama app.
- When I listening Radio and press the Media (Poweramp) button, will be the result: Poweramp start and Radio app killed. I didn't kill radio app with Llama app.
A quick question: since malaysk's latest ROM update, I have to press TWICE a key to work AFTER REBOOT. After that, it works if I press only once, but right at the first keypress, I have to press it two times to work.
Any key.
Any idea what could that be?
robertut said:
A quick question: since malaysk's latest ROM update, I have to press TWICE a key to work AFTER REBOOT. After that, it works if I press only once, but right at the first keypress, I have to press it two times to work.
Any key.
Any idea what could that be?
Click to expand...
Click to collapse
I was experiencing that with the stock firmware and still experiencing it now that I'm on Malaysk ROM. However I have noticed that sometimes if I wait a while I don't need to press it twice. So it might be a overworked or working processor problem.
I guess it's good to see someone else with the same issue.
tmiller101 said:
I was experiencing that with the stock firmware and still experiencing it now that I'm on Malaysk ROM. However I have noticed that sometimes if I wait a while I don't need to press it twice. So it might be a overworked or working processor problem.
I guess it's good to see someone else with the same issue.
Click to expand...
Click to collapse
I also experience this issue and I am using stock rom which is now rooted. I have also found like tmiller101 that if you leave the unit for a bit after first booting it doesn't need to two presses to the start to function normally. Could it be something needing to load in the background after boot for the hardware buttons to function???
Its a bit odd but doesn't bother me to much luckily.
How to disable activity?
I'm trying to replace my play/pause button function with bluetooth app like this:
app_3=com.microntek.bluetooth
It starts the bluetooth app, but it also starts playing the music through it, and also starts Music player app in the background ocasionnaly. I don't want any of that.
All I need is to start the Bluetooth phone app, in order to make calls. Just like I was able to remap DVD button to something else.
Any idea?
Tried the Carservice app on my KLD rom. Crashed when I hit clear log, and never shows any key codes.
Need to get this working as my radio has NO hardware home or back button, and trying to swipe from the top is almost impossible thanks to the raised bezel.
lotherius said:
Need to get this working as my radio has NO hardware home or back button, and trying to swipe from the top is almost impossible thanks to the raised bezel.
Click to expand...
Click to collapse
Try using Terminal and run:
Code:
# logcat | grep mtc-keys
And then try pressing the hard buttons you do have. It should print out their keycodes.
Got it working, thanks. Simpler than the instructions made it seem.
Hi all,
Thanks for all info on this great app. I would like to change two of my hard key settings:
I would like to change my EQ setting to instead of cycling through the default EQ profiles , to take me to the fader screen inside of amp settings.
I would also like to change my SETUP button to cycle between the (a) Setup screen and (b) as if pressing the Home button.
I have logged my buttons as 49 for EQ and 74 for SETUP. And I think I want action commands. But I am not sure what is the action to get to the fader screen within the Amp settings; i.e. action_49 = [??]
And I am not sure if I can cycle by pressing a button more than once, or what is the setup screen command to insert? i.e. action_74 = home [but then ??]
Help much appreciated!
But at this point I am a bit stuck as I do not know how to tell what command would take me to the the fader screen or is the
Mr Bigglesworth said:
And I am not sure if I can cycle by pressing a button more than once, or what is the setup screen command to insert? i.e. action_74 = home [but then ??]
Click to expand...
Click to collapse
I don't think mtc-keys can cycle between different actions/apps/activities from a single remapping.
As for the Poweramp EQ, you'll need to figure out what the activity is named within the package. Give Package Explorer a try and see if it lists the activity. Then use that in mtc-keys.ini as activity_##=package_name/activity_name
ktibor69 said:
Can the MTC-keys make that:
I would like to use radio and Poweramp app by pressing hard button rotatory.
- When I listening poweramp and press the Radio button, will be the result: radio start and Poweramp app killed. I made this with rules of LLama app.
- When I listening Radio and press the Media (Poweramp) button, will be the result: Poweramp start and Radio app killed. I didn't kill radio app with Llama app.
Click to expand...
Click to collapse
Yes you can. From my recent experience shouldnt need LLama app.
First you need to find out the key codes of the hard buttons you want to use with the CarService app.
Install XposedMTC and in this app's settings change the preferred music app to Poweramp
Add the following lines to your mtc-keys.ini file (replacing xx with the code for the hard button you want to use)
activity_xx=com.dr8.xposedmtc/com.dr8.xposedmtc.activities.Music
activity_xx=com.dr8.xposedmtc/com.dr8.xposedmtc.activities.Radio
Good luck
WestlakeSt said:
Yes you can. From my recent experience shouldnt need LLama app.
First you need to find out the key codes of the hard buttons you want to use with the CarService app.
Install XposedMTC and in this app's settings change the preferred music app to Poweramp
Add the following lines to your mtc-keys.ini file (replacing xx with the code for the hard button you want to use)
activity_xx=com.dr8.xposedmtc/com.dr8.xposedmtc.activities.Music
activity_xx=com.dr8.xposedmtc/com.dr8.xposedmtc.activities.Radio
Good luck
Click to expand...
Click to collapse
I tried your solution.
I edited my used mtc-keys.ini, but now does't work the MTCkey function. I'm using version 1.2. Until I used perfectly mtckey function: DVD button was remapping to iGo.
I did only: I made new mtc-keys.ini file and replaced the old mtc-keys.ini file and reboot the HU.
What did I do wrong?
Edit: In the morning the MTC-keys function is work well.
But the offer solution doesn't work (rotary radio/poweramp).
Did you try your solution? Which version of the MTC-keys did you use?
Edit2:
I installed the latest v2.6 MTC-keys. And now your solution works perfectly.
Many thanks!
agentdr8 said:
I don't think mtc-keys can cycle between different actions/apps/activities from a single remapping.
As for the Poweramp EQ, you'll need to figure out what the activity is named within the package. Give Package Explorer a try and see if it lists the activity. Then use that in mtc-keys.ini as activity_##=package_name/activity_name
Click to expand...
Click to collapse
So I was playing around with mtc-keys, found a couple of interesting things.
You can cycle in a limited fashion, e.g. I had:
"action_74 = home
action_74 = apps"
And this worked as cycling between home and apps depending on what was last pressed.
I then tried:
"action_74 = home
app_74 = com.android.settings"
And this didn't work - it would only go to the settings menu. So it seems that when you select two 'actions' it can cycle, but when you mix an 'action' and an 'app' it wouldn't work. It also doesn't cycle if you have several apps to the same key - it just seems to use the last set app.
Also - does anyone know how a quick way to restart mtc-keys without switching off and on the unit (as it is taking me ages to try different permutations otherwise!).

Categories

Resources