I can't get ES file explorer and winrar to write (copy or cut from internal storage and paste to external storage) to SDCard external storage in Android TV. It says that there will be an "open from" window where I can enable it, but the window won't appear like it did in my android tablet. Is there an ADB command to grant writing access to external SDCard?

I tried to use these commands:

adb shell appops set com.estrongs.android.pop WRITE_EXTERNAL_STORAGE allow
adb shell appops set com.estrongs.android.pop READ_EXTERNAL_STORAGE allow

That was the code for es file explorer, for winrar I just replace com.estrongs.android.pop with com.rarlab.rar The codes executed with no errors, however, I still can't write to the external SDcard, the suggestion to enable it in the supposedly upcoming popup window still appears and the popup window still did not appear. Please help


Android Marshmellow (API 23) or above you need to grant runtime permission. This can be done through an adb shell with the command:

adb shell pm grant com.your.app.package android.permission.WRITE_EXTERNAL_STORAGE

If you ever need to revoke the permission the use this command:

adb shell pm grant com.your.app.package android.permission.READ_EXTERNAL_STORAGE
  • Hi Bo, I have not yet been able to try out your suggestion but once I am able to, I will report back. Thank you so much for answering.
    – yulius
    Jan 25 '19 at 13:09
  • Hi Bo, Sorry I just managed to try out your suggestion. unfortunately it does not work. Here's the exact code: adb shell pm grant com.estrongs.android.pop android.permission.WRITE_EXTERNAL_STORAGE Any other ideas?
    – yulius
    Feb 7 '19 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.