Skip to content

K2GO-576 feat(tools): xfer-bench test APK for TCP and AOA throughput - #788

Merged
luisguzman-adfa merged 1 commit into
mainfrom
feat/K2GO-576-xfer-bench
Nov 16, 2026
Merged

luisguzman-adfa merged 1 commit into
mainfrom
feat/K2GO-576-xfer-bench

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

What changes

  • New standalone test APK in tools/xfer-bench (org.appdevforall.xferbench). It is not part of the K2Go build and is never published.
  • Measures Java TCP copy methods (transferTo/transferFrom, direct buffer, stream) into app-private storage, shared storage or no sink.
  • Measures an Android Open Accessory (AOA) byte stream between two phones: the USB host switches the other phone into accessory mode, then both directions are timed.
  • Driven by adb (am start ... --es cmd ...). Results go to logcat (tag XferBench) and files/results.txt. Usage in tools/xfer-bench/README.md.

Why

  • K2GO-576 steps 2 and 3: measure raw and file throughput over Wi-Fi and USB before any Clone change.
  • Main result: a 5 GHz hotspot plus an AOA cable gave 63-66 MB/s against 42-43 MB/s for the hotspot alone (low-end receiver, USB 2.0, no root).

Steps to QA

  • Baseline: no tool exists; the K2Go APK is not changed by this PR.
  • Change: in tools/xfer-bench, run .\gradlew.bat assembleDebug, install the APK on two phones, connect them with a USB-C cable, then follow the README: aoa-host on the USB host phone, accept the USB dialogs, and check the MB/s lines in logcat.

Verifications

Notes

  • Permissions: INTERNET, WAKE_LOCK, ACCESS_WIFI_STATE. USB host and accessory features are declared optional.

Measures Java TCP copy methods and an Android Open Accessory byte stream
between two phones, driven by adb. Test tool only, not part of K2Go.
@luisguzman-adfa
luisguzman-adfa merged commit 3f74f02 into main Nov 16, 2026
3 checks passed
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