Android 如何dump PhoneWindowManager类里面的信息?

adb shell dumpsys window policy

 

新增加入dump log:

adb shell dumpsys window -dd

    public void dump(String prefix, PrintWriter pw, String[] args) {
        pw.print(prefix); pw.print("mSafeMode="); pw.print(mSafeMode);
                pw.print(" mSystemReady="); pw.print(mSystemReady);
                pw.print(" mSystemBooted="); pw.println(mSystemBooted);

....
        // ++ zzzzz
        if (args != null) {
            int opti = 0;
            while (opti < args.length) {
                String opt = args[opti];
                if (opt == null || opt.length() <= 0 || opt.charAt(0)!= ‘-‘) {
                    break;
                }
                opti++;
                if ("-dd".equals(opt)) {
                    Slog.d("KKKKKKKK " + TAG, " dumpaddPreferredActivity");
                    addPreferredActivity();
                }
            }
        }
        // ---zzzz

....
}

 

Android 如何dump PhoneWindowManager类里面的信息?

上一篇:uniapp 类似钉钉的消息时间段显示


下一篇:安卓 TextToSpeech: speak failed: not bound to TTS engine