From 58ba9888ff0ddba1192d648d6677c184f11d3a0b Mon Sep 17 00:00:00 2001 From: RGBCube Date: Tue, 4 Mar 2025 23:35:34 +0300 Subject: [PATCH] fix: fix miui debloat again --- miui-debloat.nu | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/miui-debloat.nu b/miui-debloat.nu index 7f86d67..8451302 100755 --- a/miui-debloat.nu +++ b/miui-debloat.nu @@ -151,13 +151,11 @@ const ids = [ 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 "waiting for adb device..." +adb wait-for-device - 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 } }