diff --git a/app/src/main/java/com/MartyrPher/smapiandroidinstaller/SignApk.java b/app/src/main/java/com/MartyrPher/smapiandroidinstaller/SignApk.java index 753d6ce..88e9ad4 100644 --- a/app/src/main/java/com/MartyrPher/smapiandroidinstaller/SignApk.java +++ b/app/src/main/java/com/MartyrPher/smapiandroidinstaller/SignApk.java @@ -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());