mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-26 15:34:19 +02:00
docs(sync): mention pm list format assumption
This commit is contained in:
parent
89680fc217
commit
04b3ef597e
1 changed files with 2 additions and 0 deletions
|
|
@ -179,6 +179,7 @@ pub fn list_all_system_packages(device_serial: &str, user_id: Option<&User>) ->
|
|||
match adb_cmd(true, device_serial, &action) {
|
||||
Ok(s) => s
|
||||
.lines()
|
||||
// Assume every line has the same prefix
|
||||
.map(|ln| String::from(&ln[PACK_URI_LEN as usize..]))
|
||||
.collect(),
|
||||
_ => vec![],
|
||||
|
|
@ -201,6 +202,7 @@ pub fn hashset_system_packages(
|
|||
match adb_cmd(true, device_serial, &action) {
|
||||
Ok(s) => s
|
||||
.lines()
|
||||
// Assume every line has the same prefix
|
||||
.map(|ln| String::from(&ln[PACK_URI_LEN as usize..]))
|
||||
.collect(),
|
||||
_ => HashSet::default(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue