Skip to content

fix: add Exported = true to MainActivity to fix Android TV build failure (XAAMM0000) (backport #2199) - #2208

Merged
kazo0 merged 1 commit into
release/stable/6.7from
mergify/bp/release/stable/6.7/pr-2199
Aug 11, 2026
Merged

kazo0 merged 1 commit into
release/stable/6.7from
mergify/bp/release/stable/6.7/pr-2199

Conversation

@mergify

@mergify mergify Bot commented Aug 11, 2026

Copy link
Copy Markdown

When the Android TV feature is enabled, MainActivity gains an explicit [IntentFilter]. The .NET Android tooling only auto-injects android:exported="true" when it synthesizes the launcher intent-filter itself; with an explicit [IntentFilter], the attribute is absent, and the manifest merger rejects it on targetSdkVersion >= 31.

PR Type

  • Bugfix

What is the current behavior?

dotnet build on an Android TV–enabled project fails at the manifest merge step:

error XAAMM0000: android:exported needs to be explicitly specified for element
<activity#...MainActivity> when the corresponding component has an intent filter defined.

What is the new behavior?

Exported = true is set on [Activity], ensuring android:exported="true" is always emitted regardless of which [IntentFilter] blocks are present:

[Activity(
    MainLauncher = true,
    ConfigurationChanges = global::Uno.UI.ActivityHelper.AllConfigChanges,
    WindowSoftInputMode = SoftInput.AdjustNothing | SoftInput.StateHidden,
    Exported = true          // <-- added
)]
#if useAndroidTV
[IntentFilter(...)]
#endif

PR Checklist

  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

…id TV

Co-authored-by: MartinZikmund <[email protected]>
(cherry picked from commit fb89b81)
@kazo0
kazo0 enabled auto-merge (rebase) August 11, 2026 17:52
@kazo0
kazo0 merged commit 6b6a66c into release/stable/6.7 Aug 11, 2026
83 checks passed
@kazo0
kazo0 deleted the mergify/bp/release/stable/6.7/pr-2199 branch August 11, 2026 20:10
NoobNotFound pushed a commit to RiversideValley/Emerald that referenced this pull request Sep 7, 2026
Updated [Uno.Sdk](https://github.com/unoplatform/uno.templates) from
6.6.42 to 6.7.22.

<details>
<summary>Release notes</summary>

_Sourced from [Uno.Sdk's
releases](https://github.com/unoplatform/uno.templates/releases)._

## 6.7.22

## What's Changed
* Uno.Sdk Update - release/stable/6.7 by @​unodevops in
unoplatform/uno.templates#2233
* Uno.Sdk Update - release/stable/6.7 by @​unodevops in
unoplatform/uno.templates#2236


**Full Changelog**:
unoplatform/uno.templates@6.7.18...6.7.22

## 6.7.18

## What's Changed
* Version bump after 6.6 release branch by @​agneszitte in
unoplatform/uno.templates#2080
* ci: Add release/stable/6.6 to workflow triggers by @​agneszitte in
unoplatform/uno.templates#2082
* fix: revert Android TV packages and downgrade UnoVersion to
6.6.0-dev.1399 by @​agneszitte in
unoplatform/uno.templates#2086
* feat: make Shell opt-in by @​rajamatt in
unoplatform/uno.templates#2074
* docs: add AndroidX Leanback, CarApp, Wear, WearTiles version entries
to ReadMe files by @​agneszitte in
unoplatform/uno.templates#2088
* feat: Enhance navigation initialization for shell support in App class
by @​kazo0 in unoplatform/uno.templates#2093
* fix: revert Themes version to dev.28 to unblock uno CI by @​agneszitte
in unoplatform/uno.templates#2098
* chore: update UnoVersion/Core to 6.7.0-dev.57 by @​agneszitte in
unoplatform/uno.templates#2099
* docs: update ReadMe.md Extensions version to 7.3.0-dev.17 by
@​agneszitte in unoplatform/uno.templates#2100
* chore: update Toolkit to 9.0.0-dev.3 and Themes to 7.0.0-dev.31 by
@​agneszitte in unoplatform/uno.templates#2101
* chore: make simple theme default and change icon by @​rajamatt in
unoplatform/uno.templates#2084
* chore: Bump UnoVersion to 6.7.0-dev.79 by @​agneszitte in
unoplatform/uno.templates#2103
* chore: bump UnoVersion to 6.7.0-dev.96 by @​agneszitte in
unoplatform/uno.templates#2107
* chore: bump UnoVersion to 6.7.0-dev.97 by @​agneszitte in
unoplatform/uno.templates#2108
* chore: bump UnoVersion to 6.7.0-dev.98 by @​agneszitte in
unoplatform/uno.templates#2109
* docs: Document WinAppSdkBuildToolsWinAppVersion in Uno.Sdk ReadMe by
@​MartinZikmund in
unoplatform/uno.templates#2137
* chore: Remove deprecated Uno.WinUI.Runtime.Skia.Wpf package reference
by @​Xiaoy312 in unoplatform/uno.templates#2139
* feat: Add README.md in Windows folder by @​MartinZikmund in
unoplatform/uno.templates#2111
* fix(sdk): pin SkiaSharp to 3.119.2 and exclude it from auto-update
(iOS <26.2) by @​agneszitte in
unoplatform/uno.templates#2159
* fix(ci): give tag-release a .NET 10 runtime for nbgv by @​agneszitte
in unoplatform/uno.templates#2169
* feat(unoapp): add Android TV / Auto / Wear OS opt-ins by
@​MartinZikmund in
unoplatform/uno.templates#2072
* fix(ci): Harden + fail-fast the nuget.org publish gate for Uno.* deps
by @​agneszitte in
unoplatform/uno.templates#2181
* ci(templates): Prioritize release path; gate nuget.org on publish,
advise on PRs by @​agneszitte in
unoplatform/uno.templates#2184
* ci(templates): Verify deps inside the publish jobs; release tests run
before the public publish by @​agneszitte in
unoplatform/uno.templates#2188
* chore: Add release/stable/6.7 branch to update matrix by @​kazo0 in
unoplatform/uno.templates#2195
* Uno.Sdk Update - release/stable/6.7 by @​unodevops in
unoplatform/uno.templates#2198
* Uno.Sdk Update - release/stable/6.7 by @​unodevops in
unoplatform/uno.templates#2200
* Uno.Sdk Update - release/stable/6.7 by @​unodevops in
unoplatform/uno.templates#2201
* Uno.Sdk Update - release/stable/6.7 by @​unodevops in
unoplatform/uno.templates#2204
* fix: add `Exported = true` to `MainActivity` to fix Android TV build
failure (`XAAMM0000`) (backport #​2199) by @​mergify[bot] in
unoplatform/uno.templates#2208
* fix(sdk): Align AndroidX.Wear pins (unoplatform/uno#​23991) (backport
#​2206) by @​mergify[bot] in
unoplatform/uno.templates#2210
* Uno.Sdk Update - release/stable/6.7 by @​unodevops in
unoplatform/uno.templates#2207
* Uno.Sdk Update - release/stable/6.7 by @​unodevops in
unoplatform/uno.templates#2214
* Uno.Sdk Update - release/stable/6.7 by @​unodevops in
unoplatform/uno.templates#2217
* Uno.Sdk Update - release/stable/6.7 by @​unodevops in
unoplatform/uno.templates#2221
* Uno.Sdk Update - release/stable/6.7 by @​unodevops in
unoplatform/uno.templates#2230

## New Contributors
* @​Xiaoy312 made their first contribution in
unoplatform/uno.templates#2139

**Full Changelog**:
unoplatform/uno.templates@6.6.42...6.7.18

Commits viewable in [compare
view](unoplatform/uno.templates@6.6.42...6.7.22).
</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

2 participants