blob: aa5e4f23feb965ef373154af760997146d4b3aa6 [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
Jeff Sharkey6c2c0562016-12-07 12:12:00 -070019/** {@hide} */
Jeff Sharkey90874002016-12-05 11:18:55 -070020interface IInstalld {
Jeff Sharkeyc1e93e72016-12-05 23:39:32 -070021 void createUserData(@nullable @utf8InCpp String uuid, int userId, int userSerial, int flags);
22 void destroyUserData(@nullable @utf8InCpp String uuid, int userId, int flags);
23
Jeff Sharkey36a900a2016-12-19 16:39:18 -070024 long createAppData(@nullable @utf8InCpp String uuid, in @utf8InCpp String packageName,
Jeff Sharkey0274c972016-12-06 09:32:04 -070025 int userId, int flags, int appId, in @utf8InCpp String seInfo, int targetSdkVersion);
Jeff Sharkeyc1e93e72016-12-05 23:39:32 -070026 void restoreconAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName,
27 int userId, int flags, int appId, @utf8InCpp String seInfo);
28 void migrateAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName,
29 int userId, int flags);
30 void clearAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName,
31 int userId, int flags, long ceDataInode);
32 void destroyAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName,
33 int userId, int flags, long ceDataInode);
Jeff Sharkeydf2d7542017-01-07 09:19:35 -070034
35 long[] getAppSize(@nullable @utf8InCpp String uuid, in @utf8InCpp String[] packageNames,
36 int userId, int flags, int appId, in long[] ceDataInodes,
37 in @utf8InCpp String[] codePaths);
38 long[] getUserSize(@nullable @utf8InCpp String uuid, int userId, int flags, in int[] appIds);
39 long[] getExternalSize(@nullable @utf8InCpp String uuid, int userId, int flags);
Jeff Sharkeyc1e93e72016-12-05 23:39:32 -070040
Jeff Sharkey88ddd942017-01-17 18:05:54 -070041 void setAppQuota(@nullable @utf8InCpp String uuid, int userId, int appId, long cacheQuota);
42
Jeff Sharkey0274c972016-12-06 09:32:04 -070043 void moveCompleteApp(@nullable @utf8InCpp String fromUuid, @nullable @utf8InCpp String toUuid,
44 @utf8InCpp String packageName, @utf8InCpp String dataAppName, int appId,
45 @utf8InCpp String seInfo, int targetSdkVersion);
Jeff Sharkey475c6f92016-12-07 10:37:27 -070046
Jeff Sharkey6c2c0562016-12-07 12:12:00 -070047 void dexopt(@utf8InCpp String apkPath, int uid, @nullable @utf8InCpp String packageName,
48 @utf8InCpp String instructionSet, int dexoptNeeded,
49 @nullable @utf8InCpp String outputPath, int dexFlags,
50 @utf8InCpp String compilerFilter, @nullable @utf8InCpp String uuid,
51 @nullable @utf8InCpp String sharedLibraries);
52
Jeff Sharkey475c6f92016-12-07 10:37:27 -070053 void rmdex(@utf8InCpp String codePath, @utf8InCpp String instructionSet);
54
55 boolean mergeProfiles(int uid, @utf8InCpp String packageName);
56 boolean dumpProfiles(int uid, @utf8InCpp String packageName, @utf8InCpp String codePaths);
57 void clearAppProfiles(@utf8InCpp String packageName);
58 void destroyAppProfiles(@utf8InCpp String packageName);
59
60 void idmap(@utf8InCpp String targetApkPath, @utf8InCpp String overlayApkPath, int uid);
61 void rmPackageDir(@utf8InCpp String packageDir);
62 void markBootComplete(@utf8InCpp String instructionSet);
Jeff Sharkey88ddd942017-01-17 18:05:54 -070063 void freeCache(@nullable @utf8InCpp String uuid, long freeStorageSize, int flags);
Jeff Sharkey475c6f92016-12-07 10:37:27 -070064 void linkNativeLibraryDirectory(@nullable @utf8InCpp String uuid,
65 @utf8InCpp String packageName, @utf8InCpp String nativeLibPath32, int userId);
66 void createOatDir(@utf8InCpp String oatDir, @utf8InCpp String instructionSet);
67 void linkFile(@utf8InCpp String relativePath, @utf8InCpp String fromBase,
68 @utf8InCpp String toBase);
69 void moveAb(@utf8InCpp String apkPath, @utf8InCpp String instructionSet,
70 @utf8InCpp String outputPath);
71 void deleteOdex(@utf8InCpp String apkPath, @utf8InCpp String instructionSet,
72 @utf8InCpp String outputPath);
Jeff Sharkey66b1a122017-01-16 20:57:45 -070073
74 void invalidateMounts();
Jeff Sharkey90874002016-12-05 11:18:55 -070075}