From 55808034066b51f8e3c96f3a7e054898fb1f590e Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 31 Oct 2023 19:13:17 +0100 Subject: [PATCH] Always print device model and version Print the log before checking for --list-* options so that it is printed in all cases. --- server/src/main/java/com/genymobile/scrcpy/Server.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/com/genymobile/scrcpy/Server.java b/server/src/main/java/com/genymobile/scrcpy/Server.java index a86b8130..a8e8e36a 100644 --- a/server/src/main/java/com/genymobile/scrcpy/Server.java +++ b/server/src/main/java/com/genymobile/scrcpy/Server.java @@ -87,8 +87,6 @@ public final class Server { } private static void scrcpy(Options options) throws IOException, ConfigurationException { - Ln.i("Device: [" + Build.MANUFACTURER + "] " + Build.BRAND + " " + Build.MODEL + " (Android " + Build.VERSION.RELEASE + ")"); - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S && options.getVideoSource() == VideoSource.CAMERA) { Ln.e("Camera mirroring is not supported before Android 12"); throw new ConfigurationException("Camera mirroring is not supported"); @@ -208,6 +206,8 @@ public final class Server { Ln.initLogLevel(options.getLogLevel()); + Ln.i("Device: [" + Build.MANUFACTURER + "] " + Build.BRAND + " " + Build.MODEL + " (Android " + Build.VERSION.RELEASE + ")"); + if (options.getList()) { if (options.getCleanup()) { CleanUp.unlinkSelf();