markzhai / markzhai/AndroidPerformanceMonitor
Easy fix for apps targeting Android 12
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 6.7k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Library breaks build when targeting Android 12
Please add
```
android:exported="false"
```
to `"com.github.moduth.blockcanary.ui.DisplayActivity"`
Or recommend users to add
```
```
to their `AndroidManifest.xml`
See: https://cafonsomota.medium.com/android-12-dont-forget-to-set-android-exported-on-your-activities-services-and-receivers-3bee33f37beb
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Android manifest declaration for com.github.moduth.blockcanary.ui.DisplayActivity and review how the library packages it. Check the Android 12 requirement described in the issue, then build the library or a sample app targeting Android 12. Done means the target build succeeds without the exported-attribute error and the activity declaration remains valid.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100