Skip to content
Snippets Groups Projects
Commit 7404bfab authored by Alexandre Lision's avatar Alexandre Lision
Browse files

modified launch-sflphone.sh to use ant and adb

parent 1888bf3f
No related branches found
No related tags found
No related merge requests found
#!/sytem/bin/sh #!/bin/bash
# #
# Copyright (C) 2004-2012 Savoir-Faire Linux Inc. # Copyright (C) 2004-2013 Savoir-Faire Linux Inc.
# #
# Author: Alexandre Savard <alexandre.savard@savoirfairelinux.com> # Author: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
# #
# This program is free software; you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
...@@ -32,22 +32,13 @@ ...@@ -32,22 +32,13 @@
# Meant to be run on the target platform using adb shell # Meant to be run on the target platform using adb shell
mkdir /data/data/ok cd jni/
ndk-build -j4
cd ..
/system/bin/dbus-daemon --fork --print-pid --print-address --session > /data/data/dbus.info $ANT_HOME clean
$ANT_HOME debug
DBUS_ADDRESS_COMPLETE="" adb install -r bin/SFLphone-debug.apk
while read line;
do
DBUS_ADDRESS_COMPLETE="$line"
done < "/data/data/dbus.info"
IFS="," adb shell am start -n org.sflphone/org.sflphone.client.SFLPhoneHomeActivity
set -- $DBUS_ADDRESS_COMPLETE
DBUS_ADDRESS=$1
DBUS_EXPORT="DBUS_SESSION_BUS_ADDRESS=$DBUS_ADDRESS"
export $DBUS_EXPORT
/system/bin/sflphoned -d -c &
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment