add tests and factory extends
This commit is contained in:
parent
d269206cbb
commit
83fd9d387a
14 changed files with 494 additions and 20 deletions
|
|
@ -34,10 +34,13 @@ debug: JAVAC_ARGS += -g
|
|||
debug: D8_ARGS += --debug
|
||||
debug: all
|
||||
|
||||
test: all grodd-venv
|
||||
test: all #grodd-venv
|
||||
$(ADB) install build/$(APP).apk
|
||||
$(ADB) shell am start -n $(PACKAGE)/.$(MAIN_ACTIVITY)
|
||||
grodd-venv/bin/grodd-runner -d emulator-5554 -r grodd -t 900 -p $(PACKAGE) -s 0.5
|
||||
$(ADB) logcat -s THESEUS -c
|
||||
python3 tests/test_apk.py
|
||||
$(ADB) logcat -s THESEUS -d
|
||||
#$(ADB) shell am start -n $(PACKAGE)/.$(MAIN_ACTIVITY)
|
||||
#grodd-venv/bin/grodd-runner -d emulator-5554 -r grodd -t 900 -p $(PACKAGE) -s 0.5
|
||||
|
||||
build/%.v1signed.apk: ./build/%.unsigned.apk ./ToyKey.keystore
|
||||
$(JARSIGNER) -verbose -keystore ./ToyKey.keystore -storepass $(pass) -keypass $(pass) -signedjar $@ $< SignKey
|
||||
|
|
@ -74,9 +77,9 @@ build/%.apk: ./build/%.v2aligned.apk
|
|||
ToyKey.keystore :
|
||||
$(KEYTOOL) -genkeypair -validity 1000 -dname "CN=SomeKey,O=SomeOne,C=FR" -keystore $@ -storepass $(pass) -keypass $(pass) -alias SignKey -keyalg RSA -v
|
||||
|
||||
grodd-venv:
|
||||
python3 -m venv grodd-venv
|
||||
grodd-venv/bin/pip install 'git+ssh://git@gitlab.inria.fr/CIDRE/malware/grodd-runner.git'
|
||||
#grodd-venv:
|
||||
# python3 -m venv grodd-venv
|
||||
# grodd-venv/bin/pip install 'git+ssh://git@gitlab.inria.fr/CIDRE/malware/grodd-runner.git'
|
||||
|
||||
clean:
|
||||
$(RM) -r build/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue