File README.SUSE of Package scrcpy

Quick start guide
=================

The Android device requires at least API 21 (Android 5.0).

Make sure to enable adb debugging on your device.
https://developer.android.com/studio/command-line/adb.html#Enabling

Some devices require an additional option to control it using keyboard and mouse.
https://github.com/Genymobile/scrcpy/issues/70#issuecomment-373286323

Connect your device over USB.

Run "adb devices" in a terminal.

If you connect your device for the first time, you will see something similar to:

List of devices attached
* daemon not running; starting now at tcp:5037
* daemon started successfully
123456789abcdef123      unauthorized

A "Enable USB debugging" message is shown on is shown on your device.

You need to accept this, and might want to keep this setting.

Run "adb devices" again. It will show the authorized device now:

List of devices attached
123456789abcdef123      device

Now you should be able to run scrcpy successfully over USB..

Connect over Wi-Fi
==================

Enable IPv4 forwarding in your kernel, e.g. add

net.ipv4.ip_forward = 1

to /etc/sysctl.conf and run "sysctl --system".

Figure out your devices IP address.

Connect your device with USB.

Run "adb tcpip 5555".

Unplug your device.

Run "adb connect DEVICE_IP:5555"

Run scrcpy.

Run "adb disconnect" to disconnect all devices and stop the adb server process.

Homework
========

Setup OpenVPN, install OpenVPN on your device (I prefer OpenVPN for Android),
and connect to your device over OpenVPN.

Have fun and dance.
openSUSE Build Service is sponsored by