Romain Vimont
90f8356630
Interrupt device threads on stop
...
The (non-daemon) threads were not interrupted on video stream stopped,
leaving the server process alive.
Interrupt them to wake up their blocking call so that they terminate
properly.
Refs #1992 <https://github.com/Genymobile/scrcpy/issues/1992 >
4 years ago
Romain Vimont
3ba51211d6
Mention how to add default arguments on Windows
...
Mention that it is possible to add default arguments by editing the
wrapper scripts.
4 years ago
Romain Vimont
ea3582d2c3
Merge branch 'master' into dev
4 years ago
Romain Vimont
112adbba87
Happy new year 2021!
4 years ago
Romain Vimont
d039a7a39a
Upgrade SDL (2.0.14) for Windows
...
Include the latest version of SDL in Windows releases.
4 years ago
Romain Vimont
6ab80e4ce8
Rename release.make to release.mk
...
It's more standard, and benefits from syntax coloration in vi.
4 years ago
Romain Vimont
230afd8966
Unify release makefile
...
Before this change, release.sh built some native stuff, and
Makefile.CrossWindows built the Windows releases.
Instead, use a single release.make to build the whole release. It also
avoids to build the server one more time.
4 years ago
Romain Vimont
a46733906a
Replace noconsole binary by a wrapper script
...
This simplifies the build system.
Refs <https://github.com/Genymobile/scrcpy/issues/1975#issuecomment-745314161 >
4 years ago
Romain Vimont
431c9ee33b
Improve rotation documentation
4 years ago
Romain Vimont
43d3dcbd97
Document Windows command line usage
...
PR #1973 <https://github.com/Genymobile/scrcpy/pull/1973 >
Reviewed-by: Yu-Chen Lin <npes87184@gmail.com>
4 years ago
Romain Vimont
a5f4f58295
Remove duplicate include
4 years ago
Romain Vimont
ea12783bbc
Upgrade JUnit to 4.13
4 years ago
Romain Vimont
904d470579
Pause on error from a wrapper script
...
On Windows, scrcpy paused on error before exiting to give the user a
chance to see the user message.
This was a hack and causes issues when using scrcpy from batch scripts.
Disable this pause from the scrcpy binary, and provide a batch wrapper
(scrcpy-console.bat) to pause on error.
Fixes #1875 <https://github.com/Genymobile/scrcpy/issues/1875 >
4 years ago
Romain Vimont
6d151eaef9
Reference encoder section from FAQ
4 years ago
Romain Vimont
5dc3285dbf
Reference FFmpeg Windows builds from GitHub
...
Refs #1753 <https://github.com/Genymobile/scrcpy/issues/1753 >
4 years ago
Romain Vimont
c9a4bdb890
Upgrade platform-tools (30.0.5) for Windows
...
Include the latest version of adb in Windows releases.
4 years ago
Romain Vimont
d60ac65b32
Merge branch 'master' into dev
4 years ago
jianzhang4
d6078cf202
Fix build errors for macOS
...
PR #1960 <https://github.com/Genymobile/scrcpy/pull/1960 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
SamBe.ng
47c8971267
Document shell command to get the device IP
...
PR #1944 <https://github.com/Genymobile/scrcpy/pull/1944 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont
30434afc0a
Upgrade gradle build tools to 4.0.1
4 years ago
Romain Vimont
868e762d71
Fix size_t format specifier for Windows
...
Use "%Iu" on Windows. This fixes the following warning:
../app/src/sys/win/command.c:17:14: warning: unknown conversion type character ‘l’ in format [-Wformat=]
17 | LOGE("Command too long (%" PRIsizet " chars)", len - 1);
4 years ago
Romain Vimont
576814bcec
Document --encoder option
...
Add documentation for the new option --encoder in the manpage and in
README.md.
4 years ago
Romain Vimont
42ab8fd611
List available encoders on invalid name specified
...
If an invalid encoder name is given via the --encoder option, list all
the H.264 encoders available on the device.
4 years ago
Romain Vimont
363eeea19e
Log encoder name
...
When the encoder is selected automatically, log the name of the selected
encoder.
4 years ago
Tzah Mazuz
76c2c6e69d
Adding new option --encoder
...
Some devices have more than one encoder, and some encoders may cause
issues or crash. With this option we can specify which encoder we want
the device to use.
PR #1827 <https://github.com/Genymobile/scrcpy/pull/1827 >
Fixes #1810 <https://github.com/Genymobile/scrcpy/issues/1810 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont
d5f059c7cb
Add option to force legacy method for pasting
...
Some devices do not behave as expected when setting the device clipboard
programmatically.
Add an option --legacy-paste to change the behavior of Ctrl+v and MOD+v
so that they inject the computer clipboard text as a sequence of key
events (the same way as MOD+Shift+v).
Fixes #1750 <https://github.com/Genymobile/scrcpy/issues/1750 >
Fixes #1771 <https://github.com/Genymobile/scrcpy/issues/1771 >
4 years ago
Romain Vimont
adc547fa6e
Add an option to forward all clicks
...
Add --forward-all-clicks to disable mouse shortcuts and forward middle
and right clicks to the device instead.
Fixes #1302 <https://github.com/Genymobile/scrcpy/issues/1302 >
Fixes #1613 <https://github.com/Genymobile/scrcpy/issues/1613 >
4 years ago
Romain Vimont
5dcfc0ebab
Add local.properties to gitignore
4 years ago
Romain Vimont
ad5f567f07
Remove spurious space
4 years ago
Romain Vimont
25aff00935
Mention version of Indonesian translation
4 years ago
yanuarakhid
aade92fd10
Add Indonesian translation for README.md
...
PR #1802 <https://github.com/Genymobile/scrcpy/pull/1802 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont
83082406d3
Enable Java deprecation warnings details
...
Without the option, gradle reports a lint issue, but without any
details.
4 years ago
Romain Vimont
2edf192e3a
Remove deprecation warning
...
As a workaround for some devices, we need to prepare the main looper.
The method is now deprecated, but we still want to call it.
4 years ago
Romain Vimont
d50ecf40b6
Fix options order
4 years ago
redev
15b81367c9
Fix FAQ.ko.md
...
PR #1767 <https://github.com/Genymobile/scrcpy/pull/1767 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Brinan Sjostrom
56d237f152
Fix "press Enter key" message
...
The message said "Press any key to continue...", whereas only
Enter/Return is accepted.
PR #1783 <https://github.com/Genymobile/scrcpy/pull/1783 >
Fixes #1757 <https://github.com/Genymobile/scrcpy/issues/1757 >
Reviewed-by: Yu-Chen Lin <npes87184@gmail.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont
acc65f8c9d
Remove unused field
...
Fixes #1775 <https://github.com/Genymobile/scrcpy/issues/1775 >
Reported-by: lordnn
4 years ago
Romain Vimont
a65ebceac1
Add missing mutex unlock on error
...
Fixes #1770 <https://github.com/Genymobile/scrcpy/issues/1770 >
Reported-by: lordnn
4 years ago
Win7GM
c136edf09d
Add simplified Chinese translation for README.md
...
PR #1723 <https://github.com/Genymobile/scrcpy/pull/1723 >
Co-authored-by: Shaw Yu <shawyu.nz@gmail.com>
Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont
52560faa34
Fix README indentation
4 years ago
Romain Vimont
d662f73bdc
Upgrade Android SDK to 30
4 years ago
Romain Vimont
1c44dc2259
Use portable shebang for all bash scripts
...
Refs #426 <https://github.com/Genymobile/scrcpy/pull/426 >
Refs #1716 <https://github.com/Genymobile/scrcpy/pull/1716 >
4 years ago
Luís Ferreira
02a882a0a2
Use a more portable shebang for bash
...
This should increase the portability of bash scripts across various *nix
systems such as BSD-like distributions.
PR #1716 <https://github.com/Genymobile/scrcpy/pull/1716 >
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
CapsLock
cf7bf3148c
Use "/usr/bin/env bash" for build-wrapper.sh
...
PR #426 <https://github.com/Genymobile/scrcpy/pull/426 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont
ae758f99d6
Adapt call() on ContentProvider for Android 11
...
This commit in AOSP framework_base added a parameter "attributionTag" to
the call() method:
12ac3f406f
%5E%21/#F17
As a consequence, the method did not exist, so scrcpy used the legacy
call() method (using the authority "unknown") as a fallback, which fails
for security reasons.
Fixes #1468 <https://github.com/Genymobile/scrcpy/issues/1468 >
4 years ago
Romain Vimont
bd9f656933
Fix feature test macro
...
The expected feature test macro is _POSIX_C_SOURCE having a value
greater or equal to 200809L.
Fixes #1726 <https://github.com/Genymobile/scrcpy/issues/1726 >
4 years ago
Romain Vimont
c243fd4c3f
Fix more log format warning
...
The expression port + 1 is promoted to int, but printed as uint16_t.
This is the same mistake fixed for a different log by
7eb16ce364
.
Refs #1726 <https://github.com/Genymobile/scrcpy/issues/1726 >
4 years ago
brunoais
0bf110dd5c
Reset power mode only if screen is on
...
PR #1670 <https://github.com/Genymobile/scrcpy/pull/1670 >
Signed-off-by: Romain Vimont <rom@rom1v.com>
4 years ago
Romain Vimont
0c5e0a4f6d
Make Device methods static when possible
...
The behavior of some methods do not depend on the user-provided options.
These methods can be static. This will allow to call them directly from
the cleanup process.
4 years ago
Romain Vimont
0be766e71a
Add undetected device error message in FAQ
4 years ago