forked from amazingfate/loongoffice
As described in more detail in
commit 45fbfbfeae1de12e87d0a3748e22553b69adbc4a
Author: Michael Weghorn <m.weghorn@posteo.de>
Date: Fri Mar 27 17:04:37 2020 +0100
tdf#131622 android: Extract native libs again
, extracting native libraries was necessary for the NSS
library to be able to load modules like `libnssckbi.so`
at runtime. Without this, opening password-protected
files would fail.
However, this has in the meanwhile been addressed
differently in the following commit (probably in the
context of the online-based/Collabora Online app), so
extracting libs is no longer needed:
commit 16a7f98f99d334ea865b800e0b32d6fed1483942
Author: Mert Tumer <mert.tumer@collabora.com>
Date: Wed Sep 30 17:14:59 2020 +0300
Fix libnssckbi not found error on Android
This error causes Android App to be unable to
open Password-protected documents.
Change-Id: Iacbacb1c780025752e2447db325b075c58947818
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103658
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Therefore, no longer extract the libraries, which also addresses
addresses this warning shown during the build:
> Task :processStrippedUIEditingDebugMainManifest
.../android/source/AndroidManifest.xml:16:9-41 Warning:
android:extractNativeLibs should not be specified in this source AndroidManifest.xml file. See https://d.android.com/guide/topics/manifest/application-element#extractNativeLibs for more information.
The AGP Upgrade Assistant can remove the attribute from the AndroidManifest.xml file and update the build file accordingly. See https://d.android.com/studio/build/agp-upgrade-assistant for more information.
Change-Id: I867beea0bce8398806375048e87a152e1348d016
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160079
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
130 lines
6.5 KiB
XML
130 lines
6.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:installLocation="${installLocation}">
|
|
|
|
<!-- App requires OpenGL ES 2.0 -->
|
|
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
|
|
<!-- App wants to know if device supports USB host capability(not mandatory) -->
|
|
<uses-feature android:name="android.hardware.usb.host" android:required="false"/>
|
|
<uses-feature android:name="android.hardware.camera" android:required="false"/>
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
|
|
<application
|
|
android:name=".LibreOfficeApplication"
|
|
android:allowBackup="true"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="@string/app_name"
|
|
android:theme="@style/LibreOfficeTheme"
|
|
android:hardwareAccelerated="true"
|
|
android:largeHeap="false">
|
|
|
|
<!-- Viewer Activity -->
|
|
<!-- When changing android:windowSoftInputMode, please don't specify multiple "adjust..." or "state...". -->
|
|
<activity
|
|
android:name=".LibreOfficeMainActivity"
|
|
android:configChanges="orientation|keyboard|keyboardHidden|screenLayout|uiMode|screenSize|smallestScreenSize"
|
|
android:windowSoftInputMode="adjustResize"
|
|
android:exported="true">
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<action android:name="android.intent.action.EDIT" />
|
|
<action android:name="android.intent.action.PICK" />
|
|
<category android:name="android.intent.category.DEFAULT" />
|
|
|
|
<data android:scheme="file"/>
|
|
<data android:scheme="content"/>
|
|
|
|
<!-- Please keep this in sync with FileUtilities.java. -->
|
|
|
|
<!-- ODF -->
|
|
<data android:mimeType="application/vnd.oasis.opendocument.text" />
|
|
<data android:mimeType="application/vnd.oasis.opendocument.graphics" />
|
|
<data android:mimeType="application/vnd.oasis.opendocument.presentation" />
|
|
<data android:mimeType="application/vnd.oasis.opendocument.spreadsheet"/>
|
|
<data android:mimeType="application/vnd.oasis.opendocument.text-flat-xml" />
|
|
<data android:mimeType="application/vnd.oasis.opendocument.graphics-flat-xml" />
|
|
<data android:mimeType="application/vnd.oasis.opendocument.presentation-flat-xml" />
|
|
<data android:mimeType="application/vnd.oasis.opendocument.spreadsheet-flat-xml" />
|
|
|
|
<!-- ODF templates -->
|
|
<data android:mimeType="application/vnd.oasis.opendocument.text-template"/>
|
|
<data android:mimeType="application/vnd.oasis.opendocument.spreadsheet-template"/>
|
|
<data android:mimeType="application/vnd.oasis.opendocument.graphics-template"/>
|
|
<!-- Seems at least Android 5.0 does not recognize this as the mime type of .otp files. -->
|
|
<data android:mimeType="application/vnd.oasis.opendocument.presentation-template"/>
|
|
|
|
<!-- MS -->
|
|
<data android:mimeType="application/rtf" />
|
|
<data android:mimeType="text/rtf" />
|
|
<data android:mimeType="application/msword" />
|
|
<data android:mimeType="application/vnd.ms-powerpoint" />
|
|
<data android:mimeType="application/vnd.ms-excel"/>
|
|
<data android:mimeType="application/vnd.visio" />
|
|
<data android:mimeType="application/vnd.visio.xml" />
|
|
<data android:mimeType="application/x-mspublisher" />
|
|
|
|
<!-- OOXML -->
|
|
<data android:mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
|
|
<data android:mimeType="application/vnd.openxmlformats-officedocument.presentationml.presentation" />
|
|
<data android:mimeType="application/vnd.openxmlformats-officedocument.presentationml.slideshow" />
|
|
<data android:mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
|
|
|
|
<!-- OOXML templates -->
|
|
<data android:mimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.template"/>
|
|
<data android:mimeType="application/vnd.openxmlformats-officedocument.spreadsheetml.template"/>
|
|
<data android:mimeType="application/vnd.openxmlformats-officedocument.presentationml.template"/>
|
|
|
|
<!-- OTHER -->
|
|
<data android:mimeType="text/csv"/>
|
|
<data android:mimeType="text/comma-separated-values"/>
|
|
<data android:mimeType="application/vnd.ms-works" />
|
|
<data android:mimeType="application/vnd.apple.keynote" />
|
|
<data android:mimeType="application/x-abiword" />
|
|
<data android:mimeType="application/x-pagemaker" />
|
|
<data android:mimeType="image/x-emf" />
|
|
<data android:mimeType="image/x-svm" />
|
|
<data android:mimeType="image/x-wmf" />
|
|
<data android:mimeType="image/svg+xml" />
|
|
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity
|
|
android:name=".SettingsActivity"
|
|
android:theme="@style/Theme.AppCompat.DayNight.DarkActionBar"
|
|
android:label="@string/app_name_settings">
|
|
</activity>
|
|
|
|
<!-- Document Browser Activity -->
|
|
<activity android:name="org.libreoffice.ui.LibreOfficeUIActivity"
|
|
android:exported="true">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<activity android:name=".PresentationActivity"
|
|
android:screenOrientation="landscape" >
|
|
<meta-data
|
|
android:name="android.support.PARENT_ACTIVITY"
|
|
android:value=".LibreOfficeMainActivity" />
|
|
</activity>
|
|
|
|
<provider
|
|
android:name="androidx.core.content.FileProvider"
|
|
android:authorities="${applicationId}.fileprovider"
|
|
android:exported="false"
|
|
android:grantUriPermissions="true">
|
|
<meta-data
|
|
android:name="android.support.FILE_PROVIDER_PATHS"
|
|
android:resource="@xml/file_paths" />
|
|
</provider>
|
|
|
|
</application>
|
|
|
|
</manifest>
|
|
<!-- vim: shiftwidth=4 softtabstop=4 expandtab:
|
|
-->
|