Repository navigation
feat(control): port APK Control v2 slice 2 with AppFunctions, VirtualDisplay, and reversible profiles (#1865) - #2413
Draft
NubsCarson wants to merge 1 commit into
Draft
NubsCarson wants to merge 1 commit into
NubsCarson wants to merge 1 commit into
Conversation
…Display, and reversible profiles
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports APK Control v2 (Slice 2, tracking #1865 and stacking cleanly on merged Slice 1 #2397) onto
develop, reconciled with first-boot accessibility pre-grants (#2383) and generatedSchemasvocabulary (#2365), with ZERO changes to the default monolithapps/app/android/app(ai.alphacompute.alphaphone) oraosp.ts:alpha-controllibrary (apps/app/android/alpha-control/):IAlphaControlBridge.aidl,AlphaControlBridgeClient.java,AlphaControlPolicy.java, andAlphaUiControlExecutor.javafor dual-mode foreground + trusted VirtualDisplay execution, post-action readback refresh, and takeover reconciliation.AppFunctionsBridge.java(Android 16+/17 structured AppFunctions discovery and execution fallback),VirtualDisplaySessionManager.java(dual-mode headless display lifecycle and per-display input/capture),ReversibleProfileController.java(withAndroidSettingStorewiring and attribution receipts), plus their 3 JUnit test suites (AppFunctionsBridgeTest.java,ReversibleProfileControllerTest.java,VirtualDisplaySessionManagerTest.java).apps/app/aosp/control-bridge/):AlphaControlBridgeService.java,IAlphaControlBridge.aidl,AndroidManifest.xml,privapp-permissions-alpha-control.xml,sepolicy/alpha_control_bridge.te, andtest_bridge_plan.pyfor protocol v2 virtual displays, per-display input injection, and signer/lockscreen invariants.spec/app/control/,apps/app/test/drivers/,apps/agent/src/plugins/control*):spec/app/control/index.md(preserving the Pre-grant every permission, role and access to Alpha on our image, and ask nothing it holds #2383 first-boot accessibility pre-grant sentence),spec/app/control/index.proof.dfy, and addsspec/app/control/profile.md.apps/app/test/drivers/app__control.ts(preserving the Decode and type the app's spec vocabulary through the generated Schemas #2365LeaseStatusimport/type) and addsapps/app/test/drivers/app__control__profile.ts.apps/agent/src/plugins/control.ts,apps/agent/src/plugins/control/phone-use.ts,apps/agent/src/plugins/control/profiles.ts,apps/agent/test/control-v2.test.ts) with zero edits toapps/agent/src/main.vibeorapps/agent/src/plugins/index.ts.Draft /
spec/lock.jsonNotespec/lock.jsonis intentionally left untouched in this Draft PR whiledevelopcarries unrelated unaccepted review entries, avoiding merge contention. Before marking ready for merge, accept the 44 new control spec review entries (spec/app/control/index.md: 32,spec/app/control/profile.md: 12).Verification
alpha-control, AIDL + all 4 suites): 15/15 PASS (AlphaControlPolicyTest5,AppFunctionsBridgeTest4,ReversibleProfileControllerTest3,VirtualDisplaySessionManagerTest3)python3 apps/app/aosp/control-bridge/test_bridge_plan.py -v): 2/2 PASS (AIDL +AlphaControlBridgeService.javacompile against Android API 36 +BridgePolicyTeston JVM)@repo/agentVitest (test/control-v2.test.ts+test/alpha-apps.test.ts): 43/43 PASS (5 + 38);@repo/agenttypecheck: PASSapp__control+app__control__profile): 12,000 traces eachalwaysPASS, allsometimesgoals reachable (6/6 + 1/1), all guards allow and refuse (9/9 + 4/4), TS replay agrees (406 + 401 traces)app__control.tsPASS (12 model paths, 6 journeys, 150 walks, 9/9 accepted/refused) andapp__control__profile.tsPASS (19 model paths, 1 journey, 150 walks, 4/4 accepted/refused)app__control.ts50/50,app__control__profile.ts12/12; 0 unproved, 0 exhausted, 0 errors)danglingCitations=0,eslint --max-warnings 0(all 6 TS files) PASS,jscpd --threshold 0(0 clones, 0.00%) PASS,pnpm no-bunPASS,git diff --checkPASS