[
https://issues.apache.org/jira/browse/CB-9220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14613244#comment-14613244
]
Ian Clelland commented on CB-9220:
----------------------------------
The data from config.xml will be compiled into the file /res/xml/config.xml in
the APK. It's a binary file, but the strings should be present in plain text.
The file plugin is almost certainly getting its configuration from there, but
the best thing to do might be to add some logging statements or breakpoints
around line 160 in FileUtils.java to see what it actually happening. If you are
getting "compatibility", is is most likely a sign that no actual preference
value is being found.
> Persistent path different from 3.7.0 to 4.0.2 (Phonegap 5.1.1)
> --------------------------------------------------------------
>
> Key: CB-9220
> URL: https://issues.apache.org/jira/browse/CB-9220
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Plugin File
> Affects Versions: 4.1.0
> Environment: HTC One M7 / Android 5.0.2
> Reporter: Matthew Horn
> Assignee: Joe Bowser
> Attachments: cordova-5-config2.xml
>
>
> Config.xml
> <preference name="android-installLocation" value="internalOnly" />
> <preference name="AndroidPersistentFileLocation" value="Internal" />
> <preference name="iosPersistentFileLocation" value="Library" />
> window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,
> function(fileSystem){});
> Version 3.7.0
> FS: fileSystem.root.toURL():
> file:///data/data/com.myapp.app.myapp/files/files/
> FS: fileSystem.root.toInternalURL(): cdvfile://localhost/persistent/
> FS: fileSystem.root.nativeURL:
> file:///data/data/com.myapp.app.myapp/files/files/
> Version 5.1.1
> FS: fileSystem.root.toURL(): file:///storage/emulated/0/
> FS: fileSystem.root.toInternalURL(): cdvfile://localhost/persistent/
> FS: fileSystem.root.nativeURL: file:///storage/emulated/0/
> window.resolveLocalFileSystemURL('cdvfile://localhost/persistent/',
> function(oEntry){})
> Version 3.7.0
> nativeURL: "file:///data/data/com.myapp.app.myapp/files/files/"
> Version 5.1.1
> nativeURL: "file:///storage/emulated/0/"
> This is currently breaking links to existing data, any ideas?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]