Make storage a restricted permission - permission controller
This change makes storage a soft restricted permission. When the permission is whitelisted for an app then hodlding it allows the app to access the full SD card as on a P device. If howerver, the permisison is not whitelisted for an app then holding it allows accessing the visual/aural collections in media store while the app would run in its own isolated storage sandbox. This change also connects the opt in/out application attribute to how external storage is mounted remocing temporary code. The attribute was renamed to convey that opting in legacy mode is not somethung that is desirable or would be available in the long run. White at this also fix the default state of app ops for restricted permissions to avoid allowing ops for non requested restricted permissions to every UID as component access could skip permission checks by cannot skip app op checks. bug:130327036 atest CtsPermission2TestCases atest CtsPermissionTestCases atest CtsAppOpsTestCases atest atest CtsAppSecurityHostTestCases:android.appsecurity.cts.ExternalStorageHostTest atest CtsAppSecurityHostTestCases:android.appsecurity.cts.PermissionsHostTest Change-Id: I658191699f47236f958437cf65c2c557ab02fc9d
Loading
Please register or sign in to comment