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

Commit e059b278 authored by Kenny Root's avatar Kenny Root
Browse files

Allow things that can install packages to set Obb paths

Change-Id: I19b426cb3de1a5c9285badf8aea59989568914b4
parent 98738272
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4764,7 +4764,9 @@ class PackageManagerService extends IPackageManager.Stub {
            Log.v(TAG, "Setting .obb path for " + packageName + " to: " + path);
        PackageSetting pkgSetting;
        final int uid = Binder.getCallingUid();
        boolean allowedByPermission = false;
        final int permission = mContext.checkCallingPermission(
                android.Manifest.permission.INSTALL_PACKAGES);
        final boolean allowedByPermission = (permission == PackageManager.PERMISSION_GRANTED);
        synchronized (mPackages) {
            pkgSetting = mSettings.mPackages.get(packageName);
            if (pkgSetting == null) {