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

Commit a9f78078 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

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5876080225e80c6e5ca38a66e32633425b97cd6b
parents 143efbe7 a7c8ae78
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);