[resolved] problem transfering maps to android 11 device
Posted: Thu Feb 10, 2022 4:23 pm
First of all, I want to say that AlpineQuest is a great program, has been with me since 2017, extremely useful, not a single issue. But now I am trying to transfer set of maps (~25G) to a new device - Galaxy S21/Android 11. Considering draconian file access restrictions in Android 11, I opted for the AlpineQuest feature to choose user-selected location, specifically /storage/emulated/0/mymaps. Verified that AlpineQuest can download maps there, and I can read/write files at that location with file browser (CX Explorer) as well as do that externally after hooking the Galaxy to computer with USB cable. All seems to be good. However, it turns out that after copying existing maps into that location, the maps aren't recognized by AlpineQuest.
After digging a little deeper, it looks like the naming system is different when maps are sitting in default location and in user-specified location. For example, the default location /storage/emulated/0/Android/data/psyberia.alpinequest.full/files/datastore/ has subdirectory builtin- maps, which has maps named like binghyb.dat/binghyb.idx and another subdirectory builtin-previews with corresponding binghyb.preview file. That's naming appears to be the same on my old device and the new device. But the user-specified location has very different naming system. The corresponding map files are named binghyb.AQX.dat, binghyb.AQX.idx, and binghyb.AQX.preview and they all are sitting directly in the same user-specified directory rather than in subdirectories builtin-maps and builtin-previews. There is also binghyb.AQX, which does not have an analogue in default location (or I did not find it).
So I tried the following:
1. copy old maps to user specified directory - no effect on Alpine quest operation, the copied files remain unchanged when downloading additional areas (but the *.AQX.* files do change)
2. delete *.AQX.* files and manually rename old files to match. For example, there is binghyb.dat (copied old map, 2G) and binghyb.AQX.dat (create by AlpineQuest in user-specified location). I delete the later and rename the former to binghyb.AQX.dat; repeat for all other files. This still does not show old maps, but the small areas that were freshly downloaded are gone too.
3. delete *.AQX files (those files that weren't present in old maps filesystem). No change in displayed maps; the *.AQX files are just re-created by AlpineQuest.
I don't have any ideas left - please advise.
After digging a little deeper, it looks like the naming system is different when maps are sitting in default location and in user-specified location. For example, the default location /storage/emulated/0/Android/data/psyberia.alpinequest.full/files/datastore/ has subdirectory builtin- maps, which has maps named like binghyb.dat/binghyb.idx and another subdirectory builtin-previews with corresponding binghyb.preview file. That's naming appears to be the same on my old device and the new device. But the user-specified location has very different naming system. The corresponding map files are named binghyb.AQX.dat, binghyb.AQX.idx, and binghyb.AQX.preview and they all are sitting directly in the same user-specified directory rather than in subdirectories builtin-maps and builtin-previews. There is also binghyb.AQX, which does not have an analogue in default location (or I did not find it).
So I tried the following:
1. copy old maps to user specified directory - no effect on Alpine quest operation, the copied files remain unchanged when downloading additional areas (but the *.AQX.* files do change)
2. delete *.AQX.* files and manually rename old files to match. For example, there is binghyb.dat (copied old map, 2G) and binghyb.AQX.dat (create by AlpineQuest in user-specified location). I delete the later and rename the former to binghyb.AQX.dat; repeat for all other files. This still does not show old maps, but the small areas that were freshly downloaded are gone too.
3. delete *.AQX files (those files that weren't present in old maps filesystem). No change in displayed maps; the *.AQX files are just re-created by AlpineQuest.
I don't have any ideas left - please advise.