Increasing Height of Navigation Bar and Status Bar in Android 6.0 AOSP

1,589 views
Skip to first unread message

Subrat Mohanty

unread,
Feb 18, 2016, 4:08:48 PM2/18/16
to android-platform
Hi,

Modifying the Height of Navigation Bar and Status Bar for Android 6.0 in AOSP

Modified the file frameworks/base/core/res/res/values/dimens.xml

     <!-- Height of the status bar -->
    <dimen name="status_bar_height">64dp</dimen>
    <!-- Height of the bottom navigation / system bar. -->
    <dimen name="navigation_bar_height">88dp</dimen>
    <!-- Height of the bottom navigation bar in portrait; often the same as @dimen/navigation_bar_height -->
    <dimen name="navigation_bar_height_landscape">88dp</dimen>


Did  $ make update-api and  mmm frameworks/base/ -B 

Modified the framework.jar and ext.jar on target device. But the changes are not happening. Is it correct ?

Or Need to do any changes in the frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java

Thanks,
Subrat

Subrat Mohanty

unread,
Feb 19, 2016, 10:12:26 AM2/19/16
to android-platform
Modified the parameters of
 mTmpNavigationFrame.set(0, top, displayWidth, displayHeight - overscanBottom)  in PhoneWindowManager.java and changed the services.jar on target device. But the height is not chnaging. Please help me.

Robert Craig

unread,
Feb 22, 2016, 6:51:39 PM2/22/16
to android-platform
First, why are you modifying the core res values under frameworks/base/core/res/res when you should be using the device overlay facility? Regardless, are you sure that you're reflashing correctly?  Which components are you reflashing? IIRC, the mmm command won't actually rebuild the system.img. Try using m instead and reflash everything.

Subrat Mohanty

unread,
Mar 1, 2016, 12:10:15 PM3/1/16
to android-platform
Its working fine. After re-flashing the complete image. Thanks.
Reply all
Reply to author
Forward
0 new messages