diff options
| author | 2019-05-05 09:54:59 -0700 | |
|---|---|---|
| committer | 2019-05-09 17:47:05 +0000 | |
| commit | 611e1147de13009c0713b0884d16d62b33c865df (patch) | |
| tree | 6ea4dc793306b7bcb9b08e4801c8a7b037f2b365 | |
| parent | 9d41bd7c39725289c4e996654105eb76c13bd8d8 (diff) | |
Remove storage sandboxes related code.
Bug: 131115422
Test: manual
Test: atest --test-mapping packages/providers/MediaProvider
Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ExternalStorageHostTest.java
Test: atest DownloadProviderTests
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java
Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java
Change-Id: I93a0a624304b9f6f00aae600377a73b720900fba
Merged-In: I93a0a624304b9f6f00aae600377a73b720900fba
| -rw-r--r-- | cmds/installd/InstalldNativeService.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp index c730ab945c..59c19d174e 100644 --- a/cmds/installd/InstalldNativeService.cpp +++ b/cmds/installd/InstalldNativeService.cpp @@ -581,10 +581,6 @@ binder::Status InstalldNativeService::clearAppData(const std::unique_ptr<std::st // No code cache on shared storage } else { // Clear everything on shared storage - path = StringPrintf("%s/Android/sandbox/%s", extPath.c_str(), pkgname); - if (delete_dir_contents(path, true) != 0) { - res = error("Failed to delete contents of " + path); - } path = StringPrintf("%s/Android/data/%s", extPath.c_str(), pkgname); if (delete_dir_contents(path, true) != 0) { res = error("Failed to delete contents of " + path); @@ -668,10 +664,6 @@ binder::Status InstalldNativeService::destroyAppData(const std::unique_ptr<std:: } auto extPath = findDataMediaPath(uuid, userId); - path = StringPrintf("%s/Android/sandbox/%s", extPath.c_str(), pkgname); - if (delete_dir_contents_and_dir(path, true) != 0) { - res = error("Failed to delete " + path); - } path = StringPrintf("%s/Android/data/%s", extPath.c_str(), pkgname); if (delete_dir_contents_and_dir(path, true) != 0) { res = error("Failed to delete " + path); @@ -1694,8 +1686,6 @@ binder::Status InstalldNativeService::getAppSize(const std::unique_ptr<std::stri } ATRACE_BEGIN("external"); - auto sandboxPath = create_data_media_package_path(uuid_, userId, "sandbox", pkgname); - calculate_tree_size(sandboxPath, &extStats.dataSize); auto extPath = create_data_media_package_path(uuid_, userId, "data", pkgname); collectManualStats(extPath, &extStats); auto mediaPath = create_data_media_package_path(uuid_, userId, "media", pkgname); |