GithubHelp home page GithubHelp logo

Comments (3)

razumeiko avatar razumeiko commented on July 29, 2024

Hey @bzqyzzld
If you check the code you will see how script is running the server

[self.adb_path, 'shell',
                 'CLASSPATH=/data/local/tmp/scrcpy-server.jar',
                 'app_process', '/', 'com.genymobile.scrcpy.Server 1.12.1 {} {} {} true - false true'.format(
                    max_width, bitrate, max_fps)]

So the right way is: CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process / com.genymobile.scrcpy.Server 1.12.1 1024 8000000 25 true - false true

from py-android-viewer.

bzqyzzld avatar bzqyzzld commented on July 29, 2024

I tried to download scrcpy-server with the version 1.16 and renamed scrcpy-server.jar
when i run the commands:adb shell CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process / com.genymobile.scrcpy.Server 1.16 1024 8000000 25 true - false true
error infos:

D:\soft\scrcpy>adb shell CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process
 / com.genymobile.scrcpy.Server 1.16 1024 8000000 25 true - false true
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalArgumentException: Expecting 14 parameters
        at com.genymobile.scrcpy.Server.createOptions(Server.java:125)
        at com.genymobile.scrcpy.Server.main(Server.java:221)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:251)

from py-android-viewer.

razumeiko avatar razumeiko commented on July 29, 2024

@bzqyzzld why do you need to change server? Server arguments can change from version to version and i am not author of this Java server, i took this server from https://github.com/Genymobile/scrcpy as i mention in project description. So you could use the server which is presented in this repo or you can try to read original server code and see what should be changed. Your error saying that it's expecting 14 parameters, so i guess something wrong with order or number of params.

from py-android-viewer.

Related Issues (8)

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.