diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index e2a8e13..b84c23e 100644 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -135,6 +135,9 @@ $POSTFSDATA && cp -af $INSTALLER/common/post-fs-data.sh $MODPATH/post-fs-data.sh # service mode scripts $LATESTARTSERVICE && cp -af $INSTALLER/common/service.sh $MODPATH/service.sh +#ui file download and install +ui_select + ui_print "- Setting permissions" set_permissions diff --git a/README.md b/README.md index 96423ca..67f4672 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Cover](https://ador.chorompotro.com/energized_magisk_cover.svg) +![Cover](https://nayemador.com/assets/covers/energized_magisk_cover.svg)

Energized - Magisk ⚡

diff --git a/config.sh b/config.sh index 0cb2fb8..2c738ef 100644 --- a/config.sh +++ b/config.sh @@ -103,3 +103,20 @@ set_permissions() { # set_perm $MODPATH/system/lib/libart.so 0 0 0644 set_perm $MODPATH/system/bin/energized 0 0 0777 } + +ui_select() { +UI_local=`getprop persist.sys.locale` +UI_url=https://raw.githubusercontent.com/xerta555/Energized_languages/ +energized_dir=$MODPATH/system/bin + + +case $UI_local in + fr-FR) wget --no-check-certificate -O $energized_dir/FR__energized $UI_url/fr_FR_energized + rm -f "$energized_dir/energized" + mv "$energized_dir/fr_FR_energized" "$energized_dir/energized" + chmod 0777 "$energized_dir/en_EN_energized" +;; + *) echo "Your language has not yet been translated, English language is apply." +esac +echo "Translation task done" +}