Skip to content

Latest commit

 

History

History
93 lines (58 loc) · 2.36 KB

Android.md

File metadata and controls

93 lines (58 loc) · 2.36 KB

Android Instructions

To check whether your Android Device is known to work with qaul.net check [README_Android_Devices.md]

Prerequisites

Android SDK/NDK

For building the Android version of qaul.net you will need both the Source Development Kit and the Native Development Kit

Add sdk to path if the installer had not done it automatically.

Java Development Kit (JDK)

Install latest Oracle Java Development Kit (JDK)

Programs and Libraries

The following programs and libraries need to be installed:

  • ant

  • lib32stdc++6

  • lib32z1

    install ant on Debian / Ubuntu Linux

    sudo apt-get install ant lib32stdc++6 lib32z1

Get the source

Download the source from https://github.com/WachterJud/qaul.net

git clone https://github.com/WachterJud/qaul.net.git

Build

# create a build directory in your qaul.net source directory
mkdir build
cd build


# The compiler needs some libraries in the build directory
# Connect your Android device to your computer and pull the libraries
# from your device to your build directory:
adb pull /system/lib/libcutils.so
adb pull /system/lib/libwpa_client.so
adb pull /system/bin/ifconfig
adb pull /system/bin/iptables


# build the qaul.net Android app
## check ANDROID_EABI version in NDK's 'toolchains' folder. The number suffix
## of the folder name arm-linux-androideabi-XXX is the ANDROID_EABI version.
## toolchains/arm-linx-androideabi-4.6 => -DANDROID_EABI="4.6"
cmake ../ -DPORT=ANDROID -DNDK_ROOT=/absolute/path/to/ndk -DEXTRALIB_PATH=/absolute/path/to/libraries -DANDROID_EABI="4.6"
make

You will find the newly built apk in android/bin.

# install your app from the command line
# make sure your phone is connected and debugging mode is activated
adb install android/bin/QaulActivity-debug.apk

Eclipse

  • Import Existing Project
  • Do NOT copy files.