Skip to content

Commit

Permalink
launcher: Launcher V3 Update
Browse files Browse the repository at this point in the history
### Changelog
• 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
  • Loading branch information
anant-goel committed Jul 6, 2023
1 parent 59cd33e commit 6f635a7
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 60 deletions.
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 |
| --- | --- |
Expand Down
106 changes: 70 additions & 36 deletions customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added files/MonetMiuiHome.apk
Binary file not shown.
Binary file modified files/launcher/MiuiHome.apk
Binary file not shown.
6 changes: 3 additions & 3 deletions module.prop
Original file line number Diff line number Diff line change
@@ -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.
description=Join channel @kashis_cringey_stuffs for more mods
1 change: 1 addition & 0 deletions system/etc/permissions/privapp_whitelist_com.miui.home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
<permission name="android.permission.ACCESS_THEME"/>
<permission name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS"/>
<permission name="android.permission.READ_MEDIA_IMAGES"/>
</privapp-permissions>
</permissions>
Binary file added system/product/overlay/Framework_MiuiHome.apk
Binary file not shown.
9 changes: 5 additions & 4 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -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/*
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

0 comments on commit 6f635a7

Please sign in to comment.