一、为何要用插件plugin SystemUI模块非常多,结构自然也就非常复杂,而且SystemUI是一个常驻的进程,不能随意做修改升级,如果修改不到位,很可能会存在bug,这是修复就非常难。另外一个原因是可以方便客户客制化,如需要改变状态栏的背景色、显示时钟的风格、锁屏壁纸等等都可以直接通过插件的方式来修改,不需要对SystemUI重新定制。所以,使用插件极大地方便了客户,又维持了系统的稳定。 二、插件代码结构,主要由plugin、plugin_core、share这三部分模块构成 1、plugin:ExamplePlugin是提供参考的例子,src里面主要是以接口的形式提供支持,并且包括FalsingPlugin、VolumePlugin、NotificationPlugin、QSPlugin等插件实例。 2、plugin_core:插件的核心,主要是要实现一些接口 3、share:插件的管理类、版本信息等 这些插件的接口信息等都是通过dragger注入的方式来实现的,如不理解dragger注入,可先学习dragger2的注入原理 三、插件的加载流程...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by statusBar.getNavigation Bar
Android 11 系统开发增加低电量弹窗提示 手机 平板 车载 TV 投影 通用
SystemUIService 中启动PowerUI public class SystemUIService extends Service { @Override public void onCreate() { super.onCreate(); ((SystemUIApplication) getApplication()).startServicesIfNeeded(); if (Build.IS_DEBUGGABLE && SystemProperties.getBoolean("debug.crash_sysui", false)) { throw new RuntimeException(); } if (Build.IS_DEBUGGABLE) { BinderInternal.nSetBinderProxyCountEnabled(true); BinderInternal.nSetBinderProxyCountWatermarks(1000,900); BinderInternal.setBinderProxyCountCallback( new...
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with statusBar.getNavigation
Contact statusBar.getNavigation, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack