Repository navigation
fix: add Exported = true to MainActivity to fix Android TV build failure (XAAMM0000) - #2199
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2 tasks
…id TV Co-authored-by: MartinZikmund <[email protected]>
Copilot
AI
changed the title
[WIP] Fix Android build failure due to missing android:exported
fix: add Aug 6, 2026
Exported = true to MainActivity to fix Android TV build failure (XAAMM0000)
MartinZikmund
approved these changes
Aug 7, 2026
MartinZikmund
marked this pull request as ready for review
August 7, 2026 08:04
ajpinedam
approved these changes
Aug 7, 2026
|
Tick the box to add this pull request to the merge queue (same as
|
Contributor
|
@Mergifyio backport release/stable/6.7 |
✅ Backports have been createdDetails
|
1 task done
This was referenced Nov 11, 2026
This was referenced Nov 16, 2026
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the Android TV feature is enabled,
MainActivitygains an explicit[IntentFilter]. The .NET Android tooling only auto-injectsandroid:exported="true"when it synthesizes the launcher intent-filter itself; with an explicit[IntentFilter], the attribute is absent, and the manifest merger rejects it ontargetSdkVersion >= 31.PR Type
What is the current behavior?
dotnet buildon an Android TV–enabled project fails at the manifest merge step:What is the new behavior?
Exported = trueis set on[Activity], ensuringandroid:exported="true"is always emitted regardless of which[IntentFilter]blocks are present:PR Checklist
Other information
Internal Issue (If applicable):