Skip to content

Commit

Permalink
some minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mistu01 committed Feb 16, 2024
1 parent c5719c1 commit fca52bf
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 28 deletions.
Binary file removed Releases/Blobmoji15.1_v1.0[MFFMEmoji].zip
Binary file not shown.
Binary file removed Releases/FluentEmojiFlat_v1.0[MFFMEmoji].zip
Binary file not shown.
Binary file removed Releases/FluentUI3D_v1.0[MFFMEmoji].zip
Binary file not shown.
Binary file removed Releases/Huawei_v1.3[MFFMEmoji].zip
Binary file not shown.
Binary file removed Releases/OpenMoji15.0_v1.0[MFFMEmoji].zip
Binary file not shown.
Binary file removed Releases/SamsungOneUI6Beta7_v1.4[MFFMEmoji].zip
Binary file not shown.
Binary file removed Releases/Tossfacev1.6_v1.1[MFFMEmoji].zip
Binary file not shown.
Binary file removed Releases/Twemoji_[v15.0.3]_v1.3[MFFMEmoji].zip
Binary file not shown.
Binary file removed Releases/VSmart_v1.3[MFFMEmoji].zip
Binary file not shown.
Binary file not shown.
Binary file removed Releases/iOS17.4_v1.9[MFFMEmoji].zip
Binary file not shown.
48 changes: 24 additions & 24 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,19 @@ set -xv

# Modules paths
SYSFONT=$MODPATH/system/fonts
mkdir -p $SYSFONT

# System Emoji
DEMJ="NotoColorEmoji.ttf"
[ "$ORISYSFONT/$DEMJ" ] && cp "$MODPATH/Emoji.ttf" "$SYSFONT/$DEMJ" && echo "- Replacing NotoColorEmoji ✅" || ui_print "- Replacing NotoColorEmoji ❎"

[ "$ORISYSFONT/$DEMJ" ] && cp "$MODPATH/Emoji.ttf" "$SYSFONT/$DEMJ" && echo "- Replacing NotoColorEmoji ✅" || ui_print "- Replacing NotoColorEmoji ❎"
SEMJ="$(find $ORISYSFONT -type f ! -name 'NotoColorEmoji.ttf' -name "*Emoji*.ttf" -exec basename {} \;)"
for i in $SEMJ; do
if [ -f $SYSFONT/$DEMJ ]; then
ln -s $SYSFONT/$DEMJ $SYSFONT/$i && ui_print "- Replacing $i" || ui_print "- Replacing $i"
fi
done

F1="$(find /data/data -name *Emoji*.ttf)"
for i in $F1; do
cp $MODPATH/Emoji.ttf $i && echo "- Replacing $i" || ui_print "- Replacing $i"
set_perm_recursive $i 0 0 0755 700
done

# Android 12+ | extended checking.. [?!]
[ -d /data/fonts ] && rm -rf /data/fonts

Expand All @@ -46,24 +41,29 @@ set -xv
find /data -type d -path '*inputmethod.latin*/*cache*' \
-exec rm -rf {} + &&
am force-stop com.google.android.inputmethod.latin && echo " Done ✅"

# change possible in-app emojis on boot time
echo '#!/system/bin/sh
# EmojiPlus By MFFM
# Credit: @MrCarb0n, OMF
echo 'MODDIR=${0%/*}
until [ "$(getprop sys.boot_completed)" = 1 ]; do sleep 1; done
until [ -d /sdcard ]; do sleep 1; done
sleep 1
{
until [ "$(resetprop sys.boot_completed)" = "1" -a -d "/data" ]; do
sleep 1
done
F1="$(find /data/data -name *Emoji*.ttf)"
dataemojis() {
F1=$(find /data/data -name "*.ttf" -print | grep -E "Emoji")
for i in $F1; do
cp -f /system/fonts/NotoColorEmoji.ttf $i
set_perm_recursive $i 0 0 0755 700
cp $MODDIR/system/fonts/NotoColorEmoji.ttf $i
am force-stop com.facebook.orca
am force-stop com.facebook.katana
set_perm_recursive $i 0 0 0755 700
set_perm_recursive /data/data/com.facebook.katana/app_ras_blobs 0 0 0755 755
set_perm_recursive /data/data/com.facebook.orca/app_ras_blobs 0 0 0755 755
done
[ -d /data/fonts ] && rm -rf /data/fonts
}' > $MODPATH/service.sh
}
dataemojis
rm -rf /data/fonts
rm -rf /data/data/com.google.android.gms/files/fonts/opentype/*ttf' > $MODPATH/service.sh

rm -f $MODPATH/Emoji.ttf
set_perm_recursive $MODPATH 0 0 0755 0644
rm -f $MODPATH/Emoji.ttf
rm -f $MODPATH/LICENSE
8 changes: 4 additions & 4 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=mffmemoji
name=[Emoji]
version=v1.0
versionCode=10
name=[Emoji]
version=
versionCode=
author=MFFM
description=Systemlessly replaces your default android emoji font with .....
description=Systemlessly replaces your default android emoji font with .... Emojis.

0 comments on commit fca52bf

Please sign in to comment.