Amlogic 9.0 打开状态栏后存在两个wifi图标

1.盒子默认不展示状态栏,更改下面配置打开

```diff

diff --git a/franklin/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/franklin/overlay/frameworks/base/packages/SystemUI/res/values/config.xml

index bda91ec..ce5a46d 100755

--- a/franklin/overlay/frameworks/base/packages/SystemUI/res/values/config.xml

+++ b/franklin/overlay/frameworks/base/packages/SystemUI/res/values/config.xml

@@ -1,5 +1,5 @@

 <?xml version="1.0" encoding="utf-8"?>

 <resources>

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

-    <string name="config_statusBarComponent" translatable="false">com.android.systemui.statusbar.tv.TvStatusBar</string>

+    <string name="config_statusBarComponent" translatable="false">com.android.systemui.statusbar.phone.StatusBar</string>

 </resources>

```


2.9.0不再使用`signal_cluster_view.xml`布局展示状态栏,但SDK把这个布局也显示出来了,只需要屏蔽显示即可,为了不侵入太深,避免引起未知BUG

```diff

diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java b/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java

index e7b768f3002..54904af9e66 100644

--- a/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java

+++ b/packages/SystemUI/src/com/android/systemui/statusbar/SignalClusterView.java

@@ -278,7 +278,7 @@ public class SignalClusterView extends LinearLayout implements NetworkController

     public void setWifiIndicators(boolean enabled, IconState statusIcon, IconState qsIcon,

             boolean activityIn, boolean activityOut, String description, boolean isTransient,

             String secondaryLabel) {

-        mWifiVisible = statusIcon.visible && !mBlockWifi;

+        mWifiVisible = statusIcon.visible && !mBlockWifi && false;

         mWifiStrengthId = statusIcon.icon;

         mWifiDescription = statusIcon.contentDescription;

         mWifiIn = activityIn && mActivityEnabled && mWifiVisible;

```

评论

此博客中的热门博文

Whether Trump or Biden wins in November, Beijing will be hoping to reset the US-China relationship