Skip to content

Commit

Permalink
docs(sync): mention pm list format assumption
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudxain committed Dec 8, 2024
1 parent 89680fc commit 04b3ef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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![],
Expand All @@ -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(),
Expand Down

0 comments on commit 04b3ef5

Please sign in to comment.