8000 Add private clone signing and eligible unattended updates by marvin1099 · Pull Request #2 · bl3xand/APK-Toolbox · GitHub
[go: up one dir, main page]

Skip to content

Add private clone signing and eligible unattended updates - #2

Open
marvin1099 wants to merge 5 commits into
bl3xand:mainfrom
marvin1099:pr/upstream-unattended-updates
Open

marvin1099 wants to merge 5 commits into
bl3xand:mainfrom
marvin1099:pr/upstream-unattended-updates

Conversation

@marvin1099
@marvin1099 marvin1099 commented Oct 30, 2026 •
Copy link
Copy Markdown

Summary

Clone build
  -> sign new clones with an installation-private encrypted key
  -> retain the bundled legacy key for matching/updating existing clones

Settings
  -> migrate old interval indices without changing their durations
  -> add hourly choices and a local first-check anchor
  -> schedule source and clone checks together via WorkManager

Clone install
  -> request update ownership only for a first PackageInstaller install
     of a clone built by APK-Toolbox, when API 34+ and permission allow
  -> use release-specific target-SDK eligibility; retain Android's
     user-action fallback when policy denies unattended installation

Also adds translated settings/warnings and guards the optional Xiaomi APK test when its fixture path is empty.

Evidence

  • Before: testDebugUnitTest failed four Xiaomi-fixture tests when the configured fixture path was empty (interpreted as the working directory).
  • After: testDebugUnitTest --rerun-tasks passes: 332 tests, 0 failures/errors, 31 skipped.
  • assembleDebug, assembleRelease, and assembleDebugAndroidTest pass; Android instrumentation sources compile. The clean checkout's release APK is unsigned without a release keystore.
  • Manual device testing reported by the tester: an eligible clone updated without a prompt on Android 17/API 37; Acode targeting SDK 28 correctly required Android's native confirmation.
  • Connected UI instrumentation was not run because its test setup wipes app data and grants app-ops.

Eligibility follows PackageInstaller.SessionParams; Android may still return STATUS_PENDING_USER_ACTION.

Merge Danger

Door: One-way per clone signing identity. Existing bundled-key clones remain matchable, but newly created clones use a per-install key and need that same key for future updates; users must export/retain its backup.

Blast Radius: High — clone signing compatibility, update scheduling, and PackageInstaller update behavior.

AI was used to make these changes. Feel free to ignore, cherry-pick, or ask what I should change for this PR to be a good fit.

@bl3xand
bl3xand commented Nov 11, 2026 •
Copy link
Copy Markdown
Owner

Thanks for the suggestion and for putting this PR together! I'm working on these improvements as part of a bigger app update. I'll share an update here when it's ready.

8348

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.

2 participants

0