summaryrefslogtreecommitdiff
path: root/native
diff options
context:
space:
mode:
authoratrost <atrost@google.com>2019-10-22 15:26:16 +0100
committeratrost <atrost@google.com>2019-10-22 18:57:08 +0100
commit53bca9377da58f31e0eb21bbcef16cffc5b1f687 (patch)
treee9c88ab6b047ce65f18c7c19644e83f06d5b69c1 /native
parent7825637f80138800eb3bb5901d056a2ef4f03646 (diff)
Add userId to the package name API.
The service would query package manager with the provided userId, and will return true if the package is not visible. Bug: 142942524 Bug: 143129258 Test: m, treehugger Change-Id: I92ea650b49743c388bff9943a7ec620e3d61a5d6
Diffstat (limited to 'native')
-rw-r--r--native/android/aidl/com/android/internal/compat/IPlatformCompatNative.aidl6
1 files changed, 4 insertions, 2 deletions
diff --git a/native/android/aidl/com/android/internal/compat/IPlatformCompatNative.aidl b/native/android/aidl/com/android/internal/compat/IPlatformCompatNative.aidl
index c022388e0aa8..347e4e8ebe4b 100644
--- a/native/android/aidl/com/android/internal/compat/IPlatformCompatNative.aidl
+++ b/native/android/aidl/com/android/internal/compat/IPlatformCompatNative.aidl
@@ -33,9 +33,10 @@ interface IPlatformCompatNative
* you do not need to call this API directly. The change will be reported for you.
*
* @param changeId The ID of the compatibility change taking effect.
+ * @param userId The ID of the user that the operation is done for.
* @param packageName The package name of the app in question.
*/
- void reportChangeByPackageName(long changeId, @utf8InCpp String packageName);
+ void reportChangeByPackageName(long changeId, @utf8InCpp String packageName, int userId);
/**
* Reports that a compatibility change is affecting an app process now.
@@ -64,9 +65,10 @@ interface IPlatformCompatNative
*
* @param changeId The ID of the compatibility change in question.
* @param packageName The package name of the app in question.
+ * @param userId The ID of the user that the operation is done for.
* @return {@code true} if the change is enabled for the current app.
*/
- boolean isChangeEnabledByPackageName(long changeId, @utf8InCpp String packageName);
+ boolean isChangeEnabledByPackageName(long changeId, @utf8InCpp String packageName, int userId);
/**
* Query if a given compatibility change is enabled for an app process. This method should