Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 49a69919d0
Fetching contributors…

Cannot retrieve contributors at this time

executable file 47 lines (34 sloc) 1.798 kb
#!/bin/bash
# ***************************************************************************
# build-apk.sh - builds the and installs the needed libraries for android QGIS
# --------------------------------------
# Date : 01-Aug-2011
# Copyright : (C) 2011 by Marco Bernasocchi
# Email : marco at bernawebdesign.ch
# ***************************************************************************
# * *
# * This program is free software; you can redistribute it and/or modify *
# * it under the terms of the GNU General Public License as published by *
# * the Free Software Foundation; either version 2 of the License, or *
# * (at your option) any later version. *
# * *
# ***************************************************************************/
set -e
source `dirname $0`/config.conf
ADB=$ANDROID_SDK_ROOT/platform-tools/adb
PACKAGE=org.qgis.qgis
#$ADB kill-server
#sudo $ADB devices
echo "" > /tmp/logcat.log
#gnome-system-log /tmp/logcat.log &
#$ADB logcat -c
$ADB shell am start -n $PACKAGE/org.kde.necessitas.origo.QgisActivity
$ADB pull /system/bin/app_process $TMP_DIR/app_process
#$ADB pull /system/lib/libc.so $TMP_DIR/libc.so
echo `$ADB shell top -n 1 | grep $PACKAGE` > $TMP_DIR/pid.txt
PID=`sed 's/ .*//' $TMP_DIR/pid.txt`
rm -f $TMP_DIR/pid.txt
$ADB forward tcp:5039 localfilesystem:/data/data/$PACKAGE/debug-pipe
$ADB shell run-as $PACKAGE /data/data/$PACKAGE/lib/gdbserver +debug-pipe --attach $PID &
$ANDROID_STANDALONE_TOOLCHAIN/bin/arm-linux-androideabi-gdb
#$ADB logcat | tee /tmp/logcat.log
Jump to Line
Something went wrong with that request. Please try again.