Commit Graph
19 Commits
Author SHA1 Message Date
topjohnwu 1240c2e35c app: Remove app repackaging and signing
Remove app hiding repackaging, key generation, AXML patching, and
in-app APK signing components along with BouncyCastle (bcpkix).

- Delete AppMigration, Keygen, AXML, and signing package classes.
- Remove bcpkix dependency and build-logic packaging exclude.
- Remove suManager, keyStoreRaw, StringDao, and strings DB table.
- Simplify DownloadProcessor app update and SplashScreen init.
- Remove AppMigrationTest, setupAppHide/Restore, and test scripts
  references to repackaged test packages.
- Remove unused hide_app_title string across all locales.

Assisted-by: Gemini 4 Argon
2026-10-22 14:06:48 -07:00
topjohnwu ea16c8141e Fix package management and user targeting on HSUM
- Use --user current for pm install, adb install, and appops set across
  install_script, adb_pm_install, and test/setup scripts.
- Skip headless user 0 in get_users() on HSUM devices.
- Use --user current in app_notify for non-app UIDs instead of calling
  content call against all users.
- Clear path buffer on each iteration in setup_magisk_env.
- Use --user current for am instrument in app migration tests.

Assisted-by: Gemini 4 Argon
2026-10-22 14:06:48 -07:00
topjohnwu 53d66fb847 Add unit tests for ZipExtractor
Implement AppTest with unit tests for ZipExtractor verifying
remote boot image extraction from both factory image packages
and OTA update packages using HTTP range requests.

Also add an app-test sub-command to scripts/avd.sh to run AppTest
via instrumentation on connected emulators.

Assisted-by: Gemini 3.8 Flash
2026-10-07 07:44:31 +00:00
topjohnwu aed0261c3d Refactor adb patching and emulator setup
Add support for patching boot images directly via adb
with the build.py script.
2026-09-21 01:40:07 -07:00
topjohnwu 2fc7a6d284 avd.sh: improve boot waiting and error handling
Update wait_for_boot to monitor the background emulator process and
fail immediately if it crashes, avoiding indefinite blocking on
adb wait-for-device. Implement timeout handling directly in the
polling loop without relying on subshell timeout wrappers.

In run_main, capture emulator stdout/stderr to a temporary log and
dump its contents on failure for easier debugging. Temporarily disable
tracing within wait_for_boot during polling to keep test logs clean
while preserving the caller's shell tracing state.

Assisted-by: Gemini 3.7 Flash
2026-08-26 05:42:55 +00:00
topjohnwu e7e5469100 Update avd.sh to accept ABI
Also update to use Android CLI
2026-08-26 05:42:55 +00:00
topjohnwu 43954973dd Update avd.sh
- Fix API level parsing
- Fix -l argument
2026-08-12 22:44:35 +00:00
topjohnwu 0f59f1f345 Setup userspace Magisk tests
The existing test infrastructure relies on the full Magisk setup before
it can test any functionality. However for most of the time, we just
want to test the core Magisk functionality without the need of involving
MagiskInit.
2026-07-28 17:23:35 -07:00
topjohnwu 75f60d6e63 Update avd.sh 2026-04-19 19:27:47 -07:00
topjohnwu 5cb025e7cc Setup CI for app-ng 2026-03-17 20:04:47 -07:00
topjohnwu 07e92948c8 Add CI tests for Android 17 2026-02-22 23:26:10 -08:00
topjohnwu 505053f9b4 Properly support AVD with minor SDK version 2025-12-04 20:55:46 -08:00
topjohnwu aac52176ed Support API level as floating point 2025-10-02 04:10:22 -07:00
LoveSy d42ec5da9a Fix pattern matching for CANARY version 2025-09-29 01:18:52 -07:00
topjohnwu ea72666df8 Only specify ADB port for tests 2025-08-25 15:34:04 -07:00
topjohnwu 1333d3b986 Fix canary emulator 2025-08-18 11:25:47 -07:00
topjohnwu eaf9527971 Use AOSP ATD for API 36
[skip ci]
2025-08-15 17:25:41 -07:00
topjohnwu 4cf525c588 Add Android canary builds into CI tests 2025-07-11 00:16:39 -07:00
topjohnwu 8b7fb6cdde Improve scripts 2025-05-15 02:56:36 -07:00