Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
fba3f43
ci: add ART fieldwatch JIT-boundary emulator smoke harness
mnalmahmud Nov 19, 2026
bc1ff41
ci: avoid setup-android legacy tools package failure on hosted runners
mnalmahmud Nov 19, 2026
134a270
ci: use setup-android v4 with valid SDK package identifiers
mnalmahmud Nov 19, 2026
8238ae6
ci: exercise arm64 ART JIT hook in PR test run
mnalmahmud Nov 19, 2026
3e10339
ci: isolate risky deep ART symbol discovery from x86 smoke tests
mnalmahmud Nov 19, 2026
d1a193d
ci: fix ARM64 runner label and gate experimental emulator job
mnalmahmud Nov 19, 2026
56929c3
ci: capture Frida console logs in smoke test assertions
mnalmahmud Nov 19, 2026
cf6bdb3
research: inspect ART JIT exports safely on both x86_64 emulator prof…
mnalmahmud Nov 19, 2026
13ebe09
research: trace exported ART JIT compilation boundaries on x86_64 and…
mnalmahmud Nov 19, 2026
42f4f80
fix: observe ordinary ART JIT worker boundary and resolve compiler vi…
mnalmahmud Nov 19, 2026
9c3bb6e
test: require observed ART JIT callbacks at internal and compiler bou…
mnalmahmud Nov 19, 2026
9ad8a14
ci: make x86_64 smoke verify executed ART JIT boundaries
mnalmahmud Nov 19, 2026
ab91284
research: capture on-device ART ELF symbol and build-id evidence in CI
mnalmahmud Nov 19, 2026
358310f
ci: gather ART ELF symbol inventory before Frida compilation test
mnalmahmud Nov 19, 2026
17eca7e
fix: avoid in-process export enumeration and use exact ART symbols
mnalmahmud Nov 19, 2026
b3ec348
test: require compiler callbacks on API 33 without missing internal e…
mnalmahmud Nov 19, 2026
9f7e34b
research: observe API 33 HGraphBuilder and pre-optimization boundaries
mnalmahmud Nov 19, 2026
1655726
research: observe ART instance-field DEX builds against live HGraph o…
mnalmahmud Nov 19, 2026
869560b
ci: enable KVM and fail fast instead of looping on emulator 37.3 boot
mnalmahmud Nov 19, 2026
d773bb8
fix: use API33 confirmed BuildInstanceFieldAccess ELF signature
mnalmahmud Nov 20, 2026
376f3f5
research: inspect field HInstruction append pointers and candidate vt…
mnalmahmud Nov 20, 2026
1f9b928
research: observe field IR through basic-block insertion and virtual …
mnalmahmud Nov 20, 2026
bf8721a
research: track FieldIRTarget get/set IR nodes and candidate LSE remo…
mnalmahmud Nov 20, 2026
ff1465f
research: verify load-store elimination in non-debuggable optimized A…
mnalmahmud Nov 20, 2026
da99d14
ci: fix release target-SDK lint and make field DEX fingerprint index-…
mnalmahmud Nov 20, 2026
2d37ccb
research: compare shipped DEX and observe field mutation boundaries a…
mnalmahmud Nov 20, 2026
d055b6b
research: retain release DEX iget through identity helper and inspect…
mnalmahmud Nov 20, 2026
c0ff3e8
research: assert exact LSE-eliminated HInstanceFieldGet never reaches…
mnalmahmud Nov 20, 2026
d639173
docs: design side-effecting compiler IR field events and safety gates
mnalmahmud Nov 20, 2026
f97296e
research: add passive build-ID-gated native ART shadow observer source
mnalmahmud Nov 20, 2026
506354e
ci: wire passive native ART shadow observer into API33 JIT smoke
mnalmahmud Nov 20, 2026
a2ab1e2
ci: ignore expected sdkmanager license-input SIGPIPE after NDK installed
mnalmahmud Nov 20, 2026
ce3cbec
ci: package native P1 shim in APK and resolve app-loaded library
mnalmahmud Nov 20, 2026
d8a47af
fix: accept Android ART 16-byte GNU build IDs in native shadow gate
mnalmahmud Nov 20, 2026
241f429
test: diversify and stage release JIT field-load elimination workloads
mnalmahmud Nov 20, 2026
5edf25d
research: add native per-compilation field IR visitor inventory witho…
mnalmahmud Nov 20, 2026
277dadc
research: probe source-backed HGraph AddBlock and GraphChecker block …
mnalmahmud Nov 20, 2026
582c548
research: correlate HGraph block identities with field instruction in…
mnalmahmud Nov 20, 2026
e989e8b
research: prove field IR instruction-to-basic-block ownership through…
mnalmahmud Nov 20, 2026
be270a6
ci: fix Python ownership assertion syntax before emulator verification
mnalmahmud Nov 20, 2026
e2fedd4
research: assert every LSE-eliminated field get has observed ART basi…
mnalmahmud Nov 20, 2026
4f3f628
research: capture per-block field visitation order and LSE replacemen…
mnalmahmud Nov 21, 2026
2fe8fca
feat: deliver real int-field runtime events through bounded JNI sink …
mnalmahmud Nov 21, 2026
63b3c28
research: establish API33 P3 invoke insertion and correctness gates
mnalmahmud Nov 21, 2026
888c3b1
docs: align P3 source references to Android 13 ART branch
mnalmahmud Nov 21, 2026
083c3ec
test: add uninstrumented P3 field canary
mnalmahmud Nov 21, 2026
8f407e7
test: add uninstrumented P3 field canary
mnalmahmud Nov 21, 2026
1d07077
test: add uninstrumented P3 field canary
mnalmahmud Nov 21, 2026
f747ddd
test: validate silent field access before explicit event oracle
mnalmahmud Nov 21, 2026
a402b57
test: validate silent field access before explicit event oracle
mnalmahmud Nov 21, 2026
57f2791
test: validate silent field access before explicit event oracle
mnalmahmud Nov 21, 2026
a5d6930
research: capture P3 canary DEX and native IR invoke ABI symbols
mnalmahmud Nov 21, 2026
e8fb072
research: capture P3 canary DEX and native IR invoke ABI symbols
mnalmahmud Nov 21, 2026
a0c8821
research: observe compiler-created HInvokeStaticOrDirect without muta…
mnalmahmud Nov 21, 2026
f09705e
fix: use literal awk DEX method regex for P3 canary
mnalmahmud Nov 21, 2026
d476d94
ci: retry transient adbd root reconnect after emulator boot
mnalmahmud Nov 21, 2026
1f3f72d
ci: retry transient Gradle dependency-resolution failures
mnalmahmud Nov 21, 2026
bdb666e
research: count compiler invoke SSA nodes per JIT compilation
mnalmahmud Nov 21, 2026
ed8552a
test: require actual compiler-built invoke nodes on API33
mnalmahmud Nov 21, 2026
6287ad8
ci: serialize emulator matrix and supersede old runs to avoid Maven 429
mnalmahmud Nov 21, 2026
2e48b96
research: correlate compiler invoke nodes with x64 backend code emission
mnalmahmud Nov 21, 2026
29e4c49
test: require compiler-created Java invokes to reach x64 code emission
mnalmahmud Nov 21, 2026
d3e4e12
test: add same-graph resolved JNI invoke template for P3 clone injection
mnalmahmud Nov 21, 2026
fa1fd0b
test: assert P3 invoke template runs without native event records
mnalmahmud Nov 21, 2026
d6cac84
test: verify P3 template invoke survives D8 in release DEX
mnalmahmud Nov 21, 2026
7674c88
feat(p3): implement source-matched guarded ART invoke cloning mutation
mnalmahmud Nov 21, 2026
1d6a53a
docs: record guarded HInvoke clone mutation source and deployment gates
mnalmahmud Nov 21, 2026
bb070e0
feat(p3): select a unique same-DEX invoke template from live HGraph
mnalmahmud Nov 21, 2026
1b2ed95
research(p3): verify field-get/invoke adjacency with gated live ART l…
mnalmahmud Nov 21, 2026
42c5d0e
fix(p3): inspect live invoke predecessors instead of relying on stale…
mnalmahmud Nov 21, 2026
63f57ba
test(p3): require actual live invoke predecessor scans and classify o…
mnalmahmud Nov 21, 2026
43c36ef
fix(p3): observe baseline JIT invoke predecessor chains in target fie…
mnalmahmud Nov 21, 2026
9bf233a
research(p3): inspect invoke predecessor links directly for baseline …
mnalmahmud Nov 21, 2026
f30db50
test(p3): fail if field-target compiler invokes evade predecessor sam…
mnalmahmud Nov 21, 2026
a9cb67e
research(p3): read exact-build gated field and invoke DEX PCs
mnalmahmud Nov 21, 2026
8c3ef5e
research(p3): join live get/invoke DEX PCs against field builder meth…
mnalmahmud Nov 22, 2026
03f9be2
test(p3): require field-get DEX PC identity for live invoke predecessor
mnalmahmud Nov 22, 2026
ef25253
docs(p3): record baseline adjacency evidence and exact DEX-PC identit…
mnalmahmud Nov 22, 2026
d949a61
fix(ci): correct P3 DEX-PC counter assertion syntax
mnalmahmud Nov 22, 2026
f268c0c
feat(p3): resolve fixture sink method index from packaged DEX
mnalmahmud Nov 22, 2026
5135d02
fix(p3): correct DEX magic and string terminator byte literals
mnalmahmud Nov 22, 2026
2c4b979
ci(p3): compile and self-test packaged DEX sink resolver
mnalmahmud Nov 22, 2026
9172a86
ci(p3): inventory exact native sink method ID from built APK
mnalmahmud Nov 22, 2026
5b65880
test(p3): pass built APK sink method index to passive ART observer
mnalmahmud Nov 22, 2026
98cdf11
fix(p3): emit actual newline in injected JS sink metadata
mnalmahmud Nov 22, 2026
57eea53
feat(p3): add exact-ART gated invoke-clone execution canary and nativ…
mnalmahmud Nov 22, 2026
fd4ce6e
feat(p3): resolve exact carrier DEX get/invoke PCs and method ID
mnalmahmud Nov 22, 2026
2f38e7f
test(p3): explicitly enable and verify compiler-cloned runtime read e…
mnalmahmud Nov 22, 2026
0c21bef
feat(p3): execute guarded native invoke-clone at real ART builder bou…
mnalmahmud Nov 22, 2026
f22aa64
fix(p3): permit secondary classesN.dex for sink and carrier fixture
mnalmahmud Nov 22, 2026
40c4531
ci(p3): enable actual guarded clone injection on API33 debug fixture
mnalmahmud Nov 22, 2026
a375ff3
fix(p3): call verified ART append pointer without Android linker-name…
mnalmahmud Nov 22, 2026
d370b34
fix(p3): supply exact native ART append target to clone injector
mnalmahmud Nov 22, 2026
a557de0
fix(p3): pick packaged DEX containing both sink reference and carrier
mnalmahmud Nov 22, 2026
bd142de
fix(p3): clone after original ART append initializes live instruction…
mnalmahmud Nov 22, 2026
39b7b36
fix(p3): use actual NUL byte for secondary DEX string parsing
mnalmahmud Nov 22, 2026
22f08f5
feat(p3): trigger live gated invoke clone at ART Accept instead of in…
mnalmahmud Nov 22, 2026
2144859
feat(p3): insert cloned invoke in actual ART block and reconstruct en…
mnalmahmud Nov 22, 2026
2e1ff7b
fix(p3): wait for completed ART JIT injection before measuring field …
mnalmahmud Nov 22, 2026
0ea2699
fix(p3): record compiler-cloned invoke rather than original Java sent…
mnalmahmud Nov 22, 2026
548d6ce
feat(p3): inject compiler-generated integer field write and read even…
mnalmahmud Nov 22, 2026
e0654c1
fix(p3): include exact matched invoke DEX PC in clone event
mnalmahmud Nov 22, 2026
a81d82e
fix(p3): match write field store through same-block IR predecessors
mnalmahmud Nov 22, 2026
5153c7b
test(p3): prove cloned field invokes survive JIT backend emission
mnalmahmud Nov 22, 2026
3d0c531
test(p3): archive actual compiler-injected event stream before P2 reset
mnalmahmud Nov 22, 2026
b6106bc
feat(fieldwatch): index arbitrary DEX field access sites with method,…
mnalmahmud Nov 22, 2026
3805f15
fix(fieldwatch): correct debug-info parsing and DEX bytes in decoder …
mnalmahmud Nov 22, 2026
eeaa40a
test(fieldwatch): audit all APK field sites across debug and release CI
mnalmahmud Nov 22, 2026
56a4fac
fix(fieldwatch): decode END_LOCAL and RESTART_LOCAL register operands
mnalmahmud Nov 22, 2026
5d5582f
feat(fieldwatch): add typed field-event ABI with explicit DEX method,…
mnalmahmud Nov 22, 2026
d519d27
feat(fieldwatch): assign stable APK DEX IDs and retain exact P3 field…
mnalmahmud Nov 23, 2026
75b9de4
feat(p3): emit exact DEX method/field/PC metadata for compiler-cloned…
mnalmahmud Nov 23, 2026
7f82ad0
feat(p3): implement source-matched integer access cloning across inst…
mnalmahmud Nov 23, 2026
1d1fabb
fix(p3): isolate typed metadata measurement and preserve verified eve…
mnalmahmud Nov 23, 2026
efe23cb
fix(p3): terminate archived metadata JSON with NUL byte
mnalmahmud Nov 23, 2026
ac999fa
feat(art): construct typed field event invokes directly from SSA with…
mnalmahmud Nov 23, 2026
e5be159
feat(fieldwatch): exercise direct 6-int JNI field event ABI on actual…
mnalmahmud Nov 23, 2026
5b0f7b4
fix(art): reject inlined caller misattribution and unverified cross-D…
mnalmahmud Nov 23, 2026
2a485ab
feat(fieldwatch): resolve runtime events to exact DEX class, field, c…
mnalmahmud Nov 23, 2026
27f0533
test(fieldwatch): join live P3 events with packaged DEX field and cal…
mnalmahmud Nov 23, 2026
0726e10
feat(fieldwatch): carry exact long/float/double and narrow primitives…
mnalmahmud Nov 23, 2026
f4d18d2
feat(fieldwatch): add executable ART JVMTI no-template field access w…
mnalmahmud Nov 23, 2026
00ae341
fix(jvmti): avoid recursive field callbacks when sampling primitive r…
mnalmahmud Nov 23, 2026
5da7d17
build(jvmti): compile and package API33 x86_64 ART fieldwatch agent
mnalmahmud Nov 23, 2026
701d5cb
test(jvmti): attach ART field watcher and exercise sink-free instance…
mnalmahmud Nov 23, 2026
74c28b9
test(jvmti): require executable no-template field callbacks in API33 …
mnalmahmud Nov 23, 2026
96ce888
fix(jvmti): prioritize Android NDK JNI headers over host JDK JNI
mnalmahmud Nov 23, 2026
20c107a
fix(jvmti): supply matching JNI platform typedef header for JDK JVMTI…
mnalmahmud Nov 23, 2026
62c6400
fix(jvmti): use classloader library name to avoid base64 '=' APK path…
mnalmahmud Nov 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
177 changes: 177 additions & 0 deletions .github/workflows/art-fieldwatch-phase1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
name: ART Fieldwatch phase 1
on:
pull_request:
paths: ['art-fieldwatch-phase1/**', '.github/workflows/art-fieldwatch-phase1.yml']
workflow_dispatch:
inputs:
arm64:
description: 'Run experimental arm64 JIT hook test'
type: boolean
default: false
permissions:
contents: read
# Older PR test matrices were overlapping on hosted runners, repeatedly
# getting Maven Central HTTP 429. Only the newest run is authoritative.
concurrency:
group: art-fieldwatch-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: node --check art-fieldwatch-phase1/jit-boundary-probe.js
- run: python3 -m py_compile art-fieldwatch-phase1/ci/smoke_test.py
- run: python3 -m py_compile art-fieldwatch-phase1/ci/dex_method_index.py
- run: python3 art-fieldwatch-phase1/ci/dex_method_index.py --self-test
- run: python3 art-fieldwatch-phase1/ci/dex_field_sites.py --self-test
- run: python3 art-fieldwatch-phase1/ci/resolve_field_events.py --self-test
- run: bash -n art-fieldwatch-phase1/ci/run-emulator-smoke.sh
- run: bash -n art-fieldwatch-phase1/ci/dex-inventory.sh
- run: bash -n art-fieldwatch-phase1/ci/build-passive-shim.sh
android:
runs-on: ubuntu-latest
timeout-minutes: 35
strategy:
fail-fast: false
# Avoid three fresh Gradle/AGP dependency resolutions sharing the
# runner egress/IP at once, which triggers Maven Central HTTP 429.
max-parallel: 1
matrix:
include:
- api: 33
variant: debug
- api: 33
variant: release
- api: 34
variant: debug
env:
FRIDA_VERSION: '17.27.1'
ARTWATCH_BUILD_VARIANT: ${{ matrix.variant }}
ARTWATCH_LOG_DIR: /tmp/artwatch-logs
ARTWATCH_REQUIRE_JIT: '1'
ARTWATCH_SHADOW_SHIM: ${{ matrix.api == 33 && '1' || '0' }}
ARTWATCH_P3_INJECT: ${{ matrix.api == 33 && matrix.variant == 'debug' && '1' || '0' }}
steps:
- uses: actions/checkout@v4
# Emulator 37.3+ refuses -accel off without an explicit TCG override.
# GitHub-hosted Ubuntu runners support KVM once the device is accessible.
- name: Enable and verify KVM before installing the emulator
shell: bash
run: |
set -euo pipefail
if [ ! -c /dev/kvm ]; then
echo "::error::No /dev/kvm device: cannot boot accelerated x86_64 emulator on this runner."
exit 1
fi
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' |
sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
ls -l /dev/kvm
if [ ! -r /dev/kvm ] || [ ! -w /dev/kvm ]; then
echo "::error::/dev/kvm is not readable/writable by the runner."
exit 1
fi
echo "KVM device is accessible"
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: android-actions/setup-android@v4
with:
packages: 'platform-tools platforms;android-35 build-tools;35.0.0'
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.10.2'
- name: Build API33 passive shadow shim
if: matrix.api == 33
run: bash art-fieldwatch-phase1/ci/build-passive-shim.sh
- name: Build selected APK variant
shell: bash
run: |
case "$ARTWATCH_BUILD_VARIANT" in
debug) task=assembleDebug ;;
release) task=assembleRelease ;;
*) exit 1 ;;
esac
# Maven/Google repositories occasionally return incomplete metadata
# on hosted runners. Retry the whole build, but fail normally after
# exhausting attempts; never suppress real compilation errors.
for attempt in 1 2 3; do
if gradle -p art-fieldwatch-phase1/test ":app:$task" --no-daemon; then
exit 0
fi
if (( attempt == 3 )); then
echo "::error::Gradle APK build failed after 3 attempts"
exit 1
fi
echo "::warning::Gradle build attempt $attempt/3 failed; retrying repository resolution"
sleep "$((attempt * 10))"
done
- name: Verify packaged native shadow library
if: matrix.api == 33
run: |
apk="art-fieldwatch-phase1/test/app/build/outputs/apk/$ARTWATCH_BUILD_VARIANT/app-$ARTWATCH_BUILD_VARIANT.apk"
unzip -l "$apk" | grep 'lib/x86_64/libartwatch_shadow.so'
unzip -l "$apk" | grep 'lib/x86_64/libartwatch_events.so'
unzip -l "$apk" | grep 'lib/x86_64/libartwatch_jvmti.so'
- name: Record compiled fixture DEX for D8 comparison
run: bash art-fieldwatch-phase1/ci/dex-inventory.sh
- run: python3 -m pip install 'frida==17.27.1'
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api }}
target: default
arch: x86_64
profile: pixel_2
disable-linux-hw-accel: false
emulator-boot-timeout: 300
script: bash art-fieldwatch-phase1/ci/run-emulator-smoke.sh
- uses: actions/upload-artifact@v4
if: always()
with:
name: artwatch-api${{ matrix.api }}-x86_64-${{ matrix.variant }}
path: /tmp/artwatch-logs/
if-no-files-found: ignore
android-arm64:
if: github.event_name == 'workflow_dispatch' && inputs.arm64
runs-on: macos-15
timeout-minutes: 45
env:
FRIDA_VERSION: '17.27.1'
ARTWATCH_LOG_DIR: /tmp/artwatch-logs
ARTWATCH_REQUIRE_JIT: '1'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: android-actions/setup-android@v4
with:
packages: 'platform-tools platforms;android-35 build-tools;35.0.0'
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: '8.10.2'
- run: gradle -p art-fieldwatch-phase1/test :app:assembleDebug --no-daemon
- run: python3 -m pip install 'frida==17.27.1'
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
target: google_apis
arch: arm64-v8a
profile: pixel_2
script: bash art-fieldwatch-phase1/ci/run-emulator-smoke.sh
- uses: actions/upload-artifact@v4
if: always()
with:
name: artwatch-api34-arm64
path: /tmp/artwatch-logs/
if-no-files-found: ignore
Loading
Loading