Fix duplicate package name output.

Previously, when issuing `adb shell cmd transparency get module_info`,
package name may be printed twice when corresponding PackageInfos
could not be found. This change fixes this issue.

Bug: 216647433
Test: Issuing the following shell commands output the correct printout:
`adb shell cmd transparency get module_info`
`adb shell cmd transparency get module_info -v`

Change-Id: I13cf04aa7b2542ee11f6d36ed791839e0b396156
This commit is contained in:
Billy Lau
2022-02-10 12:24:09 -08:00
parent 059d94de87
commit b5fcb5a11c

View File

@@ -261,7 +261,6 @@ public class BinaryTransparencyService extends SystemService {
pw.println("");
}
} catch (PackageManager.NameNotFoundException e) {
pw.println(packageName);
pw.println(packageName
+ ";ERROR:Unable to find PackageInfo for this module.");
if (verbose) {