diff options
| author | Alessandro Astone <ales.astone@gmail.com> | 2019-09-29 17:56:49 +0200 |
|---|---|---|
| committer | Tim Zimmermann <tim@linux4.de> | 2022-08-23 17:55:22 +0200 |
| commit | 499ea4ef019faf22efef6c27703d2c133342b8a3 (patch) | |
| tree | c2ec8b4dae521f55bc1ea39cf91de1115840c032 /install | |
| parent | de4cbe7ce6dc6ba8602790f04789ac36fc01e148 (diff) | |
recovery: sdcard is data/media/0
Change-Id: Ie9978ac8b526c11199f72c4362ae3313218b48d4
Diffstat (limited to 'install')
| -rw-r--r-- | install/fuse_install.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install/fuse_install.cpp b/install/fuse_install.cpp index a7c58246..e481f913 100644 --- a/install/fuse_install.cpp +++ b/install/fuse_install.cpp @@ -39,7 +39,7 @@ #include "install/install.h" #include "recovery_utils/roots.h" -static constexpr const char* SDCARD_ROOT = "/sdcard"; +static constexpr const char* SDCARD_ROOT = "/data/media/0"; // How long (in seconds) we wait for the fuse-provided package file to // appear, before timing out. static constexpr int SDCARD_INSTALL_TIMEOUT = 10; @@ -143,7 +143,7 @@ static bool StartInstallPackageFuse(std::string_view path) { if (android::base::StartsWith(path, SDCARD_ROOT)) { // The installation process expects to find the sdcard unmounted. Unmount it with MNT_DETACH so // that our open file continues to work but new references see it as unmounted. - umount2(SDCARD_ROOT, MNT_DETACH); + umount2("/data", MNT_DETACH); } return run_fuse_sideload(std::move(fuse_data_provider)) == 0; |
