Revert getWritePermission to have consistent code for it.
And make it never been called, not through a wrong return value of true inside hasWritePermission, but with a dedicated canHaveWritePermission function. This one is the place to compare current version with API 33.
Testing
Checklist
[x] I've run the tests to see all new and existing tests pass
[x] I added automated test coverage as appropriate for this change
[x] Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
Platforms affected
Android
Motivation and Context
Follow-up to #608 and my comment with question and analysis on it.
Description
Revert
getWritePermission
to have consistent code for it. And make it never been called, not through a wrong return value oftrue
insidehasWritePermission
, but with a dedicatedcanHaveWritePermission
function. This one is the place to compare current version with API 33.Testing
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)