Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61339d80 authored by Chris Li's avatar Chris Li
Browse files

Keep OEM defined DisplayAreaPolicy.Provider

Without this change, it may throw ClassNotFoundException when OEMs
define their own DisplayAreaPolicy.Provider.

Fix: 235942308
Test: verify with a customized provider
Change-Id: I397f4fc05ecd5732e3ebb417de3a66c280f678b3
parent 08a70e40
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -68,6 +68,9 @@
# TODO(b/210510433): Revisit and consider generating from frameworks/base/core/res/res/values/config.xml.
-keep,allowoptimization,allowaccessmodification public class com.android.server.notification.** implements com.android.server.notification.NotificationSignalExtractor

# OEM provided DisplayAreaPolicy.Provider defined in frameworks/base/core/res/res/values/config.xml.
-keep,allowoptimization,allowaccessmodification class com.android.server.wm.** implements com.android.server.wm.DisplayAreaPolicy$Provider

# JNI keep rules
# TODO(b/210510433): Revisit and fix with @Keep, or consider auto-generating from
# frameworks/base/services/core/jni/onload.cpp.