| Andreas Gampe | 02d0de5 | 2015-11-11 20:43:16 -0800 | [diff] [blame] | 1 | /* | 
|  | 2 | ** | 
|  | 3 | ** Copyright 2008, The Android Open Source Project | 
|  | 4 | ** | 
| Jeff Sharkey | f3e30b9 | 2016-12-09 17:06:57 -0700 | [diff] [blame] | 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); | 
|  | 6 | ** you may not use this file except in compliance with the License. | 
|  | 7 | ** You may obtain a copy of the License at | 
| Andreas Gampe | 02d0de5 | 2015-11-11 20:43:16 -0800 | [diff] [blame] | 8 | ** | 
| Jeff Sharkey | f3e30b9 | 2016-12-09 17:06:57 -0700 | [diff] [blame] | 9 | **     http://www.apache.org/licenses/LICENSE-2.0 | 
| Andreas Gampe | 02d0de5 | 2015-11-11 20:43:16 -0800 | [diff] [blame] | 10 | ** | 
| Jeff Sharkey | f3e30b9 | 2016-12-09 17:06:57 -0700 | [diff] [blame] | 11 | ** Unless required by applicable law or agreed to in writing, software | 
|  | 12 | ** distributed under the License is distributed on an "AS IS" BASIS, | 
|  | 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
|  | 14 | ** See the License for the specific language governing permissions and | 
| Andreas Gampe | 02d0de5 | 2015-11-11 20:43:16 -0800 | [diff] [blame] | 15 | ** limitations under the License. | 
|  | 16 | */ | 
|  | 17 |  | 
|  | 18 | #ifndef COMMANDS_H_ | 
|  | 19 | #define COMMANDS_H_ | 
|  | 20 |  | 
|  | 21 | #include <inttypes.h> | 
|  | 22 | #include <unistd.h> | 
|  | 23 |  | 
| Jeff Sharkey | 0274c97 | 2016-12-06 09:32:04 -0700 | [diff] [blame] | 24 | #include <vector> | 
| Jeff Sharkey | 66b1a12 | 2017-01-16 20:57:45 -0700 | [diff] [blame] | 25 | #include <unordered_map> | 
| Jeff Sharkey | 0274c97 | 2016-12-06 09:32:04 -0700 | [diff] [blame] | 26 |  | 
| Jeff Sharkey | 88ddd94 | 2017-01-17 18:05:54 -0700 | [diff] [blame] | 27 | #include <android-base/macros.h> | 
| Jeff Sharkey | 0274c97 | 2016-12-06 09:32:04 -0700 | [diff] [blame] | 28 | #include <binder/BinderService.h> | 
| Andreas Gampe | 02d0de5 | 2015-11-11 20:43:16 -0800 | [diff] [blame] | 29 | #include <cutils/multiuser.h> | 
|  | 30 |  | 
| Jeff Sharkey | 0274c97 | 2016-12-06 09:32:04 -0700 | [diff] [blame] | 31 | #include "android/os/BnInstalld.h" | 
|  | 32 | #include "installd_constants.h" | 
| Andreas Gampe | 02d0de5 | 2015-11-11 20:43:16 -0800 | [diff] [blame] | 33 |  | 
|  | 34 | namespace android { | 
|  | 35 | namespace installd { | 
|  | 36 |  | 
| Jeff Sharkey | 0274c97 | 2016-12-06 09:32:04 -0700 | [diff] [blame] | 37 | class InstalldNativeService : public BinderService<InstalldNativeService>, public os::BnInstalld { | 
|  | 38 | public: | 
|  | 39 | static status_t start(); | 
|  | 40 | static char const* getServiceName() { return "installd"; } | 
|  | 41 | virtual status_t dump(int fd, const Vector<String16> &args) override; | 
| Andreas Gampe | d089ca1 | 2016-06-27 14:25:30 -0700 | [diff] [blame] | 42 |  | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 43 | binder::Status createUserData(const std::optional<std::string>& uuid, int32_t userId, | 
| Jeff Sharkey | c1e93e7 | 2016-12-05 23:39:32 -0700 | [diff] [blame] | 44 | int32_t userSerial, int32_t flags); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 45 | binder::Status destroyUserData(const std::optional<std::string>& uuid, int32_t userId, | 
| Jeff Sharkey | c1e93e7 | 2016-12-05 23:39:32 -0700 | [diff] [blame] | 46 | int32_t flags); | 
| Jeff Sharkey | 8d3848b | 2020-08-13 14:16:46 -0600 | [diff] [blame] | 47 |  | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 48 | binder::Status createAppData(const std::optional<std::string>& uuid, | 
| Jeff Sharkey | 0274c97 | 2016-12-06 09:32:04 -0700 | [diff] [blame] | 49 | const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, | 
| Jeff Sharkey | 36a900a | 2016-12-19 16:39:18 -0700 | [diff] [blame] | 50 | const std::string& seInfo, int32_t targetSdkVersion, int64_t* _aidl_return); | 
| Jeff Sharkey | 8d3848b | 2020-08-13 14:16:46 -0600 | [diff] [blame] | 51 |  | 
|  | 52 | binder::Status createAppData( | 
|  | 53 | const android::os::CreateAppDataArgs& args, | 
|  | 54 | android::os::CreateAppDataResult* _aidl_return); | 
|  | 55 | binder::Status createAppDataBatched( | 
|  | 56 | const std::vector<android::os::CreateAppDataArgs>& args, | 
|  | 57 | std::vector<android::os::CreateAppDataResult>* _aidl_return); | 
|  | 58 |  | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 59 | binder::Status restoreconAppData(const std::optional<std::string>& uuid, | 
| Jeff Sharkey | c1e93e7 | 2016-12-05 23:39:32 -0700 | [diff] [blame] | 60 | const std::string& packageName, int32_t userId, int32_t flags, int32_t appId, | 
|  | 61 | const std::string& seInfo); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 62 | binder::Status migrateAppData(const std::optional<std::string>& uuid, | 
| Jeff Sharkey | c1e93e7 | 2016-12-05 23:39:32 -0700 | [diff] [blame] | 63 | const std::string& packageName, int32_t userId, int32_t flags); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 64 | binder::Status clearAppData(const std::optional<std::string>& uuid, | 
| Jeff Sharkey | c1e93e7 | 2016-12-05 23:39:32 -0700 | [diff] [blame] | 65 | const std::string& packageName, int32_t userId, int32_t flags, int64_t ceDataInode); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 66 | binder::Status destroyAppData(const std::optional<std::string>& uuid, | 
| Jeff Sharkey | c1e93e7 | 2016-12-05 23:39:32 -0700 | [diff] [blame] | 67 | const std::string& packageName, int32_t userId, int32_t flags, int64_t ceDataInode); | 
| Jeff Sharkey | df2d754 | 2017-01-07 09:19:35 -0700 | [diff] [blame] | 68 |  | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 69 | binder::Status fixupAppData(const std::optional<std::string>& uuid, int32_t flags); | 
| Jeff Sharkey | e12d596 | 2017-04-03 16:41:02 -0600 | [diff] [blame] | 70 |  | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 71 | binder::Status snapshotAppData(const std::optional<std::string>& volumeUuid, | 
| Nikita Ioffe | b68f0d1 | 2019-02-04 11:06:37 +0000 | [diff] [blame] | 72 | const std::string& packageName, const int32_t user, const int32_t snapshotId, | 
|  | 73 | int32_t storageFlags, int64_t* _aidl_return); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 74 | binder::Status restoreAppDataSnapshot(const std::optional<std::string>& volumeUuid, | 
| Nikita Ioffe | b68f0d1 | 2019-02-04 11:06:37 +0000 | [diff] [blame] | 75 | const std::string& packageName, const int32_t appId, const std::string& seInfo, | 
|  | 76 | const int32_t user, const int32_t snapshotId, int32_t storageFlags); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 77 | binder::Status destroyAppDataSnapshot(const std::optional<std::string> &volumeUuid, | 
| Nikita Ioffe | 77be2ed | 2019-01-25 13:54:43 +0000 | [diff] [blame] | 78 | const std::string& packageName, const int32_t user, const int64_t ceSnapshotInode, | 
| Nikita Ioffe | b68f0d1 | 2019-02-04 11:06:37 +0000 | [diff] [blame] | 79 | const int32_t snapshotId, int32_t storageFlags); | 
| Oli Lan | 035abbb | 2020-03-16 18:18:41 +0000 | [diff] [blame] | 80 | binder::Status destroyCeSnapshotsNotSpecified(const std::optional<std::string> &volumeUuid, | 
|  | 81 | const int32_t user, const std::vector<int32_t>& retainSnapshotIds); | 
| Narayan Kamath | e63ca7d | 2019-01-14 15:21:52 +0000 | [diff] [blame] | 82 |  | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 83 | binder::Status getAppSize(const std::optional<std::string>& uuid, | 
| Jeff Sharkey | df2d754 | 2017-01-07 09:19:35 -0700 | [diff] [blame] | 84 | const std::vector<std::string>& packageNames, int32_t userId, int32_t flags, | 
|  | 85 | int32_t appId, const std::vector<int64_t>& ceDataInodes, | 
|  | 86 | const std::vector<std::string>& codePaths, std::vector<int64_t>* _aidl_return); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 87 | binder::Status getUserSize(const std::optional<std::string>& uuid, | 
| Jeff Sharkey | df2d754 | 2017-01-07 09:19:35 -0700 | [diff] [blame] | 88 | int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, | 
|  | 89 | std::vector<int64_t>* _aidl_return); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 90 | binder::Status getExternalSize(const std::optional<std::string>& uuid, | 
| Jeff Sharkey | a084fcd | 2017-04-17 16:44:41 -0600 | [diff] [blame] | 91 | int32_t userId, int32_t flags, const std::vector<int32_t>& appIds, | 
|  | 92 | std::vector<int64_t>* _aidl_return); | 
| Jeff Sharkey | c1e93e7 | 2016-12-05 23:39:32 -0700 | [diff] [blame] | 93 |  | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 94 | binder::Status getAppCrates(const std::optional<std::string>& uuid, | 
| Felka Chang | 2a0a246 | 2019-11-20 14:20:40 +0800 | [diff] [blame] | 95 | const std::vector<std::string>& packageNames, | 
|  | 96 | int32_t userId, | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 97 | std::optional<std::vector<std::optional<android::os::storage::CrateMetadata>>>* | 
| Felka Chang | 2a0a246 | 2019-11-20 14:20:40 +0800 | [diff] [blame] | 98 | _aidl_return); | 
|  | 99 | binder::Status getUserCrates( | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 100 | const std::optional<std::string>& uuid, int32_t userId, | 
|  | 101 | std::optional<std::vector<std::optional<android::os::storage::CrateMetadata>>>* | 
| Felka Chang | 2a0a246 | 2019-11-20 14:20:40 +0800 | [diff] [blame] | 102 | _aidl_return); | 
|  | 103 |  | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 104 | binder::Status setAppQuota(const std::optional<std::string>& uuid, | 
| Jeff Sharkey | 88ddd94 | 2017-01-17 18:05:54 -0700 | [diff] [blame] | 105 | int32_t userId, int32_t appId, int64_t cacheQuota); | 
|  | 106 |  | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 107 | binder::Status moveCompleteApp(const std::optional<std::string>& fromUuid, | 
|  | 108 | const std::optional<std::string>& toUuid, const std::string& packageName, | 
| Songchun Fan | dc2083f | 2020-02-18 17:45:46 -0800 | [diff] [blame] | 109 | int32_t appId, const std::string& seInfo, | 
| Songchun Fan | aed3337 | 2020-02-05 12:02:22 -0800 | [diff] [blame] | 110 | int32_t targetSdkVersion, const std::string& fromCodePath); | 
| Jeff Sharkey | 475c6f9 | 2016-12-07 10:37:27 -0700 | [diff] [blame] | 111 |  | 
| Jeff Sharkey | 6c2c056 | 2016-12-07 12:12:00 -0700 | [diff] [blame] | 112 | binder::Status dexopt(const std::string& apkPath, int32_t uid, | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 113 | const std::optional<std::string>& packageName, const std::string& instructionSet, | 
|  | 114 | int32_t dexoptNeeded, const std::optional<std::string>& outputPath, int32_t dexFlags, | 
|  | 115 | const std::string& compilerFilter, const std::optional<std::string>& uuid, | 
|  | 116 | const std::optional<std::string>& classLoaderContext, | 
|  | 117 | const std::optional<std::string>& seInfo, bool downgrade, | 
|  | 118 | int32_t targetSdkVersion, const std::optional<std::string>& profileName, | 
|  | 119 | const std::optional<std::string>& dexMetadataPath, | 
|  | 120 | const std::optional<std::string>& compilationReason); | 
| Jeff Sharkey | 6c2c056 | 2016-12-07 12:12:00 -0700 | [diff] [blame] | 121 |  | 
| Eric Holk | 0ebbe0f | 2019-01-09 18:17:27 -0800 | [diff] [blame] | 122 | binder::Status compileLayouts(const std::string& apkPath, const std::string& packageName, | 
|  | 123 | const std::string& outDexFile, int uid, bool* _aidl_return); | 
|  | 124 |  | 
| Jeff Sharkey | 475c6f9 | 2016-12-07 10:37:27 -0700 | [diff] [blame] | 125 | binder::Status rmdex(const std::string& codePath, const std::string& instructionSet); | 
|  | 126 |  | 
| Calin Juravle | 562de81 | 2018-01-20 23:34:18 -0800 | [diff] [blame] | 127 | binder::Status mergeProfiles(int32_t uid, const std::string& packageName, | 
|  | 128 | const std::string& profileName, bool* _aidl_return); | 
| Jeff Sharkey | 475c6f9 | 2016-12-07 10:37:27 -0700 | [diff] [blame] | 129 | binder::Status dumpProfiles(int32_t uid, const std::string& packageName, | 
| Calin Juravle | 562de81 | 2018-01-20 23:34:18 -0800 | [diff] [blame] | 130 | const std::string& profileName, const std::string& codePath, bool* _aidl_return); | 
| Mathieu Chartier | f966f2a | 2017-05-10 12:48:37 -0700 | [diff] [blame] | 131 | binder::Status copySystemProfile(const std::string& systemProfile, | 
| Calin Juravle | 562de81 | 2018-01-20 23:34:18 -0800 | [diff] [blame] | 132 | int32_t uid, const std::string& packageName, const std::string& profileName, | 
|  | 133 | bool* _aidl_return); | 
|  | 134 | binder::Status clearAppProfiles(const std::string& packageName, const std::string& profileName); | 
| Jeff Sharkey | 475c6f9 | 2016-12-07 10:37:27 -0700 | [diff] [blame] | 135 | binder::Status destroyAppProfiles(const std::string& packageName); | 
|  | 136 |  | 
| Calin Juravle | c41dac2 | 2017-12-05 12:29:15 -0800 | [diff] [blame] | 137 | binder::Status createProfileSnapshot(int32_t appId, const std::string& packageName, | 
| Calin Juravle | e61189e | 2018-01-23 19:54:11 -0800 | [diff] [blame] | 138 | const std::string& profileName, const std::string& classpath, bool* _aidl_return); | 
| Calin Juravle | 2959173 | 2017-11-20 17:46:19 -0800 | [diff] [blame] | 139 | binder::Status destroyProfileSnapshot(const std::string& packageName, | 
| Calin Juravle | 562de81 | 2018-01-20 23:34:18 -0800 | [diff] [blame] | 140 | const std::string& profileName); | 
| Calin Juravle | 2959173 | 2017-11-20 17:46:19 -0800 | [diff] [blame] | 141 |  | 
| Jeff Sharkey | 475c6f9 | 2016-12-07 10:37:27 -0700 | [diff] [blame] | 142 | binder::Status rmPackageDir(const std::string& packageDir); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 143 | binder::Status freeCache(const std::optional<std::string>& uuid, int64_t targetFreeBytes, | 
| Jeff Sharkey | 60f8a53 | 2017-05-30 14:38:42 -0600 | [diff] [blame] | 144 | int64_t cacheReservedBytes, int32_t flags); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 145 | binder::Status linkNativeLibraryDirectory(const std::optional<std::string>& uuid, | 
| Jeff Sharkey | 6c2c056 | 2016-12-07 12:12:00 -0700 | [diff] [blame] | 146 | const std::string& packageName, const std::string& nativeLibPath32, int32_t userId); | 
| Jeff Sharkey | 475c6f9 | 2016-12-07 10:37:27 -0700 | [diff] [blame] | 147 | binder::Status createOatDir(const std::string& oatDir, const std::string& instructionSet); | 
| Jeff Sharkey | 6c2c056 | 2016-12-07 12:12:00 -0700 | [diff] [blame] | 148 | binder::Status linkFile(const std::string& relativePath, const std::string& fromBase, | 
|  | 149 | const std::string& toBase); | 
|  | 150 | binder::Status moveAb(const std::string& apkPath, const std::string& instructionSet, | 
|  | 151 | const std::string& outputPath); | 
|  | 152 | binder::Status deleteOdex(const std::string& apkPath, const std::string& instructionSet, | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 153 | const std::optional<std::string>& outputPath); | 
| Victor Hsieh | 99de516 | 2017-10-06 14:44:14 -0700 | [diff] [blame] | 154 | binder::Status installApkVerity(const std::string& filePath, | 
| Jiyong Park | 3b25ae1 | 2019-11-25 11:06:16 +0900 | [diff] [blame] | 155 | android::base::unique_fd verityInput, int32_t contentSize); | 
| Victor Hsieh | c6d738a | 2018-01-20 15:06:39 -0800 | [diff] [blame] | 156 | binder::Status assertFsverityRootHashMatches(const std::string& filePath, | 
|  | 157 | const std::vector<uint8_t>& expectedHash); | 
| Calin Juravle | bd96836 | 2017-01-25 01:17:17 -0800 | [diff] [blame] | 158 | binder::Status reconcileSecondaryDexFile(const std::string& dexPath, | 
|  | 159 | const std::string& packageName, int32_t uid, const std::vector<std::string>& isa, | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 160 | const std::optional<std::string>& volumeUuid, int32_t storage_flag, bool* _aidl_return); | 
| Alan Stokes | 753dc71 | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 161 | binder::Status hashSecondaryDexFile(const std::string& dexPath, | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 162 | const std::string& packageName, int32_t uid, const std::optional<std::string>& volumeUuid, | 
| Alan Stokes | 753dc71 | 2017-10-16 10:56:00 +0100 | [diff] [blame] | 163 | int32_t storageFlag, std::vector<uint8_t>* _aidl_return); | 
| Jeff Sharkey | 7a9059e | 2017-01-16 19:07:18 -0700 | [diff] [blame] | 164 |  | 
| Jeff Sharkey | 66b1a12 | 2017-01-16 20:57:45 -0700 | [diff] [blame] | 165 | binder::Status invalidateMounts(); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 166 | binder::Status isQuotaSupported(const std::optional<std::string>& volumeUuid, | 
| Jeff Sharkey | 325b8c9 | 2017-02-21 10:00:53 -0700 | [diff] [blame] | 167 | bool* _aidl_return); | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 168 | binder::Status tryMountDataMirror(const std::optional<std::string>& volumeUuid); | 
|  | 169 | binder::Status onPrivateVolumeRemoved(const std::optional<std::string>& volumeUuid); | 
| Jeff Sharkey | 66b1a12 | 2017-01-16 20:57:45 -0700 | [diff] [blame] | 170 |  | 
| Calin Juravle | bc5ab87 | 2018-01-18 22:32:58 -0800 | [diff] [blame] | 171 | binder::Status prepareAppProfile(const std::string& packageName, | 
|  | 172 | int32_t userId, int32_t appId, const std::string& profileName, | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 173 | const std::string& codePath, const std::optional<std::string>& dexMetadata, | 
| Calin Juravle | bc5ab87 | 2018-01-18 22:32:58 -0800 | [diff] [blame] | 174 | bool* _aidl_return); | 
|  | 175 |  | 
| Narayan Kamath | 28ab93b | 2019-05-15 18:29:44 +0100 | [diff] [blame] | 176 | binder::Status migrateLegacyObbData(); | 
|  | 177 |  | 
| Jeff Sharkey | 7a9059e | 2017-01-16 19:07:18 -0700 | [diff] [blame] | 178 | private: | 
|  | 179 | std::recursive_mutex mLock; | 
| Jeff Sharkey | 66b1a12 | 2017-01-16 20:57:45 -0700 | [diff] [blame] | 180 |  | 
| Jeff Sharkey | d712f0c | 2017-05-03 11:36:42 -0600 | [diff] [blame] | 181 | std::recursive_mutex mMountsLock; | 
|  | 182 | std::recursive_mutex mQuotasLock; | 
| Jeff Sharkey | b26786d | 2017-03-11 19:40:29 -0700 | [diff] [blame] | 183 |  | 
| Jeff Sharkey | d712f0c | 2017-05-03 11:36:42 -0600 | [diff] [blame] | 184 | /* Map of all storage mounts from source to target */ | 
|  | 185 | std::unordered_map<std::string, std::string> mStorageMounts; | 
| Jeff Sharkey | d712f0c | 2017-05-03 11:36:42 -0600 | [diff] [blame] | 186 |  | 
| Jeff Sharkey | 88ddd94 | 2017-01-17 18:05:54 -0700 | [diff] [blame] | 187 | /* Map from UID to cache quota size */ | 
|  | 188 | std::unordered_map<uid_t, int64_t> mCacheQuotas; | 
| Jeff Sharkey | 66b1a12 | 2017-01-16 20:57:45 -0700 | [diff] [blame] | 189 |  | 
| Jooyung Han | 2d5878e | 2020-01-23 12:45:10 +0900 | [diff] [blame] | 190 | std::string findDataMediaPath(const std::optional<std::string>& uuid, userid_t userid); | 
| Jeff Sharkey | 0274c97 | 2016-12-06 09:32:04 -0700 | [diff] [blame] | 191 | }; | 
|  | 192 |  | 
| Andreas Gampe | 02d0de5 | 2015-11-11 20:43:16 -0800 | [diff] [blame] | 193 | }  // namespace installd | 
|  | 194 | }  // namespace android | 
|  | 195 |  | 
|  | 196 | #endif  // COMMANDS_H_ |