Merge "Check if storage app data and obb directories exist in vold" am: a7c8ae7845 am: a9f7807862
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513320 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: If1a483e747fabc635e76dd7fd7b656487c0d0588
This commit is contained in:
@@ -4612,14 +4612,7 @@ class StorageManagerService extends IStorageManager.Stub
|
|||||||
|
|
||||||
// Create package obb and data dir if it doesn't exist.
|
// Create package obb and data dir if it doesn't exist.
|
||||||
int appUid = UserHandle.getUid(userId, mPmInternal.getPackage(pkg).getUid());
|
int appUid = UserHandle.getUid(userId, mPmInternal.getPackage(pkg).getUid());
|
||||||
File file = new File(packageObbDir);
|
vold.ensureAppDirsCreated(new String[] {packageObbDir, packageDataDir}, appUid);
|
||||||
if (!file.exists()) {
|
|
||||||
vold.setupAppDir(packageObbDir, appUid);
|
|
||||||
}
|
|
||||||
file = new File(packageDataDir);
|
|
||||||
if (!file.exists()) {
|
|
||||||
vold.setupAppDir(packageDataDir, appUid);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} catch (ServiceManager.ServiceNotFoundException | RemoteException e) {
|
} catch (ServiceManager.ServiceNotFoundException | RemoteException e) {
|
||||||
Slog.e(TAG, "Unable to create obb and data directories for " + processName,e);
|
Slog.e(TAG, "Unable to create obb and data directories for " + processName,e);
|
||||||
|
|||||||
Reference in New Issue
Block a user