Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 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 | |
| 17 | #include "mount_namespace.h" |
| 18 | |
| 19 | #include <sys/mount.h> |
| 20 | |
| 21 | #include <string> |
| 22 | #include <vector> |
| 23 | |
Jiyong Park | 8502ed3 | 2019-02-25 22:18:37 +0900 | [diff] [blame] | 24 | #include <ApexProperties.sysprop.h> |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 25 | #include <android-base/file.h> |
| 26 | #include <android-base/logging.h> |
| 27 | #include <android-base/properties.h> |
Jooyung Han | 5bb9d21 | 2019-11-25 13:50:44 +0900 | [diff] [blame] | 28 | #include <android-base/result.h> |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 29 | #include <android-base/unique_fd.h> |
| 30 | |
| 31 | #include "util.h" |
| 32 | |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 33 | #ifndef RECOVERY |
| 34 | #define ACTIVATE_FLATTENED_APEX 1 |
| 35 | #endif |
| 36 | |
| 37 | #ifdef ACTIVATE_FLATTENED_APEX |
| 38 | #include <apex_manifest.pb.h> |
| 39 | #include <com_android_apex.h> |
| 40 | #include <selinux/android.h> |
| 41 | #endif // ACTIVATE_FLATTENED_APEX |
| 42 | |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 43 | namespace android { |
| 44 | namespace init { |
| 45 | namespace { |
| 46 | |
Martijn Coenen | c70c066 | 2020-01-10 15:42:15 +0100 | [diff] [blame] | 47 | static bool BindMount(const std::string& source, const std::string& mount_point, |
| 48 | bool recursive = false) { |
| 49 | unsigned long mountflags = MS_BIND; |
| 50 | if (recursive) { |
| 51 | mountflags |= MS_REC; |
| 52 | } |
| 53 | if (mount(source.c_str(), mount_point.c_str(), nullptr, mountflags, nullptr) == -1) { |
| 54 | PLOG(ERROR) << "Failed to bind mount " << source; |
| 55 | return false; |
| 56 | } |
| 57 | return true; |
| 58 | } |
| 59 | |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 60 | static bool MakeShared(const std::string& mount_point, bool recursive = false) { |
| 61 | unsigned long mountflags = MS_SHARED; |
| 62 | if (recursive) { |
| 63 | mountflags |= MS_REC; |
| 64 | } |
| 65 | if (mount(nullptr, mount_point.c_str(), nullptr, mountflags, nullptr) == -1) { |
| 66 | PLOG(ERROR) << "Failed to change propagation type to shared"; |
| 67 | return false; |
| 68 | } |
| 69 | return true; |
| 70 | } |
| 71 | |
Martijn Coenen | c70c066 | 2020-01-10 15:42:15 +0100 | [diff] [blame] | 72 | static bool MakeSlave(const std::string& mount_point, bool recursive = false) { |
| 73 | unsigned long mountflags = MS_SLAVE; |
| 74 | if (recursive) { |
| 75 | mountflags |= MS_REC; |
| 76 | } |
| 77 | if (mount(nullptr, mount_point.c_str(), nullptr, mountflags, nullptr) == -1) { |
| 78 | PLOG(ERROR) << "Failed to change propagation type to slave"; |
| 79 | return false; |
| 80 | } |
| 81 | return true; |
| 82 | } |
| 83 | |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 84 | static bool MakePrivate(const std::string& mount_point, bool recursive = false) { |
| 85 | unsigned long mountflags = MS_PRIVATE; |
| 86 | if (recursive) { |
| 87 | mountflags |= MS_REC; |
| 88 | } |
| 89 | if (mount(nullptr, mount_point.c_str(), nullptr, mountflags, nullptr) == -1) { |
| 90 | PLOG(ERROR) << "Failed to change propagation type to private"; |
| 91 | return false; |
| 92 | } |
| 93 | return true; |
| 94 | } |
| 95 | |
| 96 | static int OpenMountNamespace() { |
| 97 | int fd = open("/proc/self/ns/mnt", O_RDONLY | O_CLOEXEC); |
| 98 | if (fd < 0) { |
| 99 | PLOG(ERROR) << "Cannot open fd for current mount namespace"; |
| 100 | } |
| 101 | return fd; |
| 102 | } |
| 103 | |
| 104 | static std::string GetMountNamespaceId() { |
| 105 | std::string ret; |
| 106 | if (!android::base::Readlink("/proc/self/ns/mnt", &ret)) { |
| 107 | PLOG(ERROR) << "Failed to read namespace ID"; |
| 108 | return ""; |
| 109 | } |
| 110 | return ret; |
| 111 | } |
| 112 | |
Jiyong Park | 8502ed3 | 2019-02-25 22:18:37 +0900 | [diff] [blame] | 113 | static bool IsApexUpdatable() { |
| 114 | static bool updatable = android::sysprop::ApexProperties::updatable().value_or(false); |
| 115 | return updatable; |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 116 | } |
| 117 | |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 118 | #ifdef ACTIVATE_FLATTENED_APEX |
| 119 | |
Jooyung Han | 5bb9d21 | 2019-11-25 13:50:44 +0900 | [diff] [blame] | 120 | static Result<void> MountDir(const std::string& path, const std::string& mount_path) { |
Satoshi Niwa | 1eb300d | 2020-01-20 18:00:49 +0900 | [diff] [blame] | 121 | if (int ret = mkdir(mount_path.c_str(), 0755); ret != 0 && errno != EEXIST) { |
Jooyung Han | 5bb9d21 | 2019-11-25 13:50:44 +0900 | [diff] [blame] | 122 | return ErrnoError() << "Could not create mount point " << mount_path; |
| 123 | } |
| 124 | if (mount(path.c_str(), mount_path.c_str(), nullptr, MS_BIND, nullptr) != 0) { |
| 125 | return ErrnoError() << "Could not bind mount " << path << " to " << mount_path; |
| 126 | } |
| 127 | return {}; |
| 128 | } |
| 129 | |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 130 | static Result<apex::proto::ApexManifest> GetApexManifest(const std::string& apex_dir) { |
Jiyong Park | 648ae3a | 2019-12-08 00:25:15 +0900 | [diff] [blame] | 131 | const std::string manifest_path = apex_dir + "/apex_manifest.pb"; |
| 132 | std::string content; |
| 133 | if (!android::base::ReadFileToString(manifest_path, &content)) { |
| 134 | return Error() << "Failed to read manifest file: " << manifest_path; |
| 135 | } |
| 136 | apex::proto::ApexManifest manifest; |
| 137 | if (!manifest.ParseFromString(content)) { |
| 138 | return Error() << "Can't parse manifest file: " << manifest_path; |
| 139 | } |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 140 | return manifest; |
Jiyong Park | 648ae3a | 2019-12-08 00:25:15 +0900 | [diff] [blame] | 141 | } |
| 142 | |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 143 | template <typename Fn> |
Jooyung Han | 5bb9d21 | 2019-11-25 13:50:44 +0900 | [diff] [blame] | 144 | static Result<void> ActivateFlattenedApexesFrom(const std::string& from_dir, |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 145 | const std::string& to_dir, Fn on_activate) { |
Jooyung Han | 5bb9d21 | 2019-11-25 13:50:44 +0900 | [diff] [blame] | 146 | std::unique_ptr<DIR, decltype(&closedir)> dir(opendir(from_dir.c_str()), closedir); |
| 147 | if (!dir) { |
| 148 | return {}; |
| 149 | } |
| 150 | dirent* entry; |
| 151 | while ((entry = readdir(dir.get())) != nullptr) { |
| 152 | if (entry->d_name[0] == '.') continue; |
| 153 | if (entry->d_type == DT_DIR) { |
| 154 | const std::string apex_path = from_dir + "/" + entry->d_name; |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 155 | const auto apex_manifest = GetApexManifest(apex_path); |
| 156 | if (!apex_manifest.ok()) { |
| 157 | LOG(ERROR) << apex_path << " is not an APEX directory: " << apex_manifest.error(); |
Jiyong Park | 648ae3a | 2019-12-08 00:25:15 +0900 | [diff] [blame] | 158 | continue; |
| 159 | } |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 160 | const std::string mount_path = to_dir + "/" + apex_manifest->name(); |
Bernie Innocenti | cecebbb | 2020-02-06 03:49:33 +0900 | [diff] [blame] | 161 | if (auto result = MountDir(apex_path, mount_path); !result.ok()) { |
Jooyung Han | 5bb9d21 | 2019-11-25 13:50:44 +0900 | [diff] [blame] | 162 | return result; |
| 163 | } |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 164 | on_activate(apex_path, *apex_manifest); |
Jooyung Han | 5bb9d21 | 2019-11-25 13:50:44 +0900 | [diff] [blame] | 165 | } |
| 166 | } |
| 167 | return {}; |
| 168 | } |
| 169 | |
Jiyong Park | d7f7c20 | 2019-05-10 21:12:15 +0900 | [diff] [blame] | 170 | static bool ActivateFlattenedApexesIfPossible() { |
| 171 | if (IsRecoveryMode() || IsApexUpdatable()) { |
| 172 | return true; |
| 173 | } |
| 174 | |
Jooyung Han | 5bb9d21 | 2019-11-25 13:50:44 +0900 | [diff] [blame] | 175 | const std::string kApexTop = "/apex"; |
| 176 | const std::vector<std::string> kBuiltinDirsForApexes = { |
| 177 | "/system/apex", |
| 178 | "/system_ext/apex", |
| 179 | "/product/apex", |
| 180 | "/vendor/apex", |
| 181 | }; |
Jiyong Park | d7f7c20 | 2019-05-10 21:12:15 +0900 | [diff] [blame] | 182 | |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 183 | std::vector<com::android::apex::ApexInfo> apex_infos; |
| 184 | auto on_activate = [&](const std::string& apex_path, |
| 185 | const apex::proto::ApexManifest& apex_manifest) { |
| 186 | apex_infos.emplace_back(apex_manifest.name(), apex_path, apex_path, apex_manifest.version(), |
| 187 | apex_manifest.versionname(), /*isFactory=*/true, /*isActive=*/true); |
| 188 | }; |
| 189 | |
Jooyung Han | 5bb9d21 | 2019-11-25 13:50:44 +0900 | [diff] [blame] | 190 | for (const auto& dir : kBuiltinDirsForApexes) { |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 191 | if (auto result = ActivateFlattenedApexesFrom(dir, kApexTop, on_activate); !result.ok()) { |
Jooyung Han | 5bb9d21 | 2019-11-25 13:50:44 +0900 | [diff] [blame] | 192 | LOG(ERROR) << result.error(); |
| 193 | return false; |
| 194 | } |
| 195 | } |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 196 | |
| 197 | std::ostringstream oss; |
| 198 | com::android::apex::ApexInfoList apex_info_list(apex_infos); |
| 199 | com::android::apex::write(oss, apex_info_list); |
| 200 | const std::string kApexInfoList = kApexTop + "/apex-info-list.xml"; |
| 201 | if (!android::base::WriteStringToFile(oss.str(), kApexInfoList)) { |
| 202 | PLOG(ERROR) << "Failed to write " << kApexInfoList; |
| 203 | return false; |
| 204 | } |
| 205 | if (selinux_android_restorecon(kApexInfoList.c_str(), 0) != 0) { |
| 206 | PLOG(ERROR) << "selinux_android_restorecon(" << kApexInfoList << ") failed"; |
| 207 | } |
| 208 | |
Jiyong Park | 648ae3a | 2019-12-08 00:25:15 +0900 | [diff] [blame] | 209 | return true; |
Jiyong Park | d7f7c20 | 2019-05-10 21:12:15 +0900 | [diff] [blame] | 210 | } |
| 211 | |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 212 | #endif // ACTIVATE_FLATTENED_APEX |
| 213 | |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 214 | static android::base::unique_fd bootstrap_ns_fd; |
| 215 | static android::base::unique_fd default_ns_fd; |
| 216 | |
| 217 | static std::string bootstrap_ns_id; |
| 218 | static std::string default_ns_id; |
| 219 | |
| 220 | } // namespace |
| 221 | |
| 222 | bool SetupMountNamespaces() { |
| 223 | // Set the propagation type of / as shared so that any mounting event (e.g. |
| 224 | // /data) is by default visible to all processes. When private mounting is |
| 225 | // needed for /foo/bar, then we will make /foo/bar as a mount point (by |
| 226 | // bind-mounting by to itself) and set the propagation type of the mount |
| 227 | // point to private. |
| 228 | if (!MakeShared("/", true /*recursive*/)) return false; |
| 229 | |
Jiyong Park | 7b4801a | 2019-02-25 16:41:38 +0900 | [diff] [blame] | 230 | // /apex is a private mountpoint to give different sets of APEXes for |
Jiyong Park | dcbaf9f | 2019-02-22 22:15:25 +0900 | [diff] [blame] | 231 | // the bootstrap and default mount namespaces. The processes running with |
| 232 | // the bootstrap namespace get APEXes from the read-only partition. |
| 233 | if (!(MakePrivate("/apex"))) return false; |
| 234 | |
Kiyoung Kim | 99df54b | 2019-11-22 16:14:10 +0900 | [diff] [blame] | 235 | // /linkerconfig is a private mountpoint to give a different linker configuration |
| 236 | // based on the mount namespace. Subdirectory will be bind-mounted based on current mount |
| 237 | // namespace |
| 238 | if (!(MakePrivate("/linkerconfig"))) return false; |
| 239 | |
Martijn Coenen | c70c066 | 2020-01-10 15:42:15 +0100 | [diff] [blame] | 240 | // The two mount namespaces present challenges for scoped storage, because |
| 241 | // vold, which is responsible for most of the mounting, lives in the |
| 242 | // bootstrap mount namespace, whereas most other daemons and all apps live |
| 243 | // in the default namespace. Scoped storage has a need for a |
| 244 | // /mnt/installer view that is a slave bind mount of /mnt/user - in other |
| 245 | // words, all mounts under /mnt/user should automatically show up under |
| 246 | // /mnt/installer. However, additional mounts done under /mnt/installer |
| 247 | // should not propagate back to /mnt/user. In a single mount namespace |
| 248 | // this is easy to achieve, by simply marking the /mnt/installer a slave |
| 249 | // bind mount. Unfortunately, if /mnt/installer is only created and |
| 250 | // bind mounted after the two namespaces are created below, we end up |
| 251 | // with the following situation: |
| 252 | // /mnt/user and /mnt/installer share the same peer group in both the |
| 253 | // bootstrap and default namespaces. Marking /mnt/installer slave in either |
| 254 | // namespace means that it won't propagate events to the /mnt/installer in |
| 255 | // the other namespace, which is still something we require - vold is the |
| 256 | // one doing the mounting under /mnt/installer, and those mounts should |
| 257 | // show up in the default namespace as well. |
| 258 | // |
| 259 | // The simplest solution is to do the bind mount before the two namespaces |
| 260 | // are created: the effect is that in both namespaces, /mnt/installer is a |
| 261 | // slave to the /mnt/user mount, and at the same time /mnt/installer in the |
| 262 | // bootstrap namespace shares a peer group with /mnt/installer in the |
| 263 | // default namespace. |
Ricky Wai | a4c163d | 2020-04-21 12:16:43 +0100 | [diff] [blame] | 264 | // /mnt/androidwritable is similar to /mnt/installer but serves for |
| 265 | // MOUNT_EXTERNAL_ANDROID_WRITABLE apps. |
Martijn Coenen | c70c066 | 2020-01-10 15:42:15 +0100 | [diff] [blame] | 266 | if (!mkdir_recursive("/mnt/user", 0755)) return false; |
| 267 | if (!mkdir_recursive("/mnt/installer", 0755)) return false; |
Ricky Wai | a4c163d | 2020-04-21 12:16:43 +0100 | [diff] [blame] | 268 | if (!mkdir_recursive("/mnt/androidwritable", 0755)) return false; |
Martijn Coenen | c70c066 | 2020-01-10 15:42:15 +0100 | [diff] [blame] | 269 | if (!(BindMount("/mnt/user", "/mnt/installer", true))) return false; |
Ricky Wai | a4c163d | 2020-04-21 12:16:43 +0100 | [diff] [blame] | 270 | if (!(BindMount("/mnt/user", "/mnt/androidwritable", true))) return false; |
| 271 | // First, make /mnt/installer and /mnt/androidwritable a slave bind mount |
Martijn Coenen | c70c066 | 2020-01-10 15:42:15 +0100 | [diff] [blame] | 272 | if (!(MakeSlave("/mnt/installer"))) return false; |
Ricky Wai | a4c163d | 2020-04-21 12:16:43 +0100 | [diff] [blame] | 273 | if (!(MakeSlave("/mnt/androidwritable"))) return false; |
Martijn Coenen | c70c066 | 2020-01-10 15:42:15 +0100 | [diff] [blame] | 274 | // Then, make it shared again - effectively creating a new peer group, that |
| 275 | // will be inherited by new mount namespaces. |
| 276 | if (!(MakeShared("/mnt/installer"))) return false; |
Ricky Wai | a4c163d | 2020-04-21 12:16:43 +0100 | [diff] [blame] | 277 | if (!(MakeShared("/mnt/androidwritable"))) return false; |
Martijn Coenen | c70c066 | 2020-01-10 15:42:15 +0100 | [diff] [blame] | 278 | |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 279 | bootstrap_ns_fd.reset(OpenMountNamespace()); |
| 280 | bootstrap_ns_id = GetMountNamespaceId(); |
| 281 | |
Jiyong Park | 7b4801a | 2019-02-25 16:41:38 +0900 | [diff] [blame] | 282 | // When APEXes are updatable (e.g. not-flattened), we create separate mount |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 283 | // namespaces for processes that are started before and after the APEX is |
Jiyong Park | 7b4801a | 2019-02-25 16:41:38 +0900 | [diff] [blame] | 284 | // activated by apexd. In the namespace for pre-apexd processes, small |
| 285 | // number of essential APEXes (e.g. com.android.runtime) are activated. |
| 286 | // In the namespace for post-apexd processes, all APEXes are activated. |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 287 | bool success = true; |
Jiyong Park | 8502ed3 | 2019-02-25 22:18:37 +0900 | [diff] [blame] | 288 | if (IsApexUpdatable() && !IsRecoveryMode()) { |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 289 | // Creating a new namespace by cloning, saving, and switching back to |
| 290 | // the original namespace. |
| 291 | if (unshare(CLONE_NEWNS) == -1) { |
| 292 | PLOG(ERROR) << "Cannot create mount namespace"; |
| 293 | return false; |
| 294 | } |
| 295 | default_ns_fd.reset(OpenMountNamespace()); |
| 296 | default_ns_id = GetMountNamespaceId(); |
| 297 | |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 298 | if (setns(bootstrap_ns_fd.get(), CLONE_NEWNS) == -1) { |
| 299 | PLOG(ERROR) << "Cannot switch back to bootstrap mount namespace"; |
| 300 | return false; |
| 301 | } |
| 302 | } else { |
| 303 | // Otherwise, default == bootstrap |
| 304 | default_ns_fd.reset(OpenMountNamespace()); |
| 305 | default_ns_id = GetMountNamespaceId(); |
| 306 | } |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 307 | #ifdef ACTIVATE_FLATTENED_APEX |
Jiyong Park | d7f7c20 | 2019-05-10 21:12:15 +0900 | [diff] [blame] | 308 | success &= ActivateFlattenedApexesIfPossible(); |
Jooyung Han | 1d951b7 | 2020-07-05 03:33:36 +0900 | [diff] [blame^] | 309 | #endif |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 310 | LOG(INFO) << "SetupMountNamespaces done"; |
| 311 | return success; |
| 312 | } |
| 313 | |
Jooyung Han | 4f23d5a | 2020-06-09 13:44:17 +0900 | [diff] [blame] | 314 | Result<void> SwitchToMountNamespaceIfNeeded(MountNamespace target_mount_namespace) { |
| 315 | if (IsRecoveryMode() || !IsApexUpdatable()) { |
| 316 | // we don't have multiple namespaces in recovery mode or if apex is not updatable |
| 317 | return {}; |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 318 | } |
Jooyung Han | 4f23d5a | 2020-06-09 13:44:17 +0900 | [diff] [blame] | 319 | const auto& ns_id = target_mount_namespace == NS_BOOTSTRAP ? bootstrap_ns_id : default_ns_id; |
| 320 | const auto& ns_fd = target_mount_namespace == NS_BOOTSTRAP ? bootstrap_ns_fd : default_ns_fd; |
| 321 | const auto& ns_name = target_mount_namespace == NS_BOOTSTRAP ? "bootstrap" : "default"; |
| 322 | if (ns_id != GetMountNamespaceId() && ns_fd.get() != -1) { |
| 323 | if (setns(ns_fd.get(), CLONE_NEWNS) == -1) { |
| 324 | return ErrnoError() << "Failed to switch to " << ns_name << " mount namespace."; |
Kiyoung Kim | e4d3f21 | 2019-12-16 14:31:04 +0900 | [diff] [blame] | 325 | } |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 326 | } |
Jooyung Han | 4f23d5a | 2020-06-09 13:44:17 +0900 | [diff] [blame] | 327 | return {}; |
Jiyong Park | 6866041 | 2019-01-16 23:00:59 +0900 | [diff] [blame] | 328 | } |
| 329 | |
| 330 | } // namespace init |
| 331 | } // namespace android |