2015-06-29 03:55:20 +02:00
|
|
|
ADB=${ANDROID_HOME}/platform-tools/adb
|
|
|
|
ANDROID=${ANDROID_HOME}/tools/android
|
|
|
|
PACKAGE=com.metasploit.stage
|
|
|
|
|
|
|
|
all: android java
|
|
|
|
|
|
|
|
android:
|
2015-08-17 15:26:36 +02:00
|
|
|
mvn package -Dandroid.sdk.path=${ANDROID_HOME} -Dandroid.ndk.path=${ANDROID_NDK_HOME} -Dandroid.release=true -P deploy
|
2015-06-29 03:55:20 +02:00
|
|
|
|
|
|
|
java:
|
|
|
|
mvn package
|
|
|
|
|
|
|
|
clean:
|
|
|
|
mvn clean
|
|
|
|
|
|
|
|
android-api:
|
|
|
|
${ANDROID}
|
|
|
|
|
|
|
|
android-devices:
|
|
|
|
${ADB} devices
|
|
|
|
|
|
|
|
avd:
|
|
|
|
${ANDROID} avd
|
|
|
|
|
|
|
|
android-run:
|
|
|
|
${ADB} shell am start -a android.intent.action.MAIN -n ${PACKAGE}/.MainActivity
|
|
|
|
|
|
|
|
android-shell:
|
|
|
|
${ADB} shell
|
|
|
|
|
|
|
|
logcat:
|
|
|
|
${ADB} logcat
|
|
|
|
|
2015-08-17 15:26:36 +02:00
|
|
|
uninstall:
|
|
|
|
${ADB} uninstall ${PACKAGE}
|