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类里面的信息?
原文:https://www.cnblogs.com/onelikeone/p/14689344.html