Scrcpy client base on flutter.
Note: 16-char-key is requried for AES encryption if you need sceenshot feature, otherwise provide any string(16-char) while starting server.
- Windows
-
Use adb to push server.jar to phone
.\adb.exe push "C:\scrcpy-server-flutter.jar" /sdcard/scrcpy-server-flutter.jar
-
Use adb to start server (Replace
<16_char_key>
to your own)Click to expand!
.\adb.exe shell CLASSPATH=/sdcard/scrcpy-server-flutter.jar nohup app_process / --nice-name=scrcpy_device_server com.genymobile.scrcpy.Server <16_char_key> error 0 8000000 0 -1 true - true true 0 false false - - false `>/dev/null 2`>`&1 `&
(Above
powershell.exe
use`
to escape character, incmd.exe
it is^
)
- Unix
-
Use adb to push server.jar to phone
adb push ./scrcpy-server-flutter.jar /sdcard/scrcpy-server-flutter.jar
-
Use adb to start server (Replace
<16_char_key>
to your own)adb shell CLASSPATH=/sdcard/scrcpy-server-flutter.jar nohup app_process / --nice-name=scrcpy_device_server com.genymobile.scrcpy.Server <16_char_key> error 0 8000000 0 -1 true - true true 0 false false - - false >/dev/null 2>&1 &
Then you are able to connect to the phone via app.
App use tcp to connect to scrcpy-server-flutter.jar
, server port 7007
.
Server use port 7008
to start http server for serving screenshot.
-
Server didn't start.
You can check if server is running by typing
adb shell "ps -A | grep scrcpy_device_server"
Try to run command in the front to check if errors there whiling start server. (remove
nohup
,&
and output redirect from the start script)adb shell CLASSPATH=/sdcard/scrcpy-server-flutter.jar nohup app_process / --nice-name=scrcpy_device_server com.genymobile.scrcpy.Server <16_char_key> error 0 8000000 0 -1 true - true true 0 false false - - false