diff options
Diffstat (limited to 'cmds/installd/binder')
-rw-r--r-- | cmds/installd/binder/android/os/CreateAppDataArgs.aidl | 28 | ||||
-rw-r--r-- | cmds/installd/binder/android/os/CreateAppDataResult.aidl | 24 | ||||
-rw-r--r-- | cmds/installd/binder/android/os/IInstalld.aidl | 12 |
3 files changed, 7 insertions, 57 deletions
diff --git a/cmds/installd/binder/android/os/CreateAppDataArgs.aidl b/cmds/installd/binder/android/os/CreateAppDataArgs.aidl deleted file mode 100644 index 96d7faaaa2..0000000000 --- a/cmds/installd/binder/android/os/CreateAppDataArgs.aidl +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (C) 2020 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package android.os; - -/** {@hide} */ -parcelable CreateAppDataArgs { - @nullable @utf8InCpp String uuid; - @utf8InCpp String packageName; - int userId; - int flags; - int appId; - @utf8InCpp String seInfo; - int targetSdkVersion; -} diff --git a/cmds/installd/binder/android/os/CreateAppDataResult.aidl b/cmds/installd/binder/android/os/CreateAppDataResult.aidl deleted file mode 100644 index 3b8fa6b9f2..0000000000 --- a/cmds/installd/binder/android/os/CreateAppDataResult.aidl +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2020 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package android.os; - -/** {@hide} */ -parcelable CreateAppDataResult { - long ceDataInode; - int exceptionCode; - @utf8InCpp String exceptionMessage; -} diff --git a/cmds/installd/binder/android/os/IInstalld.aidl b/cmds/installd/binder/android/os/IInstalld.aidl index 3d32f61997..eeda6c5855 100644 --- a/cmds/installd/binder/android/os/IInstalld.aidl +++ b/cmds/installd/binder/android/os/IInstalld.aidl @@ -21,9 +21,11 @@ interface IInstalld { void createUserData(@nullable @utf8InCpp String uuid, int userId, int userSerial, int flags); void destroyUserData(@nullable @utf8InCpp String uuid, int userId, int flags); - android.os.CreateAppDataResult createAppData(in android.os.CreateAppDataArgs args); - android.os.CreateAppDataResult[] createAppDataBatched(in android.os.CreateAppDataArgs[] args); - + long createAppData(@nullable @utf8InCpp String uuid, in @utf8InCpp String packageName, + int userId, int flags, int appId, in @utf8InCpp String seInfo, int targetSdkVersion); + long createAppDataBatched(in @nullable @utf8InCpp String[] uuids, + in @nullable @utf8InCpp String[] packageNames, in int userId, int flags, in int[] appIds, + in @utf8InCpp String[] seInfos, in int[] targetSdkVersions); void restoreconAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName, int userId, int flags, int appId, @utf8InCpp String seInfo); void migrateAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName, @@ -69,7 +71,7 @@ interface IInstalld { void rmdex(@utf8InCpp String codePath, @utf8InCpp String instructionSet); - int mergeProfiles(int uid, @utf8InCpp String packageName, @utf8InCpp String profileName); + boolean mergeProfiles(int uid, @utf8InCpp String packageName, @utf8InCpp String profileName); boolean dumpProfiles(int uid, @utf8InCpp String packageName, @utf8InCpp String profileName, @utf8InCpp String codePath); boolean copySystemProfile(@utf8InCpp String systemProfile, int uid, @@ -91,7 +93,7 @@ interface IInstalld { @utf8InCpp String toBase); void moveAb(@utf8InCpp String apkPath, @utf8InCpp String instructionSet, @utf8InCpp String outputPath); - long deleteOdex(@utf8InCpp String apkPath, @utf8InCpp String instructionSet, + void deleteOdex(@utf8InCpp String apkPath, @utf8InCpp String instructionSet, @nullable @utf8InCpp String outputPath); void installApkVerity(@utf8InCpp String filePath, in FileDescriptor verityInput, int contentSize); |