Nabil Baadillah
Nabil Baadillah

Reputation: 329

How to Override Power Button In Android Device

What I'm asking is how I can change what will show up, when I use long press of the power button. Usually it shows Power off, Airplane Mode, Restart, Silent Mode, and whatever it is..

Hope you know what I mean. And I apologize for my bad English.

Upvotes: 0

Views: 702

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006944

You download the Android source code, modify what it shows on the power menu, compile your own version of Android based on your modified code, package that as a custom ROM, and install that ROM on your Android device.

There is no means for an ordinary Android SDK app to affect the power menu.

I cannot rule out the possibility of modifying the power menu on rooted devices (e.g., Xposed framework), though.

Upvotes: 2

Related Questions