Loading packages/SystemUI/plugin/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,8 @@ java_library { // If you add a static lib here, you may need to also add the package to the ClassLoaderFilter // in PluginInstance. That will ensure that loaded plugins have access to the related classes. // You should also add it to proguard_common.flags so that proguard does not remove the portions // of the library which are used by the plugins but not by systemui itself. static_libs: [ "androidx.annotation_annotation", "PluginCoreLib", Loading packages/SystemUI/proguard_common.flags +7 −1 Original line number Diff line number Diff line Loading @@ -62,11 +62,17 @@ -keep class ** extends androidx.preference.PreferenceFragment -keep class com.android.systemui.tuner.* # The plugins subpackage acts as a shared library that might be referenced in # The plugins, log & common subpackages act as shared libraries that might be referenced in # dynamically-loaded plugin APKs. -keep class com.android.systemui.plugins.** { *; } -keep class com.android.systemui.log.** { *; } -keep class com.android.systemui.common.** { *; } -keep class com.android.systemui.fragments.FragmentService$FragmentCreator { *; } Loading packages/SystemUI/shared/src/com/android/systemui/shared/plugins/PluginInstance.java +4 −1 Original line number Diff line number Diff line Loading @@ -230,7 +230,10 @@ public class PluginInstance<T extends Plugin> implements PluginLifecycleManager private ClassLoader getParentClassLoader(ClassLoader baseClassLoader) { return new PluginManagerImpl.ClassLoaderFilter( baseClassLoader, "com.android.systemui.log", "com.android.systemui.plugin"); baseClassLoader, "com.android.systemui.common", "com.android.systemui.log", "com.android.systemui.plugin"); } /** Returns class loader specific for the given plugin. */ Loading Loading
packages/SystemUI/plugin/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,8 @@ java_library { // If you add a static lib here, you may need to also add the package to the ClassLoaderFilter // in PluginInstance. That will ensure that loaded plugins have access to the related classes. // You should also add it to proguard_common.flags so that proguard does not remove the portions // of the library which are used by the plugins but not by systemui itself. static_libs: [ "androidx.annotation_annotation", "PluginCoreLib", Loading
packages/SystemUI/proguard_common.flags +7 −1 Original line number Diff line number Diff line Loading @@ -62,11 +62,17 @@ -keep class ** extends androidx.preference.PreferenceFragment -keep class com.android.systemui.tuner.* # The plugins subpackage acts as a shared library that might be referenced in # The plugins, log & common subpackages act as shared libraries that might be referenced in # dynamically-loaded plugin APKs. -keep class com.android.systemui.plugins.** { *; } -keep class com.android.systemui.log.** { *; } -keep class com.android.systemui.common.** { *; } -keep class com.android.systemui.fragments.FragmentService$FragmentCreator { *; } Loading
packages/SystemUI/shared/src/com/android/systemui/shared/plugins/PluginInstance.java +4 −1 Original line number Diff line number Diff line Loading @@ -230,7 +230,10 @@ public class PluginInstance<T extends Plugin> implements PluginLifecycleManager private ClassLoader getParentClassLoader(ClassLoader baseClassLoader) { return new PluginManagerImpl.ClassLoaderFilter( baseClassLoader, "com.android.systemui.log", "com.android.systemui.plugin"); baseClassLoader, "com.android.systemui.common", "com.android.systemui.log", "com.android.systemui.plugin"); } /** Returns class loader specific for the given plugin. */ Loading