Fix the bug where the added field into the toString implementation does
not have a corresponding %s formatting. Bug: 239134974 Test: atest frameworks/base/core/tests/coretests/src/android/content/integrity Test: atest services/tests/servicestests/src/com/android/server/integrity Change-Id: Ib9c3ecadfc5a823cd4fcd44237b25900f86b4e5c Merged-In: Ib9c3ecadfc5a823cd4fcd44237b25900f86b4e5c
This commit is contained in:
@@ -129,9 +129,18 @@ public final class AppInstallMetadata {
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format(
|
||||
"AppInstallMetadata { PackageName = %s, AppCerts = %s, InstallerName = %s,"
|
||||
+ " InstallerCerts = %s, VersionCode = %d, PreInstalled = %b, StampPresent ="
|
||||
+ " %b, StampVerified = %b, StampTrusted = %b, StampCert = %s }",
|
||||
"AppInstallMetadata {"
|
||||
+ " PackageName = %s,"
|
||||
+ " AppCerts = %s,"
|
||||
+ " AppCertsLineage = %s,"
|
||||
+ " InstallerName = %s,"
|
||||
+ " InstallerCerts = %s,"
|
||||
+ " VersionCode = %d,"
|
||||
+ " PreInstalled = %b,"
|
||||
+ " StampPresent = %b,"
|
||||
+ " StampVerified = %b,"
|
||||
+ " StampTrusted = %b,"
|
||||
+ " StampCert = %s }",
|
||||
mPackageName,
|
||||
mAppCertificates,
|
||||
mAppCertificateLineage,
|
||||
|
||||
Reference in New Issue
Block a user