Repository navigation
Conversation
|
Compatibility notice: base PR #5339 advanced to |
104fc20 to
c7be147
Compare
Size Report
Startup median (7 runs, lower is better):
Affected plugins
|
88c33f3 to
498f98b
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
476d4d2 to
f079bb8
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on f079bb8. The verdict and the full list are in the summary comment.
- 🟡 Minor · Legacy component strings duplicate the exported legacy package constant ·
packages/platform-android/src/ime-helper.ts:26
This comment has been minimized.
This comment has been minimized.
|
The code at 376dc6a has two problems to fix before merge. All 31 checks pass, but CI does not exercise a real legacy-to-v2 IME migration. The PR changes device-facing routes (IME activation and restore, text admission, v2 package install, instrumentation naming), and its stated invariant is that legacy IME restore still works after upgrade (ime-activation.ts:117). The proof is unit tests with fake adb plus hosted checks, and the PR body says there is no device evidence at this head. The earlier live run (#5260 at eea4c26) predates f079bb8 and the restack. The PR makes Not blocking, and fine to take or leave: the runner fallback in The earlier inline thread on the legacy component names is fixed at this head and can be resolved: #5341 (comment) Not verified here: the IME manager read-back of the fully qualified v2 service component, the install-beside behavior of the Before merge, the |
376dc6a to
98e6d43
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 98e6d43. The verdict and the full list are in the summary comment.
- 🟡 Minor · Failed helper uninstall's stderr is dropped when the retry install also fails ·
packages/platform-android/src/helper-package-install.ts:54
|
The earlier review at 376dc6a (#5341 (comment)) asked for Android 16 migration evidence for the The IME helper install now runs Not blocking, and these can be taken or left: the PR title and the Summary line "nobody can sign an APK that Android accepts as an update" still describe the larger No high-priority inline thread still applies. One lower-priority thread still applies, and it is the uninstall-result point above. The thread on the legacy component names in Checks are pending at 98e6d43, and the PR is a draft. The hosted unit, Android emulator, repo-guard and release-workflow jobs that ran at 376dc6a (31 checks) have not reported on this head, and none of them failed. The diff touches what those jobs exercise: the release-assets build fixture now stubs keytool, Before merge, the Android 16 emulator run above must be attached, the maintainer must confirm key-only rotation, and hosted checks must pass at this head. |
98e6d43 to
8504541
Compare
This comment has been minimized.
This comment has been minimized.
8504541 to
d0029d3
Compare
This comment has been minimized.
This comment has been minimized.
7b14aef to
d3116ac
Compare
|
The order bug from the earlier review (98e6d43) is fixed in code at d3116ac: the restore target is now kept when the install displaced the helper, and the uninstall stderr is kept after a failed retry. One finding remains, and it needs a device run. The key-rotation route this PR adds is device-facing. On the first Please attach one Android 16 emulator run at d3116ac with the head daemon ( Of the open inline threads, neither still applies. The uninstall-stderr thread is fixed at d3116ac (thread). The ime-helper.ts thread has no diff against the base at this head, and the legacy component strings are gone with the .v2 contract (thread). Both can be resolved. On CI, Coverage was cancelled at the 30-minute job limit inside the "Run coverage" step, with no assertion failure in the log. Output stops at 10:45:58 and an Not verified here: the three device behaviors above (checked by reading only), vitest, keytool, apksigner, the build script, and the release workflows. Also not verified: that the Before merge, the Android 16 emulator run for Case A and Case B is required, and Coverage must finish green on a rerun. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on d3116ac. The verdict and the full list are in the summary comment.
- 🟠 Major · workflow_dispatch checkout_ref lets arbitrary code run with the release signing key ·
.github/workflows/release-android-snapshot-helper.yml:29
Android 16 emulator run: helper key rotation (Case A, Case B)Device: Pixel_7_CI Old helpers: built from merge-base 2ff26e8 (archive extracted into a scratch dir), signed with the committed Setup for each case (adb only for installs and IME settings): Device behavior 1: typed incompatible-update failure on API 36Device behaviors 2 and 3: settings after the uninstall, and reinstall registration (manual adb probe, helper active before)So the system does not enable the reinstalled helper. Case A: old helper active, previous_ime = GboardCase A with a discriminating target: Gboard is also the system fallback after the uninstall, so Case A alone cannot show which value became the restore target. I repeated Case A with previous_ime set to Case B: old helper installed, Gboard active, no previous_imeResult
|
This comment has been minimized.
This comment has been minimized.
eb1fa55 to
1dda4ff
Compare
This comment has been minimized.
This comment has been minimized.
|
The code at 1dda4ff looks correct, and the earlier findings from #5341 (comment) are fixed. The release workflow now checks out All 28 checks pass at this commit, including Coverage, which was cancelled on the earlier heads. There are no conflicts. Not verified here: that the release environment's deployment rule restricts refs, that its keystore secrets resolve in the reusable workflow, and the release keystore alias and password layout. The device run is the author's log and used a throwaway local key for the new-key side, which is fine because the signature mismatch does not depend on the key. Vitest, keytool, apksigner and the workflows were not run here. Whether git history needs a rewrite to purge the old committed key is a maintainer decision. Nothing in the code blocks this PR. It is still a draft. Before the first release, the maintainer must create the release environment with its secrets and merge #5352. |
1dda4ff to
abd320c
Compare
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
There was a problem hiding this comment.
1 issue found across 15 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/platform-android/src/ime-activation.ts">
<violation number="1" location="packages/platform-android/src/ime-activation.ts:92">
P2: `helperWasActive` is sampled before `ensureAndroidImeHelper`, but installation can wait for IME registration. If the user switches keyboards during that wait, `helperDisplacedByInstall` still forces `record.previousIme`, so activation overwrites the newer choice and close restores the stale keyboard. Recheck that the helper was still active at the displacement point, or preserve `currentIme` when it changed externally.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
- Release builds sign with a keystore from the protected release environment; AGENT_DEVICE_ANDROID_HELPER_RELEASE=1 makes a missing keystore fail the build. Other builds, including PR dry runs, use a throwaway local key. - One helper installer handles the typed newer state and a signature-incompatible update, reading the transport's typed failure when present and keeping the uninstall stderr on a failed retry. - Activation keeps the recorded user keyboard as the restore target when the install displaced the active helper.
…port the install seam
The release environment's deployment rule gates github.ref. A checkout_ref input let a dispatcher build any other ref with the release signing key.
…e the unavailable catch
abd320c to
5517dba
Compare
Summary
The repository held the private key that signs Android helper APKs, so anyone could sign an APK that Android accepts as a helper update. This PR removes it. Releases are signed with a new key held only by the protected
releaseenvironment. Devices with an old-key helper stay exposed until agent-device reinstalls the helper.Before / after
scripts/build-android-helper.shsigns withAGENT_DEVICE_ANDROID_KEYSTOREwhen set. A publishing job that setsAGENT_DEVICE_ANDROID_HELPER_RELEASE=1fails without it. Local builds use a throwaway keystore.secrets: inheritis gone.Validation
github.ref. Itscheckout_refdispatch input is removed.releasewith protection rules, and add its secretsANDROID_HELPER_KEYSTORE_BASE64andANDROID_HELPER_KEYSTORE_PASSWORD. Merge ci(release): sign Android helper releases from the protected release environment #5352 onmainfirst, or a nightly signs with a throwaway key.