[MTCB Android Head Units Q&A] 1-2-Hak:
- add delay to power down. * Havent found a way is software yet. It looks like a capacitor in the radio - maybe a bigger capacitor?

- custom apps to mode switch - maybe possible ( i dont have mode switch on mine to test) but decompiled code below suggests its possible to call thenm

I am using apkmultitool to decompile and then editing the smali code and recompiling (options 9 and 11)

I use apkstudio to decompile the apk to see the java version of the smail (it wont recompile this so dont even try ) This helps to work out what the smali is actually doing

private void ModeSwitch() {

final String parameters = this.am.getParameters("av_channel=");

final String parameters2 = this.am.getParameters("cfg_dvd=");

if (parameters.equals("fm")) {

if (!parameters2.equals("0")) {

if (this.startDVD(1) == 1) {

this.mToast.setText((CharSequence)"DVD");

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 2;

}

else {

if (this.startMusic(null, 1) == 1) {

this.mToast.setText((CharSequence)this.getString(2131165197).toString());

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 3;

}

}

else if (parameters.equals("dvd")) {

if (this.startMusic(null, 1) == 1) {

this.mToast.setText((CharSequence)this.getString(2131165197).toString());

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 3;

}

else if (parameters.equals("sys")) {

final int getmediaAppflag = this.getmediaAppflag();

if (getmediaAppflag == 1) {

if (this.startMovie(1) == 1) {

this.mToast.setText((CharSequence)this.getString(2131165198).toString());

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 4;

}

else if (getmediaAppflag == 2) {

if (MicrontekServer.ipod.equals("true")) {

if (this.startIpod(1) == 1) {

this.mToast.setText((CharSequence)"IPOD");

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 5;

}

else {

if (this.startAux(1) == 1) {

this.mToast.setText((CharSequence)"AVIN");

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 6;

}

}

else if (this.mtcappmode == 1) {

if (!parameters2.equals("0")) {

if (this.startDVD(1) == 1) {

this.mToast.setText((CharSequence)"DVD");

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 2;

}

else {

if (this.startMusic(null, 1) == 1) {

this.mToast.setText((CharSequence)this.getString(2131165197).toString());

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 3;

}

}

else if (this.mtcappmode == 2) {

if (this.startMusic(null, 1) == 1) {

this.mToast.setText((CharSequence)this.getString(2131165197).toString());

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 3;

}

else if (this.mtcappmode == 3) {

if (this.startMovie(1) == 1) {

this.mToast.setText((CharSequence)this.getString(2131165198).toString());

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 4;

}

else if (this.mtcappmode == 4 || this.mtcappmode == 5) {

if (MicrontekServer.ipod.equals("true") && this.mtcappmode == 4) {

if (this.startIpod(1) == 1) {

this.mToast.setText((CharSequence)"IPOD");

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 5;

}

else {

if (this.startAux(1) == 1) {

this.mToast.setText((CharSequence)"AVIN");

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 6;

}

}

else {

if (this.startRadio(1) == 1) {

this.mToast.setText((CharSequence)this.getString(2131165195).toString());

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 1;

}

}

else if (parameters.equals("ipod")) {

if (this.startAux(1) == 1) {

this.mToast.setText((CharSequence)"AVIN");

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 6;

}

else {

if (this.startRadio(1) == 1) {

this.mToast.setText((CharSequence)this.getString(2131165195).toString());

this.mToast.setGravity(17, 0, -100);

this.mToast.show();

}

this.mtcappmode = 1;

}

}