This allows flexibility on where the app gets installed,
either on internal or external storage, see [1].
Explicitly prefering external location was originally
introduced in
commit 015e1b8444
Date: Fri Jun 28 09:48:41 2013 +0200
android: prefer external storage in DocumentLoader / LibreOffice4Android
With this, these apps can be used even if /data is something like 128MB,
e.g. on normal phones, not tablets / emulators.
, but there seems to be no particular reason for that any more these
days, as either internal or external are fine (and internal
device storage tends to be larger these days as well).
For the debug build configuration, install location was
set to "internalOnly" in
commit 02119a79c1
Date: Mon Oct 13 10:19:25 2014 +0200
android: When debugging, the installLocation must be "internalOnly".
Otherwise the gdbserver ends up with
run-as: exec failed for /data/data/org.libreoffice/lib/gdbserver Error:Permission denied
(you need to run ndk-gdb with --verbose to see that).
temporarily, but then was already "auto" since
commit 66518ead51
Author: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Date: Thu Aug 31 11:50:51 2017 +0200
use extractNativeLibs="false" for less disk usage and faster installation
[...]
also revive installLocation attribute to allow installation on external
storage and move from manifestPlaceholders from defaultConfig to release
buildType (as otherwise gradle complains about having "Multiple entries
with same key")
Using 'installLocation="auto"' is also a requirement
for the Meta Horizon Store, see [2].
[1] https://developer.android.com/guide/topics/data/install-location
[2] https://developers.meta.com/horizon/resources/publish-mobile-manifest/
Change-Id: Ie40dddbf2886f0693bcd38b7eed85916e2319343
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209420
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>