Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8caccfbc authored by Mohamad Mahmoud's avatar Mohamad Mahmoud
Browse files

Refactor logcat collection in ActivityManagerService

- Fixed inconsistent log truncation between GMS and ActivityManager by
  respecting Dropbox max file size
- Moved logcat fetching logic out of AMS, to a dedicated `LogcatFetcher` class.
- Replaced AMS logcat retrieval with `LogcatFetcher.appendLogcatLogs()`.
- Improved logcat collection by adding a timestamp and considering dropbox size to limit logs in dropbox error entries.

Flag: com.android.server.am.limit_logcat_collection
Bug: 354138103
Test: atest FrameworksServicesTests:LogcatFetcherTest && manual testing
Change-Id: I720202c31a38a20e4d7eaf30b5f80ecdfcb4bf0f
parent 1b8815ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment