yashsingh1/xdaforums huggingface dataset:
[MTCD Software Development] f1x:
You can set a long press action of the key in factory settings. Then, if you perform a long press of the desired key, it will be recognized by MtcdTools as a separated key press. So yes, it is possible but first you must set "long press behavior" of the desired key in factory settings.

Also MtcdTools supports keys sequence. During procedure of the binding (when you are binding previously created item (action, actions sequence, list, mode, etc.) you can press desired key e.g. two times. Then to execute a bound item just repeat the sequence (e.g. press desired key two times). In settings you can adjust the "key press speed" - gap between next key press.
[MTCD Software Development] feddmi:
Thank you. Set long press factory settings, now the program sees a long press. Set up long press for fast rewind in poweramp but not working.
[MTCD Software Development] f1x:
I am not sure whether Poweramp supports android media key presses for rewind and fast forward. I found this page which describes some poweramp API. According to the mentioned page, try to declare following Start Activity Actions and bind them to the desried keys sequence:
[MTCD Software Development] feddmi:
not work
[MTCD Software Development] feddmi:
On the website I got this code

am startservice -a com.maxmpz.audioplayer.API_COMMAND --ei cmd xxx

where xxx = 2 - STOP, 1 - PLAY

how I can use?
[MTCD Software Development] f1x:
MtcdTools 1.6 has been released.

Useful Start intent actions to control Poweramp:

More info about controlling of the Poweramp can be found here.
[MTCD Software Development] johno966:
Fantastic work.

Does 1.6 now allow us to start play of poweramp at boot?
[MTCD Software Development] f1x:
Yes, it is possible even as of 1.5. Here is short tutorial how to do this:

1. Create a Launch Action to start Poweramp (if you do not have one yet).

2. Create a Key Action for KEYCODE_MEDIA_PLAY (if you do not have one yet).

3. Create an actions sequence and add actions in below order:

3.1. Your action to launch Poweramp

3.2. You action for KEYCODE_MEDIA_PLAY. Set delay to ~10000ms (drag the seek bar) - Poweramp needs some time to launch after bootup.​

4. Go to "Manage Autorun" and add your previously created sequence.

Also you can bind this actions sequence to the desired keys sequence if you want to launch poweramp playback automatically after desired keys sequence press.
[MTCD Software Development] johno966:
Brilliant. Thanks f1x. Your a star. ?
[MTCD Software Development] feddmi:
Please tell me. After the release of Android Auto from sleep mode, run the startup script? Or only when enabled?
[MTCD Software Development] f1x:
Only after boot up.
[MTCD Software Development] f1x:
Let me know if it works for you. I tested in on my phone and for me it does not work as expected with KEYCODE_MEDIA_PLAY.

If for you it does not work as well, instead of a KeyAction with KEYCODE_MEDIA_PLAY try to create Start Intent Action with following parameters:

then add it to the sequence after launch action of Poweramp. Do no forget to add delay ~10000ms for your play action.
[MTCD Software Development] johno966:
f1x thank you so much for your hard work and replies. I didn't get round to trying your suggestion as I stumbled on a different way to get my music playing. I hope the following helps others to get up and running how they want.

Had a bit of a mess around today so that I could get my HU running as I want it.

I have CarLauncher set as my home. Looks more OEM.

I wanted to have my music played through PowerAmp and to start playing at boot.

I also like to have TorquePro displayed whilst driving. Yes I know that this can be set to auto start at boot but I find that having too many Apps starting at the same time can cause the HU to lock up.

MtcdTools has allowed me to get round this.

Using the below procedure, my system first boots up, then starts PowerAmp, resumes play of music, then launches TorquePro.

First of all go into PowerAmp – Settings – Audio – Audio Focus – and tick ResumeOnStart

1. Launch MtcdTools

2. Select CREATE A NEW ACTION

3. Select CREATE A NEW LAUNCH ACTION

4. Choose your APP and SAVE

5. Repeat steps 3 & 4 to add further apps

6. Back to main menu

7. Select CREATE A NEW ACTION SEQUENCE and give it a name i.e. START UP

8. Select required APP from dropdown then select ADD OBJECT

(Add apps in required start order & set delays to allow for loading time)

9. Select SAVE

10. Select MANAGE AUTORUN

11. Add previously saved ‘STARTUP’ from dropdown

12. Select ADD OBJECT

To change delays afterwards select MANAGE OBJECTS then ‘STARTUP’

I have set PowerAmp at 0ms and TorquePro at 2000ms

I binded a spare key to launch CarLauncher which effectively becomes a HOME key.
[MTCD Software Development] feddmi:
Rewind works in poweramp. Thank you. Could you add a function to an action. While the button is pressed the action is performed (start forward) releasing the button performs a different action (stop, rewind)

button pressed - 1 action. let go of the button - 2 action
[MTCD Software Development] f1x:
[MENTION=2345552]johno966[/MENTION], thanks for the tutorial :). I think it will be very useful for other users.

