Skip to content

Commit

Permalink
[VXP]: partially fixes #211: Do not remove the user data. Parcel mars…
Browse files Browse the repository at this point in the history
…hal is not always immutable, But i don't want to re-write all the persistent layer.
  • Loading branch information
tiann committed Jun 21, 2018
1 parent 143e761 commit bd64b0a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,14 @@ public void scanApps() {
}

private void cleanUpResidualFiles(PackageSetting ps) {
VLog.w(TAG, "cleanUpResidualFiles: " + ps.packageName);
File dataAppDir = VEnvironment.getDataAppPackageDirectory(ps.packageName);
FileUtils.deleteDir(dataAppDir);
for (int userId : VUserManagerService.get().getUserIds()) {
FileUtils.deleteDir(VEnvironment.getDataUserPackageDirectory(userId, ps.packageName));
}

// We shouldn't remove user data here!!! Just remove the package.
// for (int userId : VUserManagerService.get().getUserIds()) {
// FileUtils.deleteDir(VEnvironment.getDataUserPackageDirectory(userId, ps.packageName));
// }
}


Expand Down

0 comments on commit bd64b0a

Please sign in to comment.