Genymobile / Genymobile/scrcpy
Run arbitary adb command on custome key shortcut
- Dominant language
- C
- Stars
- 150k
- Forks
- 13.7k
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 2
Description
- [ x] I have checked that a similar [feature request](https://github.com/Genymobile/scrcpy/issues?q=is%3Aopen+is%3Aissue+label%3A%22feature+request%22) does not already exist.
**Is your feature request related to a problem? Please describe.**
The underlying reasoning for making this feature request is that I often have to keep unlocking my phone from scrcpy, this is especially annoying since my password is long and i cannot see what the screen shows, however there is an adb command that can do this for me:
`adb -s ip:port shell input text [password] && adb -s ip:port shell input keyevent 66 && adb -s ip:port shell input keyevent KEYCODE_WAKEUP`
To use this i have to put this in the terminal.
**Describe the solution you'd like**
I would like to be able to setup a custom keybinding (custom shortcut) that allows me to run an adb command on the device.
This will allow people to make their own bindings with their own adb code execution, potentially allowing for less feature related issues opening.
**Describe alternatives you've considered**
Alternative is to alias the above adb commands and run the alias (eg. unlock) in the terminal everytime i need it unlocking
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named in the issue. Start by locating the existing custom shortcut handling and ADB command execution entry points, then determine how a user-defined command would be configured and safely run; done means a custom shortcut can execute an ADB command on the connected device.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, c
- Domain
- desktop, mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100