-
Notifications
You must be signed in to change notification settings - Fork 513
fix bash completion of package names for the filter arg #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
The only downside here is that it restricts to running packages. What about using |
|
I was thinking that restricting it to running packages was actually a feature since that'll make the completion list a lot shorter, and what are the chances of someone wanting to get the logcat of a process that isn't running? I suppose it might be that the process has been totally killed or died somehow in the process of debugging, and that would be annoying that it doesn't show up in the completion.
|
|
Also, any ideas on whether |
|
The package manager has been around since API 1, so presumably the command has as well. And yes it does not require root.
90% of the time I'm starting pidcat before the app I want to observe. |
|
I updated it to use |
|
In my opinion we should just use |
|
without |
|
You are assuming other users don't want to filter for a system app, which we do. |
|
Why is it not merged? I made own implementation with awk for local use: |
|
@JakeWharton any plans on merging this? |
Not all devices can do `ls /data/data`, so instead use a couple other more reliable sources: * pm package list (older Android versions) * cmd package list (newer Android versions) * ps (all Android versions) Also, --device and --emulator are not adb flags, only pidcat, so they need to be corrected before being passed to adb.
Not all devices can do
ls /data/data, so instead use the running process list, which should be guaranteed to be public to all running processes.