0x192 / 0x192/universal-android-debloater
Not all packages are shown in UAD
- Dominant language
- Rust
- Stars
- 19.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
```
adb shell
pm list packages
```
and built in android settings app manager
show more packages than UAD does
```
blue:/ $ pm list packages -f | grep amazon
package:/data/app/~~klmr-FplGr_cw4RxWoKR0A==/com.amazon.appmanager-sOH-pN2hqEa6cMwpbXmU1Q==/base.apk=com.amazon.appmanager
```

This package is not the only package missing. Example:
```
blue:/ $ pm list packages -f | grep miui
package:/system/app/AnalyticsCoreGo/AnalyticsCoreGo.apk=com.miui.analytics.go
package:/system/priv-app/MiuiThemeLite/MiuiThemeLite.apk=com.miui.theme.lite
package:/system/priv-app/GlobalCleanerGo/GlobalCleanerGo.apk=com.miui.cleaner.go
package:/product/overlay/MusicLauncherIconOverlay.apk=com.miui.player.overlay
```
All these packages are missing too
phone: xiaomi redmi 3A
**Expected behavior**
All packages should be visible in UAD
**You have a solution?**
Workaround is to remove packages through adb shell
**UAD log**
```
2024-08-09 14:27:25 DEBUG [src\core\update.rs:178] Checking for UAD update
2024-08-09 14:27:25 WARN [src\gui\mod.rs:102] Trying to download remote UAD list
2024-08-09 14:27:25 INFO [src\gui\mod.rs:457] -----------------------------------------------------------------
2024-08-09 14:27:25 INFO [src\gui\mod.rs:458] ANDROID_SDK: 34 | PHONE: Redmi 23129RN51X
2024-08-09 14:27:26 WARN [src\gui\views\list.rs:142] No custom selection imported: The system cannot find the file specified. (os error 2)
```
actions that produced this log file:
1. open UAD
2. set filters to all - all packages - all lists
3. type in amaz in to search query
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue is that UAD's package listing does not match the full output from `pm list packages`. Start by examining the Rust code that queries packages via ADB, likely in `src/core/update.rs` or `src/gui/views/list.rs`. Compare the ADB command UAD uses with the `pm list packages -f` command shown. Check how packages are filtered or parsed. 'Done' is when UAD shows all packages listed by `pm list packages`, including system and overlay packages like the missing Amazon and MIUI examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, rust
- Domain
- cli, mobile, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100