Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

Howto build IrssiConnectbot w/ mosh for Android 5

Since http://dan.drown.org/android/ is no longer maintained, and newer Androids report a missing -fPIE in the native compiled part of the APK, as it wasn't activated prior to API 16, I had to compile it myself, I chose API level 22, but any above or including 16 should work

# error: only position independent executables (PIE) are supported

#Install the native compiler suite
emerge -av dev-util/android-ndk

# Install GUI to download SDKs etc.
emerge -av dev-util/android-sdk-update-manager

# Download API 22 -> SDK Platform
/opt/android-sdk-update-manager/tools/android

#Create a keystore and signing key
keytool -genkey -v -keystore ~/xmw.de.keystore -alias xmw.de -keyalg RSA -keysize 4096 -validity 10000

# Checkout dan drowns fork of ConnectBot
git clone https://github.com/ddrown/irssiconnectbot.git
cd irssiconnectbot

#Configure your local situation in local.properties
sdk.dir=/opt/android-sdk-update-manager
ndk.dir=/opt/android-ndk
target=android-22
key.store=${user.home}/xmw.de.keystore
key.alias=xmw.de

#Build and sign
ant clean
ant release

# If you switch the apk signature, make sure uninstall the app w/o -k
adb uninstall org.woltage.irssiconnectbot
# If you keep the data, you must install an apk with the same signature!!!
# Subsequent updates can be applied using
adb shell pm uninstall -k org.woltage.irssiconnectbot
adb install bin/irssiconnectbot-debug.apk
Tags: linux own

Don't be the product, buy the product!

Schweinderl