summaryrefslogtreecommitdiff
path: root/aidl/android/gsi/IGsiService.aidl
diff options
context:
space:
mode:
authorHoward Chen <howardsoc@google.com>2020-02-26 12:48:41 +0800
committerHoward Chen <howardsoc@google.com>2020-03-04 17:45:25 +0800
commit0e18806d28f8d8ff72aff4db698afb97f79e3301 (patch)
treed1fec92b4633593f6cf07274176ec2ced4800499 /aidl/android/gsi/IGsiService.aidl
parentd39f7d46f1ea805964bf06faf3f5a03d547da0a1 (diff)
downloadgsid-0e18806d28f8d8ff72aff4db698afb97f79e3301.tar.gz
Provide oneway method for methods required by system_server
Bug: 149790245 Bug: 149716497 Test: adb shell am start-activity \ -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \ -a android.os.image.action.START_INSTALL \ -d file:///storage/emulated/0/Download/system.raw.gz \ --el KEY_SYSTEM_SIZE $(du -b system.raw|cut -f1) \ --el KEY_USERDATA_SIZE 8589934592 Merged-In: I472566bd84591422ef67c9838b9c94a0a6f1e8aa Change-Id: I472566bd84591422ef67c9838b9c94a0a6f1e8aa (cherry picked from commit 7885d3c1167c1ec0230c85e4a78628b7c9f34e59)
Diffstat (limited to 'aidl/android/gsi/IGsiService.aidl')
-rw-r--r--aidl/android/gsi/IGsiService.aidl13
1 files changed, 13 insertions, 0 deletions
diff --git a/aidl/android/gsi/IGsiService.aidl b/aidl/android/gsi/IGsiService.aidl
index 65050fe..5503493 100644
--- a/aidl/android/gsi/IGsiService.aidl
+++ b/aidl/android/gsi/IGsiService.aidl
@@ -18,6 +18,7 @@ package android.gsi;
import android.gsi.AvbPublicKey;
import android.gsi.GsiProgress;
+import android.gsi.IGsiServiceCallback;
import android.gsi.IImageService;
import android.os.ParcelFileDescriptor;
@@ -86,6 +87,12 @@ interface IGsiService {
int enableGsi(boolean oneShot, @utf8InCpp String dsuSlot);
/**
+ * Asynchronous enableGsi
+ * @param result callback for result
+ */
+ oneway void enableGsiAsync(boolean oneShot, @utf8InCpp String dsuSlot, IGsiServiceCallback result);
+
+ /**
* @return True if Gsi is enabled
*/
boolean isGsiEnabled();
@@ -110,6 +117,12 @@ interface IGsiService {
boolean removeGsi();
/**
+ * Asynchronous removeGsi
+ * @param result callback for result
+ */
+ oneway void removeGsiAsync(IGsiServiceCallback result);
+
+ /**
* Disables a GSI install. The image and userdata will be retained, but can
* be re-enabled at any time with setGsiBootable.
*/