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

Commit d7ff7ddb 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

Change-Id: Ic67b2c1b4d6658ffced0f8280097465190ff6f6e
parents 6b4a28bd cc10a04f
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -626,10 +626,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.
            }
        }
    }