Loading core/java/com/android/internal/compat/IPlatformCompat.aidl +11 −0 Original line number Diff line number Diff line Loading @@ -172,6 +172,17 @@ interface IPlatformCompat { */ boolean clearOverride(long changeId, String packageName); /** * Restores the default behaviour for the given change and app. * * <p>Does not kill the app; to be only used in tests. * * @param changeId the ID of the change that was overridden * @param packageName the app package name that was overridden * @throws SecurityException if overriding changes is not permitted */ void clearOverrideForTest(long changeId, String packageName); /** * Enables all compatibility changes that have enabledSinceTargetSdk == * {@param targetSdkVersion} for an app, subject to the policy. Loading services/core/java/com/android/server/compat/PlatformCompat.java +6 −0 Original line number Diff line number Diff line Loading @@ -210,6 +210,12 @@ public class PlatformCompat extends IPlatformCompat.Stub { return existed; } @Override public void clearOverrideForTest(long changeId, String packageName) { checkCompatChangeOverridePermission(); mCompatConfig.removeOverride(changeId, packageName); } @Override public CompatibilityChangeConfig getAppConfig(ApplicationInfo appInfo) { checkCompatChangeReadAndLogPermission(); Loading Loading
core/java/com/android/internal/compat/IPlatformCompat.aidl +11 −0 Original line number Diff line number Diff line Loading @@ -172,6 +172,17 @@ interface IPlatformCompat { */ boolean clearOverride(long changeId, String packageName); /** * Restores the default behaviour for the given change and app. * * <p>Does not kill the app; to be only used in tests. * * @param changeId the ID of the change that was overridden * @param packageName the app package name that was overridden * @throws SecurityException if overriding changes is not permitted */ void clearOverrideForTest(long changeId, String packageName); /** * Enables all compatibility changes that have enabledSinceTargetSdk == * {@param targetSdkVersion} for an app, subject to the policy. Loading
services/core/java/com/android/server/compat/PlatformCompat.java +6 −0 Original line number Diff line number Diff line Loading @@ -210,6 +210,12 @@ public class PlatformCompat extends IPlatformCompat.Stub { return existed; } @Override public void clearOverrideForTest(long changeId, String packageName) { checkCompatChangeOverridePermission(); mCompatConfig.removeOverride(changeId, packageName); } @Override public CompatibilityChangeConfig getAppConfig(ApplicationInfo appInfo) { checkCompatChangeReadAndLogPermission(); Loading