index.xml must use "sha256" as hash type, not "SHA-256"

Otherwise the string matching in RepoXMLHandler.endElement() fails, and the
swap repo's index.xml will use "SHA-256" instead of the correct "sha256".
This commit is contained in:
Hans-Christoph Steiner 2018-08-06 23:20:32 +02:00
parent f56fbf4dcb
commit ddb85befa6

View File

@ -382,7 +382,7 @@ public class App extends ValueObject implements Comparable<App>, Parcelable {
SanitizedFile apkFile = SanitizedFile.knownSanitized(packageInfo.applicationInfo.publicSourceDir);
app.installedApk = new Apk();
if (apkFile.canRead()) {
String hashType = "SHA-256";
String hashType = "sha256";
String hash = Utils.getBinaryHash(apkFile, hashType);
if (TextUtils.isEmpty(hash)) {
return null;