Skip to content

Add ACRA email crash reporting with user-consent dialog#329

Closed
aivanovski wants to merge 1 commit into
masterfrom
codex/implement-acra-crash-reporting-with-email
Closed

Add ACRA email crash reporting with user-consent dialog#329
aivanovski wants to merge 1 commit into
masterfrom
codex/implement-acra-crash-reporting-with-email

Conversation

@aivanovski

Copy link
Copy Markdown
Owner

Motivation

  • Provide in-app crash reporting so users can review and send crash reports via email or share them as plain text with other apps.

Description

  • Added ACRA dependency entries to the version catalog (gradle/libs.versions.toml) and declared the dialog and mail modules in app/build.gradle.kts.
  • Initialized ACRA in App.attachBaseContext(...) using initAcra {} with a report format of KEY_VALUE_LIST, a consent dialog configuration, and mailSender configured to send the report inline (reportAsFile = false).
  • Added user-facing strings for the crash dialog and email (app/src/main/res/values/strings.xml) and the support email in untranslatable-strings.xml.

Testing

  • Ran git diff --check and static diff checks which reported no problems.
  • Ran ./gradlew app:spotlessApply which failed due to environment/network limitation (dependency download returned HTTP 403 for google-java-format).
  • Ran ./gradlew app:compileFdroidDebugKotlin and ./gradlew test which were blocked by a missing Android SDK in the environment (error: SDK location not found).

Codex Task

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 970ec91681

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


initAcra {
buildConfigClass = BuildConfig::class.java
reportFormat = StringFormat.KEY_VALUE_LIST

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Limit ACRA's default report content

For production users who have enabled file logging, this leaves ACRA's default reportContent in place, which includes LOGCAT; in that mode LoggerInteractor plants Timber.DebugTree(), and AutofillStructureParser logs parsed ViewNode.text, so a crash shortly after an autofill flow can put usernames/password-field contents into the email body. Please set an explicit reportContent that excludes logcat (or otherwise redact/disable those logs) before enabling ACRA by default.

Useful? React with 👍 / 👎.

@aivanovski aivanovski closed this Jul 5, 2026
@aivanovski aivanovski deleted the codex/implement-acra-crash-reporting-with-email branch July 5, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant