+1
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Add new manifest attribute requestOptmizedExternalStorageAccess. When the flag is set, app requests for performance optimisations for file path operations. Apps get this performance optimisation by bypassing database operations as part of file path operations. Hence, when the flag is set, app will be resposible to keep MediaStore database consistent for its file path operations. App should hold android.Manifest.permission#MANAGE_EXTERNAL_STORAGE permission or SYSTEM_GALLERY role, otherwise the flag will be ignored. The default values is - True if * if app has android.Manifest.permission#MANAGE_EXTERNAL_STORAGE permission and targets targetSDK<=30. * app has SYSTEM_GALLERY role and targetSDK<=29. - False otherwise. Bug: 178209446 Test: atest android.scopedstorage.cts.device.BypassDatabaseOperationsTest Change-Id: I951c3001c2b7dbe163b3bfecef4ee8ad350230ae