Add delegation info to dumpsys device_policy
Show delegation package to delegation scopes map when running "adb shell dumpsys device_policy" to aid with debugging. Bug: 196340658 Test: manual - ran "adb shell dumpsys device_policy" Change-Id: I4c86971404fe80d1a9452cfb829e2adb80c88955
This commit is contained in:
@@ -671,6 +671,21 @@ class DevicePolicyData {
|
||||
if (mFactoryResetReason != null) {
|
||||
pw.print("mFactoryResetReason="); pw.println(mFactoryResetReason);
|
||||
}
|
||||
if (mDelegationMap.size() != 0) {
|
||||
pw.println("mDelegationMap=");
|
||||
pw.increaseIndent();
|
||||
for (int i = 0; i < mDelegationMap.size(); i++) {
|
||||
List<String> delegationScopes = mDelegationMap.valueAt(i);
|
||||
pw.println(mDelegationMap.keyAt(i) + "[size=" + delegationScopes.size()
|
||||
+ "]");
|
||||
pw.increaseIndent();
|
||||
for (int j = 0; j < delegationScopes.size(); j++) {
|
||||
pw.println(j + ": " + delegationScopes.get(j));
|
||||
}
|
||||
pw.decreaseIndent();
|
||||
}
|
||||
pw.decreaseIndent();
|
||||
}
|
||||
pw.decreaseIndent();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user