docs(sync): mention pm list format assumption

This commit is contained in:
Rudxain 2024-12-08 05:30:47 -04:00
commit 04b3ef597e
No known key found for this signature in database
GPG key ID: 0DAC837DDEF8E96C

View file

@ -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(),