F
F
foonfyrick2021-02-21 10:08:33
Android
foonfyrick, 2021-02-21 10:08:33

Why does it require WRITE_EXTERNAL_STORAGE when downloading files, regardless of whether it is specified in the manifest or not?

All the time he writes the error No permission to write to /storage/emulated/0/Download/1613886746412: Neither user 10071 nor current process has android.permission.WRITE_EXTERNAL_STORAGE.
It doesn’t matter if this permission is in the manifest, but if before downloading I write a request to confirm the requestPermissions permission, a request is displayed, I confirm it and everything downloads fine, but why confirm it if it is already registered in the manifest?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
illuzor, 2021-02-21
@foonfyrick

This is how the permission system works in android.
There are safe permissions that are enough to register in the manifest, and there are dangerous ones that you also need to request from the user. WRITE_EXTERNAL_STORAGE belongs to the latter.
https://developer.android.com/guide/topics/permiss...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question