From 1cc4807336c40cb74838bf720c8a4f82fd3bfb4b Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Mon, 3 Jun 2024 10:24:48 +0100 Subject: [PATCH] chore_: add make targets for tail/pull geth.log --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index f6e8ec9fc3..f6a70f9e2c 100644 --- a/Makefile +++ b/Makefile @@ -447,6 +447,16 @@ android-devices: export TARGET := android-sdk android-devices: ##@other Invoke adb devices adb devices +android-pull-geth: export TARGET := android-sdk +android-pull-geth: export VERSION ?= debug +android-pull-geth: + adb pull "/storage/emulated/0/Android/data/im.status.ethereum$$( [ "$(VERSION)" = "release" ] || echo ".$(VERSION)" )/files/Download/geth.log" + +android-tail-geth: export TARGET := android-sdk +android-tail-geth: export VERSION ?= debug +android-tail-geth: + adb shell 'while true; do cat; sleep 1; done < /storage/emulated/0/Android/data/im.status.ethereum$$( [ "$(VERSION)" = "release" ] || echo ".$(VERSION)" )/files/Download/geth.log' + android-logcat: export TARGET := android-sdk android-logcat: ##@other Read status-mobile logs from Android phone using adb adb logcat | grep -e RNBootstrap -e ReactNativeJS -e ReactNative -e StatusModule -e StatusNativeLogs -e 'F DEBUG :' -e 'Go :' -e 'GoLog :' -e 'libc :'