Skip to content

Commit

Permalink
JoyPixels® 6.1
Browse files Browse the repository at this point in the history
First Release
  • Loading branch information
Shivang P Swain committed Dec 22, 2020
0 parents commit 4fa54d5
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 0 deletions.
33 changes: 33 additions & 0 deletions META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/sbin/sh

#################
# Initialization
#################

umask 022

# echo before loading util_functions
ui_print() { echo "$1"; }

require_new_magisk() {
ui_print "*******************************"
ui_print " Please install Magisk v20.4+! "
ui_print "*******************************"
exit 1
}

#########################
# Load util_functions.sh
#########################

OUTFD=$2
ZIPFILE=$3

mount /data 2>/dev/null

[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk
. /data/adb/magisk/util_functions.sh
[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk

install_module
exit 0
1 change: 1 addition & 0 deletions META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#MAGISK
10 changes: 10 additions & 0 deletions customize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
unzip -o "$ZIPFILE" 'system/fonts/JoyPixels.ttf' -d $MODPATH >&2
ui_print "- Searching in fonts.xml"
[[ -d /sbin/.core/mirror ]] && MIRRORPATH=/sbin/.core/mirror || unset MIRRORPATH
FILE=/system/etc/fonts.xml
FILENAME=$(sed -ne '/<family lang="und-Zsye".*>/,/<\/family>/ {s/.*<font weight="400" style="normal">\(.*\)<\/font>.*/\1/p;}' $MIRRORPATH$FILE)
for i in $FILENAME
do
ui_print "- Copying font files to $i"
cp -f $MODPATH/system/fonts/JoyPixels.ttf $MODPATH/system/fonts/$i
done
6 changes: 6 additions & 0 deletions module.prop
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
id=emoji-joypixels
name=JoyPixels®
version=v6.1
versionCode=2
author=shivangswain
description=Systemlessly replaces emoji font with JoyPixels 6.1.
Binary file added system/fonts/JoyPixels.ttf
Binary file not shown.

0 comments on commit 4fa54d5

Please sign in to comment.