2

First my task is: to permanently remove the Bottom menu from Tables Android 4.0.4, which includes back , home and menu keys. I don't want that, as per my requirement.

I have gone through number of blogs and posts available on internet about "How to modify Android Source code". But none of them is clear about exactly changing the Source code and then use that in device.

I mean i downloaded Android source code using Hiding and Showing System Bar(Status Bar + Navigation Bar) in Android Tablets using Android Source Code

1: http://source.android.com/source/initializing.html and got some idea about changing source from here

but nothing clear to me. Can anyone point me to the clear blog or video which can help me because its a week of googling and still unable to get it done.

1 Answer 1

2

Your question is so generic. So I just suppose that you have already got to know how to build and flash your customized firmware. And here is the answer for your original requirement:

To disable the navigation buttons, you should modify the file YOURANDORIDROOT/framework/base/core/res/res/values/config.xml and change the value

<bool name="config_showNavigationBar">true</bool>

to

<bool name="config_showNavigationBar">false</bool>

And some more information for your reference, you can go to framework/base/package/systemui directory and there you can find the source code of the status bar.

Sign up to request clarification or add additional context in comments.

5 Comments

Thank you for the reply. i would do that and let you know if it works. It will work on Android 4.0.4?
I know how to build but can you please point me to right direction that how to flash your custom firmware?
I have checked that file and in Android 4.0.4 its already FALSE. What you would suggest now?
Please follow the official guide, use fastboot to flash the images. Check the section of "Flash a Device" on this page source.android.com/source/building-running.html
Please go to check the source code of the statusbar. check the frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java and other related files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.