-
-
Save wulrahman/b1d0712c1695aa65385774e6254b343f to your computer and use it in GitHub Desktop.
Remove bloatware applications from MIUI ROM in Xiaomi phones
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd “adb file location” | |
./adb kill-shell; | |
./adb devices; | |
./adb shell; | |
pause | |
set -A command amazon.appmanager android.browser android.chrome android.email android.thememanager android.wallpaper.livepicker facebook.services facebook.system facebook.appmanager google.android.apps.docs google.android.apps.maps google.android.apps.photos google.android.apps.tachyon google.android.feedback google.android.gm google.android.googlequicksearchbox google.android.marvin.talkback google.android.music google.android.syncadapters.calendar google.android.syncadapters.contacts google.android.talk google.android.tts google.android.videos google.android.youtube mfashiongallery.emag mi.android.globalpersonalassistant mi.dlabs.vr mi.globalTrendNews mi.global.bbs mi.global.shop mi.webkit.core micredit.in milink.service mipay.wallet.id mipay.wallet.in miui.analytics miui.android.fashiongallery miui.bugreport miui.cloudbackup miui.cloudservice miui.cloudservice.sysbase miui.micloudsync miui.hybrid miui.hybrid.accessory miui.klo.bugreport miui.miservice miui.miwallpaper miui.msa.global miui.player miui.providers.weather miui.screenrecorder miui.translationservice miui.translation.kingsoft miui.translation.xmcloud miui.translation.youdao miui.touchassistant miui.userguide miui.videoplayer miui.virtualsim miui.weather2 miui.yellowpage netflix.partner.activation swiftkey.languageprovider swiftkey.swiftkeyconfigurator xiaomi.account xiaomi.discover xiaomi.glgm xiaomi.joyose xiaomi.location.fused xiaomi.micloud.sdk xiaomi.midrop xiaomi.mipicks xiaomi.miplay_client xiaomi.mirecycl xiaomi.oversea.ecom xiaomi.payment xiaomi.providers.appindex xiaomi.xmsf | |
pause | |
for i in ${command[*]} | |
do | |
pm uninstall com.$i | |
pm uninstall --user 0 com.$i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All the resources I used to program this piece of code,
https://stackoverflow.com/questions/7165774/terminal-commands-for-loop-with-echo
https://www.thegeekstuff.com/2010/06/bash-array-tutorial/
https://www.shellscript.sh/loops.html
https://opensource.com/article/18/5/you-dont-know-bash-intro-bash-arrays
https://www.tutorialspoint.com/unix/unix-using-arrays.htm#:~:text=Shell%20supports%20a%20different%20type,stores%20all%20the%20other%20variables.
https://www.dummies.com/computers/macs/mac-operating-systems/how-to-use-basic-unix-commands-to-work-in-terminal-on-your-mac/
https://www.robvanderwoude.com/ntset.php
https://www.linuxjournal.com/content/bash-arrays
https://gist.github.com/Pulimet/5013acf2cd5b28e55036c82c91bd56d8