I hv JY-G3 with mtk6577 running JB4.2.2 ( ANDROID 4.2.2 for JiaYu G3 by vredniiy ). with keytest app opened, and headset plugged in, i press the mic button (i hv single button headset), no info is shown. But i can see key codes for menu/back/vol+/-. But no info with mic button.
menu=82, scan_code= 139
v+=24, scancode=115, KEYC_VOL_UP
v- =25, VOL_DOWN, scan_code=114
I tried calling with headset inserted. opened keytest app, pressing the mic button, says keycode=0, keucode_uknown, scancode=231.
In the /system/usr/keylayout, i hv mtk-kpd.kl, generic.kl, accdet.kl and couple of other files.
in mtk-kpd file, i dont see HEADSETHOOK line, but its in generic.kl as 226,
in accdet, only few lines are present,
key 231 CALL
key 122 ENDCALL WAKE
key 166 MEDIA_STOP
key 163 MEDIA_NEXT
key 164 MEDIA_PLAY_PAUSE
key 165 MEDIA_PREVIOUS
key 114 VOLUME_DOWN
key 115 VOLUME_UP
the abve lines match with mtk-kpd file.
I tried adding key 226 HEADSETHOOK to accdet file, no change
I tried this http://forum.china-iphone.ru/post1038070.html#p1038070, still no change.
Is there any way i can make my mic key code recognize ???. Tried with different single button headsets, no luck
I copy the whole key layout folder to my mac and use grep command.