Mauricio Cirelli

Power Button - Android imx53 loco board

Discussion created by Mauricio Cirelli on Dec 13, 2011
Latest reply on Dec 20, 2011 by Mauricio Cirelli

Hello!

 

I would like to change the behavior of my Android system when user clicks the power button.

The default behavior is to turn the screen off and on. I need to make this button act as an Android HOME button (going to Home).

Has anyone already modified the behavior of this button? Which .c file should I edit in the BSP source code to achieve my needs?

 

Im using Adeneo's Android BSP v4.1 (last Gingerbread version).

 

Any hints would be much appreciated!

 

Thank you!

 

EDIT:

I have found some interesting files inside Android file system:

/system/usr/keylayout/

Contains some .kl files which describes keys and actions. Where should I edit in my BSP source code to change this files after recompiling BSP? The /system is a read-only file system, so I cannot edit it through adb.

Outcomes