summaryrefslogtreecommitdiffstats
path: root/android/Bootstrap
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2015-10-03 19:39:55 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2015-10-03 22:54:37 +0200
commitde376cb1c42543cd7717b0de88056ed4ab8af6d4 (patch)
tree004d79a951894d35331e1525c4a6c8b11bec8861 /android/Bootstrap
parentWeb Wizard, ftp part: fix logic for dialog (diff)
downloadcore-de376cb1c42543cd7717b0de88056ed4ab8af6d4.tar.gz
core-de376cb1c42543cd7717b0de88056ed4ab8af6d4.zip
android: remove no longer used files
Change-Id: Id3b71ac50e3c8ce9705f6df18edaaaa6ba8ad3fd
Diffstat (limited to 'android/Bootstrap')
-rw-r--r--android/Bootstrap/AndroidManifest.xml4
-rw-r--r--android/Bootstrap/src/org/libreoffice/android/Bootstrap.java105
2 files changed, 2 insertions, 107 deletions
diff --git a/android/Bootstrap/AndroidManifest.xml b/android/Bootstrap/AndroidManifest.xml
index 69c83e5a2224..b602c871dc58 100644
--- a/android/Bootstrap/AndroidManifest.xml
+++ b/android/Bootstrap/AndroidManifest.xml
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="org.libreoffice.android"
+ package="org.libreoffice.kit"
android:versionCode="1"
android:versionName="1.0">
<application>
- <activity android:name="org.libreoffice.android.Bootstrap" />
+ <activity android:name="org.libreoffice.kit.LibreOfficeKit" />
</application>
</manifest>
diff --git a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java b/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
deleted file mode 100644
index ca7d48b0cc27..000000000000
--- a/android/Bootstrap/src/org/libreoffice/android/Bootstrap.java
+++ /dev/null
@@ -1,105 +0,0 @@
-// -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
-//
-// This file is part of the LibreOffice project.
-//
-// This Source Code Form is subject to the terms of the Mozilla Public
-// License, v. 2.0. If a copy of the MPL was not distributed with this
-// file, You can obtain one at http://mozilla.org/MPL/2.0/.
-//
-
-package org.libreoffice.android;
-
-import android.app.Activity;
-import android.content.pm.ApplicationInfo;
-import android.util.Log;
-
-import java.io.InputStream;
-
-// final because subclassing would be meaningless.
-public final class Bootstrap
-{
- // private constructor because instantiating would be meaningless
- private Bootstrap()
- {
- }
-
- private static String TAG = "lo-bootstrap";
-
- // Native methods in this class are all implemented in
- // sal/android/lo-bootstrap.c as the lo-bootstrap library is loaded with
- // System.loadLibrary() and Android's JNI works only to such libraries, it
- // seems.
-
- private static native boolean setup(String dataDir,
- String cacheDir,
- String apkFile);
-
- // Wrapper for getpid()
- public static native int getpid();
-
- // Wrapper for system()
- public static native void system(String cmdline);
-
- // Wrapper for putenv()
- public static native void putenv(String string);
-
- // A wrapper for osl_setCommandArgs(). Before calling
- // osl_setCommandArgs(), argv[0] is prefixed with the parent directory of
- // where the lo-bootstrap library is.
- public static native void setCommandArgs(String[] argv);
-
- // A method that starts a thread to redirect stdout and stderr writes to
- // the Android logging mechanism, or stops the redirection.
- public static native void redirect_stdio(boolean state);
-
- static boolean setup_done = false;
-
- // This setup() method should be called from the upper Java level of
- // LO-based apps.
- public static synchronized void setup(Activity activity)
- {
- if (setup_done)
- return;
-
- setup_done = true;
-
- String dataDir = null;
-
- ApplicationInfo ai = activity.getApplicationInfo();
- dataDir = ai.dataDir;
- Log.i(TAG, String.format("dataDir=%s\n", dataDir));
-
- redirect_stdio(true);
-
- if (!setup(dataDir,
- activity.getApplication().getCacheDir().getAbsolutePath(),
- activity.getApplication().getPackageResourcePath()))
- return;
-
- // If we notice that a fonts.conf file was extracted, automatically
- // set the FONTCONFIG_FILE env var.
- InputStream i;
- try {
- i = activity.getAssets().open("unpack/etc/fonts/fonts.conf");
- }
- catch (java.io.IOException e) {
- i = null;
- }
- putenv("OOO_DISABLE_RECOVERY=1");
- if (i != null)
- putenv("FONTCONFIG_FILE=" + dataDir + "/etc/fonts/fonts.conf");
-
- // TMPDIR is used by osl_getTempDirURL()
- putenv("TMPDIR=" + activity.getCacheDir().getAbsolutePath());
- }
-
- // Now with static loading we always have all native code in one native
- // library which we always call liblo-native-code.so, regardless of the
- // app. The library has already been unpacked into /data/data/<app
- // name>/lib at installation time by the package manager.
- static {
- System.loadLibrary("lo-native-code");
- }
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */