summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jooyung Han <jooyung@google.com> 2021-10-08 00:26:40 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-10-08 00:26:40 +0000
commitcfd046033588758691c01aa652a82db24c967845 (patch)
tree02c4d41046d5f0184b0e6bab53bc57b8b19eee26
parent9243f909f67b7c46c23b94f2b05ce4476ba295d5 (diff)
parentfc62269a3f0c605e7b7450d277e54f7c3ea873ff (diff)
Merge changes from topic "staged-apex"
* changes: Make packagemanager_aidl available to Virt APEX getStagedApexInfo() returns @nullable
-rw-r--r--libs/binder/Android.bp8
-rw-r--r--libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl2
2 files changed, 9 insertions, 1 deletions
diff --git a/libs/binder/Android.bp b/libs/binder/Android.bp
index 89a31c5c2a..bb1b5138e0 100644
--- a/libs/binder/Android.bp
+++ b/libs/binder/Android.bp
@@ -303,6 +303,14 @@ aidl_interface {
"aidl/android/content/pm/ApexStagedEvent.aidl",
"aidl/android/content/pm/StagedApexInfo.aidl",
],
+ backend: {
+ rust: {
+ apex_available: [
+ "com.android.virt",
+ ],
+ enabled: true,
+ },
+ },
}
aidl_interface {
diff --git a/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl b/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl
index d71f496bf1..7c99f76ec6 100644
--- a/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl
+++ b/libs/binder/aidl/android/content/pm/IPackageManagerNative.aidl
@@ -144,5 +144,5 @@ interface IPackageManagerNative {
* Get information of APEX which is staged ready for installation.
* Returns null if no such APEX is found.
*/
- StagedApexInfo getStagedApexInfo(in @utf8InCpp String moduleName);
+ @nullable StagedApexInfo getStagedApexInfo(in @utf8InCpp String moduleName);
}