0x192 / universal-android-debloater

Cross-platform GUI written in Rust using ADB to debloat non-rooted android devices. Improve your privacy, the security and battery life of your device.
GNU General Public License v3.0
15.1k stars 804 forks source link

Unable to restore package `Unknown command: install-existing` #491

Open matusf opened 1 year ago

matusf commented 1 year ago

Describe the bug I'd like to restore package com.xiaomi.micloud.sdk that I uninstalled before by uad. However, it's never restored. Even though, the uad UI shows, it was successful. I looked through the logs and found out, that the install-existing command fails.

Expected behavior Successful restoration.

You have a solution? Use the correct command for restoration (But I was not able to find out which it is). Some status bar, that explaines why/that some failure happened. Or an indication that the restoration was not successful.

UAD log

2023-01-06 08:56:21 INFO  [src/gui/mod.rs:458] ANDROID_SDK: 25 | PHONE: Xiaomi Redmi 4X
2023-01-06 08:56:25 INFO  [src/gui/views/list.rs:141] Custom selection has been successfully imported
2023-01-06 08:57:02 INFO  [src/core/utils.rs:222] [Recommended] cmd package install-existing --user 0 com.xiaomi.micloud.sdk -> Unknown command: install-existing
AnonymousWP commented 1 year ago

It seems like it first requires adb install <application>, yeah, see: https://gist.github.com/AnatomicJC/e773dd55ae60ab0b2d6dd2351eb977c1#restore-applications. Never tried it myself though.

Adelineenileda commented 1 year ago

I have the same bug I think :

Describe the bug

I'd like to restore some packages that I uninstalled before by uad. However, it's never restored any application. Even though, the uad UI shows, it was successful. I looked through the logs and found out, that the install-existing command fails.

I have the same problem with A310F (A3 2016) and A510F (A5 2016) too. I try to restore in usine configuration and I have the same issue....

Expected behavior

Successful restoration.

UAD log

Pour le A5 :

2023-05-27 14:30:38 INFO  [src/gui/mod.rs:458] ANDROID_SDK: 24 | PHONE: samsung SM-A510F
2023-05-27 14:30:42 WARN  [src/gui/views/list.rs:142] No custom selection imported: No such file or directory (os error 2)
2023-05-27 14:31:11 INFO  [src/core/utils.rs:222] [Advanced] cmd package install-existing --user 0 com.google.android.tts -> Unknown command: install-existing
2023-05-27 14:31:18 INFO  [src/gui/mod.rs:457] -----------------------------------------------------------------
2023-05-27 14:31:18 INFO  [src/gui/mod.rs:458] ANDROID_SDK: 24 | PHONE: samsung SM-A510F
2023-05-27 14:31:22 WARN  [src/gui/views/list.rs:142] No custom selection imported: No such file or directory (os error 2)
2023-05-27 14:31:38 INFO  [src/core/utils.rs:222] [Advanced] cmd package install-existing --user 0 com.google.android.tts -> Unknown command: install-existing
2023-05-27 14:31:52 INFO  [src/gui/mod.rs:457] -----------------------------------------------------------------
2023-05-27 14:31:52 INFO  [src/gui/mod.rs:458] ANDROID_SDK: 24 | PHONE: samsung SM-A510F
2023-05-27 14:31:57 WARN  [src/gui/views/list.rs:142] No custom selection imported: No such file or directory (os error 2)
2023-05-27 14:32:20 INFO  [src/core/utils.rs:222] [Advanced] cmd package install-existing --user 0 com.google.android.tts -> Unknown command: install-existing

Pour le A3 :

2023-05-30 10:20:49 INFO  [src/gui/mod.rs:458] ANDROID_SDK: 24 | PHONE: samsung SM-A310F
2023-05-30 10:20:53 WARN  [src/gui/views/list.rs:142] No custom selection imported: No such file or directory (os error 2)
2023-05-30 10:23:10 DEBUG [src/core/update.rs:178] Checking for UAD update
2023-05-30 10:27:04 DEBUG [src/core/update.rs:178] Checking for UAD update
2023-05-30 10:27:09 DEBUG [src/core/update.rs:178] Checking for UAD update
2023-05-30 17:25:59 INFO  [src/core/utils.rs:222] [Recommended] cmd package install-existing --user 0 com.android.bluetoothmidiservice -> Unknown command: install-existing
2023-05-30 17:26:00 INFO  [src/core/utils.rs:222] [Recommended] cmd package install-existing --user 0 com.android.chrome -> Unknown command: install-existing
2023-05-30 17:26:01 INFO  [src/core/utils.rs:222] [Recommended] cmd package install-existing --user 0 com.android.calllogbackup -> Unknown command: install-existing
OasisVee commented 12 months ago

in a new terminal tab go to platform-tools directory and do the following adb install-existing --full <package name> tried it with 1weather that was preinstalled on Motorolas and it worked

so what they need to add is just the argument --full and it will let people reinstall apps that they deleted