Remove zip signing code

gf-arm64
FriendlyNeighborhoodShane 3 years ago
parent 58e96f329f
commit 6882152543

@ -112,8 +112,6 @@ If you have the Java SDK and `openssl` installed, the update script will dump th
If you have `aapt` installed, the update script will download the permission docs from the Android website, check the priv-apps for any new privileged permissions and tell you to add them to the whitelist in res/system/etc/permissions/[package].xml files.
If you have `java` installed, you can automatically get the build script to sign all zips with testkeys. You will need to compile a zipsigner.jar (topjohnwu's rewrite of the AOSP version) and put it into into resdl/util. The source can be found in the Magisk repo, and a prebuilt binary [here](https://github.com/FriendlyNeighborhoodShane/MinMicroG_releases/releases/download/init/zipsigner.jar)
To build your own custom pack, refer to custom-pack.md in the conf directory.
Any changes made to the code should ideally be tested with `test.sh`, which runs the shellcheck linter program on every script.

@ -154,7 +154,6 @@ pre_build_actions() {
post_build_actions() {
sign_zip;
return 0;
}
@ -194,17 +193,3 @@ post_uninstall_actions() {
mark_file="/system/etc/.mmg";
addond_file="/system/addon.d/10-$modname.sh";
init_file="/system/etc/init.d/10-$modname";
sign_zip() {
zipsigner="$resdldir/util/zipsigner.jar";
[ "$(which java)" ] && [ -f "$zipsigner" ] || return 0;
echo " ";
echo " - Signing zip...";
java -jar "$zipsigner" "$tmpdir/release.zip" "$tmpdir/release-signed.zip" || { echo " " >&2; echo "ERROR: Zipsigner failed" >&2; return 1; }
mv -f "$tmpdir/release-signed.zip" "$tmpdir/release.zip";
}

@ -154,7 +154,6 @@ pre_build_actions() {
post_build_actions() {
sign_zip;
return 0;
}
@ -194,17 +193,3 @@ post_uninstall_actions() {
mark_file="/system/etc/.mmg";
addond_file="/system/addon.d/10-$modname.sh";
init_file="/system/etc/init.d/10-$modname";
sign_zip() {
zipsigner="$resdldir/util/zipsigner.jar";
[ "$(which java)" ] && [ -f "$zipsigner" ] || return 0;
echo " ";
echo " - Signing zip...";
java -jar "$zipsigner" "$tmpdir/release.zip" "$tmpdir/release-signed.zip" || { echo " " >&2; echo "ERROR: Zipsigner failed" >&2; return 1; }
mv -f "$tmpdir/release-signed.zip" "$tmpdir/release.zip";
}

@ -163,7 +163,6 @@ pre_build_actions() {
post_build_actions() {
sign_zip;
return 0;
}
@ -203,17 +202,3 @@ post_uninstall_actions() {
mark_file="/system/etc/.mmg";
addond_file="/system/addon.d/10-$modname.sh";
init_file="/system/etc/init.d/10-$modname";
sign_zip() {
zipsigner="$resdldir/util/zipsigner.jar";
[ "$(which java)" ] && [ -f "$zipsigner" ] || return 0;
echo " ";
echo " - Signing zip...";
java -jar "$zipsigner" "$tmpdir/release.zip" "$tmpdir/release-signed.zip" || { echo " " >&2; echo "ERROR: Zipsigner failed" >&2; return 1; }
mv -f "$tmpdir/release-signed.zip" "$tmpdir/release.zip";
}

@ -169,7 +169,6 @@ pre_build_actions() {
post_build_actions() {
sign_zip;
return 0;
}
@ -209,17 +208,3 @@ post_uninstall_actions() {
mark_file="/system/etc/.mmg";
addond_file="/system/addon.d/10-$modname.sh";
init_file="/system/etc/init.d/10-$modname";
sign_zip() {
zipsigner="$resdldir/util/zipsigner.jar";
[ "$(which java)" ] && [ -f "$zipsigner" ] || return 0;
echo " ";
echo " - Signing zip...";
java -jar "$zipsigner" "$tmpdir/release.zip" "$tmpdir/release-signed.zip" || { echo " " >&2; echo "ERROR: Zipsigner failed" >&2; return 1; }
mv -f "$tmpdir/release-signed.zip" "$tmpdir/release.zip";
}

@ -137,7 +137,6 @@ pre_build_actions() {
post_build_actions() {
sign_zip;
return 0;
}
@ -177,17 +176,3 @@ post_uninstall_actions() {
mark_file="/system/etc/.mmg";
addond_file="/system/addon.d/10-$modname.sh";
init_file="/system/etc/init.d/10-$modname";
sign_zip() {
zipsigner="$resdldir/util/zipsigner.jar";
[ "$(which java)" ] && [ -f "$zipsigner" ] || return 0;
echo " ";
echo " - Signing zip...";
java -jar "$zipsigner" "$tmpdir/release.zip" "$tmpdir/release-signed.zip" || { echo " " >&2; echo "ERROR: Zipsigner failed" >&2; return 1; }
mv -f "$tmpdir/release-signed.zip" "$tmpdir/release.zip";
}

Loading…
Cancel
Save