Skip to content

Security: Don't export CropImageActivity - #707

Open
MrEddX wants to merge 2 commits into
CanHub:mainfrom
MrEddX:main
Open

MrEddX wants to merge 2 commits into
CanHub:mainfrom
MrEddX:main

Conversation

@MrEddX

@MrEddX MrEddX commented Nov 27, 2026

Copy link
Copy Markdown

Fixes #706.

CropImageActivity is declared with android:exported="true" in the library manifest, so every app that uses the library exports it unless it overrides the attribute, and other apps on the device can start it with the host app's permissions. The library itself only starts it with an explicit intent (CropImageContract.createIntent), which works with a non-exported activity, so normal use is unchanged.

An app that really needs the activity exported can still override it in its own manifest with tools:replace="android:exported".

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Where can I report a possible security issue privately?

1 participant