blob: 64ac592ffea5bae08818025e0cbf936225f7396f [file] [log] [blame]
Jeff Sharkey90874002016-12-05 11:18:55 -07001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.os;
18
19interface IInstalld {
Jeff Sharkeyc1e93e72016-12-05 23:39:32 -070020 void createUserData(@nullable @utf8InCpp String uuid, int userId, int userSerial, int flags);
21 void destroyUserData(@nullable @utf8InCpp String uuid, int userId, int flags);
22
Jeff Sharkey0274c972016-12-06 09:32:04 -070023 void createAppData(in @nullable @utf8InCpp String uuid, in @utf8InCpp String packageName,
24 int userId, int flags, int appId, in @utf8InCpp String seInfo, int targetSdkVersion);
Jeff Sharkeyc1e93e72016-12-05 23:39:32 -070025 void restoreconAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName,
26 int userId, int flags, int appId, @utf8InCpp String seInfo);
27 void migrateAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName,
28 int userId, int flags);
29 void clearAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName,
30 int userId, int flags, long ceDataInode);
31 void destroyAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName,
32 int userId, int flags, long ceDataInode);
33 long getAppDataInode(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName,
34 int userId, int flags);
35
Jeff Sharkey0274c972016-12-06 09:32:04 -070036 void moveCompleteApp(@nullable @utf8InCpp String fromUuid, @nullable @utf8InCpp String toUuid,
37 @utf8InCpp String packageName, @utf8InCpp String dataAppName, int appId,
38 @utf8InCpp String seInfo, int targetSdkVersion);
Jeff Sharkey90874002016-12-05 11:18:55 -070039}