mirror of
https://github.com/RGBCube/random-scripts
synced 2025-07-04 18:07:35 +00:00
fix: fix miui debloat again
This commit is contained in:
parent
4a36114d8b
commit
58ba9888ff
1 changed files with 6 additions and 8 deletions
|
@ -151,13 +151,11 @@ const ids = [
|
||||||
com.xiaomi.xmsf
|
com.xiaomi.xmsf
|
||||||
]
|
]
|
||||||
|
|
||||||
for id in $ids {
|
print "waiting for adb device..."
|
||||||
try {
|
adb wait-for-device
|
||||||
adb shell pm uninstall --user 0 $id
|
|
||||||
} catch {
|
|
||||||
print $"(ansi red)($id) failed (ansi reset)"
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
print $"(ansi green)($id) success (ansi reset)"
|
for id in $ids {
|
||||||
|
print --no-newline $"trying to uninstall ($id)... "
|
||||||
|
|
||||||
|
try { adb shell pm uninstall --user 0 $id o+e>| print $in }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue