android9.0 的盒子,发现没有状态栏
通过源码查看到 startServicesIfNeeded()
通过log没有看到输出 statusbar类
查看到有引用 config_systemUIServiceComponents 有配置需要启动的服务。
在内部添加
<item>com.android.systemui.statusbar.phone.StatusBar</item>
重编译后升级查看,就出现了状态栏。
打开导航栏:
frameworks/base/core/res/res/values/config.xml
设置 config_showNavigationBar 为true
<bool name="config_showNavigationBar">false</bool>