1
Fork 0
mirror of https://github.com/RGBCube/random-scripts synced 2025-05-14 11:04:59 +00:00

chore: delete google one and make script better

This commit is contained in:
RGBCube 2025-03-04 23:28:51 +03:00
parent d59f420111
commit 4a36114d8b
No known key found for this signature in database

View file

@ -1,149 +1,163 @@
#!/usr/bin/env nu #!/usr/bin/env nu
try { adb shell pm uninstall --user 0 com.amazon.appmanager } const ids = [
try { adb shell pm uninstall --user 0 com.android.browser } com.amazon.appmanager
try { adb shell pm uninstall --user 0 com.android.chrome } com.android.bips
try { adb shell pm uninstall --user 0 com.android.email } com.android.bookmarkprovider
try { adb shell pm uninstall --user 0 com.android.wallpaper.livepicker } com.android.browser
try { adb shell pm uninstall --user 0 com.facebook.services } com.android.browser
try { adb shell pm uninstall --user 0 com.facebook.system } com.android.cellbroadcastreceiver
try { adb shell pm uninstall --user 0 com.facebook.appmanager } com.android.chrome
try { adb shell pm uninstall --user 0 com.google.android.apps.docs } com.android.chrome
try { adb shell pm uninstall --user 0 com.google.android.apps.maps } com.android.email
try { adb shell pm uninstall --user 0 com.google.android.apps.photos } com.android.email
try { adb shell pm uninstall --user 0 com.google.android.apps.tachyon } com.android.midrive
try { adb shell pm uninstall --user 0 com.google.android.feedback } com.android.printservice.recommendation
try { adb shell pm uninstall --user 0 com.google.android.gm } com.android.printspooler
try { adb shell pm uninstall --user 0 com.google.android.googlequicksearchbox } com.android.quicksearchbox
try { adb shell pm uninstall --user 0 com.google.android.marvin.talkback } com.android.wallpaper.livepicker
try { adb shell pm uninstall --user 0 com.google.android.music } com.caf.fmradio
try { adb shell pm uninstall --user 0 com.google.android.syncadapters.calendar } com.duokan.phone.remotecontroller
try { adb shell pm uninstall --user 0 com.google.android.syncadapters.contacts } com.facebook.appmanager
try { adb shell pm uninstall --user 0 com.google.android.talk } com.facebook.appmanager
try { adb shell pm uninstall --user 0 com.google.android.tts } com.facebook.services
try { adb shell pm uninstall --user 0 com.google.android.videos } com.facebook.services
try { adb shell pm uninstall --user 0 com.google.android.youtube } com.facebook.system
try { adb shell pm uninstall --user 0 com.mfashiongallery.emag } com.facebook.system
try { adb shell pm uninstall --user 0 com.mi.android.globalpersonalassistant } com.facemoji.lite.xiaomi
try { adb shell pm uninstall --user 0 com.mi.dlabs.vr } com.google.android.apps.cloudprint
try { adb shell pm uninstall --user 0 com.mi.globalTrendNews } com.google.android.apps.docs
try { adb shell pm uninstall --user 0 com.mi.global.bbs } com.google.android.apps.maps
try { adb shell pm uninstall --user 0 com.mi.global.shop } com.google.android.apps.photos
try { adb shell pm uninstall --user 0 com.mi.webkit.core } com.google.android.apps.photos
try { adb shell pm uninstall --user 0 com.micredit.in } com.google.android.apps.safetyhub
try { adb shell pm uninstall --user 0 com.milink.service } com.google.android.apps.subscriptions.red
try { adb shell pm uninstall --user 0 com.mipay.wallet.id } com.google.android.apps.tachyon
try { adb shell pm uninstall --user 0 com.mipay.wallet.in } com.google.android.apps.tachyon
try { adb shell pm uninstall --user 0 com.miui.analytics } com.google.android.apps.wearables.maestro.companion
try { adb shell pm uninstall --user 0 com.miui.android.fashiongallery } com.google.android.feedback
try { adb shell pm uninstall --user 0 com.miui.bugreport } com.google.android.gm
try { adb shell pm uninstall --user 0 com.miui.cloudbackup } com.google.android.googlequicksearchbox
try { adb shell pm uninstall --user 0 com.miui.cloudservice } com.google.android.googlequicksearchbox
try { adb shell pm uninstall --user 0 com.miui.cloudservice.sysbase } com.google.android.markup
try { adb shell pm uninstall --user 0 com.miui.micloudsync } com.google.android.marvin.talkback
try { adb shell pm uninstall --user 0 com.miui.hybrid } com.google.android.marvin.talkback
try { adb shell pm uninstall --user 0 com.miui.hybrid.accessory } com.google.android.music
try { adb shell pm uninstall --user 0 com.miui.klo.bugreport } com.google.android.music
try { adb shell pm uninstall --user 0 com.miui.miservice } com.google.android.projection.gearhead
try { adb shell pm uninstall --user 0 com.miui.msa.global } com.google.android.syncadapters.calendar
try { adb shell pm uninstall --user 0 com.miui.player } com.google.android.syncadapters.contacts
try { adb shell pm uninstall --user 0 com.miui.providers.weather } com.google.android.talk
try { adb shell pm uninstall --user 0 com.miui.screenrecorder } com.google.android.talk
try { adb shell pm uninstall --user 0 com.miui.translationservice } com.google.android.tts
try { adb shell pm uninstall --user 0 com.miui.translation.kingsoft } com.google.android.tts
try { adb shell pm uninstall --user 0 com.miui.translation.xmcloud } com.google.android.videos
try { adb shell pm uninstall --user 0 com.miui.translation.youdao } com.google.android.videos
try { adb shell pm uninstall --user 0 com.miui.touchassistant } com.google.android.youtube
try { adb shell pm uninstall --user 0 com.miui.userguide } com.google.ar.lens
try { adb shell pm uninstall --user 0 com.miui.videoplayer } com.google.audio.hearing.visualization.accessibility.scribe
try { adb shell pm uninstall --user 0 com.miui.virtualsim } com.mfashiongallery.emag
try { adb shell pm uninstall --user 0 com.miui.weather2 } com.mfashiongallery.emag
try { adb shell pm uninstall --user 0 com.miui.yellowpage } com.mi.android.globalpersonalassistant
try { adb shell pm uninstall --user 0 com.netflix.partner.activation } com.mi.android.globalpersonalassistant
try { adb shell pm uninstall --user 0 com.swiftkey.languageprovider } com.mi.dlabs.vr
try { adb shell pm uninstall --user 0 com.swiftkey.swiftkeyconfigurator } com.mi.global.bbs
try { adb shell pm uninstall --user 0 com.xiaomi.account } com.mi.global.shop
try { adb shell pm uninstall --user 0 com.xiaomi.discover } com.mi.globalTrendNews
try { adb shell pm uninstall --user 0 com.xiaomi.glgm } com.mi.webkit.core
try { adb shell pm uninstall --user 0 com.xiaomi.joyose } com.mi.webkit.core
try { adb shell pm uninstall --user 0 com.xiaomi.location.fused } com.micredit.in
try { adb shell pm uninstall --user 0 com.xiaomi.micloud.sdk } com.milink.service
try { adb shell pm uninstall --user 0 com.xiaomi.midrop } com.milink.service
try { adb shell pm uninstall --user 0 com.xiaomi.mipicks } com.mipay.wallet.id
try { adb shell pm uninstall --user 0 com.xiaomi.miplay_client } com.mipay.wallet.in
try { adb shell pm uninstall --user 0 com.xiaomi.mirecycle } com.miui.analytics
try { adb shell pm uninstall --user 0 com.xiaomi.oversea.ecom } com.miui.analytics
try { adb shell pm uninstall --user 0 com.xiaomi.payment } com.miui.android.fashiongallery
try { adb shell pm uninstall --user 0 com.xiaomi.providers.appindex } com.miui.antispam
try { adb shell pm uninstall --user 0 com.xiaomi.xmsf } com.miui.bugreport
try { adb shell pm uninstall --user 0 com.google.android.googlequicksearchbox } com.miui.bugreport
try { adb shell pm uninstall --user 0 com.xiaomi.mipicks } com.miui.cleanmaster
try { adb shell pm uninstall --user 0 com.android.browser } com.miui.cloudbackup
try { adb shell pm uninstall --user 0 com.android.chrome } com.miui.cloudbackup
try { adb shell pm uninstall --user 0 com.google.android.apps.tachyon } com.miui.cloudservice
try { adb shell pm uninstall --user 0 com.miui.bugreport } com.miui.cloudservice
try { adb shell pm uninstall --user 0 com.miui.gallery } com.miui.cloudservice.sysbase
try { adb shell pm uninstall --user 0 com.google.android.videos } com.miui.cloudservice.sysbase
try { adb shell pm uninstall --user 0 com.google.android.music } com.miui.compass
try { adb shell pm uninstall --user 0 com.xiaomi.payment } com.miui.contentcatcher
try { adb shell pm uninstall --user 0 com.xiaomi.midrop } com.miui.gallery
try { adb shell pm uninstall --user 0 com.miui.videoplayer } com.miui.greenguard
try { adb shell pm uninstall --user 0 com.miui.notes } com.miui.hybrid
try { adb shell pm uninstall --user 0 com.miui.player } com.miui.hybrid
try { adb shell pm uninstall --user 0 com.google.android.apps.photos } com.miui.hybrid.accessory
try { adb shell pm uninstall --user 0 com.xiaomi.scanner } com.miui.hybrid.accessory
try { adb shell pm uninstall --user 0 com.miui.screenrecorder } com.miui.klo.bugreport
try { adb shell pm uninstall --user 0 com.miui.yellowpage } com.miui.klo.bugreport
try { adb shell pm uninstall --user 0 com.google.android.marvin.talkback } com.miui.micloudsync
try { adb shell pm uninstall --user 0 com.miui.hybrid } com.miui.micloudsync
try { adb shell pm uninstall --user 0 com.miui.hybrid.accessory } com.miui.miservice
try { adb shell pm uninstall --user 0 com.miui.compass } com.miui.miservice
try { adb shell pm uninstall --user 0 com.facebook.services } com.miui.mishare.connectivity
try { adb shell pm uninstall --user 0 com.facebook.system } com.miui.msa.global
try { adb shell pm uninstall --user 0 com.facebook.appmanager } com.miui.notes
try { adb shell pm uninstall --user 0 com.miui.antispam } com.miui.personalassistant
try { adb shell pm uninstall --user 0 com.miui.klo.bugreport } com.miui.player
try { adb shell pm uninstall --user 0 com.mi.android.globalpersonalassistant } com.miui.player
try { adb shell pm uninstall --user 0 com.miui.cleanmaster } com.miui.providers.weather
try { adb shell pm uninstall --user 0 com.miui.analytics } com.miui.providers.weather
try { adb shell pm uninstall --user 0 com.miui.providers.weather } com.miui.screenrecorder
try { adb shell pm uninstall --user 0 com.miui.weather2 } com.miui.screenrecorder
try { adb shell pm uninstall --user 0 com.google.android.talk } com.miui.touchassistant
try { adb shell pm uninstall --user 0 com.google.android.tts } com.miui.touchassistant
try { adb shell pm uninstall --user 0 com.miui.virtualsim } com.miui.translation.kingsoft
try { adb shell pm uninstall --user 0 com.miui.cloudservice } com.miui.translation.xmcloud
try { adb shell pm uninstall --user 0 com.miui.cloudbackup } com.miui.translation.youdao
try { adb shell pm uninstall --user 0 com.xiaomi.account } com.miui.translationservice
try { adb shell pm uninstall --user 0 com.mi.webkit.core } com.miui.userguide
try { adb shell pm uninstall --user 0 com.miui.personalassistant } com.miui.videoplayer
try { adb shell pm uninstall --user 0 com.android.email } com.miui.videoplayer
try { adb shell pm uninstall --user 0 com.android.midrive } com.miui.virtualsim
try { adb shell pm uninstall --user 0 com.duokan.phone.remotecontroller } com.miui.virtualsim
try { adb shell pm uninstall --user 0 com.android.quicksearchbox } com.miui.weather2
try { adb shell pm uninstall --user 0 com.xiaomi.finddevice } com.miui.weather2
try { adb shell pm uninstall --user 0 com.mfashiongallery.emag } com.miui.yellowpage
try { adb shell pm uninstall --user 0 com.google.android.apps.cloudprint } com.miui.yellowpage
try { adb shell pm uninstall --user 0 com.google.ar.lens } com.netflix.partner.activation
try { adb shell pm uninstall --user 0 com.google.android.markup } com.swiftkey.languageprovider
try { adb shell pm uninstall --user 0 com.xiaomi.mirecycle } com.swiftkey.swiftkeyconfigurator
try { adb shell pm uninstall --user 0 com.miui.micloudsync } com.xiaomi.account
try { adb shell pm uninstall --user 0 com.facemoji.lite.xiaomi } com.xiaomi.account
try { adb shell pm uninstall --user 0 com.miui.miservice } com.xiaomi.discover
try { adb shell pm uninstall --user 0 com.miui.contentcatcher } com.xiaomi.finddevice
try { adb shell pm uninstall --user 0 com.miui.cloudservice.sysbase } com.xiaomi.glgm
try { adb shell pm uninstall --user 0 com.miui.touchassistant } com.xiaomi.joyose
try { adb shell pm uninstall --user 0 com.xiaomi.mi_connect_service } com.xiaomi.location.fused
try { adb shell pm uninstall --user 0 com.milink.service } com.xiaomi.mi_connect_service
try { adb shell pm uninstall --user 0 com.miui.greenguard } com.xiaomi.micloud.sdk
try { adb shell pm uninstall --user 0 com.xiaomi.miplay_client } com.xiaomi.midrop
try { adb shell pm uninstall --user 0 com.android.printspooler } com.xiaomi.midrop
try { adb shell pm uninstall --user 0 com.miui.mishare.connectivity } com.xiaomi.mipicks
try { adb shell pm uninstall --user 0 com.android.cellbroadcastreceiver } com.xiaomi.mipicks
try { adb shell pm uninstall --user 0 com.android.bips } com.xiaomi.miplay_client
try { adb shell pm uninstall --user 0 com.android.printservice.recommendation } com.xiaomi.miplay_client
try { adb shell pm uninstall --user 0 com.android.bookmarkprovider } com.xiaomi.mirecycle
try { adb shell pm uninstall --user 0 com.caf.fmradio } com.xiaomi.mirecycle
try { adb shell pm uninstall --user 0 com.google.android.apps.safetyhub } com.xiaomi.oversea.ecom
try { adb shell pm uninstall --user 0 com.google.android.apps.wearables.maestro.companion } com.xiaomi.payment
try { adb shell pm uninstall --user 0 com.google.android.projection.gearhead } com.xiaomi.payment
try { adb shell pm uninstall --user 0 com.google.audio.hearing.visualization.accessibility.scribe } com.xiaomi.providers.appindex
com.xiaomi.scanner
com.xiaomi.xmsf
]
for id in $ids {
try {
adb shell pm uninstall --user 0 $id
} catch {
print $"(ansi red)($id) failed (ansi reset)"
continue
}
print $"(ansi green)($id) success (ansi reset)"
}