Repository navigation
Changelog v2.6.0: correct the Android Shell tool list - #42
Conversation
pm/am/dumpsys do not work from the app's shell (they are binder framework CLIs that need the shell uid via adb or root). The entry listed them as available and offered 'pm list packages' as a starter command, both wrong. Replace with the tools that actually run (getprop/ps/df, /proc and /sys) and state the am/pm/svc boundary.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The v2.6.0 Android Shell entry claimed
pm,amanddumpsyswere available in the shell and offeredpm list packagesas a starter command. They are not: those areapp_process/binder framework CLIs that require theshelluid (adb shell) or root, and fail from the app's own uid with 'Failure calling service …: Failed transaction'.Fix (CHANGELOG only, no code):
getprop,ps,df, and/proc//sysintrospection — and states explicitly that the privilegedam/pm/svctools needadb shellor root.pm list packagesstarter is replaced withgetprop ro.build.version.security_patch, which works.All remaining starter commands (
getprop …release,ps, the grep pipe,sh script.sh) genuinely work in the app shell.Summary by CodeRabbit
adb shellor root.