Commit Graph

8 Commits

Author SHA1 Message Date
Stephan Bergmann
b7da830447 Better exception message. 2012-01-26 11:01:08 +01:00
Tor Lillqvist
e3ab0fd901 osl_unmapFile can't work for files bundled inside the .apk on Android
On Android, when an app is installed, arbitrary files bundled in the
app won't be unpacked into actual separate files in the file
system. They will exist only as archive entries in the .apk file
(which is a zip archive).

The SDK tooling puts such files under the /assets folder in the
.apk. The LibreOffice bootstrapping code for Android maps the .apk
file into memory.

osl_openFile() knows about the /assets special case, and uses a
separate abstraction for such memory-mapped files.

Obviously, when producing an .apk, one needs to make sure these
bundled files are not compressed, if one wants to be able to use them
directly from the memory-mapped .apk file. We do that in our test and
sample Android projects.

When mapping such files under /assets , just return a pointer to the
file's location inside the mapped .apk archive.

We can't use the old osl_unmapFile() on such mapped files, as that
would unexpectedly unmap fairly arbitrary pages of the .apk mapping,
wreaking havoc on later use of the same pages.

So, introduce a new osl_unmapMappedFile() function that takes also the
oslFileHandle originally passed to osl_mapFile(). Use this instead in
the few places where the code actually called osl_unmapFile(). Make
sure osl_mapFile() is nonexistent on Android.
2011-12-21 14:08:48 +02:00
Stephan Bergmann
438054572e Adapted to new assertion/logging mechanisms. 2011-11-29 22:59:59 +01:00
Caolán McNamara
1f5c696c37 add mode-lines to .m files and last round of merged files, etc. 2011-09-30 09:09:25 +01:00
Mathias Bauer
ac61a8dd8e CWS gnumake4: convert xmlreader to new build system [hg:751b4a1bff7b] 2011-06-17 01:07:42 +02:00
Vladimir Glazunov
3db3d0728c CWS-TOOLING: integrate CWS sb129 2010-09-29 10:24:13 +02:00
sb
d9f453f735 sb129: #i113189# adjusted comments 2010-09-16 11:00:47 +02:00
sb
597dfa1917 sb129: #i113189# move XmlReader from configmgr to URE 2010-09-10 13:09:38 +02:00