rk3568 安卓11双屏异显,当前项目有两个屏,一个是mipi 接口设为主屏,一个rgb 接口设为副屏,现在需要将副屏底部虚拟导航栏隐藏,有快速的方法:
在framework/base/services/core/java/com/android/server/wm/DisplayPolicy.java
java
diff --git a/services/core/java/com/android/server/wm/DisplayPolicy.java b/services/core/java/com/android/server/wm/DisplayPolicy.java
index 29881cc761b2..f340bb308a0f 100644
--- a/services/core/java/com/android/server/wm/DisplayPolicy.java
+++ b/services/core/java/com/android/server/wm/DisplayPolicy.java
@@ -656,7 +656,8 @@ public class DisplayPolicy {
}
} else {
mHasStatusBar = false;
- mHasNavigationBar = mDisplayContent.supportsSystemDecorations();
+ mHasNavigationBar = false;
+ //mHasNavigationBar = mDisplayContent.supportsSystemDecorations();
}
mRefreshRatePolicy = new RefreshRatePolicy(mService,
编译烧录即可。