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

Android logging? #1087

Open
nicjansma opened this issue Nov 8, 2023 · 2 comments
Open

Android logging? #1087

nicjansma opened this issue Nov 8, 2023 · 2 comments
Labels
os-android Android-specific issue

Comments

@nicjansma
Copy link
Contributor

nicjansma commented Nov 8, 2023

The issue

I'm unable to find where any debug file or logcat logging happens on Android.

This ticket template mentions it should be in <storage>/pegasus-frontend/lastrun.log, but I don't see the log file there (just my game_dirs.txt and themes/ that load OK). Pegasus has Accessible Android directories... permission to that folder.

I don't see any logging happening to logcat either, though a cursory review of the sourcecode mentions Android logcat. Should it be going there?

(Why I care: I'm trying to understand why loading gamelist and media on my RG405M takes 30+ seconds while the RP3+ only takes ~10 seconds. These two devices have the same chipset and exact same files on the SD card. I was hoping the pegasus log would give some insight).

System info

Retroid Pocket 3+
Anbernic RG405M

Pegasus version

alpha16-67-g40b9b63a (2023-10-23)

Pegasus log

(I was unable to find this log)

@mmatyas
Copy link
Owner

mmatyas commented Nov 9, 2023

On newer Androids, Pegasus can still read files under <storage>/pegasus-frontend/, but might only be able to save the log file at a writable location that Android provides for the apps. I think this should be either at <storage>/Android/data/org.pegasus_frontend.android/, or under /data/user/0/org.pegasus_frontend.android/ somewhere. (The logcat output is only used for debug builds.)

@mmatyas mmatyas added the os-android Android-specific issue label Nov 9, 2023
@nicjansma
Copy link
Contributor Author

nicjansma commented Nov 9, 2023

Thanks! Found it at <storage>/Android/data/org.pegasus_frontend.android/files/pegasus-frontend/lastrun.log.

I would suggest a minor update to the Issue template to list that as an alternative location for Android.

(and I've confirmed debug Android builds go to logcat, which is useful. Thanks!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os-android Android-specific issue
Projects
None yet
Development

No branches or pull requests

2 participants