Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 5cff1e0

Browse files
committed
Fix AnyKernel3 typos
1 parent 791532c commit 5cff1e0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

app/src/main/assets/module_installer_anykernel3.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ AK3TMPFS=$($AK3TMPFS/busybox readlink -f $AK3TMPFS);
6565
if $AK3TMPFS/busybox grep -q AnyKernel3 $AK3TMPFS/update-binary; then
6666
# work around more restrictive upstream SELinux policies for Magisk <19306
6767
magiskpolicy --live "allow kernel app_data_file file write" || true;
68-
TMP=$AK3TMPFS/tmp;
6968
else
7069
echo "Module is not an AnyKernel3 module!"
7170
exit 1
@@ -77,6 +76,6 @@ RC=$?;
7776

7877
# Original script delete all generated files,
7978
# But we just need to unmount as we store everything inside tmpfs
80-
umount $TMP;
79+
umount $AK3TMPFS;
8180

8281
return $RC;

app/src/main/java/com/fox2code/mmm/installer/InstallerActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ protected void onCreate(Bundle savedInstanceState) {
191191
}
192192
if (!isModule && !isAnyKernel3) {
193193
this.setInstallStateFinished(false,
194-
"! File is not a valid Magisk or AnyKernel3 module", "");
194+
"! File is not a valid Magisk module or AnyKernel3 zip", "");
195195
return;
196196
}
197197
if (noPatch) {
@@ -339,7 +339,7 @@ private void doInstall(File file, boolean noExtensions, boolean rootless) {
339339
installExecutable = this.extractInstallScript("module_installer_anykernel3.sh");
340340
if (installExecutable == null) {
341341
this.setInstallStateFinished(false,
342-
"! Failed to extract AnyKernel3 module install script", null);
342+
"! Failed to extract AnyKernel3 install script", null);
343343
return;
344344
}
345345
// "unshare -m" is needed to force mount namespace isolation.
@@ -366,7 +366,7 @@ private void doInstall(File file, boolean noExtensions, boolean rootless) {
366366
" 3 1 \"" + file.getAbsolutePath() + "\"";
367367
} else {
368368
this.setInstallStateFinished(false,
369-
"! Zip file is not a valid Magisk or AnyKernel3 module!", null);
369+
"! Zip file is not a valid Magisk module or AnyKernel3 zip!", null);
370370
return;
371371
}
372372
installerMonitor = new InstallerMonitor(installExecutable);

0 commit comments

Comments
 (0)