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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user