Loading
Fixup OBB directories correctly after package install.
The installer may pre-create OBB directories for packages that it is installing on external storage, in locations like /storage/emulated/0/data/obb/com.foo . The permissions on this directory is never explicitly setup; instead, sdcardfs magically fixed up the permissions to match the package name "com.foo". With sdcardfs going away in devices launching with R, we need to set the permissions for these paths up explicitly. Since only vold can do that, have PackageManager call into StorageManager after an app install/upgrade to do the correct setup. Bug: 146419093 Test: manually verify directories are setup correctly Change-Id: I530c8de196011b1dc97c7a9ab612e5d6dc9403a1