diff --git a/README.md b/README.md index 60096c8..f6ceefe 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,20 @@ # Modded MIUI Launcher -![Picsart_22-12-14_07-47-34-971](https://telegra.ph/file/72c57aba7fc39d95a1e27.png) +![Picsart_22-12-14_07-47-34-971](https://telegra.ph/file/479d8c1d24c2b5f2c7168.png) MIUI Launcher App modified by [Kashi](https://t.me/kakashi1v1) with many features added and ui changes. ### Prerequisites - Device rooted by [Magisk latest stable](https://github.com/topjohnwu/Magisk/releases/latest). -- MIUI 12-13 based ROMs with Android 10 or higher +- MIUI 13-14 based ROMs with Android 12 or higher ### Changelog -- New user interface -- Changes in user interface -- Implemented more functions -- Can choose between iOS and Default for recent tasks -- Folder size unlocked for versions lower than MIUI 14 -- Monet enabled -- Fixed loading screen for lots of users -- Blur folder bug fix and rounded folder for roms below than A12 -- More ........... +β€’ New ui interface +β€’ Added several new mods +β€’ Fixed all bugs noticed in previous update +β€’ If you use in your rom, please don't forget to put a credit for our work + +### Not for Paid Rom Shit ### Notes - Tested on Global/Cn/Eu ROMs based on MIUI 13 - Android 12 @@ -86,12 +83,12 @@ git pull ``` ### Screenshots ### -![photo_2022-12-16_21-10-41](https://telegra.ph/file/171a778ecc6d9ecb0d92a.png) -![photo_2022-12-16_21-10-37](https://telegra.ph/file/83ab4240b157089f7ac9c.png) -![photo_2022-12-16_21-10-31](https://telegra.ph/file/a7eeca73de1fc547fd5b5.png) -![photo_2022-12-16_21-10-53](https://telegra.ph/file/4747a85c7f22a5c0f76dd.png) -![photo_2022-12-16_21-10-49](https://telegra.ph/file/ae49add564eba33723a62.png) -![photo_2022-12-16_21-10-45](https://telegra.ph/file/a151a94a9b55e23725a20.png) +![photo_2022-12-16_21-10-41](https://telegra.ph/file/f3785e7c0a9635e1cdfd7.png) +![photo_2022-12-16_21-10-37](https://telegra.ph/file/a1aad969d4acfc91b349f.png) +![photo_2022-12-16_21-10-31](https://telegra.ph/file/3437550f579f607362b24.png) +![photo_2022-12-16_21-10-53](https://telegra.ph/file/c94b2230c329bc8ed9ccc.png) +![photo_2022-12-16_21-10-49](https://telegra.ph/file/49c03d4f92af0e105022e.png) +![photo_2022-12-16_21-10-45](https://telegra.ph/file/e4a55ea339eb6249efbb7.png) | Download Mods | Total | | --- | --- | diff --git a/customize.sh b/customize.sh index 2b7280c..45168dc 100644 --- a/customize.sh +++ b/customize.sh @@ -13,78 +13,112 @@ REPLACE=" /system/product/priv-app/MiLauncherGlobal /system/product/priv-app/MiuiHome /system/product/priv-app/MIUIHome +/system/product/priv-app/MiuiHomeT +/system/product/priv-app/MIUIHomeT /system/product/priv-app/MiuiLauncherGlobal /system/product/priv-app/MIUILauncherGlobal " -SKIPUNZIP=1 -SKIPMOUNT=false - install_files() { - . $MODPATH/addon/install.sh - -ui_print " " -ui_print " Warning: Miui 14 CN is not supported, read module post to know about installation." -ui_print " " -ui_print " " -ui_print "Let's start" -ui_print "Choose your Miui Version:" -ui_print " Vol+ = Miui 13 or lower" -ui_print " Vol- = Miui 14 Android 13 Xiaomi.eu based" +ui_print " READ!!! " +ui_print " Signature verification must be disabled" +ui_print " mandatory for MIUI 14 users based on" +ui_print " Android 13; otherwise, the module will" +ui_print " not work. " ui_print " " -if chooseport; then - ui_print "- Miui 13 or lower selected" +Android=`getprop ro.build.version.release` + +if [ $Android = 11 ]; then + ui_print " " + ui_print " Android 11 detected" + ui_print " " cp -rf $MODPATH/files/launcher/MiuiHome.apk $MODPATH/system/priv-app/aMiuiHome -else -{ - ui_print "- Miui 14 Eu selected" +elif [ $Android = 12 ]; then + ui_print " " + ui_print " Android 12 detected" + ui_print " " + cp -rf $MODPATH/files/launcher/MiuiHome.apk $MODPATH/system/priv-app/aMiuiHome + set_monet +elif [ $Android = 13 ]; then + ui_print " " + ui_print " Android 13 detected" + ui_print " " cp -rf $MODPATH/files/launcher/MiuiHome.apk $MODPATH/system/product/priv-app/aMiuiHome -} - + set_monet +else + ui_print " Version not supported" + ui_print " Exiting..." + exit fi + +ui_print "- Launcher updates will be uninstalled..." + pm uninstall-system-updates com.miui.home + +TMPAPKDIR=/data/local/tmp +cp -rf $MODPATH/files/launcher/MiuiHome.apk $TMPAPKDIR +result=$(pm install ${TMPAPKDIR}/MiuiHome.apk 2>&1) + +if [ $result = Success ]; then ui_print " " - ui_print " Is your device POCO?" - ui_print " Vol+ = Yes" - ui_print " Vol- = No" + ui_print " Signature verification disablement detected" + ui_print " proceeding to install as an update." + ui_print " Installed successfully." ui_print " " - -if chooseport; then - ui_print "- Deleting POCO Launcher and adding MiuiHome support." - cp -rf $MODPATH/files/poco/Framework_resoverlay.apk $MODPATH/system/product/overlay else -{ - ui_print "- Skipping..." + ui_print " " + ui_print " Signature verification disablement not detected" + ui_print " proceeding with normal installation." + ui_print " Reboot is needed." + ui_print " " +fi + } +set_monet() { + . $MODPATH/addon/install.sh +ui_print " Do you want Monet colors?" +ui_print " " +ui_print " Vol+ = Yes" +ui_print " Vol- = No" +ui_print " " +if chooseport; then + ui_print "- Monet added" + ui_print " " + cp -rf $MODPATH/files/MonetMiuiHome.apk $MODPATH/system/product/overlay +else + ui_print "- Skipping" + ui_print " " fi +} +set_permissions() { + su -c pm grant com.miui.home android.permission.READ_MEDIA_IMAGES + set_perm_recursive $MODPATH 0 0 0755 0644 } cleanup() { rm -rf $MODPATH/addon 2>/dev/null rm -rf $MODPATH/files 2>/dev/null rm -f $MODPATH/install.sh 2>/dev/null - ui_print "- Deleting package cache files" + ui_print " - Deleting package cache files" rm -rf /data/resource-cache/* rm -rf /data/system/package_cache/* rm -rf /cache/* rm -rf /data/dalvik-cache/* - ui_print "- Launcher updates will be uninstalled..." - pm uninstall-system-updates com.miui.home - ui_print "- Deleting old module (if it is installed)" + ui_print " - Deleting old module (if it is installed)" touch /data/adb/modules/miui_launcher_mod/remove } run_install() { - ui_print " " unzip -o "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2 ui_print " " - ui_print "- Installing files" + ui_print " Installing files" install_files + set_permissions sleep 1 ui_print " " - ui_print "- Cleaning up" + ui_print " Cleaning up" ui_print " " cleanup sleep 1 diff --git a/files/MonetMiuiHome.apk b/files/MonetMiuiHome.apk new file mode 100644 index 0000000..9e20fa7 Binary files /dev/null and b/files/MonetMiuiHome.apk differ diff --git a/files/launcher/MiuiHome.apk b/files/launcher/MiuiHome.apk index a98945a..202d501 100644 Binary files a/files/launcher/MiuiHome.apk and b/files/launcher/MiuiHome.apk differ diff --git a/module.prop b/module.prop index 281ff92..e9aac96 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ id=miui_launcher_mod -name=MIUI14 Launcher Mod by Mods Center -version=V2 Final +name=MIUI14 Launcher Mod V3 by Mods Center +version=V3 Final versionCode=39 author=πŸ…ΊπŸ…°πŸ†‚πŸ…·πŸ…Έ -description=Thanks to Kevin Miranda for helping and Xposeded for iOS recent. \ No newline at end of file +description=Join channel @kashis_cringey_stuffs for more mods \ No newline at end of file diff --git a/system/etc/permissions/privapp_whitelist_com.miui.home.xml b/system/etc/permissions/privapp_whitelist_com.miui.home.xml index 63da4ad..659ffb2 100644 --- a/system/etc/permissions/privapp_whitelist_com.miui.home.xml +++ b/system/etc/permissions/privapp_whitelist_com.miui.home.xml @@ -28,5 +28,6 @@ + diff --git a/system/product/overlay/Framework_MiuiHome.apk b/system/product/overlay/Framework_MiuiHome.apk new file mode 100644 index 0000000..947aaad Binary files /dev/null and b/system/product/overlay/Framework_MiuiHome.apk differ diff --git a/uninstall.sh b/uninstall.sh index 3812e30..921a915 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,5 +1,6 @@ #!/system/bin/sh - rm -rf /data/resource-cache/* - rm -rf /data/system/package_cache/* - rm -rf /cache/* - rm -rf /data/dalvik-cache/* \ No newline at end of file +rm -rf /data/resource-cache/* +rm -rf /data/system/package_cache/* +rm -rf /cache/* +rm -rf /data/dalvik-cache/* +pm uninstall-system-updates com.miui.home \ No newline at end of file