Merge "dump factory reset protection policy" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b2eae22673
@@ -25,6 +25,7 @@ import android.annotation.Nullable;
|
||||
import android.content.ComponentName;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.util.IndentingPrintWriter;
|
||||
import android.util.Log;
|
||||
import android.util.TypedXmlPullParser;
|
||||
import android.util.TypedXmlSerializer;
|
||||
@@ -254,4 +255,18 @@ public final class FactoryResetProtectionPolicy implements Parcelable {
|
||||
return !mFactoryResetProtectionAccounts.isEmpty() && mFactoryResetProtectionEnabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public void dump(IndentingPrintWriter pw) {
|
||||
pw.print("factoryResetProtectionEnabled=");
|
||||
pw.println(mFactoryResetProtectionEnabled);
|
||||
|
||||
pw.print("factoryResetProtectionAccounts=");
|
||||
pw.increaseIndent();
|
||||
for (int i = 0; i < mFactoryResetProtectionAccounts.size(); i++) {
|
||||
pw.println(mFactoryResetProtectionAccounts.get(i));
|
||||
}
|
||||
pw.decreaseIndent();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1227,5 +1227,12 @@ class ActiveAdmin {
|
||||
|
||||
pw.print("mSsidDenylist=");
|
||||
pw.println(mSsidDenylist);
|
||||
|
||||
if (mFactoryResetProtectionPolicy != null) {
|
||||
pw.println("mFactoryResetProtectionPolicy:");
|
||||
pw.increaseIndent();
|
||||
mFactoryResetProtectionPolicy.dump(pw);
|
||||
pw.decreaseIndent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user