Skip to content

Commit

Permalink
Always print device model and version
Browse files Browse the repository at this point in the history
Print the log before checking for --list-* options so that it is
printed in all cases.
  • Loading branch information
rom1v committed Oct 31, 2023
1 parent 9bfc749 commit 5580803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/main/java/com/genymobile/scrcpy/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ private static void initAndCleanUp(Options options) {
}

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");
Expand Down Expand Up @@ -208,6 +206,8 @@ private static void internalMain(String... args) throws Exception {

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();
Expand Down

0 comments on commit 5580803

Please sign in to comment.