Code Monkey home page Code Monkey logo

Comments (1)

Giantvince1 avatar Giantvince1 commented on July 20, 2024 2

Unfortunately, this is completely impossible due to how Android works at its core. The USB debugging feature is only able to be turned on by the user directly, meaning that scrcpy would have to somehow know the screen's resolution AND display density before even beginning to control it via UHID to turn on USB debugging. Not only that but the process is rather complicated and differs from phone to phone, especially with Samsung or OnePlus devices. Other OEMs implement skins of their own as well, but that's the best example I could think of that I know changes around even how the Settings page works.

Edit: I should be more clear here; scrcpy CAN control the device using OTG mode without USB debugging enabled. HOWEVER, it is UNABLE to display the screen in any capacity, NOR can it capture audio, without having USB (or wireless) debugging enabled beforehand. This means that your physical screen must work at least well enough for you to navigate settings in order to enable USB debugging manually. It doesn't have to respond to touch, but as long as you can see enough of the screen to know what you're doing, you'll be fine.

from scrcpy.

Related Issues (20)

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.