From 63ef138d08a9445b522c4b91a725317889d0e2dc4b93cb9bfe18b165723e6315 Mon Sep 17 00:00:00 2001 From: Duarte Pousa Date: Tue, 11 Jan 2022 13:07:56 +0000 Subject: [PATCH] Accepting request 945575 from home:alarrosa:branches:hardware - Update to version 1.21: * Bump version to 1.21 * Clarify TCP/IP mode in README * Always synchronize clipboard on explicit COPY/CUT * Expose sync mode for injecting events * Move acknowledgment handling * Fix set_clipboard message log * Upgrade gradle build tools to 7.0.3 * Add --raw-key-events * Use enum for key injection mode * Use static maps to convert input events * Fix code style in keyboard_inject * Improve HID keyboard documentation * Document --tcpip in README * Add --tcpip feature * Extract interruptible sleep for server * Add function to read an adb property * Add function to switch device to TCP/IP mode * Add function to find the device IP address * Add util function to remove trailing '\r' * Add util function to locate a column in a string * Workaround "adb connect" error detection * Add adb connect and disconnect * Add adb flag to disable execution error logs * Use flags for adb commands * Expose flags for process execution * Remove obsolete precision in README * Simplify Windows process inheritance configuration * Remove intermediate static functions from adb.c * Set CLOEXEC flag on sockets OBS-URL: https://build.opensuse.org/request/show/945575 OBS-URL: https://build.opensuse.org/package/show/hardware/scrcpy?expand=0&rev=74 --- .gitattributes | 2 +- _service | 2 +- _servicedata | 2 +- scrcpy-1.19.tar.xz | 3 - scrcpy-1.21.tar.xz | 3 + scrcpy-server-v1.19 | 3 - scrcpy-server-v1.21 | 3 + scrcpy.changes | 213 ++++++++++++++++++++++++++++++++++++++++++++ scrcpy.spec | 5 +- 9 files changed, 226 insertions(+), 10 deletions(-) delete mode 100644 scrcpy-1.19.tar.xz create mode 100644 scrcpy-1.21.tar.xz delete mode 100644 scrcpy-server-v1.19 create mode 100644 scrcpy-server-v1.21 diff --git a/.gitattributes b/.gitattributes index ee8f64e..e485991 100644 --- a/.gitattributes +++ b/.gitattributes @@ -22,4 +22,4 @@ *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text ## Specific LFS patterns -scrcpy-server-v1.19 filter=lfs diff=lfs merge=lfs -text +scrcpy-server-v1.21 filter=lfs diff=lfs merge=lfs -text diff --git a/_service b/_service index d3bcc32..b8b7b4f 100644 --- a/_service +++ b/_service @@ -5,7 +5,7 @@ @PARENT_TAG@ v(.*) enable - v1.19 + v1.21 *.tar diff --git a/_servicedata b/_servicedata index 1b8c36c..13db69c 100644 --- a/_servicedata +++ b/_servicedata @@ -1,4 +1,4 @@ https://github.com/Genymobile/scrcpy.git - 228e2c15f44849032e9006dce1e0c47ae6e108ee \ No newline at end of file + 003e7381064f2c0e8ce1095d1a65522fab4e118b \ No newline at end of file diff --git a/scrcpy-1.19.tar.xz b/scrcpy-1.19.tar.xz deleted file mode 100644 index 1a893d3..0000000 --- a/scrcpy-1.19.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4fda585e9855fc20d694e68128630ca638fa48a0d7aefc18e1afea6bbac85769 -size 269768 diff --git a/scrcpy-1.21.tar.xz b/scrcpy-1.21.tar.xz new file mode 100644 index 0000000..52fdad6 --- /dev/null +++ b/scrcpy-1.21.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c41dbc69a6711665f501f613fe815939915f10108c45dd9c7d549c6b96e2f0fd +size 305636 diff --git a/scrcpy-server-v1.19 b/scrcpy-server-v1.19 deleted file mode 100644 index 5f6d797..0000000 --- a/scrcpy-server-v1.19 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:876f9322182e6aac6a58db1334f4225855ef3a17eaebc80aab6601d9d1ecb867 -size 37330 diff --git a/scrcpy-server-v1.21 b/scrcpy-server-v1.21 new file mode 100644 index 0000000..c13a4e3 --- /dev/null +++ b/scrcpy-server-v1.21 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dbcccab523ee26796e55ea33652649e4b7af498edae9aa75e4d4d7869c0ab848 +size 40067 diff --git a/scrcpy.changes b/scrcpy.changes index ccbc68a..6b25502 100644 --- a/scrcpy.changes +++ b/scrcpy.changes @@ -1,3 +1,216 @@ +------------------------------------------------------------------- +Tue Jan 11 11:12:11 UTC 2022 - alarrosa@suse.com + +- Update to version 1.21: + * Bump version to 1.21 + * Clarify TCP/IP mode in README + * Always synchronize clipboard on explicit COPY/CUT + * Expose sync mode for injecting events + * Move acknowledgment handling + * Fix set_clipboard message log + * Upgrade gradle build tools to 7.0.3 + * Add --raw-key-events + * Use enum for key injection mode + * Use static maps to convert input events + * Fix code style in keyboard_inject + * Improve HID keyboard documentation + * Document --tcpip in README + * Add --tcpip feature + * Extract interruptible sleep for server + * Add function to read an adb property + * Add function to switch device to TCP/IP mode + * Add function to find the device IP address + * Add util function to remove trailing '\r' + * Add util function to locate a column in a string + * Workaround "adb connect" error detection + * Add adb connect and disconnect + * Add adb flag to disable execution error logs + * Use flags for adb commands + * Expose flags for process execution + * Remove obsolete precision in README + * Simplify Windows process inheritance configuration + * Remove intermediate static functions from adb.c + * Set CLOEXEC flag on sockets + * Check process success locally for adb commands + * Extract command argv building + * Use unsigned for connection attempts count + * Reorder cli sanity checks + * Fix adb get-serialno error handling + * Add OutOfMemory log helper + * Remove unreachable return statements + * Add missing return on file_handler failure + * Add missing includes + * Make lockVideoOrientation option name uniform + * Do not pass default values to the server + * Pass server parameters as key=value pairs + * Allocate and format server command args + * Parse codec options early + * Remove local "serial" variable + * Add (v)asprintf compatibility functions + * Move check_functions in meson script + * Add missing includes in compat implementation + * Define common feature test macros for all systems + * Add option to disable clipboard autosync + * Wait SET_CLIPBOARD ack before Ctrl+v via HID + * Move PRIu64 Windows workaround to compat.h + * Make the device acknowledge device clipboard + * Add device clipboard set acknowledgement + * Add sequence number to set_clipboard request + * Add acksync helper to wait for acks + * Explicitly indicate when device clipboard is set + * Do not inject Ctrl+v if clipboard sync failed + * Synchronize computer-to-device empty clipboard + * Use UINT64_C macro for uint64_t constant in tests + * Document remote ADB server in README + * Force adb forward if tunnel host/port is provided + * Add options to configure tunnel host and port + * Add function to parse IPv4 addresses + * Configure feature test macros in meson + * Add missing include config.h + * Improve SSH tunnel documentation in README + * Print scrcpy header first + * Print help to stdout + * Assert that long options are correctly set + * Simplify adb_tunnel + * Privatize low-level adb functions + * Use new user-friendly adb API + * Expose new user-friendly adb functions + * Rename adb functions to adb_exec_* + * Use sc_intr in file_handler + * Simplify file_handler + * Improve file_handler readability + * Simplify adb_execute_p() + * Make "adb get-serialno" interruptible + * Add interruptible function to read from pipe + * Simplify sc_str_truncate() + * Generalize string trunctation util function + * Expose util function to truncate first line + * Assume non-NULL serial in file_handler + * Always retrieve device serial + * Add missing error handling + * Close process on check success + * Configure init and cleanup asynchronously + * Do not quit on cleanup configuration failure + * Move init and cleanup to a separate method + * Read/write settings via command on Android >= 12 + * Add throwable parameter to Log.w() + * Report settings errors via Exceptions + * Wrap settings management into a Settings class + * Update Simplified Chinese README to 1.20 + * Fix wrong package to install for Ubuntu/Debian + * Inherit only specific handles on Windows + * Factorize resource release after CreateProcess() + * Remove useless assignments on error + * Fix Windows sc_pipe function names + * Stop connection attempts if interrupted + * Fix compilation errors with old SDL versions + * Update links to v1.20 + * Bump version to 1.20 + * Update script to build without gradle to SDK 31 + * Extract ANDROID_JAR path in build script + * Fix word order in README + * Mention crash on Android 12 on old scrcpy in FAQ + * Adapt icon in README + * Replace "connected on" to "connected via" + * Improve scrcpy presentation in README + * Increase delay to inject HID on Ctrl+v + * Use sc_ prefix for server + * Move str_util to str + * Improve string util API + * Rename SC_INVALID_SOCKET to SC_SOCKET_NONE + * Extract adb tunnel to a separate component + * Move IPV4_LOCALHOST to net.h + * Interrupt on process terminated + * Make server interruptible + * Add interruptor utilities + * Introduce interruptor tool + * Run the server from a dedicated thread + * Wait using a condition variable in server + * Reorder server functions + * Copy server params + * Reorder server and server_params + * Split socket creation and connect/listen + * Set video and control sockets only on success + * Initialize tunnel_enabled flag internally + * Introduce process observer + * Improve process API + * Factorize common impl of process_execute() + * Remove duplicate function declaration + * Improve file API + * Move functions from process to file + * Make screen_render() static + * Upgrade junit to 4.13.1 + * Adapt help to terminal size + * Add util function to get terminal size + * Generate getopt params from option structures + * Structure shortcuts help + * Structure command line options help + * Add line wrapper + * Add string buffer util + * Remove deprecated -T option + * Remove deprecated -c option + * Document --power-off-on-close + * Mention drag & drop for non-APK files in help + * Mention drag & drop APK in README + * Remove extra space in README + * Fix typos in help + * Add missing include "common.h" + * Wrap device name and size in a struct + * Update README.jp.md to v1.19 + * Remove unnecessary variable + * Disable synthetic mouse events from touch events + * Split SDL initialization + * Move SDL initialization + * Set SDL hints before initialization + * Extract SDL hints + * Factorize SDL event push + * Handle SDL_PushEvent() errors + * Use sc_ prefix for size, position and point + * Upgrade gradle build tools to 7.0.2 + * Upgrade Android checkstyle to 9.0.1 + * Upgrade Android SDK to 31 + * Fix typo in clock comments + * Define v4l2 option field only if HAVE_V4L2 + * Define default options as const struct + * Move scrcpy option structs to options.h + * Expose socket interruption + * Add socket wrapper + * Use net_send() from net_send_all() + * Use sc_ prefix for sockets + * Move net_init() and net_cleanup() upwards + * Update FAQ to mention HID keyboard + * Delay HID events on Ctrl+v + * Synchronize HID keyboard state on first event + * Retrieve device serial for AOA + * Expose function to get the device serial + * Add read_pipe_all() + * Expose adb execution with redirection + * Add command execution with redirection + * Add support for USB HID keyboard over AOAv2 + * Extract mouse processor trait + * Extract keyboard processor trait + * Fix trait header guards + * Remove unused markdown link in README + * Mention SCRCPY_ICON_PATH envvar in README + * Add scrcpy icon to README + * Remove legacy scrcpy icon + * Add icon source in SVG format + * Use a new scrcpy icon + * Add support for palette icon formats + * Add icon loader + * Move common instruction out of ifdef + * Extract util function to build a local file path + * Fix code style + * Fix "Could not find v4l2 muxer" + * Simplify net_send_all() + * Update Readme.pt-br.md to v1.19 + * Update italian translation to v1.19 + * Fix workarounds for Meizu + * Add missing includes + * Fix link in README + * Add support for expandNotificationsPanel() variant + * Update links to v1.19 + ------------------------------------------------------------------- Wed Oct 06 02:46:57 UTC 2021 - jonathan@jontech.app diff --git a/scrcpy.spec b/scrcpy.spec index 6dbdde4..1812a0c 100644 --- a/scrcpy.spec +++ b/scrcpy.spec @@ -17,7 +17,7 @@ Name: scrcpy -Version: 1.19 +Version: 1.21 Release: 0 Summary: Display and control your Android device License: Apache-2.0 @@ -26,11 +26,13 @@ URL: https://github.com/Genymobile/scrcpy Source0: %{name}-%{version}.tar.xz Source1: https://github.com/Genymobile/scrcpy/releases/download/v%{version}/scrcpy-server-v%{version} BuildRequires: gcc +BuildRequires: hicolor-icon-theme BuildRequires: meson >= 0.48 BuildRequires: pkgconfig BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavdevice) BuildRequires: pkgconfig(libavformat) +BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(sdl2) %description @@ -55,5 +57,6 @@ This application provides display and control of Android devices connected on US %{_bindir}/%{name} %{_datadir}/%{name} %{_mandir}/man1/%{name}.1%{?ext_man} +%{_datadir}/icons/hicolor/*/apps/scrcpy.png %changelog