-
Notifications
You must be signed in to change notification settings - Fork 458
HOWTO Compile AFWall
- Software
- Build via Command Line
- Compiling native binaries
- Via graphical user interface
- For experts user only!
- Useful links
- 7-Zip to extract Eclipse/Android SDK
- Eclipse Classic (Google recommendation)
- AndroidSDK here is an self explanatory to install Android SDK and Emulator
- Java Develop Kit (JDK)
-
ADT for Eclipse or get the Plugin via
https://dl-ssl.google.com/android/eclipse/
in Eclipse "Install New Software" - If you know nothing about compiling apps, you better read this article here first.
- Basic cmd/terminal knowledge (for experts).
Advanced users can build the latest AFWall+.APK from the Command Line or see the next steps.
Choose the Android list targets - lists all your installed Android target e.g. API level 17 for the latest Android Version.
Select: "id: 4 or "Google Inc.:Google APIs:17" Name: Google APIs Type: Add-On Vendor: Google Inc. .... "
You also can use the "-t 4" argument.
After this we set our JAVA_HOME path:
- export ANDROID_JAVA_HOME="/opt/sun-jdk-1.9.0__22"
- mkdir afwall_build
- cd afwall_build
- git clone git://github.com/ukanth/afwall.git
- cd afwall
- git submodule init
- git submodule update
- android update project -p . -s
- ant debug
This build the afwall-debug.apk and place it into /bin
folder.
On the host side you'll need to install:
- NDK r9, nominally under /opt/android-ndk-r9
- Host-side gcc, make, etc. (Red Hat "Development Tools" group or Debian build-essential)
- autoconf, automake, and libtool
This command will build the Android binaries and copy them into res/raw/
make -C external NDK=/opt/android-ndk-r9
- Here is a Video Tutorial from a xda member for those users who want to use the graphical user interface (GUI) method. The tutorial is based on the needed software explained above.
- Here you get the official build instructions.
Use apkbuilder
(included in the Android Develop Kit)
apkbuilder ${output.apk.file} -u -z ${packagedresource.file} -f ${dex.file}
Use jarsigner
jarsigner -keystore ${keystore} -storepass ${keystore.password} -keypass ${keypass} -signedjar ${signed.apkfile} ${unsigned.apkfile} ${keyalias}
adb -d install -r ${signed.apk}
- List of Sample Apps | Android Developers
- Installing the Android SDK | Android Developers
- Signing Your Applications | Android Developers
- How To: Decompile / Compile .APK | XDA-Froum
- How to build .APK file? | Stack Overflow
- How-To: Decompile/Recompile APK's with ApkTool | AndroidForums
- How to Create Android Apps - Eclipse Export .APK Market Ready Files Step-by-Step Guide | YouTube
Footer