• Stars
    star
    426
  • Rank 98,106 (Top 2 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 2 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Ported scrcpy for mobile platforms, to remotely control Android devices on your iPhone or Android phone.

scrcpy-mobile

Ported scrcpy for mobile platforms, to remotely control Android devices on your iPhone or Android phone.

Currently only supports controlling Android devices from iOS, Android controlling Android devices will be supported in futrue.

screenshots

Features

  • Supports scrcpy with ADB over WiFi ;
  • With Hardware decoding, less power and CPU comsumed;
  • Optimized gesture experiences for unstable network from mobile devices;
  • Supports start scrcpy from URL scheme;
  • Supports pair Android device with Pairing Code;
  • With Android navigation buttons: Back, Home, Switch App;
  • Supports toggle iOS keyboard and send keys to remote device;
  • Sync clipboard contents between iPhone and remote Android devices;
  • Support adbkey management: generate, modify, import, export;

Installation

Scrcpy Mobile is now available on the App Store. You can download from:

Get it from iTunes

Usage

ADB Mode:

After the App is installed, the default mode is VNC. You can switch to ADB WiFi mode by one of the following options:

  • Option 1: Visit this URL Scheme by click scrcpy2://adb
  • Option 2: Type the text adb in the Host textbox, then click Connect
  • Option 3: Type the text 5555 in the Port textbox, then click Connect

And then please make sure that the Android devices has enabled the adb tcpip mode:

adb tcpip 5555

After authorized on your Android devices, scrcpy will continue to connect.

Or Pair with Pairing Code:

This only works on Android 10+ devices:

  • Click "..." menu icon on the top-left corner of Scrcpy Remote main window;
  • Click "Pair With Pairing Code";
  • Then on the Android device, go to:
    • Settings -> System -> Developer Options -> Enable Wireless Debugging -> Pair device with pairing code

Then just follow the tips on Android device to start pair.

VNC Mode:

You can switch back to VNC mode by one of the following options:

  • Option 1: Visit the URL Scheme by click scrcpy2://vnc
  • Option 2: Type the text vnc in the Host textbox, then click Connect
  • Option 3: Type the text 5900 in the Port textbox, then click Connect

Note: The VNC mode can only connect the VNC port that be proxied with websockify, and it's based on noVNC which is a web vnc client, so the performance and experience may not good.

URL Scheme:

After changed the options, you can click "Copy URL Scheme" to get the URL Scheme string, and you can create a shortcut in Shorcuts.app for connecting to scrcpy quickly.

scrcpy2://example.com:5555?bit-rate=4M&max-size=1080

Telegram Support:

If you still have any question, you can join telegram channel:

telegram

Build

Build all dependencies:

make libs

Build scrcpy-server:

make -C porting scrcpy-server

Then, Open scrcpy-ios/scrcpy-ios.xcodeproj to Build and Run.

License

MIT License

Copyright (c) 2022 Ethan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.