Skip to content

Instantly share code, notes, and snippets.

@vgvgvvv
Created January 7, 2021 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgvgvvv/232ab297c69ec9f483ca3fe5562c5c9d to your computer and use it in GitHub Desktop.
Save vgvgvvv/232ab297c69ec9f483ca3fe5562c5c9d to your computer and use it in GitHub Desktop.
Build Android Binary By Golang
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