[MTCB Android Head Units Q&A] mrtnb:
I'm working on that http://xdaforums.com/android-auto/android-head-units/identify-head-unit-apps-kk-4-4-4-t3446989 to edit main files. I am now trying to change hardware buttons to use "back, home key" or "Music player activity"...

Is that the right file? This is what I decompiled from Ts8317_media.apk (which controls, DVD, CD, USB, SD activities) :

Ts8317_media.apk/smali/com/yyw/ts90xhw/KeyDef.smali

.class public Lcom/yyw/ts90xhw/KeyDef;
.super Ljava/lang/Object;
.source "KeyDef.java"

# static fields
.field public static final EKEY_TUNDEC:I = 0x203

.field public static final EKEY_TUNINC:I = 0x204

.field public static final EKEY_VOLDN:I = 0x201

.field public static final EKEY_VOLUP:I = 0x202

.field public static final PKEY_0:I = 0x1f

.field public static final PKEY_1:I = 0x20

.field public static final PKEY_2:I = 0x21

.field public static final PKEY_3:I = 0x22

.field public static final PKEY_4:I = 0x23

.field public static final PKEY_5:I = 0x24

.field public static final PKEY_6:I = 0x25

.field public static final PKEY_7:I = 0x26

.field public static final PKEY_8:I = 0x27

.field public static final PKEY_9:I = 0x28

.field public static final PKEY_AM:I = 0x35

.field public static final PKEY_AMS:I = 0x3a

.field public static final PKEY_ANGLEDN:I = 0x4a

.field public static final PKEY_ANGLEUP:I = 0x49

.field public static final PKEY_AUX:I = 0x2

.field public static final PKEY_AVIN:I = 0x3

.field public static final PKEY_BKL:I = 0x6

.field public static final PKEY_BT:I = 0x17

.field public static final PKEY_CLOCK:I = 0x5

.field public static final PKEY_DELETE:I = 0x54

.field public static final PKEY_DIM:I = 0x18

.field public static final PKEY_DIMDN:I = 0x58

.field public static final PKEY_DIMUP:I = 0x57

.field public static final PKEY_DISP:I = 0x55

.field public static final PKEY_DN:I = 0x43

.field public static final PKEY_DTV:I = 0x1

.field public static final PKEY_DVD:I = 0xd

.field public static final PKEY_DVR:I = 0x1b

.field public static final PKEY_ECAR:I = 0x59

.field public static final PKEY_EJECT:I = 0x47

.field public static final PKEY_EJECT_L:I = 0x53

.field public static final PKEY_ENT:I = 0x15

.field public static final PKEY_EQ:I = 0x11

.field public static final PKEY_FAV:I = 0x56

.field public static final PKEY_FCAM:I = 0x1a

.field public static final PKEY_FF:I = 0x2e

.field public static final PKEY_FM:I = 0x34

.field public static final PKEY_FMAM:I = 0x33

.field public static final PKEY_FR:I = 0x2f

.field public static final PKEY_IPOD:I = 0x19

.field public static final PKEY_J:I = 0x29

.field public static final PKEY_LEFT:I = 0x44

.field public static final PKEY_LOC:I = 0x37

.field public static final PKEY_LOUD:I = 0x12

.field public static final PKEY_MEDIA:I = 0x1c

.field public static final PKEY_MEDIA_PP:I = 0x3c

.field public static final PKEY_MEDIA_RDM:I = 0x3d

.field public static final PKEY_MEDIA_RPT:I = 0x3e

.field public static final PKEY_MEDIA_SCAN:I = 0x3f

.field public static final PKEY_MEDIA_SEARCH:I = 0x41

.field public static final PKEY_MEDIA_STOP:I = 0x40

.field public static final PKEY_MENU:I = 0x8

.field public static final PKEY_MODE:I = 0xa

.field public static final PKEY_MUTE:I = 0x10

.field public static final PKEY_NAVI:I = 0xb

.field public static final PKEY_NEXT:I = 0x2c

.field public static final PKEY_OPEN:I = 0x48

.field public static final PKEY_PAUSE:I = 0x5b

.field public static final PKEY_PLAY:I = 0x5a

.field public static final PKEY_POWER:I = 0x46

.field public static final PKEY_POWER_OFF:I = 0x52

.field public static final PKEY_POWER_ON:I = 0x51

.field public static final PKEY_PRE:I = 0x2d

.field public static final PKEY_RADIO:I = 0xc

.field public static final PKEY_RADIO_1S:I = 0x4b

.field public static final PKEY_RADIO_2S:I = 0x4c

.field public static final PKEY_RADIO_3S:I = 0x4d

.field public static final PKEY_RADIO_4S:I = 0x4e

.field public static final PKEY_RADIO_5S:I = 0x4f

.field public static final PKEY_RADIO_6S:I = 0x50

.field public static final PKEY_RADIO_BAND:I = 0x2b

.field public static final PKEY_RADIO_SCAN:I = 0x3b

.field public static final PKEY_RDS_AF:I = 0x30

.field public static final PKEY_RDS_PTY:I = 0x32

.field public static final PKEY_RDS_TA:I = 0x31

.field public static final PKEY_RETURN:I = 0x16

.field public static final PKEY_RIGHT:I = 0x45

.field public static final PKEY_SD:I = 0xf

.field public static final PKEY_SET:I = 0x7

.field public static final PKEY_ST:I = 0x36

.field public static final PKEY_TELCALLOF:I = 0x1e

.field public static final PKEY_TELCALLON:I = 0x1d

.field public static final PKEY_TOUCH:I = 0x9

.field public static final PKEY_TUNEDEC:I = 0x39

.field public static final PKEY_TUNEINC:I = 0x38

.field public static final PKEY_TV:I = 0x4

.field public static final PKEY_UP:I = 0x42

.field public static final PKEY_USB:I = 0xe

.field public static final PKEY_VIEW360:I = 0x5c

.field public static final PKEY_VOLDN:I = 0x14

.field public static final PKEY_VOLUP:I = 0x13

.field public static final PKEY_X:I = 0x2a

.field public static final RKEY_0:I = 0x113

.field public static final RKEY_1:I = 0x114

.field public static final RKEY_2:I = 0x115

.field public static final RKEY_3:I = 0x116

.field public static final RKEY_4:I = 0x117

.field public static final RKEY_5:I = 0x118

.field public static final RKEY_6:I = 0x119

.field public static final RKEY_7:I = 0x11a

.field public static final RKEY_8:I = 0x11b

.field public static final RKEY_9:I = 0x11c

.field public static final RKEY_AMS:I = 0x127

.field public static final RKEY_ANGLEDN:I = 0x13e

.field public static final RKEY_ANGLEUP:I = 0x13d

.field public static final RKEY_BAND:I = 0x107

.field public static final RKEY_BKL:I = 0x102

.field public static final RKEY_CMMB_PBC:I = 0x139

.field public static final RKEY_DN:I = 0x122

.field public static final RKEY_DVD:I = 0x108

.field public static final RKEY_EJECT:I = 0x13b

.field public static final RKEY_EJECT_L:I = 0x14e

.field public static final RKEY_ENTER:I = 0x130

.field public static final RKEY_EQ:I = 0x10c

.field public static final RKEY_FF:I = 0x125

.field public static final RKEY_FR:I = 0x126

.field public static final RKEY_J:I = 0x11d

.field public static final RKEY_LEFT:I = 0x120

.field public static final RKEY_LOC:I = 0x12a

.field public static final RKEY_LOUD:I = 0x10d

.field public static final RKEY_MEDIA_10:I = 0x142

.field public static final RKEY_MEDIA_ANGLE:I = 0x131

.field public static final RKEY_MEDIA_AUDIO:I = 0x133

.field public static final RKEY_MEDIA_GOTO:I = 0x12f

.field public static final RKEY_MEDIA_MENU:I = 0x134

.field public static final RKEY_MEDIA_OSD:I = 0x138

.field public static final RKEY_MEDIA_PP:I = 0x12b

.field public static final RKEY_MEDIA_PROG:I = 0x141

.field public static final RKEY_MEDIA_RDM:I = 0x12c

.field public static final RKEY_MEDIA_RPT:I = 0x12d

.field public static final RKEY_MEDIA_SCAN:I = 0x12e

.field public static final RKEY_MEDIA_SEL:I = 0x137

.field public static final RKEY_MEDIA_SLOW:I = 0x140

.field public static final RKEY_MEDIA_STOP:I = 0x13f

.field public static final RKEY_MEDIA_SUBT:I = 0x136

.field public static final RKEY_MEDIA_TITLE:I = 0x132

.field public static final RKEY_MEDIA_ZOOM:I = 0x135

.field public static final RKEY_MENU:I = 0x103

.field public static final RKEY_MODE:I = 0x105

.field public static final RKEY_MUTE:I = 0x10b

.field public static final RKEY_NAVI:I = 0x106

.field public static final RKEY_NEXT:I = 0x123

.field public static final RKEY_OPEN:I = 0x13c

.field public static final RKEY_POWER:I = 0x13a

.field public static final RKEY_POWER_OFF:I = 0x14d

.field public static final RKEY_POWER_ON:I = 0x14c

.field public static final RKEY_PRE:I = 0x124

.field public static final RKEY_RADIO_1S:I = 0x143

.field public static final RKEY_RADIO_2S:I = 0x144

.field public static final RKEY_RADIO_3S:I = 0x145

.field public static final RKEY_RADIO_4S:I = 0x146

.field public static final RKEY_RADIO_5S:I = 0x147

.field public static final RKEY_RADIO_6S:I = 0x148

.field public static final RKEY_RADIO_SCAN:I = 0x128

.field public static final RKEY_RDS_AF:I = 0x149

.field public static final RKEY_RDS_PTY:I = 0x14b

.field public static final RKEY_RDS_TA:I = 0x14a

.field public static final RKEY_RETURN:I = 0x110

.field public static final RKEY_RIGHT:I = 0x11f

