diff options
Diffstat (limited to 'cmds/installd/InstalldNativeService.cpp')
-rw-r--r-- | cmds/installd/InstalldNativeService.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp index c3256fcfff..544c69c2a7 100644 --- a/cmds/installd/InstalldNativeService.cpp +++ b/cmds/installd/InstalldNativeService.cpp @@ -698,9 +698,6 @@ binder::Status InstalldNativeService::createAppDataLocked( if (!status.isOk()) { return status; } - if (previousUid != uid) { - chown_app_profile_dir(packageName, appId, userId); - } // Remember inode numbers of cache directories so that we can clear // contents while CE storage is locked @@ -726,6 +723,9 @@ binder::Status InstalldNativeService::createAppDataLocked( if (!status.isOk()) { return status; } + if (previousUid != uid) { + chown_app_profile_dir(packageName, appId, userId); + } if (!prepare_app_profile_dir(packageName, appId, userId)) { return error("Failed to prepare profiles for " + packageName); |