You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adb: Explicitly match package name in pm list package output (#135)
The positional `FILTER` argument to `pm list package` works as a
substring match: if you have a package named `foo.bar.baz` and
`foo.bar.baz_debug` for example, and try to run `foo.bar.baz`, both
packages will be returned, the `_debug`-suffixed one likely first,
and the wrong UID ends up being used as `logcat` filter.
To counter that we could use the very slow and extremely verbose
(thousands of lines) `pm dump PACKAGE`, _or_ look for the right explicit
text match in the line-based `package:foo.bar.baz uid:1234` output from
`pm list package`: the latter approach is chosen here.
0 commit comments