Skip to content

Commit

Permalink
Mirrored unmodified files are no longer available
Browse files Browse the repository at this point in the history
However, we may need to fully uninstall the previous version
before update, since we can no longer get an unpatched fonts.xml
file.
  • Loading branch information
JingMatrix committed Aug 27, 2024
1 parent 783c8b1 commit 6ab6ecb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ fi

ui_print "Pull original fonts.xml"
mkdir -p $MODPATH/system/etc
head -n -1 $(magisk --path)/.magisk/mirror/system/etc/fonts.xml >$MODPATH/system/etc/fonts.xml
sed '/^<!-- <\/familyset> -->/q' /system/etc/fonts.xml >$MODPATH/system/etc/fonts.xml
sed -i '$ d' $MODPATH/system/etc/fonts.xml
echo '<!-- </familyset> -->' >>$MODPATH/system/etc/fonts.xml

set_perm_recursive $MODPATH/tool root root 700 700

Expand Down
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=custom_fonts
name=Custom Fonts
version=1.0
versionCode=1
version=1.1
versionCode=2
author=Jing Matrix
description=Add custom fonts for system-wise usage

0 comments on commit 6ab6ecb

Please sign in to comment.