Skip to content

Commit

Permalink
Merge pull request #18 from Frigyes06/uad_list-update-fix
Browse files Browse the repository at this point in the history
ADB get all packages fix
  • Loading branch information
Frigyes06 committed Oct 28, 2023
2 parents 5a180c8 + 8575c4b commit e719f76
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ and `Removed`.

## [0.5.3] - Unreleased

### Added
### Apps
- [[#13](https://github.com/Frigyes06/universal-android-debloater/pull/13)] com.telus.myaccount package
- [[#15](https://github.com/Frigyes06/universal-android-debloater/pull/15)] more Wiko oem packages
- [[#15](https://github.com/Frigyes06/universal-android-debloater/pull/15)] more Wiko oem packages/

### Changed
- [[#16](https://github.com/Frigyes06/universal-android-debloater/pull/16)] com.android.companiondevicemanager description improved
### Fixed
- [[#14](https://github.com/Frigyes06/universal-android-debloater/pull/14)] Fixed typos in uad_list.json
- [[#18](https://github.com/Frigyes06/universal-android-debloater/pull/18)] Fixed ABD command to include all packages, not just system packages. Also fixed uad_list update url.

### Removed

Expand Down
6 changes: 3 additions & 3 deletions src/core/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub fn user_flag(user_id: Option<&User>) -> String {
}

pub fn list_all_system_packages(user_id: Option<&User>) -> String {
let action = format!("pm list packages -s -u{}", user_flag(user_id));
let action = format!("pm list packages -u{}", user_flag(user_id));

adb_shell_command(true, &action)
.unwrap_or_else(|_| String::new())
Expand All @@ -152,8 +152,8 @@ pub fn list_all_system_packages(user_id: Option<&User>) -> String {
pub fn hashset_system_packages(state: PackageState, user_id: Option<&User>) -> HashSet<String> {
let user = user_flag(user_id);
let action = match state {
PackageState::Enabled => format!("pm list packages -s -e{user}"),
PackageState::Disabled => format!("pm list package -s -d{user}"),
PackageState::Enabled => format!("pm list packages -e{user}"),
PackageState::Disabled => format!("pm list package -d{user}"),
_ => String::new(), // You probably don't need to use this function for anything else
};

Expand Down
2 changes: 1 addition & 1 deletion src/core/uad_lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ pub fn load_debloat_lists(remote: bool) -> (Result<PackageHashMap, PackageHashMa
let list: Vec<Package> = if remote {
retry(Fixed::from_millis(1000).take(60), || {
match ureq::get(
"https://raw.githubusercontent.com/0x192/universal-android-debloater/\
"https://raw.githubusercontent.com/Frigyes06/universal-android-debloater/\
main/resources/assets/uad_lists.json",
)
.call()
Expand Down

0 comments on commit e719f76

Please sign in to comment.