Skip to content
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

Filtering logs by app in the log viewer? #5

Open
MuntashirAkon opened this issue Sep 2, 2023 · 0 comments
Open

Filtering logs by app in the log viewer? #5

MuntashirAkon opened this issue Sep 2, 2023 · 0 comments

Comments

@MuntashirAkon
Copy link
Member

MuntashirAkon commented Sep 2, 2023

The logging system in Android (logd) logs everything using process ID (PID). Unlike the package name of an app, a new PID is created everytime you relaunch the app. This is problematic because to actually filter logs by the app, you need to know the current PID of the app, and to know the current PID of the app, you have, at first, to launch it. The dilemma does not end here. A few apps are also capable of running in more than one processes. For example, Chromium browsers run services in multiple processes to ensure proper sandboxing. Therefore, for these apps, you’d need to know all the PID of all the processes that were created.

Fortunately, App Manager is equipped with necessary features to help you figure the PIDs of an app. This could be done in several ways such as finding it in the Running Apps page, clicking on the running tag in App Info tab or using Log Viewer itself. However, to find the PIDs of a particular app or filter by a PID in Log Viewer, utilising the features in Running Apps is the best option. In the future, App Manager will also support filtering by package names which will automate this finding process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant