mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:45:22 +00:00
[GH-ISSUE #1813] [Design] Android split APK sets: set identity and relationship evidence before a bundletool lane #612
Open
opened 2026-10-15 18:26:37 +00:00 by bsakaguchi
·
4 comments
No Branch/Tag specified
main
codex/procedure-reference-stacked
release-please--branches--main--components--rea-agents
release-please--branches--main--components--rea-agents--release-notes
codex/kuna-independent-retry
codex/byte-search-overlay-coverage
codex/open-failure-target-receipt
codex/kuna-xref-evidence
codex/ghidra-ambiguous-procedure-recovery
codex/function-source-bundle
codex/trace-function-integration-prototype
codex/snapshot-source-closure
codex/recorded-evidence-array-pages
codex/evidence-recovery-redesign
codex/trace-feature-address-scope
codex/call-discovery-scope
codex/ghidra-literal-candidate-evidence
codex/decompile-directory-independent-retry
codex/retry-provenance-base
codex/value-flow-capability-experiment
codex/ghidra-containing-instruction
cursor/readme-discord-button-ef9f
dependabot/github_actions/actions/setup-node-7.1.0
dependabot/github_actions/actions/upload-artifact-7.0.2
dependabot/npm_and_yarn/npm-minor-and-patch-d8d97ce6df
codex/kuna-1989
fix/8559-native-ui-fixture-ownership
fix/8555-go-verifier-mcp-ownership
codex/provider-capability-recovery
fix/8642-rizin-target-stdin
codex/ghidra-memory-effect-scope
codex/ghidra-annotation-entry-selector
codex/ghidra-readonly-recovery
codex/ghidra-regex-verifier-recovery
codex/evidence-discovery-view-guidance
fix/8545-bulk-append-overflow
fix/8428-navigation-refusal-alternatives
codex/address-context-recovery
codex/matching-member-limitations
codex/unknown-scope-contract
codex/evidence-view-guidance
feat/8373-native-trace-views
codex/ghidra-snapshot-verifier-binding
codex/elf-export-visibility
codex/evidence-view-recovery
codex/native-reference-cli-help
codex/provider-candidate-observation-scope
codex/kuna-session-verification
codex/ghidra-switch-lifetime-guidance
codex/pseudocode-paging-discovery
codex/clarify-evidence-view-support
codex/kuna-xrefs-selector-recovery
codex/context-capacity-recovery
codex/evidence-closure-large-links
codex/same-function-evidence-identity
codex/ghidra-verifier-inspected-jdk
codex/audit-guided-workflows
codex/crash-prompt-retained-dossiers
codex/analysis-view-error-recovery
codex/kuna-verifier-target-selection
codex/ghidra-selected-project-call-coverage
codex/docs-native-analysis-scope
codex/ghidra-java-socket-boundary
codex/ghidra-retained-snapshot-verifier
codex/ghidra-search-inventory-facts
fix/8284-zero-argument-parameter-bindings
fix/8198-ui-action-handler-offset
fix/8257-elf-entry-label-identity
fix/8304-deferred-output-schema-projection
fix/8277-call-path-computed-target-uncertainty
fix/pr-8089-conflicts
fix/ci-static-duplicate-export
dependabot/npm_and_yarn/lint-staged-17.6.0
dependabot/github_actions/actions/download-artifact-8.0.2
dependabot/npm_and_yarn/write-file-atomic-8.0.0
dependabot/npm_and_yarn/canonicalize-5.1.0
dependabot/github_actions/actions/cache/restore-6.1.0
dependabot/npm_and_yarn/toon-format/toon-4.4.0
dependabot/github_actions/actions/deploy-pages-5.0.1
codex/review-fixes-pr-2403
codex/review-fixes-pr-2400
codex/process-terminal-width
codex/test-brittleness-cleanup
verify/7167-browser-connect-macos
fix/7167-browser-connect
feat/native-matching-allowance-setting
feat/browser-scenario-dry-run
test/managed-caller-parameters-20261024
codex/parser-fortythird-boundaries
fix/6926-pinvoke-platform-decorations-20261023
fix/6889-har-body-encoding-20261023
fix/6888-sqlite-schema-budget-20261023
fix/dependency-security-gates-6708
cursor/evidence-overwrite-rebase-b4ac
feat/4057-verify-native-exports
fix/windows-acl-observer-overhead-20261022
cursor/erlang-beam-restack-4476
cursor/pe-certificate-review-bf32
fix/6116-javascript-application-fs-errors
fix/6061-unmapped-runtime-script-unknown
feat/browser-scenario-summary
fix/pe-certificates
codex/verify-3407
cursor/rebase-5699
cursor/rebase-5352
cursor/rebase-5600
cursor/fix-cli-schema-omission-10a8
codex/audit-hopper-shutdown-reasons-20261021
fix/demangle-swift-omitted-record
fix/nib-boolean-value-types
cursor/cancellation-partial-observation-a5ac
fix/ib-object-limit-reasons
fix/electron-fuse-limit-advice
fix/kuna-doctor-dangling-cache
fix/fixed-budget-refusal-advice
fix/js-ipc-listener-dedup
fix/js-return-member-provenance
fix/dmg-integrity-retry-advice
fix/ida-doctor-readiness
fix/kuna-version-probe-output-drain
fix/legacy-swift-runtime-name-matching
fix/dylib-lazy-load-commands
fix/browser-scenario-startup-cancel
fix/swift-nested-punycode-classification
fix/compare-unselected-scopes
fix/objc-method-budget-coverage
fix/dmg-mounted-root-observations
audit/ci-tests-20261019-round2
release/6.7.0
fix/wabt-cleanup-retry-resolution
fix/electron-fuse-elf-pe-architecture
fix/native-plist-descriptor-ownership
fix/kuna-caller-cleanup-ownership
experiment/atomic-codemode-20261016
review/first-contributor-3776
fix/call-resolution-full-read-cycles
fix/member-mutation-selection-repeat
experiment/atomic-re-tools-20261015
perf/member-mutation-lazy-origins
perf/static-network-mutation-index
fix/hopper-startup-lifecycle
audit/3050-windows-proof-20261015
feat/windows-window-capture-2183
audit/3049-windows-proof-20261015
audit/3735-macos-fixtures-20261015
fix/batch-decompile-null-pseudocode
fix/kuna-inventory-honors-jobs
experiment/browser-codemode-tool-design-20261015
fix/hopper-clean-runtime-argv
codex/review-2049-27f1b367
review-fixes/pr-2787-routing
fix/3360-scoped-this-emitters
fix/3367-replaced-global-effects
fix/3838-compact-any-value-items
test/hopper-download-probe-20261015
codex/windows-runtime-creation-red-green-20261015
codex/windows-readonly-root-red-green-20261015
codex/windows-root-share-red-green-20261015
codex/exp-1685-win-mcp-startup
codex/bug-sweep-20261015
investigate/2190-windows-package-phases
investigate/3543-macos-cli-deadline
perf/3281-reverse-tools-feedback-quality
fix/3406-hopper-doctor-fixture
fix/3341-wrapper-require-test-context
fix/3301-owned-uninstall-fixtures
fix/3164-compiler-input-ownership
fix/pcap-cleanup-stdout-newline-20261014
perf/interface-builder-summary
codex/review-fixes-pr-1977
fix/ghidra-effective-jvm-platform
fix/docs-turkish-rust-link-20261013
fix/main-maintenance-ci-20261010
fix/recover-binary-session-process-effects
codex/review-fixes-pr-2457
codex/ci-required-cancellation-gate
fix/main-format-baseline-20261013
fix/setup-preserve-entry-fields
cursor/restore-main-checks-1ffc
fix/ghidra-bridge-hashmap-import
codex/shared-ci-jadx-json-default-20261013
codex/shared-ci-ghidra-test-groups-20261013
codex/shared-ci-java-fixture-format-20261013
codex/fix-intrinsic-invocation-boundaries
test/release-preflight-reusable-jobs
test/js-parameter-provenance-expectation
fix/linux-hopper-verification-current
test/2419-ghidra-elf-probe-size
followup/pr-1544-native-ida
codex/fold-pr-2230-contribution
docs/readme-responsible-use
fix/issue-2064
fix/issue-2050
fix/issue-2053
fix/issue-1968
fix/issue-1945
experiment/codemode-bridge-20261011
fix/tool-effects-negative-wording-1904-20261012
fix/1842-electron-interop-provenance
feat/recover-javascript-multi-input
refactor/website-i18n-prep
fix/nativeaot-pe-virtual-extent
fix/browser-verifier-ci-hang
fix/pe-resources-input-selection
docs/beginner-friendly-guides
docs/beginner-setup-guide
fix/javascript-analysis-worker-1563
fix/1649-ghidra-duplicate-names
fix/javascript-export-keys-integration-1369
test/maintenance-boundary-contracts-20261011
review/javascript-export-keys-1369
review/process-live-progress-1483
test/javascript-1495-growth-ratio
fix/ci-escape-timing
docs/normalized-terminal-geometry-1450
release/6.3.0
archive/release-6.3.0-pr1381
release/6.2.0
fix/electron-preload-dynamic-override
fix/javascript-self-referential-bundler-edges
release/6.1.0
cursor/grok-client-cherry-pick-0b56
feat/signature-posture
feat/dyld-shared-cache
feat/artifact-integrity-policy
feat/pkg-inventory
release/6.0.0
chore/sync-release-5.0.0
release/5.0.0
cursor/cloud-agent-node-787e
fix/javascript-xhr-open-endpoints
review/pr-711-realpath-fallback-wording
cleanup/replay-confinement
codex/test-suite-performance
codex/issue-foundations
codex/address-open-issues-2026-07-20
agent/javascript-vite-rollup-esbuild-adapters
agent/process-cleanup
agent/triage-integration
agent/unknown-commands-registry
feat/mcp-identity-metadata
morlvps/issue_cleanup
codex/installer-redesign
morl/roadmap-investigation-core
morl/roadmap-investigation-docs
release-please--branches--main--components--rea
rea-agents-6.8.0
rea-agents-6.7.0
rea-agents-6.6.0
experiment/atomic-codemode-wait-runtime-20261016
rea-agents-6.5.0
rea-agents-6.4.0
rea-agents-6.3.0
rea-agents-6.2.0
rea-agents-6.1.0
rea-agents-6.0.0
rea-agents-5.0.0
rea-agents-4.1.0
rea-agents-4.0.1
rea-agents-4.0.0
rea-agents-3.2.1
rea-agents-3.2.0
rea-agents-3.1.0
rea-agents-3.0.0
rea-agents-2.7.0
rea-agents-2.6.0
rea-agents-2.5.1
rea-agents-2.5.0
rea-agents-2.4.0
rea-agents-2.3.0
rea-agents-2.2.0
rea-agents-2.1.0
rea-agents-2.0.0
rea-agents-1.7.0
rea-agents-1.6.0
rea-agents-1.5.0
rea-agents-1.4.0
rea-agents-1.3.0
rea-agents-1.2.0
rea-agents-1.1.0
rea-agents-1.0.0
rea-agents-0.5.0
rea-agents-0.4.0
rea-agents-0.3.0
rea-0.2.1
rea-0.2.0
Labels
Clear labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
Mirrored from GitHub Pull Request
question
roadmap
triage
No labels
area: bridge
area: bridge
area: build
area: build
area: build
area: cli
area: domain
area: evidence
area: mcp
area: native
area: providers
area: runtime
area: server
area: setup
area: tests
bug
design
documentation
enhancement
enhancement
enhancement
experiment
help wanted
i18n
invalid
P0: critical
P1: high
P2: medium
P2: medium
P2: medium
P3: low
performance
provider-request
pull-request
question
roadmap
triage
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
morluto/rea#612
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cevieiras on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/1813
Decision needed
Should REA give an Android split APK set its own identity and relationship evidence, starting with a check that needs no new external tool, before adding a bundletool lane for AAB/APKS?
Concretely: is a caller-selected set of APKs (
base.apkplussplit_config.*/ feature splits, aspull_adb_packagealready acquires them) a first-class analysis input whose members, roles and consistency are reported with explicit evidence and unknowns, rather than being analyzed as unrelated files?This is the "AAB/APKS/base/split relationships" follow-up in #717. It narrows that item to the part that can be decided now.
Context and evidence
Observed on
mainate4407dbed:pull_adb_packagepulls the complete set reported bypm pathand digests each file.adb-device-analysis.mdbase/split/unknown, derived only from the file name; reported asrole_basis: file_name.parsePmPathOutputtarget.apk; identity is that one file's SHA-256.snapshotAndroidTargetapktool-resource-analysis.md.aabis a ZIP, not an APK.android-analysis.mdConsequence: analyzing
base.apkalone omits resources, native libraries and (for dynamic feature modules) DEX that live in other members, and the Evidence does not say so.Prototype (derived, author-run)
I built a local prototype to test whether the first step is tractable before proposing it. It is not published; I can push it to a fork branch if that helps review. It is organized as four small stacked changes with no new tool surface:
AndroidManifest.xml(package,versionCode/versionCodeMajor,split,configForSplit,isFeatureSplit,isolatedSplits,targetSandboxVersion,uses-sdk,isSplitRequired);aapt2(base, ABI/language/density config splits, a feature split and its config split, version-mismatch and missing-parent variants);lib/<abi>/paths from an APK throughZipArtifactReader.What it established:
aapt2 linkacceptssplit,configForSplitandisFeatureSplit; the framework resource ids matchaapt2 dump xmltreeoutput.isSplitRequiredis declared on<application>, not on<manifest>.versionCodeMajor(API 28+) must be read, otherwise two different effective versions can look equal.attributeStartcan read facts from a following chunk.ZipArtifactReader.entries()can surface bareErrorinstances from zip.js (for example "File format is not recognized") next to its typedArtifactReaderFailure.Verification so far: 42 unit tests,
tsc, lint, module boundaries and test discovery pass on top ofmain; two guards were mutation-checked. Not verified: real-world manifests from large applications, the numeric limits (they are starting points, not measurements), and any provider other thanaapt2-built fixtures.Boundary and invariants
src/domain/android/); the binary-XML reader and the ZIP adapter are artifact readers (src/artifacts/android/). No provider process is needed for an installed split set.isFeatureSplitis marked as derived, not observed;lib/<abi>/names are path-level evidence, not confirmed from ELF headers.unknown, never "consistent".not_performedand belongs to a separate bring-your-ownapksignerlane.Options and tradeoffs
B and D are complementary: B covers what ADB acquisition already delivers; a read-only bundletool lane (
inspect-style, AAB/APKS only) can follow for the formats B cannot read.build-apks/extract-apks/install-apksproduce artifacts or touch a device and would need their own design with explicit module and device-spec selection.Success criteria and open questions
The decision is settled when maintainers agree on (a) whether set identity belongs in REA, (b) where its public surface lives, and (c) the order B → bundletool.
Open questions that could change the choice:
inspect_android_split_set, or extendinspect_android_packageto accept a set? Extending changes the retained-session target identity of the JADX lane.src/artifacts/android/acceptable, or should manifest facts come from an existing provider (JADX/Apktool) per member? The reader is cheap and bounded; a provider reuses decoded semantics but is heavy per member.pull_adb_package's file-namerolestay as an inference superseded by the manifest-based role in the new result, or be enriched in place?REA_JADX_MCP_JAR) plus the existing JDK resolution, or an Apktool-style launcher variable?I am happy to implement this in small, independently verifiable pull requests once the surface question is settled, and to coordinate with whoever picks up the ABI and signing slices.
References
docs/android-analysis.md,docs/adb-device-analysis.md,docs/apktool-resource-analysis.mdsrc/artifacts/ZipArtifactReader.tsaapt2, bundletool@tackyou0-dev commented on GitHub (Oct 12, 2026):
REA #1813 - split APK set-20261012T062206Z-1-001.zip
@cevieiras commented on GitHub (Oct 14, 2026):
The stack is now rebased on current
mainand passesnpm run checkat each branch tip: set check, manifest reader, fixtures and tests, APK adapter. None adds a tool surface.I have opened the first two PRs (set check: #3495, manifest reader: #3496) as independent, no-surface changes so they can be reviewed in parallel. #3496 is a draft stacked on #3495 and will be rebased once that lands. The fixtures and APK adapter stay on hold until questions 1 and 4 are settled.
@Rinkia commented on GitHub (Oct 14, 2026):
A real-world data point for the "not verified: real-world manifests from large applications" gap, plus one input-format observation.
rea-agents@6.5.0, Linux x64 Docker.Target: tinyCam Monitor 19.0.3 (
com.alexvas.dvr, versionCode 70120), a Google Play build downloaded as an APKMirror.apkmbundle (sha25615b59a9e302a2976069a6e5fe3a321cf9474dade790cada825a8131f2ceeb9aa). Proprietary app, so only manifest metadata is quoted here. 21 member APKs:base.apk(10.9 MB, 12,463 classes), 2 ABI splits (82.5 MB arm64, 48 MB armv7), 2 density splits and 16 language splits.Manifest facts across all 21 members
Read per member with the existing JADX lane (
inspect-android-packageon each extracted APK): 21/21 succeeded, 79 s in total (about 3–8 s per member).splitandroid:splitTypesversionCodeconfigForSplit/isFeatureSplit/isSplitRequired/versionCodeMajorderived.apk.id""config.de,config.es, …""config.arm64_v8a,config.armeabi_v7abase__abiconfig.xxhdpi,config.xxxhdpibase__densityWhat differs from the prototype's attribute list:
isSplitRequired. It hasandroid:requiredSplitTypes="base__abi,base__density"on<manifest>(Android 14 split types), and<application>has noisSplitRequired. Play also adds meta-data:com.android.vending.splits.required=true,com.android.vending.splits→@xml/splits0(a resource listing the expected splits), andcom.android.vending.derived.apk.id=2.split="config.*"plussplitTypes, but noconfigForSplit. Their role (ABI, density or language) is declared throughsplitTypes, except language splits, which use"", the same as the base.<application android:hasCode="false">.For the proposed set check,
requiredSplitTypesversus the union of membersplitTypescould be an observed coverage fact. Here the base requiresbase__abiandbase__density, and the set provides both, while language coverage isn't expressible through split types.derived.apk.idagreement across members may also be a useful consistency signal, though I don't know Play's guarantees for it.Input-format observation: third-party bundle containers
The set arrived as an APKMirror
.apkm: a ZIP containing the 21 APKs plusinfo.json(apkm_version: 5,pname,versioncode,variant,languages,capabilities),icon.png,APKM_installer.url, and aMETA-INF/APKMIRRO.SF/.RSAsignature over the container, not over the APKs. Current behavior:inspect-android-packageon the.apkm: a clear refusal, "Target … is zip; provide one standalone APK".inspect-artifacton the.apkm: oneroot-manifestobservation, with emptyhypotheses,unexplored_branchesandnext_probes, so nothing indicates that it holds a split set..apkm,.xapkand.apksare how many people obtain split sets without ADB. Even if the set check only accepts caller-selected member APKs (option B), it might help ifinspect_artifactrecognised these containers and pointed to the member APKs as the selection, while recording the container's metadata as unverified provenance rather than as evidence of set membership.On open question 2 (manifest source): the JADX lane already gives every member's decoded manifest text at a moderate cost (79 s for 21 members here, dominated by JVM startup and APK load). A pure reader would avoid that cost, but the per-member provider route works today, if a comparison point is useful.
@cevieiras commented on GitHub (Oct 15, 2026):
Thank you for the real-world data point, this is exactly the gap the issue listed as not verified.
A few things I take from it:
splitbut neitherconfigForSplitnorisFeatureSplitis what the set check already models: it is read as a config split for the base, with the role marked as derived from the platform default rather than observed. Your table fits that case, so the roles should come out as expected for the 21 members.requiredSplitTypes/splitTypes. The manifest reader in #3496 does not read these yet, and I agree they look like observed coverage facts: the base's required types compared with the union of the members' declared types, reported asunknownwhen a member's attribute is unresolved. I would keep it as a follow-up to #3495/#3496 so those two stay small, and I would not claim anything about language coverage, sincesplitTypescannot express it.derived.apk.idand the listed splits resource) is a vendor convention. I would record it as an observed value at most, not as evidence of set membership, until its guarantees are known..apkm,.xapk,.apks). I agree that recognising them ininspect_artifactand pointing at the member APKs would help. I would treat anything in the container's own metadata as unverified provenance, and keep it separate from the set check. That depends on the surface question (question 1), so I will leave it for the maintainers to place.On question 2: thanks for the timing. The per-member provider route clearly works today; the pure reader trades the JVM and APK-load cost for a small bounded parser, and I will keep both options visible in the discussion rather than assume one.
If you can share the manifest facts for the
baseand one config split in raw form (attribute names and values only, no identifiers you do not want public), I can turn them into a synthetic fixture for the reader tests.