-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
3 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,14 @@ | ||
#!/bin/sh | ||
|
||
## forward console port 5554 as external 5556 | ||
sh -c 'sleep 1; while true; do socat -d -lf /var/log/socat-5554.log TCP4-LISTEN:5556 tcp4:127.0.0.1:5554; sleep 0.01; done' & | ||
# forward adb port 5555 as external 5557 | ||
sh -c 'sleep 1; while true; do socat -d -lf /var/log/socat-5555.log TCP4-LISTEN:5557 tcp4:127.0.0.1:5555; sleep 0.01; done' & | ||
|
||
/home/user/Android/Sdk/emulator/emulator \ | ||
-avd default \ | ||
-no-window \ | ||
-gpu off \ | ||
-no-audio \ | ||
${@} | ||
|