You can use an actions sequence for this purpose. First add an action for start rewind, then add an action for stop rewind with delay e.g. ~3000ms.

Second way is to use keys sequence. Bind start rewind to the desired key press and stop rewind to the desried key double press (during key binding of stop rewind action, press desired key twice).

Third way is to use the MODE feature. Create an MODE list and insert into it start rewind and stop rewind. Then bind it to the desired keys sequence. Then it will toggle between start and stop rewind.

In case of our devices is not possible to detect when key is released. MCU sends event only when key is pressed.
[MTCD Software Development] feddmi:
Configured everything works fine. Thank You Very Much. Tell me to youtube you can bind to switch video?
[MTCD Software Development] f1x:
Great. NP.

Yes, it is possible to switch to next/prev/toggle play video but you have to play a YouTube playlist.
[MTCD Software Development] feddmi:
tell me what to write in intent
[MTCD Software Development] f1x:
Actually, it is not the matter of an intent. YouTube has two modes of playback. First one, let's say "free mode" when you are playing a single video, and second one when you are playing a playlist. In case of playlist you are able to use next/prev/toggle play.
[MTCD Software Development] feddmi:
it is possible an example?
[MTCD Software Development] f1x:
Single video: https://www.youtube.com/watch?v=5bt7kAVxKfs

Playlist: https://www.youtube.com/watch?v=5bt7kAVxKfs&list=RD5bt7kAVxKfs
[MTCD Software Development] aarick:
Any reason why this won't work on the new PX5 units? is it cause of Marshmallow?

I can't seems to detect any button pressed.
[MTCD Software Development] gotes:
Hi. Is it possible to map to KEYCODE_VOLUME_UP and KEYCODE_VOLUME_DOWN? I only have media control keys (play, pause, stop, next etc) available in the list of key codes in MtcdTools. Also there is no setting to configure the volume up/down control in the system settings.
[MTCD Software Development] ccaparli:
Read all the pages but cant find an answer to my question.

poweramp has folder up or down option when bluetooth or cable remote next/prev button pushed twice or triple. I lowered the key press time and delay in mtcdtools but cant make this function work. Any suggestions?
[MTCD Software Development] aeonfluxcapacitor:
Also hoping this can eventually get answered (or fixed) in regards to PX5 units.

My HotAudio HU comes with a SWC app installed and it also can't detect any button presses. Imagine the two are related. Not sure why they shipped it with that app or if it only works on certain cars/models.
[MTCD Software Development] SlugBoy7691:
is there any way to get an app to start on the devices 'quick start up' when the car hasnt been turned off for long enough so the android boot up screen shows and it just continues from where you were
[MTCD Software Development] makes2068:
Want to do ...

Erisin 3015 head unit. Right upper scroll wheel can skip track with original player.

Like this using with poweramp.

Or is this only for steering weheel buttons?

Not knowing how to handle the MTCD tool-programm.

Please help me ;)

My thoughts:

Create a key with "Forward" and "Rewind"

Create a binding? with the wheel?

How to connect this to poweramp?
[MTCD Software Development] timurlan75:
Hello! Help configure"Mode Key". As in the settings "Mtc-manager Xposed"

# List of switched applications, package names must be listed

[Apps]

# Native radio

Com.microntek.radio

# PowerAmp

Com.maxmpz.audioplayer

# Native music

# Com.microntek.music

# Nativer video

Com.microntek.media

# Closing of the regular application Radio

[Com.microntek.radio:stop]

# Name of the intent

Intent = com.microntek.bootcheck

# Parameter name

Extra = class

# Parameter value

Value = mode

# Closing the regular Video application

[Com.microntek.media:stop]

# Name of the intent

Intent = com.microntek.bootcheck

# Parameter name

Extra = class

# Parameter value

Value = mode

# Closing the regular application Music

[Com.microntek.music: stop]

# Name of the intent

Intent = com.microntek.bootcheck

# Parameter name

Extra = class

# Parameter value

Value = mode

# Playback in PowerAmp

