commit | 992e24e1147953384d4fd086b37fdfd812ace201 | [log] [tgz] |
---|---|---|
author | Sudheer Shanka <sudheersai@google.com> | Fri Apr 23 05:21:48 2021 -0700 |
committer | Sudheer Shanka <sudheersai@google.com> | Tue Apr 27 12:02:31 2021 -0700 |
tree | 165605bde08bd03edbd0fd25e08c1660a5a8c2d6 | |
parent | b60f1ce9d6c9d8bece255d90317646fa337cd575 [diff] |
Fix getAppUid() logic to handle multiple matching pkgs. "cmd package list packages <str>" will return information for all package names that contain "str". So, update DeviceUtils.getAppUid() to not assume there will be only one line returned from that command. Fixes: 185790788 Fixes: 186068002 Test: atest ./hostsidetests/blobstore/src/com/android/cts/host/blob/StatsdBlobStoreAtomTest.java Change-Id: Iebe223f6d4a939f152ac343b556fd63db1d82822