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

....
}

 

相关文章:

  • 2022-01-08
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-10-12
  • 2021-08-10
  • 2021-11-30
  • 2021-06-12
猜你喜欢
  • 2021-04-05
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案