From 5af3f917a796a5db19dcd28e5c9caabf733b2802 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Tue, 11 Feb 2020 15:40:25 -0800 Subject: [PATCH] Handle prefix when dumping ApplicationInfo#crossProfile This is a follow up CL to a CL [1] that added one more state dump from ApplicationInfo but forgot to take care of prefix handling. [1]: I11b5d9919e4463cdaf89826360bc12ae68dbd0af f9b99f5fa1f2642fee061f76a02be7e93c083144 Bug: 142538125 Bug: 142537267 Test: Ran the following command to see "crossProfile" is aligned with other outputs from ApplicationInfo. adb shell dumpsys input_method Change-Id: I629d4653b0d9109615feb02718d1228cf4f850d7 --- core/java/android/content/pm/ApplicationInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/content/pm/ApplicationInfo.java b/core/java/android/content/pm/ApplicationInfo.java index b998539dee9c9..d251ba9519dbf 100644 --- a/core/java/android/content/pm/ApplicationInfo.java +++ b/core/java/android/content/pm/ApplicationInfo.java @@ -1389,7 +1389,7 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable { pw.println(prefix + "fullBackupContent=" + (fullBackupContent < 0 ? "false" : "true")); } - pw.println("crossProfile=" + (crossProfile ? "true" : "false")); + pw.println(prefix + "crossProfile=" + (crossProfile ? "true" : "false")); if (networkSecurityConfigRes != 0) { pw.println(prefix + "networkSecurityConfigRes=0x" + Integer.toHexString(networkSecurityConfigRes));