[Com.maxmpz.audioplayer: start]

# Service name

Service = com.maxmpz.audioplayer.player.PlayerService

# Name of the intent

Intent = com.maxmpz.audioplayer.API_COMMAND

# Action: startService

Send = service

# Parameter name

Extra = cmd

# Parameter type

Extra_type = int

# Parameter value

Value = 3

# Turning off the play in PowerAmp

[Com.maxmpz.audioplayer: stop]

# Service name

Service = com.maxmpz.audioplayer.player.PlayerService

# Name of the intent

Intent = com.maxmpz.audioplayer.API_COMMAND

#startService action

Send = service

# Parameter name

Extra = cmd

# Parameter type

Extra_type = int

# Parameter value

Value = 2
[MTCD Software Development] feddmi:
Tell me how to register in the program of double the value of the Extras

Intent action: com.maxmpz.audioplayer.API_COMMAND

Intent package: com.maxmpz.audioplayer

Class name: com.maxmpz.audioplayer.player.PlayerService

Intent extras: {"cmd": 20}

Intent extras: {"pos": 15}

Data: {file:///storage/emulated/0/Music/Patti Smith/02_Horses/01_Gloria.mp3}
[MTCD Software Development] f1x:
If you have more than one extra then you should separate them by a comma, accordingly to your data it will be:

Intent extras: {"cmd":20, "pos":15}
[MTCD Software Development] Oblivious_89:
hi to all, for first i want to thank you all for all the info i've got from this forum.

i have buyed a ERISIN erisin es3063c for my mercedes w209, and i have some issues about using steering wheel.

when i use steering wheel button work great with default radio app, but with any media player (including default media player) works only vol + or vol -

anyway in "steering wheel control study" doesn't appear any button for setting up

using this app can i fix these kind of trouble? if it's good, someone can explain me how to using this app.

sorry guys but i'm very noob, and so sorry for my bad english!

hope someone can help me :rolleyes:
[MTCD Software Development] Floston:
Hello

Can the program solve the problem with the Powermamp (v2.0.10-build-588): after returning from sleep mode, HU does not want to continue playing the track in PowerAmp?

p.s. MTCD MX 2.40_1
[MTCD Software Development] Floston:
After installing version 1.6 - in any application menu pops up an error.

MCU MX 2.40, android 6.0.1
[MTCD Software Development] danielloe:
i think mtcdtools is specially for 5.1.1 not for 6.0.1

i have 1.6 on 5.1.1, works perfectly
[MTCD Software Development] vttland:
Hello

Have you resolve your problemes ?

I have same issue.
[MTCD Software Development] hans.vinkers:
I see in your picture that you have an arrow in the car display ?? is that from the android headunit ?? i had this with my RNS510 on the maxidot mfd on my seat leon 1p 2008. Now with the android headunit the maxidot mfd is not really a useful extra anymore.
[MTCD Software Development] Geniee33:
I dont know what to do with this tool, im a n00b and just want skip forward / back inside whatever current app i have open, and not the native music app.

So if i have jetAudio Plus open, how would i set that up, currently if i am using jetAudio Plus, and i press skip on the steering wheel, its skipping on the native music app and creating confusion.
[MTCD Software Development] Geniee33:
I figured it out. might have to write a guide on "a n00bs experiance to mtcdtools with pictures" to add next to my recovery guide thread.
[MTCD Software Development] elmo_fatz:
That would be nice, i also struggle with some issues,... I just wanted to change the button assignment with jetaudio, that worked 80% , but from time to time the standard music player opens too.....
[MTCD Software Development] Sassokee:
Does this work on PX5 units? My car has a CANBUS, I can't remap the steering wheel buttons through the stock SWC app, I was wondering if the MTCDTools would allow me to do that. Thanks
[MTCD Software Development] f1x:
MtcdTools works only for PX3. PX5 is not supported.
[MTCD Software Development] Sassokee:
Any plans to get it to work on the PX5 platform?

Thanks
[MTCD Software Development] f1x:
Unfortunatelly there is no plan to add support of PX5. It requires physical access to the device (for debugging and testing) but I won't spend any single coin for this crappy chinese Head Units anymore :).
[MTCD Software Development] greg_z:
Anybody knows how to start PcRadio with play without pressing button? I managed to do make it on phone with tasker but no luck with mtcdtools. Trigger should be PCRadio app and action play. Thanks
[MTCD Software Development] greg_z:
Ok it doesn't matter now. I just updated pcradio and there is option for auto play
[MTCD Software Development] msj33:
Any idea if this app is working with Tidal? - I want to get my physical car buttons(prev,next, play/pause) working with this app including navgiating to Tidal with the Wheel-button.

/Morten
[MTCD Software Development] Asterber:
Will this app support head units by joying on intel sofia3g and android 5.1.1? I use it on other car, and I very like it. But I bought in my car new on intel and can't get it work:(.
[MTCD Software Development] Soul Rebel:
Just donated! Thanks so much, works great for my Erisin ES4906B RK3188
[MTCD Software Development] msj33:
Just got this installed:)

