Merge "Amend typo and code clean up for V2 signature and PackageManagerShellCommand" am: 72b0ad5427 am: 1454bed017
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2280796 Change-Id: Ib1b883b6d28d3a68f3db66a7f91fe14b2b1d914f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -93,8 +93,9 @@ public class ApkSignatureSchemeV2Verifier {
|
|||||||
* associated with each signer.
|
* associated with each signer.
|
||||||
*
|
*
|
||||||
* @throws SignatureNotFoundException if the APK is not signed using APK Signature Scheme v2.
|
* @throws SignatureNotFoundException if the APK is not signed using APK Signature Scheme v2.
|
||||||
* @throws SecurityException if a APK Signature Scheme v2 signature of this APK does not verify.
|
* @throws SecurityException if an APK Signature Scheme v2 signature of this APK does
|
||||||
* @throws IOException if an I/O error occurs while reading the APK file.
|
* not verify.
|
||||||
|
* @throws IOException if an I/O error occurs while reading the APK file.
|
||||||
*/
|
*/
|
||||||
public static X509Certificate[][] verify(String apkFile)
|
public static X509Certificate[][] verify(String apkFile)
|
||||||
throws SignatureNotFoundException, SecurityException, IOException {
|
throws SignatureNotFoundException, SecurityException, IOException {
|
||||||
@@ -386,7 +387,6 @@ public class ApkSignatureSchemeV2Verifier {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static byte[] getVerityRootHash(String apkPath)
|
static byte[] getVerityRootHash(String apkPath)
|
||||||
|
|||||||
@@ -3630,7 +3630,7 @@ class PackageManagerShellCommand extends ShellCommand {
|
|||||||
fd = ParcelFileDescriptor.dup(getInFileDescriptor());
|
fd = ParcelFileDescriptor.dup(getInFileDescriptor());
|
||||||
}
|
}
|
||||||
if (sizeBytes <= 0) {
|
if (sizeBytes <= 0) {
|
||||||
getErrPrintWriter().println("Error: must specify a APK size");
|
getErrPrintWriter().println("Error: must specify an APK size");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user