Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b51e551 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Don't remove OBBs when clearing app data." am: 105e189e am: cc10a04f am: d7ff7ddb

Change-Id: I36f57cecb681f8423cf94312720d3eb0536d0c0b
parents e950a4e1 d7ff7ddb
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -639,10 +639,8 @@ binder::Status InstalldNativeService::clearAppData(const std::unique_ptr<std::st
                if (delete_dir_contents(path, true) != 0) {
                    res = error("Failed to delete contents of " + path);
                }
                path = StringPrintf("%s/Android/obb/%s", extPath.c_str(), pkgname);
                if (delete_dir_contents(path, true) != 0) {
                    res = error("Failed to delete contents of " + path);
                }
                // Note that we explicitly don't delete OBBs - those are only removed on
                // app uninstall.
            }
        }
    }