Skip to content

Commit

Permalink
Support 3rd party Magisk versions with magiskhide
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsmh committed Jan 19, 2024
1 parent 59525bc commit dd19583
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
14 changes: 7 additions & 7 deletions customize.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
if [ "$MAGISK_VER_CODE" -lt 24000 ]; then
ui_print "*********************************************************"
ui_print "! Please install Magisk v24+"
abort "*********************************************************"
fi
if [ "$API" -lt 26 ]; then
ui_print "*********************************************************"
ui_print "! Please upgrade your system to Android 8+"
abort "*********************************************************"
fi

[ -x "$(which magisk)" ] && CMDPREFIX="magisk --denylist exec" || unset CMDPREFIX
[ -x `which magisk` ] && {
if magisk --denylist ls &>/dev/null; then
CMDPREFIX="magisk --denylist exec"
elif magisk magiskhide ls &>/dev/null; then
CMDPREFIX="magisk magiskhide exec"
fi
} || unset CMDPREFIX
FILES="fonts.xml fonts_base.xml"
FILECUSTOM=fonts_customization.xml
FILEPATHS="/system/etc/ /system_ext/etc/"
Expand Down
4 changes: 4 additions & 0 deletions extra/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Changelog v25

- Support 3rd party Magisk versions with magiskhide.

# Changelog v24

- Fixes for Magisk Canary(26404) support. Dropping copies of fonts from internal mirror mount point. [#48](https://github.com/simonsmh/notocjk/issues/48)
Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=notocjk
name=NotoCJK
version=24 (Sans-2.004-VF/Serif-2.002-VF)
versionCode=24
version=25 (Sans-2.004-VF/Serif-2.002-VF)
versionCode=25
author=simonsmh
description=NotoCJK (NotoSansCJK & NotoSerifCJK) full weight fonts patch for every Android devices.
updateJson=https://cdn.jsdelivr.net/gh/simonsmh/notocjk/version.json
6 changes: 3 additions & 3 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "24 (Sans-2.004-VF/Serif-2.002-VF)",
"versionCode": 24,
"zipUrl": "https://github.com/simonsmh/notocjk/releases/download/24/notocjk.zip",
"version": "25 (Sans-2.004-VF/Serif-2.002-VF)",
"versionCode": 25,
"zipUrl": "https://github.com/simonsmh/notocjk/releases/download/25/notocjk.zip",
"changelog": "https://cdn.jsdelivr.net/gh/simonsmh/notocjk/extra/changelog.md"
}

0 comments on commit dd19583

Please sign in to comment.