commit | 0ec406570d05cfe01db6da72b15b1282cfb794e6 | [log] [tgz] |
---|---|---|
author | Ashish Kumar <akgaurav@google.com> | Mon Feb 13 14:44:16 2023 +0000 |
committer | Ashish Kumar Gaurav <akgaurav@google.com> | Fri Feb 17 18:20:24 2023 +0000 |
tree | d199a9896936488ebf46cdb97567c0ad15603891 | |
parent | 4526d3fb6fc9672e0d1cbbd620292a7af421cb02 [diff] |
Added a new api ContentProvider#getTypeAnonymous - When an app is unable to acquire IContentProvider in contentResolver#getType, they can only call getTypeAnonymous via activityManagerService. - default getTypeUnchecked returns getType (to ensure less breaking) - getType calls are protected by readPermission. - updated logging of getType calls without readPermisison. Bug: b/161370118 Test: Build, manual test and logging Change-Id: Ia5fe69061de36ed70d93b30754d68b63ad791c83