android/device/softwinner/ceres-c3/ceres_c3.mk
.. .. @@ -274,6 +274,10 @@ 274 274 persist.sys.bootAppClass=null 275 275 276 276 PRODUCT_PROPERTY_OVERRIDES += \ 277 + persist.sys.ban_nb=false \278 + persist.sys.ban_sb=false279 +280 +PRODUCT_PROPERTY_OVERRIDES += \277 281 persist.sys.bootonDeviceTest=0 278 282 279 283 #language pack android/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
.. .. @@ -1259,6 +1259,11 @@ 1259 1259 mNaturalBarHeight = 1260 1260 res.getDimensionPixelSize(com.android.internal.R.dimen.status_bar_height); 1261 1261 } 1262 + boolean ban_sb = SystemProperties.getBoolean("persist.sys.ban_sb", false);1263 + Log.i("HCM", "persist.sys.ban_sb = " + ban_sb);1264 + if (ban_sb) {1265 + mNaturalBarHeight = 0;1266 + }1262 1267 return mNaturalBarHeight; 1263 1268 } 1264 1269 .. .. @@ -2700,8 +2705,15 @@ 2700 2705 final Resources res = mContext.getResources(); 2701 2706 2702 2707 int oldBarHeight = mNaturalBarHeight; 2703 - mNaturalBarHeight = res.getDimensionPixelSize(2704 - com.android.internal.R.dimen.status_bar_height);2708 + boolean ban_sb = SystemProperties.getBoolean("persist.sys.ban_sb", false);2709 + Log.i("HCM", "persist.sys.ban_sb = " + ban_sb);2710 + if (ban_sb) {2711 + mNaturalBarHeight = 0;2712 + } else {2713 + mNaturalBarHeight = res.getDimensionPixelSize(2714 + com.android.internal.R.dimen.status_bar_height);2715 + }2716 +2705 2717 if (mStatusBarWindowController != null && mNaturalBarHeight != oldBarHeight) { 2706 2718 mStatusBarWindowController.setBarHeight(mNaturalBarHeight); 2707 2719 } android/frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java
.. .. @@ -733,11 +733,21 @@ 733 733 } 734 734 735 735 public boolean hasNavigationBar() { 736 - return mHasNavigationBar;736 + boolean ban_nb = SystemProperties.getBoolean("persist.sys.ban_nb", false);737 + if (ban_nb) {738 + return false;739 + } else {740 + return mHasNavigationBar;741 + }737 742 } 738 743 739 744 public boolean hasStatusBar() { 740 - return mHasStatusBar;745 + boolean ban_sb = SystemProperties.getBoolean("persist.sys.ban_sb", false);746 + if (ban_sb) {747 + return false;748 + } else {749 + return mHasStatusBar;750 + }741 751 } 742 752 743 753 public boolean navigationBarCanMove() {