Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5df178d authored by rickywai's avatar rickywai Committed by Automerger Merge Worker
Browse files

Merge "Check if storage app data and obb directories exist in vold" am: a7c8ae78 am: a9f78078

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513320

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If1a483e747fabc635e76dd7fd7b656487c0d0588
parents cdb6574e a9f78078
Loading
Loading
Loading
Loading
+1 −8
Original line number Original line Diff line number Diff line
@@ -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);