Remove shutdown button


How can I remove the shutdown button from the taskbar. Because we use a kiosk mode but you can still see and use the button in lockscreen.


You can issue the following command from adb or a terminal
setprop qemu.hw.mainkeys 1

Or in build.prop in system or vendor partition add the following line.

Might need root access for this.
Then it will hide the navigation bar permanently.

1 Like

Thank you. But we only need to remove the shutdown button from the task bar. The task bar should be enabled.

does anyone have any information on this?

What’s the version of system? Android9.0 or Android10.0?
What’s the taskbar? Did you means navigation bar on the bottom?
In addition, can you build the ROM by yourself with source code?

We use 10. Yes we are able to build a rom. but when we do that every time something doesn’t work. :slight_smile: So it tedious and frustrating.

@goenjoy Please following up this.

@appscreen Are you just removing the lancher power button?
Do you want to remove the shutdown option in the pop-up menu by long pressing the physical key? If this is to be removed, it will take more time to study and analyze.


cd frameworks/base/
git revert 0ba0839d0d293df5ced4bfc16b9a796b3f4618e2


Thank you! Is it possible that you build a complete new complete rom without this shutdown button, please? We tried it several times but then something always does not work.

@goenjoy @Terry
Thank you.

By the way… ist there a newer Android version (11 or 12) in sight? And do you develop a advanced version of Captain/Edge?

We tried to build our own rom but it always breaks off somewhere.

Please help…:wink:

@goenjoy @Terry

Its urgent to find a solution:)…

Did you build your rom following this? And did you compile the firmware successfully? What exactly is the problem?