Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac9407b0 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by Gerrit Code Review
Browse files

Merge "Fix the argument processing when dumping Bluetooth state"

parents 2871b49c b050c497
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2098,7 +2098,7 @@ public class AdapterService extends Service {
        enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG);

        if (args.length > 0) {
            debugLog("dumpsys arguments, skipping normal dumpsys: " +
            debugLog("dumpsys arguments, check for protobuf output: " +
                    TextUtils.join(" ", args));
            if (args[0].startsWith("--proto")) {
                if (args[0].equals("--proto-java-bin")) {
@@ -2106,9 +2106,9 @@ public class AdapterService extends Service {
                } else {
                    dumpNative(fd, args);
                }
            }
                return;
            }
        }

        writer.println("Bluetooth Status");
        writer.println("  enabled: " + isEnabled());