Help, I suffer with the data / data section. I need to take a database from the VKontakte application (audio.db) with the names of the saved music: (((((Really you can’t just take the information, I don’t need to change anything.
2 answers
Ask su in runtime, as far as I know, in the manifest in relatively fresh versions of android, these permissions are useless
|
When you see an unfamiliar error in the logs, you should:
- Copy that part of it where there are no specific words (such as the path to your specific file), in your case
open failed: EACCES (Permission denied)
- Drive it into Google and drag it to the first link.
There and the answer - you do not have permission to read files from the device. Those. must be added to the manifest:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
For the same link there is also a mention of the fact that some permissions with API> = 23 (Android 6+) need to be requested in runtime. The code how to do this is also available by reference.
- I have Android 5, I have the permissions, are set, there is an installation on the screen. And don’t teach to google: D
- @ SergeyGrushin, well ... Maybe there is a mistake somewhere in the code. But you stubbornly refuse to disclose the details of the problem. - Yuriy SPb ♦
|
data/data
folder. In general, getting a list of user's music should be done through the API of VKontakte - YuriySPb ♦