bug fix for apks not named "base.apk"

This commit is contained in:
Chris 2019-08-11 10:08:59 -04:00
parent e13a9f11bd
commit 2405f895e2
1 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,6 @@ import java.security.cert.X509Certificate;
public class SignApk {
private static final String TAG = "SignApk";
private static final String APK_LOCATION = Environment.getExternalStorageDirectory() + "/SMAPI Installer/base.apk_patched.apk";
private static final String KEYSTORE_LOCATION = Environment.getExternalStorageDirectory() + "/SMAPI Installer/ApkFiles/debug.keystore";
private static final String KEYSTORE_PASSWORD = "android";
@ -28,7 +27,7 @@ public class SignApk {
public void commitSignApk()
{
try {
String inputFile = APK_LOCATION;
String inputFile = Environment.getExternalStorageDirectory() + "/SMAPI Installer/" + ApkExtractor.sourceApkFilename + "_patched.apk";
String outputFile = Environment.getExternalStorageDirectory() + "/SMAPI Installer/base_signed.apk";
KeyStore keyStore = KeyStoreFileManager.loadKeyStore(KEYSTORE_LOCATION,KEYSTORE_PASSWORD.toCharArray());