Open JyotimoyKashyap opened 1 year ago
Some devices keep monitoring permission, and benchmark need modify and delete the contents of your shared storage, so it need to grant the permission android.permission.WRITE_EXTERNAL_STORAGE
.
You can turn on Disable permission monitoring
under Developer Options will fix.
@BreakZero unfortunately some phones don't have this option to disable this. is there any other workaround about this?
@ambushwork how about the accepted answer in https://stackoverflow.com/questions/53903976/grantpermissionrule-failed-to-grant-permissions
Is there an existing issue for this?
Is there a StackOverflow question about this issue?
What happened?
Brief
While trying to build and test the benchmark module. I wanted to run the sample benchmark
WarmStartupBenchmark
. I just cloned the repo and did basic setup of the repository and installed the app that ran successfully after which I decided to run the benchmark.Issue
The build runs successfully but the test cases fails with an error message shown bellow.
This says that it cannot grant permissions for storage, which certainly should not be the case. I have seen this issue with every benchmarking repository that I tried from google. Recently, I tried the codelab for benchmarking in android which has the same issue.
I have also researched about it and found an open issue in (IssueTracker)[https://issuetracker.google.com/issues/235344525].
Device Details
Android Studio Version : Flamingo Android Version : 11 (Physical Device) Device Name : Redmi Note 8 Pro.
Relevant logcat output
Code of Conduct