# XIAOMI / REDMI / POCO - Bloqueio OTA MIUI / HyperOS 1-3
# Inclui Redmi Note 15 Pro (charoite / 25100RA69G) e familia Xiaomi
shell pm enable --user 0 com.android.vending
shell pm disable-user --user 0 com.android.updater
shell pm disable-user --user 0 com.xiaomi.mipicks
shell pm disable-user --user 0 com.xiaomi.discover
shell pm disable-user --user 0 com.google.android.configupdater
shell pm disable-user --user 0 com.miui.systemUpdatePlugin
shell pm disable-user --user 0 com.miui.updater
shell pm disable-user --user 0 com.xiaomi.updater
shell pm disable-user --user 0 com.google.android.gms.update
shell pm disable-user --user 0 com.android.updater/.MainActivity
shell pm disable-user --user 0 com.android.updater/.ui.MainActivity
shell pm disable-user --user 0 com.android.updater/.UpdateSettingActivity
shell pm disable-user --user 0 com.android.updater/.CurrentLogActivity
shell pm disable-user --user 0 com.android.updater/.receiver.BootCompletedReceiver
shell pm disable-user --user 0 com.android.updater/.receiver.DailyCheckReceiver
shell pm disable-user --user 0 com.android.updater/.receiver.LauncherDialogReceiver
shell pm disable-user --user 0 com.android.updater/.receiver.UrlChangeReceiver
shell pm disable-user --user 0 com.xiaomi.mipicks/.ui.MainActivity
shell pm disable-user --user 0 com.xiaomi.discover/.ui.DiscoverLauncher
shell pm disable-user --user 0 com.xiaomi.discover/.main.MainActivity
shell cmd package suspend com.android.updater
shell cmd package suspend com.xiaomi.mipicks
shell cmd package suspend com.xiaomi.discover
shell cmd package suspend com.google.android.configupdater
shell cmd package suspend com.miui.systemUpdatePlugin
shell cmd package suspend com.miui.updater
shell cmd package suspend com.xiaomi.updater
shell cmd package suspend com.google.android.gms.update
shell settings put global system_update_auto_download 0
shell settings put system system_update_auto_download 0
shell settings put global auto_update_system 0
shell settings put system auto_update_system 0
shell settings put secure ota_disable_automatic_update 1
shell settings put global ota_disable_automatic_update 1
shell settings put global software_updates_enabled 0
shell settings put global fota_disable 1
shell am force-stop com.android.updater
shell am force-stop com.xiaomi.mipicks
shell am force-stop com.xiaomi.discover
shell am force-stop com.google.android.configupdater
shell am force-stop com.miui.updater
shell am force-stop com.xiaomi.updater
shell am force-stop com.google.android.gms.update
shell cmd appops set com.android.updater RUN_IN_BACKGROUND deny
shell cmd appops set com.android.updater RUN_ANY_IN_BACKGROUND deny
shell cmd appops set com.android.updater WAKE_LOCK deny
shell cmd appops set com.android.updater REQUEST_INSTALL_PACKAGES deny
shell cmd appops set com.android.updater INTERNET deny
shell cmd appops set com.xiaomi.mipicks RUN_IN_BACKGROUND deny
shell cmd appops set com.xiaomi.mipicks INTERNET deny
shell cmd appops set com.xiaomi.discover RUN_IN_BACKGROUND deny
shell cmd appops set com.xiaomi.discover INTERNET deny
shell cmd appops set com.google.android.configupdater RUN_IN_BACKGROUND deny
shell cmd appops set com.google.android.configupdater INTERNET deny
shell cmd appops set com.miui.updater RUN_IN_BACKGROUND deny
shell cmd appops set com.miui.updater INTERNET deny
shell cmd appops set com.xiaomi.updater RUN_IN_BACKGROUND deny
shell cmd appops set com.xiaomi.updater INTERNET deny
shell cmd appops set com.google.android.gms.update RUN_IN_BACKGROUND deny
shell cmd appops set com.google.android.gms.update INTERNET deny
shell cmd netpolicy set restrict-background true com.android.updater
shell cmd netpolicy set restrict-background true com.xiaomi.mipicks
shell cmd netpolicy set restrict-background true com.xiaomi.discover
shell cmd netpolicy set restrict-background true com.google.android.configupdater
shell cmd netpolicy set restrict-background true com.google.android.gms.update
shell cmd jobscheduler cancel -u 0 com.android.updater
shell cmd jobscheduler cancel -u 0 com.xiaomi.mipicks
shell cmd jobscheduler cancel -u 0 com.xiaomi.discover
shell cmd jobscheduler cancel -u 0 com.google.android.configupdater
shell cmd jobscheduler cancel -u 0 com.miui.updater
shell cmd jobscheduler cancel -u 0 com.xiaomi.updater
shell cmd jobscheduler cancel -u 0 com.google.android.gms.update
shell pm disable-user --user 0 com.android.updater
shell pm disable-user --user 0 com.xiaomi.mipicks
shell pm disable-user --user 0 com.xiaomi.discover
shell pm disable-user --user 0 com.google.android.configupdater
shell pm disable-user --user 0 com.miui.systemUpdatePlugin
shell pm disable-user --user 0 com.miui.updater
shell pm disable-user --user 0 com.xiaomi.updater
shell pm disable-user --user 0 com.google.android.gms.update
