diff options
author | 2020-01-08 08:09:47 -0800 | |
---|---|---|
committer | 2020-01-08 08:09:47 -0800 | |
commit | cc10a04f87c76a03cdc3f62712554ce15e710fb1 (patch) | |
tree | a0fdf1773099de81f2136bbcdd4678342bb8f26c | |
parent | e4388a6ff9b26fa70dd68acfb01e2ad991707fd6 (diff) | |
parent | 105e189e41b11e578482773bd07ecddf9a145d14 (diff) |
Merge "Don't remove OBBs when clearing app data."
am: 105e189e41
Change-Id: I831abb95671588a17e4c69b506df955280e573c9
-rw-r--r-- | cmds/installd/InstalldNativeService.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp index 737c6c9582..adc2404e6f 100644 --- a/cmds/installd/InstalldNativeService.cpp +++ b/cmds/installd/InstalldNativeService.cpp @@ -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. } } } |