-
Notifications
You must be signed in to change notification settings - Fork 177
Android: Remove map download size limit on modern Android versions #1029
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
Conversation
We cant do this as it a limitation of the underlying file system on old android devices. The right solution would be to implement something that splits up a map on the fly into chunks that are smaller than 1 Gig so so to be save on all devices and store them info separate files. |
@jkoan Please re-review. What do you think of this solution? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Connot help on Android topics much. Don't own any Android devices.
But isn't there a way to determine maximum file size on target file system? This would fix this issue for good, as it could allow the maximum file size possible.
On a side note, we used to have a test instance of the map server which could split maps into smaller files. Maybe that would help here. The server’s been in test mode for a couple years (I think it went live in 2012/13), now it is just telling me Access forbidden. Maps downloaded from that server worked with no issues, though (I have had Europe maps from that server on my phone since it was set up). Maybe we could finally move that feature on the production server, then have Navit specify the size limit of the file system in its request. “Please select a smaller map” isn’t really helpful when I simply need that big one… |
This PR was meant as a quick fix to allow larger map downloads on modern Android versions supporting files larger than 3.8GiB. This would solve this issue for me personally since I currently cannot download some of the maps I require. If this is an acceptabele (temporary) solution, go ahead and merge this. If instead infrastructural changes are required, please close this PR, as I don't have enough knowledge of Navit to work on that. |
OK, let's make this PR even simpler and just remove the map download size limit on modern Android versions. Even downloading the whole world (at ~36GiB) is not an issue on these devices anymore. I would like to keep in the improved expression for checking map size ( So, in short, let's consider doing
|
Hi, I think you can verify that the map location still corresponds to the default path, it is the only way I can think of to make sure maps will not be stored on a fat32 sd card. |
Mergein now, as the solution seems good enough with what we have so far. But we should look into solutions where we can store one map into chunks smaller than 2GB on the fly. |
…ons (#1029) * Android: Increase map download size limit * Condition * Condition #2 * ru * Condition #3 * Clean up * Try... * String * long->double * Incorrect version * Fix comment indent * 4GiB to 3.8GiB as before * Simplify expression * Int * Make Android version regex more save * Fix * Don't crash on strings containing no numeric value * Revert strings * Revert string * Simplify * Add space and comment * Skip variable * CheckStyle * Simplify Co-authored-by: jkoan <jkoan@users.noreply.github.com>
…ons (navit-gps#1029) * Android: Increase map download size limit * Condition * Condition #2 * ru * Condition #3 * Clean up * Try... * String * long->double * Incorrect version * Fix comment indent * 4GiB to 3.8GiB as before * Simplify expression * Int * Make Android version regex more save * Fix * Don't crash on strings containing no numeric value * Revert strings * Revert string * Simplify * Add space and comment * Skip variable * CheckStyle * Simplify Co-authored-by: jkoan <jkoan@users.noreply.github.com>
Android: Remove map download size limit on modern Android versions