Disabling Home Button via Intent (MC40)

Pavel Machala -
1 MIN READ
49
3

Hello Folks,

I would like to share my latest findings with community regarding a possibility to disable Home Button in MC40. Quite often we can see requests from our customer trying to achieve this programmatically however this is not possible by default on JB/KK. This additional feature has been added to the latest version of MC40JB(Rev B). This feature might be quite handy if you wish to lock down user in specific application and together with our EHS it is even more powerful. Following piece of code showing how should the intent look like and its parameter for disabling/enabling the Home Button.

 

Intent i = new Intent("com.motorolasolutions.intent.action.HOMEKEY_MODE"); i.putExtra("state", 1);  sendBroadcast(i);  1 - Enable 0 - Disable

 

 

Supported OS versions:

MC40N0 - Recovery OS Update Image v02.08.0520 for MC40N0 Android JellyBean Non-Voice SKU

MC40N0 - Recovery OS Update Image v02.08.0520 for MC40N0 JellyBean Voice SKU

MC40N0 - Recovery OS Update Image v02.08.0520 for MC40N0 Jelly Bean FIPS SKU

profile

Pavel Machala

Please Register or Login to post a reply

3 Replies

K Kjell Lloyd

Hi Pavel,

Interesting, do you know if this applies to the MC32N0 Jelly Bean as well?

regards
Kjell

P Pietro Francesco Maggi

Thanks Pavel for sharing this.

Do you know if the same intent is available on the MC40 KK OS?

Thanks
~Pietro

P Pavel Machala

Hi Pietro,
It works there too however the action string has changed to:
<code>com.symbol.intent.action.HOMEKEY_MODE <code></code></code>