Have a Seat Ibixa with a radio control "arm" - Only 3 buttons + wheel knob - (MODE, Volume Up and Volume down).

Hence the MODE button cannot be changed(Factory settings does not show or even react to pressingit) + I cannot change the default app list(Is this ROM specific?) - So i actually only have the wheel knob to play with :(

Have created a list of apps to navigate with the wheel and it seems to be working well - But then I am all out of keys now..........darn!

Anyone with a experience or good suggestions for a logic for settings App navigator + Next/Prev/Play/Pause functionality?

Concrete case is to open Tidal or TuneIn app and then just start playback - Or just toogle the playback/pause buttons on the Widget apps - What would suffice.

Thanks in advance

/Morten
[MTCD Software Development] f1x:
Yes, this is ROM specific/hardcoded.

MtcdTools supports key sequences. During binding procedure please press the desired key e.g. two or three times (there is no limit actually) and save it. Then, when you repeat the sequence, it should execute action which is bound to it. In MtcdTools settings you can adjust the "key press speed".

P.S. in keys sequences you can mix presses of different keys.

Create a launch action to start your app, then create a key action with KEYCODE_MEDIA_PLAY. Then create an action sequence, add previously created actions with below order:

1. Your action to launch app

2. Your action with KEYCODE_MEDIA_PLAY + add delay for e.g. 5s.

Then bind this sequence to the desired keys sequence.

Btw. If you have not disabled google play services and your device has access to the internet, you can use voice control feature builtin to MtcdTools.
[MTCD Software Development] msj33:
Thanks for your quick response :)

Is Malaysk in control og the hardcoded Button with his Custom ROM?

And is voice control supported om Microg edition og Malaysks ROM? (MicroG gives a very improved responsiveness of the head unit).

Think voice could be a choice over black og buttons.

Is there a way/how-to for extracting the actions/Buttons from an app or widget? (In case standard keycode media Buttons does not work)

/Morten
[MTCD Software Development] msj33:
Damn this is not easy!.

One thing is to launch an APP and get a menu of apps up and running in MTCDTOOLS = EASY!

But I cannot get the APP to react to any Media buttons! - So only half way there.........

Can someone PLEASE post a How-To guide or something which could assist with something really simple needs like this

Tidal:

Start the app DONE

Get it to play instantly!

TuneIn Radio

Start the app DONE

Either play latest Radio station or a pre-defined one (The Autoplay within the app is useless! - when ever you close the app you've lost the feature)

Google Maps

Open the app DONE

Start direction instantly to your favorite locations - Example: Home or work

I tried looking for intents - but I have no clue where to start, and if it is even possible to do through these event...........I'm a noob in this area!

WAF is quite low, hence the Widgets are small and buggy and navigating the apps and small buttons are quite risky when driving!

Thanks in advance

/Morten
[MTCD Software Development] Nomader0:
We would appreciate it if you decide to support Px5.. buying a PX5 and having to deal with the absence of mtcdtools, is a deal breaker. Specially us with canbus that have no other way to customize swc
[MTCD Software Development] f1x:
[MENTION=3418391]Nomader0[/MENTION], I really appreciate that people like to use my app, but I do not see the reason to invest my private money and buy new PX5 unit where the only difference is more DRAM and a "bit faster" cpu. Even with faster CPU and more DRAM, the HU is still not effiicent to use in more advanced way like AndroidAuto. I am wondering why the manufacturer (MICRONTEK) did not add functionality of MtcdTools to the newest HUs - from the manufacturer POV it is just "few lines of code" (MtcdTools is open source). From my POV, the price of the PX5 HU is not adequate to the capabilities that it offers - I can assembly such unit for less than $150. It is responsibility of Microntek's developers to add support of Android Media Keys and other stuff provided by MtcdTools. Let's force them to be responsible for the money that they earn selling the HUs...

Btw. bluetooth in PX5 is the same crap as in PX3. It is really strange for me, because as of Lollipop (MTCC?!) Android has builtin support of A2DP protocol. It looks like developers of HUs (MICRONTEK) are to lazy to read the documentation and implement bluetooth in the right way.

Just to be honest - I do not want to help with earning money for manufacturer (MICRONTEK) who is not fair with their customers... (and the provided support is just "send the unit back...").

(I hope you will understand my POV)
[MTCD Software Development] Need4Camaro:
Does this work with Joying Intel Headunits?
[MTCD Software Development] Floston:
If you ask in the topic "Donate to me = need buy PX5 support" - probably users will help you

Similarly, did in the topic Malaysk software for PX5.

p.s. when can we expect a new release with my Russian / Ukrainian translation?
[MTCD Software Development] Nomader0:
I agree with everything you said.

Please add a note to donate so you can buy a PX5 board/unit. I will certainly donate. Your work is very important to the community.
[MTCD Software Development] f1x:
MtcdTools 1.6.1 with your translations has been released. Thanks.

Btw. As you suggested, I added note about donation to add support of PX5 units.

MtcdTools now works only for PX3 (RK3188) platform. Support of PX5 (RK3688) platform needs physical access to the PX5 device to make reverse engineering, development and tests. If you want to see MtcdTools working for PX5 HUs, please donate to me to help me with buying of the PX5 unit.
[MTCD Software Development] Nomader0:
Just donated. Thanks for your work.
[MTCD Software Development] Bows89:
Is there anything like this for the rk1188? Thanks.
[MTCD Software Development] f1x:
What device do you mean? I have never heard about rk118.
[MTCD Software Development] Floston:
Write in the first message how much you need to collect.
[MTCD Software Development] f1x:
I have checked the alliexpress offers. The cheapest PX5 head units with reasonable shipping time (up to 10 days) is cost around 312-330$. It would be great to collect ~300$. I added the indicator to the main post. We have the 10$ so far.
[MTCD Software Development] Mighty_X:
It would be really awesome if somebody who is already Pro with this tool makes a video to show the potential and how the setup works.
[MTCD Software Development] Nomader0:
F1x, if I may make a request. Can you make it that there would be an iron for a small sound too be heard when a command is finished. That would be helpful for long presses, to be able to know when to let go of the button.
[MTCD Software Development] Floston:
f1x

Do you have RK3188?

Maybe it will be easier for you to change the board PX3 to PX5 ~ $ 50 than the entire device ...
[MTCD Software Development] f1x:
Version 1.7 has been released. I added playback of a sound indication when bound keys sequence has been pressed. You can customize for which binding you want to hear the sound indication (it is disabled by default). It is available in Binding creation/manage activity.

If you want to enable sound indication for already created binding:

I used a stock sound from the Linux sounds collection, If you have any suggestion what sound would be better just let me know :).

[MENTION=8198358]Floston[/MENTION], I added a new text to the 1.7 version. May I ask you to check the correctness of the translations - I used Google Translate:

Russian:
<string name="IndicatePress">Воспроизведение звука</string>

Ukrainian:
<string name="IndicatePress">відтворення звуку</string>

Thanks.
[MTCD Software Development] Floston:
Russian - correct

Ukrainian - Not quite correctly, better so

<string name="IndicatePress">Програвання звуку</string>
[MTCD Software Development] Nomader0:
thanks mate, the sound on command works perfectly..

is there a way to make MTCD-tools load earlier on boot? just wondering
[MTCD Software Development] f1x:
It is Android dependent. MtcdTools just receive a broadcast message when boot is completed but when it will be send - only Android knows :).
[MTCD Software Development] lamsquirrel:
Is it possible to add a2dp app to mode list?

Or is there other ways to change radio/stock music player/a2dp, by pressing mode button?
[MTCD Software Development] Nomader0:
F1x, you have added code too prevent mtcd tools to work when mtc apps are running. Can you exclude the reverse cam app?
[MTCD Software Development] bm282:
Can I use this app to modify mode list on px5?

Hi,

I have a PX5-MTCD (KGL) head unit. I have mapped the steering wheel button to 'mode' using wheel key on the unit. This lets me cycle thru radio, video....etc with each press of the steering wheel button.

I read this app is for the px3 and you are waiting on getting a px5 to modify it.

However, I was wondering if the 'modify mode list' function of the app would work on my px5 unit so I can change the apps it cycles thru?

I don't want to do anything else.

TIA.
[MTCD Software Development] f1x:
Unfortunately, MODE list feature won't work on PX5.