Created
January 7, 2021 23:25
-
-
Save vgvgvvv/232ab297c69ec9f483ca3fe5562c5c9d to your computer and use it in GitHub Desktop.
Build Android Binary By Golang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ADB=adb | |
DEST="/data/local/tmp/reautomatic-agent" | |
OUTPUT="output/main" | |
echo "Build binary for arm ..." | |
go generate | |
GOOS=linux GOARCH=arm go build -o $OUTPUT -tags vfs | |
$ADB push $OUTPUT $DEST | |
$ADB shell chmod 755 $DEST | |
$ADB shell $DEST -host=121.196.216.106 -name=google -deamon=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment