I have the same issue. However I have no folder/file with the correct user:group. Even setting the read/write to 777 doesn’t help. Is there a way I can get the correct user:group? I have tried the above suggestions.
I have reinstalled osmAND+ for this error. But I can’t find the old files to remove… Costing about 25GB of storage…
SOLVED FOR ME! Steps I used.
0. Stop the android services if there running. Use the settings to do so.
- Dev-mode on.
- SSH in device or use terminal.
- Navigate to ~/android_storage/
- use devel-su to elevate to root user.
- remove 2 files: ‘.privilege_migration_done’ and ‘.storage_migration_done’. The leading dots are mandatory.
- Start the android runtime from the settings menu. This will take a while.
- In the terminal nog have a look at ls -la. This will show a lot of files, folders and there user/groups.
- Look for a folder that has a user and group with the same number.
510107 510107 4096 Feb 2 10:59 Pictures
501023 appsuppo 4096 Jun 23 2021 .facebook_cache
The top one gives the numbers you need.
- Then run
chown 510107:510107 -R *
This will change the owner of all files and folders.
10. No open you android apps again.
11. Happy sailing