summaryrefslogtreecommitdiff
path: root/README.Android
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-01-03 15:27:41 +0200
committerTor Lillqvist <tlillqvist@suse.com>2012-01-04 00:11:35 +0200
commit05d0bdbb940eb43d8fd70aa782daa9172c7f32ce (patch)
tree95969fe806610abd095a200c493e6d07ccd930fb /README.Android
parentb07d24180641d3b9fe2f0ac2602f8263fcf3aaa6 (diff)
Minor edits
Diffstat (limited to 'README.Android')
-rw-r--r--README.Android27
1 files changed, 14 insertions, 13 deletions
diff --git a/README.Android b/README.Android
index 076dff22f035..e58c811a279e 100644
--- a/README.Android
+++ b/README.Android
@@ -7,15 +7,16 @@ files, so that they run in a sandboxed environment like that of
whatever eventual end-user Android apps there will be that use LO
code.
-Sure, we could quite easily build unit tests as plain Android
-executables, push them to the device or emulator with adb and run them
-from adb shell, but that would not be a good test as the environment
-would be completely different. They would run as root, and not
-sandboxed. We have no intent to require LibreOffice code to be used
-only on "rooted" devices etc.
+Sure, we could quite easily build unit tests as plain Linux
+executables (built against the Android libraries, of course, not
+GNU/Linux ones), push them to the device or emulator with adb and run
+them from adb shell, but that would not be a good test as the
+environment such processs run in is completely different from that in
+which real end-user apps with GUI etc run. We have no intent to
+require LibreOffice code to be used only on "rooted" devices etc.
All Android apps are basically Java programs. They run "in" a Dalvik
-virtual machine. Yes, you can also have apps where your code is only
+virtual machine. Yes, you can also have apps where *your* code is only
native code, written in a compiled language like C or C++. But also
also such apps are actually started by system-provided Java
bootstrapping code (NativeActivity) running in a Dalvik VM.
@@ -30,13 +31,13 @@ out how to manually construct an .apk that is properly signed so that
it will run in the emulator. (I don't have any Android device...) I
only know how to let the SDK Ant tooling do it...
-A LO Android app would work would something like this:
+At this stage, the plan is that a LO Android app will work would
+something like this:
-We have a top Java bootstrapping class
-org.libreoffice.android.Bootstrap that loads a small helper native
-library liblo-bootstrap.so that implements JNI wrappers for dlopen(),
-dlsym(), and ELF header scanning coresponding to looking for DT_NEEDED
-entries with readelf.
+We have a Java class org.libreoffice.android.Bootstrap that that loads
+a small helper native library liblo-bootstrap.so that implements JNI
+wrappers for dlopen(), dlsym(), and ELF header scanning coresponding
+to looking for DT_NEEDED entries with readelf.
The Java code then loads the actual native library that corresponds to
the LibreOffice-related "program" we want to run. For unit tests, a