如何使用 android DisplayManager 服务的显示管理器命令通过 adb 命令 我想知道如何使用以下命令来调试安卓服务
60 public void onHelp() {
61 final PrintWriter pw = getOutPrintWriter();
62 pw.println("Display manager commands:");
63 pw.println(" help");
64 pw.println(" Print this help text.");
65 pw.println();
66 pw.println(" set-brightness BRIGHTNESS");
67 pw.println(" Sets the current brightness to BRIGHTNESS (a number between 0 and 1).");
68 pw.println(" reset-brightness-configuration");
69 pw.println(" Reset the brightness to its default configuration.");
70 pw.println(" ab-logging-enable");
71 pw.println(" Enable auto-brightness logging.");
72 pw.println(" ab-logging-disable");
73 pw.println(" Disable auto-brightness logging.");
74 pw.println(" dwb-logging-enable");
75 pw.println(" Enable display white-balance logging.");
76 pw.println(" dwb-logging-disable");
77 pw.println(" Disable display white-balance logging.");
78 pw.println(" dwb-set-cct CCT");
79 pw.println(" Sets the ambient color temperature override to CCT (use -1 to disable).");
80 pw.println();
81 Intent.printIntentArgsHelp(pw , "");
82 }
您可以使用:
adb shell cmd display
获取帮助消息