Skip to content

Commit da63e37

Browse files
committed
Merge branch 'master' into dev
2 parents cf9d449 + 5086e7b commit da63e37

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

BUILD.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ Additionally, if you want to build the server, install Java 8 from Caskroom, and
176176
make it avaliable from the `PATH`:
177177

178178
```bash
179-
brew tap caskroom/versions
180-
brew cask install java8
179+
brew tap homebrew/cask-versions
180+
brew cask install adoptopenjdk/openjdk/adoptopenjdk8
181181
export JAVA_HOME="$(/usr/libexec/java_home --version 1.8)"
182182
export PATH="$JAVA_HOME/bin:$PATH"
183183
```
@@ -190,12 +190,17 @@ See [pierlon/scrcpy-docker](https://github.com/pierlon/scrcpy-docker).
190190
## Common steps
191191

192192
If you want to build the server, install the [Android SDK] (_Android Studio_),
193-
and set `ANDROID_HOME` to its directory. For example:
193+
and set `ANDROID_SDK_ROOT` to its directory. For example:
194194

195195
[Android SDK]: https://developer.android.com/studio/index.html
196196

197197
```bash
198-
export ANDROID_HOME=~/android/sdk
198+
# Linux
199+
export ANDROID_SDK_ROOT=~/Android/Sdk
200+
# Mac
201+
export ANDROID_SDK_ROOT=~/Library/Android/sdk
202+
# Windows
203+
set ANDROID_SDK_ROOT=%LOCALAPPDATA%\Android\sdk
199204
```
200205

201206
If you don't want to build the server, use the [prebuilt server].

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ A [Snap] package is available: [`scrcpy`][snap-link].
4949

5050
[snap]: https://en.wikipedia.org/wiki/Snappy_(package_manager)
5151

52+
For Fedora, a [COPR] package is available: [`scrcpy`][copr-link].
53+
54+
[COPR]: https://fedoraproject.org/wiki/Category:Copr
55+
[copr-link]: https://copr.fedorainfracloud.org/coprs/zeno/scrcpy/
56+
5257
For Arch Linux, an [AUR] package is available: [`scrcpy`][aur-link].
5358

5459
[AUR]: https://wiki.archlinux.org/index.php/Arch_User_Repository
@@ -301,7 +306,7 @@ ssh -CN -L5037:localhost:5037 -L27183:localhost:27183 your_remote_computer
301306
From another terminal:
302307

303308
```bash
304-
scrcpy --force-adb-forwrad
309+
scrcpy --force-adb-forward
305310
```
306311

307312

@@ -447,7 +452,7 @@ On Android, the `POWER` button always turns the screen on. For convenience, if
447452
will force to turn the screen off after a small delay (on a best effort basis).
448453
The physical `POWER` button will still cause the screen to be turned on.
449454

450-
It can be useful to also prevent the device to sleep:
455+
It can also be useful to prevent the device from sleeping:
451456

452457
```bash
453458
scrcpy --turn-screen-off --stay-awake
@@ -600,11 +605,11 @@ scrcpy --push-target /sdcard/foo/bar/
600605

601606
### Audio forwarding
602607

603-
Audio is not forwarded by _scrcpy_. Use [USBaudio] (Linux-only).
608+
Audio is not forwarded by _scrcpy_. Use [sndcpy].
604609

605610
Also see [issue #14].
606611

607-
[USBaudio]: https://github.com/rom1v/usbaudio
612+
[sndcpy]: https://github.com/rom1v/sndcpy
608613
[issue #14]: https://github.com/Genymobile/scrcpy/issues/14
609614

610615

server/build_without_gradle.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ echo "Generating java from aidl..."
4242
cd "$SERVER_DIR/src/main/aidl"
4343
"$ANDROID_HOME/build-tools/$BUILD_TOOLS/aidl" -o"$CLASSES_DIR" \
4444
android/view/IRotationWatcher.aidl
45+
"$ANDROID_HOME/build-tools/$BUILD_TOOLS/aidl" -o"$CLASSES_DIR" \
46+
android/content/IOnPrimaryClipChangedListener.aidl
4547

4648
echo "Compiling java sources..."
4749
cd ../java
@@ -55,6 +57,7 @@ cd "$CLASSES_DIR"
5557
"$ANDROID_HOME/build-tools/$BUILD_TOOLS/dx" --dex \
5658
--output "$BUILD_DIR/classes.dex" \
5759
android/view/*.class \
60+
android/content/*.class \
5861
com/genymobile/scrcpy/*.class \
5962
com/genymobile/scrcpy/wrappers/*.class
6063

0 commit comments

Comments
 (0)