Skip to content

K2GO-510 fix(clone): name the shared APK after the ABIs it carries - #701

Merged
luisguzman-adfa merged 2 commits into
mainfrom
fix/K2GO-510-share-apk-name
Oct 28, 2026
Merged

luisguzman-adfa merged 2 commits into
mainfrom
fix/K2GO-510-share-apk-name

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Clone "Send app" names the shared file after the native ABIs inside the APK (lib/<abi>/), not after the width of the sending phone. This restores the ADFA-4540 rule (ApkShareName.archLabel), which the legacy UI removal left unused.

  • QR download and share sheet use one name: universal, arm64-v8a, armeabi-v7a, or noarch (no native libs).
  • The name is a hint only: if the APK cannot be read, it says unknown and the share continues.
  • The share sheet no longer sends the file as base.apk (FileProvider display name).
  • New sync/data/ApkAbiReader (JDK zip) with JVM tests. Design map updated.

Verification: sync unit tests pass (15). The reader on the real universal, v7a and v8a debug APKs gives universal, armeabi-v7a and arm64-v8a.

The QR download and the share sheet read the APK's lib/ folders
(universal, arm64-v8a, armeabi-v7a, noarch) instead of the phone's width.
The share sheet no longer sends the file as "base.apk".
The name lookup now falls back to "unknown" on any read error and ignores
bare lib/<abi>/ directory entries. The share sheet reuses the name of the
running APK server. Design map lists sync/data.
@luisguzman-adfa
luisguzman-adfa merged commit d86aa09 into main Oct 28, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the fix/K2GO-510-share-apk-name branch October 28, 2026 23:01
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.

1 participant