Skip to content

fix: search only default user to get uid - #21

Merged
mzdk100 merged 1 commit into
mzdk100:mainfrom
80avin:main
Jul 22, 2026
Merged

fix: search only default user to get uid#21
mzdk100 merged 1 commit into
mzdk100:mainfrom
80avin:main

Conversation

@80avin

@80avin 80avin commented Jul 22, 2026

Copy link
Copy Markdown

fixes #20

@mzdk100
mzdk100 merged commit 600ce0d into mzdk100:main Jul 22, 2026
mzdk100 added a commit that referenced this pull request Jul 22, 2026
…21)

Issue #19 and #20 share the same root cause: `pm list package -U` without
`--user` queries across all users, returning comma-separated multi-user UIDs
(e.g. `uid:10096,1110096`) and tripping a SecurityException on inaccessible
secondary users (e.g. Secure Folder).

PR #21 added `--user 0`, which restricts the query to the primary user and
always returns a single `uid:10096`. The comma-splitting `Vec<u32>` parsing
added for #19 is therefore redundant and has been reverted:

- `uidof` now returns a single `u32` again and parses the single UID directly.
- The logcat `--uid` filter uses the single uid instead of joining a list.

Also fix two pre-existing `clippy::useless-borrows-in-formatting` warnings
(redundant `&` in format! args) in ndk-build2 that only surfaced once the
crate was re-linted.

Closes #19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: SecurityException: Shell does not have permission to access user 151

2 participants