.field public static final RKEY_SD:I = 0x10a

.field public static final RKEY_SET:I = 0x101

.field public static final RKEY_ST:I = 0x129

.field public static final RKEY_TELCALLOF:I = 0x112

.field public static final RKEY_TELCALLON:I = 0x111

.field public static final RKEY_TOUCH:I = 0x104

.field public static final RKEY_UP:I = 0x121

.field public static final RKEY_USB:I = 0x109

.field public static final RKEY_VOLDEC:I = 0x10f

.field public static final RKEY_VOLINC:I = 0x10e

.field public static final RKEY_X:I = 0x11e

.field public static final SKEY_CALLDN_1:I = 0x333

.field public static final SKEY_CALLDN_2:I = 0x334

.field public static final SKEY_CALLDN_3:I = 0x335

.field public static final SKEY_CALLDN_4:I = 0x336

.field public static final SKEY_CALLDN_5:I = 0x337

.field public static final SKEY_CALLUP_1:I = 0x32e

.field public static final SKEY_CALLUP_2:I = 0x32f

.field public static final SKEY_CALLUP_3:I = 0x330

.field public static final SKEY_CALLUP_4:I = 0x331

.field public static final SKEY_CALLUP_5:I = 0x332

.field public static final SKEY_CHDN_1:I = 0x31f

.field public static final SKEY_CHDN_2:I = 0x320

.field public static final SKEY_CHDN_3:I = 0x321

.field public static final SKEY_CHDN_4:I = 0x322

.field public static final SKEY_CHDN_5:I = 0x323

.field public static final SKEY_CHUP_1:I = 0x31a

.field public static final SKEY_CHUP_2:I = 0x31b

.field public static final SKEY_CHUP_3:I = 0x31c

.field public static final SKEY_CHUP_4:I = 0x31d

.field public static final SKEY_CHUP_5:I = 0x31e

.field public static final SKEY_MODE_1:I = 0x329

.field public static final SKEY_MODE_2:I = 0x32a

.field public static final SKEY_MODE_3:I = 0x32b

.field public static final SKEY_MODE_4:I = 0x32c

.field public static final SKEY_MODE_5:I = 0x32d

.field public static final SKEY_MUTE_1:I = 0x324

.field public static final SKEY_MUTE_2:I = 0x325

.field public static final SKEY_MUTE_3:I = 0x326

.field public static final SKEY_MUTE_4:I = 0x327

.field public static final SKEY_MUTE_5:I = 0x328

.field public static final SKEY_NAVI_1:I = 0x33d

.field public static final SKEY_NAVI_2:I = 0x33e

.field public static final SKEY_NAVI_3:I = 0x33f

.field public static final SKEY_NAVI_4:I = 0x340

.field public static final SKEY_NAVI_5:I = 0x341

.field public static final SKEY_POWEWR_1:I = 0x301

.field public static final SKEY_POWEWR_2:I = 0x302

.field public static final SKEY_POWEWR_3:I = 0x303

.field public static final SKEY_POWEWR_4:I = 0x304

.field public static final SKEY_POWEWR_5:I = 0x305

.field public static final SKEY_PP_1:I = 0x338

.field public static final SKEY_PP_2:I = 0x339

.field public static final SKEY_PP_3:I = 0x33a

.field public static final SKEY_PP_4:I = 0x33b

.field public static final SKEY_PP_5:I = 0x33c

.field public static final SKEY_SEEKDN_1:I = 0x315

.field public static final SKEY_SEEKDN_2:I = 0x316

.field public static final SKEY_SEEKDN_3:I = 0x317

.field public static final SKEY_SEEKDN_4:I = 0x318

.field public static final SKEY_SEEKDN_5:I = 0x319

.field public static final SKEY_SEEKUP_1:I = 0x310

.field public static final SKEY_SEEKUP_2:I = 0x311

.field public static final SKEY_SEEKUP_3:I = 0x312

.field public static final SKEY_SEEKUP_4:I = 0x313

.field public static final SKEY_SEEKUP_5:I = 0x314

.field public static final SKEY_VOLDN_1:I = 0x30b

.field public static final SKEY_VOLDN_2:I = 0x30c

.field public static final SKEY_VOLDN_3:I = 0x30d

.field public static final SKEY_VOLDN_4:I = 0x30e

.field public static final SKEY_VOLDN_5:I = 0x30f

.field public static final SKEY_VOLUP_1:I = 0x306

.field public static final SKEY_VOLUP_2:I = 0x307

.field public static final SKEY_VOLUP_3:I = 0x308

.field public static final SKEY_VOLUP_4:I = 0x309

.field public static final SKEY_VOLUP_5:I = 0x30a

# direct methods
.method public constructor <init>()V
.locals 0

.prologue
.line 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V

return-void
.end method

The head unit I am working on has the hardware keys/buttons below:

Volume knob (round)

Phone key

Power

Eject

Prev

Next

Eject

DIMM (Shuts of screen)

BAND (RADIO)

NAV (Navigation app)

SET (OEM Factory Settings)