Opened 3 years ago

Last modified 5 weeks ago

#1218 new defect/bug

path in map_secondary_sdcard_navitmap_bin.xslt is wrong

Reported by: christoph thielecke Owned by: KaZeR
Priority: major Milestone: want patch / contribution
Component: core Version: git master
Severity: normal Keywords:
Cc:

Description

The path to secondary sdcard on android is wrong. In navit/xslt/map_secondary_sdcard_navitmap_bin.xslt you can see:

<?xml version="1.0"?>
<xsl:transform version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xi="http://www.w3.org/2001/XInclude">
        <xsl:template match="/config/navit/mapset/xi:include">
                <map type="binfile" enabled="yes" data="/sdcard/navit/navitmap.bin" />
                <xsl:text>&#x0A;                        </xsl:text>
                <map type="binfile" enabled="yes" data="/sdcard/navit/navitmap_002.bin" />
        </xsl:template>
</xsl:transform>

There are 2 paths: /sdcard/navit/navitmap.bin and /sdcard/navit/navitmap_002.bin which point to /sdcard which should be /mnt/extSdCard on android.

I provide a patch for fixing the paths (map_secondary_sdcard_navitmap_bin.xslt_android_path_fix.patch).

Also, I guess it's better to use *.bin instead of hardcoded path name for the maps, for fixing the file I provide another patch which change the path to external sdcard and use the pattern (map_secondary_sdcard_navitmap_bin.xslt_android_path_fix_all_bin.patch)

svn is at rev 5795.

Attachments (2)

map_secondary_sdcard_navitmap_bin.xslt_android_path_fix.patch (813 bytes) - added by christoph thielecke 3 years ago.
Fix paths of external sdcard on android
map_secondary_sdcard_navitmap_bin.xslt_android_path_fix_all_bin.patch (721 bytes) - added by christoph thielecke 3 years ago.
Fix path of external sdcard on android using global pattern for mapfile

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by christoph thielecke

Fix paths of external sdcard on android

Changed 3 years ago by christoph thielecke

Fix path of external sdcard on android using global pattern for mapfile

comment:1 Changed 5 weeks ago by http://wiki.navit-project.org/index.php/user:jkoan

As I know it is not standardized where the mount on Android is. Exactly because we have so much different devices. Probably it is possible to autodetect the paths.

Note: See TracTickets for help on using tickets.