Comments (1)
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)
- scrcpy always copies server binary to device? HOT 1
- Foldable phone get deviceSize error
- Android 14 cannot be operated using a mouse. HOT 1
- Having error with scrcpy HOT 1
- Scrcpy 2.6 cannot use mouse operation on Android 14. HOT 2
- 2.6 mouse issues HOT 13
- 2.6版本某些app不能点击 HOT 8
- scrcpy 2.6 crash (error code provided) HOT 1
- i have scrpy v2.5 on samsung device android 13, SLING APP, audio, no video HOT 2
- Inspecting the "local" `.pc` files it seemed the culprit was found. HOT 1
- OBS broadcast into my android's camera. HOT 3
- FPS doesn't surpass 60 on a 120 capable device when device screen is turned off (-S is passed) HOT 1
- I Cannot Enable USB Debugging (Security Setting) on POCO X6 HOT 1
- cannot start the APPS SCRCPY on device ROG8 HOT 13
- compatibility with samsung dex en debian 12 arm chromebooks
- Cannot connect to two devices wirelessly at the same time or specify port HOT 19
- WiFi 端口号 总是变化 WiFi port number always changes HOT 1
- I have written a script for Scrcpy. Can facilitate the practicality of Scrcpy.
- Scrcpy crashed when run via adb shell HOT 2
- Unable to utilize -S parameter to turn screen off, alt+o also does not work. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrcpy.