This repository has been archived by the owner on May 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add /minicap/broadcast, use scrcpy.cli instead
- Loading branch information
1 parent
98675a1
commit 0460135
Showing
9 changed files
with
328 additions
and
40 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
# | ||
|
||
|
||
ADB=$(which adb.exe) # for windows-linux | ||
|
||
set -ex | ||
ADB=${ADB:-"adb"} | ||
|
||
DEST="/data/local/tmp/atx-agent" | ||
|
||
echo "Build binary for arm ..." | ||
ABI=$(adb shell getprop ro.product.cpu.abi) | ||
|
||
GOARCH= | ||
case "$ABI" in | ||
arm64-v8a) | ||
GOARCH=arm64 | ||
;; | ||
*) | ||
GOARCH=arm | ||
;; | ||
esac | ||
|
||
#GOOS=linux GOARCH=$GOARCH go build | ||
|
||
go generate | ||
GOOS=linux GOARCH=$GOARCH go build -tags vfs | ||
|
||
$ADB push atx-agent $DEST | ||
$ADB shell chmod 755 $DEST | ||
$ADB shell $DEST server --stop | ||
|
||
$ADB forward tcp:7912 tcp:7912 | ||
|
||
# start server | ||
$ADB shell $DEST server "$@" |
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
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
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
Oops, something went wrong.