summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-05-12 13:12:57 +0200
committerDaniel Weipert <code@drogueronin.de>2023-05-12 13:12:57 +0200
commit7f0436aa2a782d926a81bd5bdf76baf0253582da (patch)
tree2f6e86364060ff8ee11a948febbac6a3f451f4e3 /Makefile
parenteefe2bdea6e79548ef5a0c0a50b3afc495b034b3 (diff)
working commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index be39da0..b500539 100644
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,16 @@ build: app/java/src/*.java
bazel build //app/java:dnsproxy
dev:
- bazel mobile-install //app/java:dnsproxy --start_app #--debug_app --java_debug
+ #bazel mobile-install //app/java:dnsproxy --start_app #--debug_app --java_debug
+ $(MAKE) build && $(MAKE) install && adb shell am start -n org.pihole.dnsproxy/org.pihole.dnsproxy.MainActivity
install:
- bazel mobile-install //app/java:dnsproxy
- #adb install bazel-bin/app/java/dnsproxy.apk
+ #bazel mobile-install //app/java:dnsproxy
+ adb install bazel-bin/app/java/dnsproxy.apk
emulate:
# avdmanager create --name dnsproxy -k "system-images;android-28;google_apis_playstore;x86_64"
emulator @dnsproxy -no-boot-anim
+
+adb_logcat:
+ adb logcat --pid=$(adb shell pidof -s org.pihole.dnsproxy)