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.

  • If the device is not rutovan then you should not have access to the data/data folder. In general, getting a list of user's music should be done through the API of VKontakte - YuriySPb
  • @Yuriy SPb, the device is rutovan. Everything works through the terminal, but my application does not. Vkontakte I need saved music in cache - Flippy
  • Well, maybe you have something wrong in the code for getting the file or there is no permission in the manifest, or did you get the database and do not know how to open it? Expand the details of the problem - what exactly does not work and what they tried. - Yuriy SPb
  • @YuriSPb, permissions ROOT_ACCESS and ACCESS_SUPERUSER are registered in the manifest, log: /data/data/com.vkmp3mod.android/databases/audio.db: open failed: EACCES (Permission denied) - Flippy

2 answers 2

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:

    1. 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)
    2. Drive it into Google and drag it to the first link.
    3. 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