-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some settings changes do not stick #1235
Comments
There are some automatic settings in navit.xml which overwrite your changes. You can use your own navit.xml to change this automatics. I use /sdcard in the path tool to store maps and my own navit.xml internal. nnnn-nnn is the uuid of the filesystem. |
That's exactly the problem... while /sdcard is on the custom map location menu, /storage is not. So how can I choose it? |
maybe your device use an other path. I checked the path with adb shell.
Use your android an other path? |
Here is output from mount
|
Ugh... give me a few minutes to see if I can clean up that formatting... edit: sorry, it just won't format nicely |
your screenshot shows the current directory is /mnt |
Which Android version use you? |
Pie
yes thank you for trying to help.... annoying thing is this same version does work as expected on an older device running Lollipop, without all this nonsense. I might have to try an older version of Navit from before this file picker thing got added for this one device. |
Get you access to this path? |
No, it gets a brief popup message saying |
I found sort of a workaround for some of this... navit.xml and bookmark.txt must be on internal storage, at /storage/emulated/0/Android/data/org/navitproject.navit/files/navit , they cannot be moved to sdcard or the app will not find them newbees should note the android naming system is confusing, the location /sdcard is NOT on the physical card, it is on internal storage the paths $NAVIT_USER_DATADIR and $NAVIT_SHAREDIR can never include anything on the physical sd card, so an explicit path to the physical sd card must be specified inside navit.xml for both the maps and the layout files (if you do not want them to stay on internal storage) eg, after the line and above the line Optional extra if you want to see bookmarks on the map, you can also toggle visibility in layers w/this, after the above maps type=binfile line add:
sizes may need adjusting depending on your device screen resolution this puts everything where I want and displays properly. The only hassle left is trying to download additional maps; the app still wants to put them on the internal storage and I cannot get the sd card to be selected for this, per screenshots in previous posts. I think the root of this problem is that the set map location is not doing the suitable SAF request, and I have no way to grant a permission it has never requested for this. My workaround is to use ADB or a teminal app to move downloaded maps from internal storage to the sd card manually. If the map is too big and I am really short of internal space to temporarily hold the download, this is not going to work, and I would have to download them to a PC and then use ADB to push the file, which might be a problem for users who do not have a PC. So I think there needs to be some improvement to how the "set custom map location" function works, to allow for using SAF mode. Of course, it would be nice if the new wiki could add a section explaining about what items could be stored where and how to change the storage locations... there used to be forum threads about this in the now-lost forums, and more stuff in the old wiki that did not get transferred to the new wiki (maybe because some portions were out of date and needed updating first?) As for the settings changes that do not stick, it turns out the Northing setting can be made to stick, but one must first toggle between autozoom and manual zoom, then it will stick. Even more confusing, it can be "stuck" in either enabled, or disabled mode, and only using the opposite auto/manual zoom setting will allow changing it again. This also seems to apply to the 2D/3D selection. I really don't understand the reasoning behind this, but it seems related to code in navit.xml where settings are conditional on autozoom. This also seems like something that should be explained in the wiki (if it is even intended behavior rather than an oversight that might be fixed in a future release). |
I later went and installed this on a few more devices. It seems that it is just the one device type that has this issue. A second sample of the original device (Moto E6 running Pie, one on MetroPCS, the other on T-Mobile) also behaves the same way, no real surprise there. But I now also have 2 samples of Samsung S7 running Oreo (one on AT&T, the other on Straight Talk) that do allow choosing the custom map location as @gefin says; starting from /mnt and tapping Up lets me see available choices including the SD card, and everything seems to work as expected on both of these devices. So, I'm not sure if the file picker problem is an Oreo vs Pie issue, or maybe Motorola vs Samsung issue. |
Hi @freecycler, Navit is successfully used here with Android Pie too.
That is too complicated thought: Also, on external sd-card:
You could simply use /storage/1234-ABCD/navit or other directory names and use them in your navit.xml. For a more convenient work with the file system you could install the app "Total Commander" from Swiss author C. Ghisler from the Play Store. Regards, |
I'm using v0.5.6 Android build, installed from F-Droid on a Moto E6 running Pie. The device has limited internal storage (only 16GB) but I have added a 256GB SD card where I would like to store the maps and other bulky data.
I like to add to the default configuration so it can display my bookmarked locations on the map, which means adding a few lines to each layout file. I also adjust to use imperial units rather than metric, etc, which means adjusting some stuff in navit.xml.
Since the device is not rooted this seems problematic (the "custom map location" file picker will NOT offer me to choose any location that is not on the internal storage, and there does not seem to be a way to type in the desired path anymore like previous versions did, which kinda defeats the whole point of choosing a map location in the first place). And without root I can't see the default navit.xml or the layout files anywhere on the device, so I had to download the APK to my windows laptop and use 7-Zip to extract the "config" folder to find these files. Based on the device screen resolution I had to guess that the "xhdpi" folder would be the best fit, and used those files as a starting point for my edits.
I had to resort to moving things around using ADB and especially manual edits to navit.xml, so it is possible I've managed to mangle something in the process. Or ended up with some files that should have been on the sd card being in internal storage instead, or vice versa.
When I try to change some settings - for instance MainMenu->Settings->Rules->Northing, the icon for the item switches to the expected value (eg, from the green checkmark to the white X), but a second or two later it undoes the change and puts back the icon for the "old" state, undoing my change. The 2D<->3D toggle also seems to get stuck.
I'm guessing there is a file/folder permissions or ownership issue somewhere... can someone suggest what file or folder I should look for and where? Also what should be the correct setting and owner?
The text was updated successfully, but these errors were encountered: