huangcm
2025-04-11 48566d1cda2d109a94496c806286f47b8984166d
android/frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java
....@@ -733,11 +733,21 @@
733733 }
734734
735735 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
+ }
737742 }
738743
739744 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
+ }
741751 }
742752
743753 public boolean navigationBarCanMove() {