Skip to content

Update aapt2 binaries.#4119

Merged
IgorEisberg merged 5 commits intomainfrom
aapt-updates-apr9
Apr 13, 2026
Merged

Update aapt2 binaries.#4119
IgorEisberg merged 5 commits intomainfrom
aapt-updates-apr9

Conversation

@iBotPeaches
Copy link
Copy Markdown
Owner

@iBotPeaches iBotPeaches commented Apr 9, 2026

This upgrades our aapt2 native binaries to this version of frameworks_base - https://github.com/iBotPeaches/platform_frameworks_base/tree/apktool-3.0.2

This is in order to fix some compilation with #4096

fixes: #4096

@IgorEisberg
Copy link
Copy Markdown
Collaborator

Interesting. Tests passed for me locally on Windows. Was code synced properly for Linux or OSX?

@iBotPeaches
Copy link
Copy Markdown
Owner Author

It looks like mac failed then rest failed, I haven't done mac yet. So too soon to tell I guess.

@iBotPeaches
Copy link
Copy Markdown
Owner Author

Struggling to build AOSP again :/ - becoming a constant struggle.

Cleaned my trees and everything.

panic: Missing config trunk_staging.  Trace=[trunk_staging]

goroutine 1 [running]:
main.main()
	build/soong/cmd/release_config/release_config/main.go:71 +0x14c5
In file included from build/make/core/config.mk:419:
In file included from build/make/core/envsetup.mk:51:
build/make/core/release_config.mk:142: error: release-config failed to run.
19:33:38 dumpvars failed with: exit status 1

#### failed to build some targets (2 seconds) ####

bash-3.2$ 

@IgorEisberg
Copy link
Copy Markdown
Collaborator

Eh well, Google stopped supporting building AOSP on macOS since 2021, so having that kind of support here is definitely going to be a challenge. I never even attempted.

@iBotPeaches
Copy link
Copy Markdown
Owner Author

I guess I'm confused how they are releasing Android Studio native aapt2 builds when tools on aosp hasn't built easily on Mac in years.

@HassanMirza01
Copy link
Copy Markdown

Struggling to build AOSP again :/ - becoming a constant struggle.

Cleaned my trees and everything.

panic: Missing config trunk_staging.  Trace=[trunk_staging]

goroutine 1 [running]:
main.main()
	build/soong/cmd/release_config/release_config/main.go:71 +0x14c5
In file included from build/make/core/config.mk:419:
In file included from build/make/core/envsetup.mk:51:
build/make/core/release_config.mk:142: error: release-config failed to run.
19:33:38 dumpvars failed with: exit status 1

#### failed to build some targets (2 seconds) ####

bash-3.2$ 

use lunch aosp_arm64-aosp_current-eng, will succeed

@iBotPeaches
Copy link
Copy Markdown
Owner Author

Thanks. I didn't have much luck, shoved Claude Code at it and got a binary.

bash -lc 'source build/envsetup.sh >/dev/null && lunch aosp_arm64 bp2a eng >/dev/null && m --skip-soong-tests aapt2'

It generated that which worked on my M4 Pro on 26. I'm testing it out now.

@iBotPeaches iBotPeaches marked this pull request as ready for review April 13, 2026 12:47
@iBotPeaches iBotPeaches changed the title Update aapt binaries. Update aapt2 binaries. Apr 13, 2026
@iBotPeaches iBotPeaches requested a review from IgorEisberg April 13, 2026 13:41
@IgorEisberg IgorEisberg enabled auto-merge (squash) April 13, 2026 19:15
Copy link
Copy Markdown
Collaborator

@IgorEisberg IgorEisberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done mate.

@IgorEisberg IgorEisberg merged commit e9ed34f into main Apr 13, 2026
18 checks passed
@IgorEisberg IgorEisberg deleted the aapt-updates-apr9 branch April 13, 2026 19:17
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.

[BUG] Apktool 3.0.1 fails to rebuild Instagram 417 base (aapt2 layout reference error)

3 participants