Skip to content

Do not export TrustCertificateActivity - #132

Open
ArnyminerZ wants to merge 1 commit into
mainfrom
do-not-export-activity
Open

ArnyminerZ wants to merge 1 commit into
mainfrom
do-not-export-activity

Conversation

@ArnyminerZ

Copy link
Copy Markdown
Member

This fixes a security issue.

With exported set to true, it allows any random app to automatically trust certificates as if the user had trusted them.

@ArnyminerZ ArnyminerZ self-assigned this Oct 22, 2026
@ArnyminerZ ArnyminerZ added the refactoring Quality improvement of existing functions label Oct 22, 2026
@ArnyminerZ
ArnyminerZ requested a review from a team as a code owner October 22, 2026 15:21
@ArnyminerZ
ArnyminerZ requested a balanced review from Copilot October 22, 2026 15:21

Copilot AI 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.

🟢 Approval recommended

The targeted manifest change blocks unauthorized external launches while preserving internal activity and notification flows.

No open issues 🎉

What changed in this PR

This PR restricts access to the library’s certificate-trust activity, preventing other apps from launching it directly to trust certificates without user approval.

Changes:

  • Sets TrustCertificateActivity to android:exported="false" while preserving internal invocation paths.
File Description
lib/​src/​main/​AndroidManifest.xml Disables external launches of TrustCertificateActivity.

Review effort: Balanced

@ArnyminerZ

Copy link
Copy Markdown
Member Author

Tests are broken for cert4android (they run forever). We should probably fix them in a different PR before merging this one.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Quality improvement of existing functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants