[Android Apps and Games] p_mike83:
After a lot of work I am presenting you my app to do the following: modeswitch / Spotify Control from SWC, voice dial using Google now.

Requirements:

1. Huifei type (MTCB) head unit

2. Root

3. Mtc-keys module (thanks MVG-V70)

4. Headunit service ( thanks Petrows)

5. Android 4.4.4 ROM

6. True contacts app( download inside head unit service), and enter your contacts manually/ sync with Google account ,transfer or restore from phone

Features:

1. acts as HW Modeschwitch ( radio, music, DVD, Spotify)

2. when the apps of the Modeswitch are rotating the unused apps are mute/killed so only one app is playing audio

3. control Spotify using next/previous of the steering wheel buttons ( when opened Spotify using the Modeswitch)

4. it gives the option to disable DVD in the rotation, as many devices haven't DVD drive or because it needs time to load.

5. Navigation monitor: it gives the option to select your navigation program, or add its package name manually, and if its running it will launch it again after changing the mode.

6. it starts playing music automatically in Spotify ( if Spotify its opened through Modeswitch)

7. for devices lacking HW Modeswitch button: either you map an other button as Modeswitch or it can run as sw modeswitch ( as of now the latter will brake the spotify control functionality-- will try to fix it later)

8. Act as a bridge between head unit service from Petrows and Google now to do voice dialing.

Installation:

1. Install and activate MTC-keys ( see its threat for details)

2. Install and activate headunit service from Petrows, inside the app settings activate call from android and install true contacts app.

3. Sync or add contacts to the true contacts app

4. Reboot device

5. Install my app and run it

6. Give Root access to the app when you will ask to

Setup

On the first app launch, it opens app settings with following options:

A. Select to include DVD or not

B. Activate software Modeswitch (if its activated, running the app from app drawer will change the mode)

C. Enter the SWC button code of the Modeswitch button ( default is 2, you can map any other button as well)

D. Choose to monitor your navigation, choose one option or enter navi app package manually

E. Activate or disable voice dialing

F. SAVE SETTINGS

TO OPEN SETTINGS AGAIN ONCE THE SETTINGS ARE SET DELETE APP DATA (ANDROID SETTINGS->APPS->MODESWITCH->DELETE DATA) and rerun the app.

6.

ONLY IF YOU HAVE A MODESWITCH BUTTON OR WANT TO MAP AN OTHER ONE BUTTON TO ACT AS MODESWITCH:

edit mtc-keys.ini and add this line:

app_XX = com.myapp.modeswitch

XX is the value of modeswitch button code you entered in my app settings, default is 2

How it works:

1, To change mode, just press the modeswitch button (or run the application if you selected software mode in the settings)

2, To make a call: open google now, and say : call "contact name"

Bugs:

1. there is a nag screen if you do a voice call (mobile network is not available) but it doesn't affect the app, so for now it left there.

2. You tell me....:)

Thanks to:

Petrows (headunit service)

MVG-V70 for MTC-Keys [MENTION=1298639]talalalal[/MENTION] for the voice dialing

and everyone that helped me

Download:

https://mega.nz/#!cxhUjQbQ!E3rUK6HyR4ERU9Fc4d41syM1oP45EMDKTbmOwf5OiFg

XDA:DevDB Information

Modeswitch, App for Huifei (MTCB) Head Units (see above for details)

Contributors

p_mike83

Version Information

Status: Beta

Current Beta Version: 1.0

Created 2016-02-07

Last Updated 2016-02-07