Kaydet (Commit) 02119a79 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

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).

Change-Id: Iccdf0ff268c20d2fb5abc1e93404375fa51c1cf1
üst 1c8695ec
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.libreoffice" package="org.libreoffice"
android:installLocation="preferExternal" @ANDROID_INSTALL_LOCATION@
android:versionCode="1" android:versionCode="1"
android:versionName="1.0"> android:versionName="1.0">
......
...@@ -3751,24 +3751,28 @@ AC_MSG_CHECKING([whether to do a debug build]) ...@@ -3751,24 +3751,28 @@ AC_MSG_CHECKING([whether to do a debug build])
if test -n "$enable_debug" && test "$enable_debug" != "yes" && test "$enable_debug" != "no"; then if test -n "$enable_debug" && test "$enable_debug" != "yes" && test "$enable_debug" != "no"; then
AC_MSG_ERROR([--enable-debug now accepts only yes or no, use --enable-selective-debuginfo]) AC_MSG_ERROR([--enable-debug now accepts only yes or no, use --enable-selective-debuginfo])
fi fi
if test -n "$ENABLE_DBGUTIL"; then if test -n "$ENABLE_DBGUTIL" -a "$enable_debug" = "no"; then
if test "$enable_debug" = "no"; then AC_MSG_ERROR([--disable-debug cannot be used with --enable-dbgutil])
AC_MSG_ERROR([--disable-debug cannot be used with --enable-dbgutil]) fi
fi
ENABLE_DEBUG="TRUE" if test -n "$ENABLE_DBGUTIL" -o \( -n "$enable_debug" -a "$enable_debug" != "no" \) ; then
ANDROID_DEBUGGABLE='android:debuggable="true"'
AC_MSG_RESULT([yes (dbgutil)])
elif test -n "$enable_debug" && test "$enable_debug" != "no"; then
ENABLE_DEBUG="TRUE" ENABLE_DEBUG="TRUE"
ANDROID_DEBUGGABLE='android:debuggable="true"' ANDROID_DEBUGGABLE='android:debuggable="true"'
AC_MSG_RESULT([yes]) ANDROID_INSTALL_LOCATION='android:installLocation="internalOnly"'
if test -n "$ENABLE_DBGUTIL" ; then
AC_MSG_RESULT([yes (dbgutil)])
else
AC_MSG_RESULT([yes])
fi
else else
ENABLE_DEBUG="" ENABLE_DEBUG=""
ANDROID_DEBUGGABLE="" ANDROID_DEBUGGABLE=""
ANDROID_INSTALL_LOCATION='android:installLocation="preferExternal"'
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
AC_SUBST(ENABLE_DEBUG) AC_SUBST(ENABLE_DEBUG)
AC_SUBST(ANDROID_DEBUGGABLE) AC_SUBST(ANDROID_DEBUGGABLE)
AC_SUBST(ANDROID_INSTALL_LOCATION)
dnl Selective debuginfo dnl Selective debuginfo
ENABLE_DEBUGINFO_FOR= ENABLE_DEBUGINFO_FOR=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment