Android Question How to write to USB flash drive?

vecino

Well-Known Member
Licensed User
Longtime User
Hello, my tablet has a USB port that I connect a USB flash drive to read files.
However, I can not write to the flash drive. Displays error messages motivated to write permissions.
How I can change the permission to write?

/mnt/USB

Thanks and regards
 

stevel05

Expert
Licensed User
Longtime User
Have you already got the permission "android.permission.WRITE_EXTERNAL_STORAGE" in your manifest?

EDIT: after a quick look on Google, it doesn't appear to be that simple. Perhaps someone has already done it that can post.
 
Last edited:
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Thanks, then I can not write to USB, I can only read.
How strange!, Is it normal?

Thanks and regards.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
To be honest, I've not tried it, but there are lots of posts on the internet about the issue.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Thanks, then I can not write to USB, I can only read.
How strange!, Is it normal?

Yes, it is. Google has changed permissions in Android 4.4+ (KitKat). A app can only write to /android/data/ownpackagename/ in KitKat.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Then it should work if you have the needed permissions.
Have you checked steve05´s question?
>Have you already got the permission "android.permission.WRITE_EXTERNAL_STORAGE" in your manifest?

Hi, yes I have put it, but does not allow me to write, only read.
Regards
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Wow, does not work either.
I think it may be a limitation imposed by the manufacturer.
Thanks for the help.
Regards.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
But you also can check on your device whether your app has this permission. Go to the devices AppManager, click on the app... Do not uninstall it :), just scroll to the bottom... There should be a list of permissions used by this app
He says:
Storage:
Modify / delete SD card contents

The SD card is not problem.
The problem is to use a USB flash drive into a USB port

Regards.
 
Upvote 0

Kartographers

Member
Licensed User
Longtime User
Any update on this issue?? Even after granting permissions in manifest.xml, I am unable to copy a file on USB. My android version is 4.2.2 and its a CubieTruck
 
Upvote 0
Top