Giter VIP home page Giter VIP logo

scrcpy-flutter's Introduction

scrcpy_flutter

Scrcpy client base on flutter.

Getting Started

Note: 16-char-key is requried for AES encryption if you need sceenshot feature, otherwise provide any string(16-char) while starting server.

  • Windows
  1. Use adb to push server.jar to phone

     .\adb.exe push "C:\scrcpy-server-flutter.jar" /sdcard/scrcpy-server-flutter.jar
    
  2. 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, in cmd.exe it is ^)

  • Unix
  1. Use adb to push server.jar to phone

     adb push ./scrcpy-server-flutter.jar /sdcard/scrcpy-server-flutter.jar
    
  2. 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.

How this app works

App use tcp to connect to scrcpy-server-flutter.jar, server port 7007.

Server use port 7008 to start http server for serving screenshot.

Trouble shooting

  1. 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

Preview

scrcpy_flutter

scrcpy-flutter's People

Contributors

diyews avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

scrcpy-flutter's Issues

how to use

I also tried to build this project with Flutter. I set the key and IP, but no pictures appeared. Could you give me a detailed tutorial

IOS support

hey awesome project, any plan to support IOS as well ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.