diff options
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/com/android/internal/compat/IPlatformCompat.aidl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/com/android/internal/compat/IPlatformCompat.aidl b/core/java/com/android/internal/compat/IPlatformCompat.aidl index f54c96b88f70..a5eb5f607c12 100644 --- a/core/java/com/android/internal/compat/IPlatformCompat.aidl +++ b/core/java/com/android/internal/compat/IPlatformCompat.aidl @@ -173,6 +173,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. * |
