Skip to content

fix(main/termux-am): build with hardened apparmor profile#29121

Draft
thunder-coding wants to merge 4 commits into
masterfrom
aapt-fixup
Draft

fix(main/termux-am): build with hardened apparmor profile#29121
thunder-coding wants to merge 4 commits into
masterfrom
aapt-fixup

Conversation

@thunder-coding
Copy link
Copy Markdown
Member

@thunder-coding thunder-coding commented Mar 27, 2026

Ignore the branch name, and just focus on the title.

Fixes #29118

@thunder-coding thunder-coding changed the title fix(main/aapt): build with hardened apparmor profile fix(main/termux-am): build with hardened apparmor profile Mar 27, 2026
@thunder-coding
Copy link
Copy Markdown
Member Author

Seems like aapt does need android-35 now? Not sure, so leaving this as draft. Will explore further if we can get it building with older platform later on. But this should fix builds for termux-am atleast

termux-am tries to use newer build tools version 33.0.3, so install it
Also it needs android-33 platform

We need them installed or else it'll fail to build due to AppArmor
hardening locking ~/lib/ directory as read only.
@robertkirkman
Copy link
Copy Markdown
Member

If you are trying to build aapt in this PR, you might need to include content from this PR:

also, I am trying to work on further revisions I want to make to that aapt PR, but I haven't finished yet unfortunately.

@thunder-coding
Copy link
Copy Markdown
Member Author

If you are trying to build aapt in this PR, you might need to include content from this PR:

* [aapt: Bump to buildtools 35.0.2 #28994](https://github.com/termux/termux-packages/pull/28994)

I'll wait for the PR to be merged then

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

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

[Bug]: termux-am fails to build after the enablement of AppArmor

2 participants