Commit Graph

526 Commits

Author SHA1 Message Date
ddf5474917 apt-get update before install to fix ci 2025-04-28 11:16:14 -07:00
c1e061603b Specify ADB_SERIAL for emulator 2025-04-13 21:43:11 -07:00
8e604d2ab8 Update cuttlefish CI 2025-03-28 00:12:31 -07:00
e66fe8533e API 36 does not support wait_for_bootanim 2025-03-26 13:15:12 -07:00
b03fbb3917 avd_test: upgrade to android16 beta3 2025-03-26 13:15:12 -07:00
ee5283f4e8 Update release script 2025-03-07 14:14:06 -08:00
442d0b5ddc Delete bootctl binary if execution fails
New devices may use AIDL bootctrl HAL, so if bootctl hal-info fails,
simply remove the temp file and return.
2025-03-01 22:43:55 -08:00
494615d9a0 Support ./build.py emulator with an APK argument 2025-02-28 17:17:24 -08:00
3ed4e258a3 avd_magisk: add general usage 2025-02-28 17:17:24 -08:00
dddd41c95b avd_magisk: support rootfs without sbin 2025-02-28 17:17:24 -08:00
0399cde50a Cleanup logcat.log for each invocation 2025-02-18 01:04:19 -08:00
f5f9b285c0 Add module tests 2025-02-16 16:20:09 -08:00
29043e1684 Consolidate setup methods 2025-02-16 16:20:09 -08:00
15b7c4ccd1 Fix tmpfs mounts in avd_magisk.sh 2025-02-14 10:17:31 -08:00
5e35703091 Ensure target path exists before mknod
Co-authored-by: LoveSy <shana@zju.edu.cn>
2025-02-12 01:13:56 +08:00
e73ff679ac scripts: flash_script.sh: Avoid overly dangerous code 2024-12-27 16:02:24 -08:00
d2768357da Support systemlessly deleting files or folders
After we refactor the magic mount and always mount folder as tmpfs,
we can easily support deleting files or folders now. We recognize
dummy devices with major number 0 and minor number 0 as an indicator
for removing files and folders. This indicator is borrowed from
overlayfs.
2024-12-27 15:57:54 -08:00
704541aef2 Use /metadata/watchdog as preinit dir if exists
Since Android 15, all domains are allowed to search /metadata so preinit
dir will be exposed. Use /metadata/watchdog when /metadata is chosen as
preinit device, and the dir is available (since Android 11).
2024-12-27 10:35:05 -08:00
231a5d1853 Cleanup test code 2024-12-25 22:26:30 -08:00
9e2b59060d Drive app migration tests through instrumentation
Make tests less flaky
2024-12-25 22:26:30 -08:00
08ea937f7c Test su request via instrumentation 2024-12-25 22:26:30 -08:00
2baedf74d1 Install and test LSPosed through test app 2024-12-25 22:26:30 -08:00
32faa4ced6 Redesign test APK architecture
The test APK and the main APK share the same process and classloader,
and in the non-hidden case, the test APK's classes take precedence over
the ones in the main APK. This causes issues because the test APK and
main APK share some dependencies, but don't always use the same
version. This is especially problematic for the Kotlin stdlib and
AndroidX dependencies.

The solution here is to rely on R8's obfuscation feature and repackage
all potentially conflicting classes into a separate package in the test
APK. To ensure that the test classes are always using the same classes
as the main APK, we have to directly implement all tests inside the main
APK, making the test APK purely a "test runner with test dependencies".

As a result, the test APK can only be used when built in release mode,
because R8 no longer allow class obfuscation to be enabled when building
for debug versions.
2024-12-25 20:17:57 -08:00
ccdb0b5d13 Add ability to skip certain test variants 2024-12-25 20:11:21 -08:00
ce2e33bb20 Cleanup test scripts 2024-12-23 20:42:54 -08:00
6707b72260 Fix AVD tests 2024-12-23 20:41:42 -08:00
5885b8c20d Add new tests for app hiding 2024-12-18 17:22:31 -08:00
9112a3a4f5 Introduce instrumentation tests 2024-12-13 12:07:42 -08:00
506961a10d flash module: ignore META-INF 2024-12-12 10:07:47 -08:00
2e86d21c29 16k pages only work on Android B on x64 2024-12-09 20:13:27 -08:00
b09ceeb43c scripts: sync avd_magisk.sh with mgiskinit 2024-12-06 02:21:17 -08:00
837c679a31 Update avd_test API versions 2024-12-03 02:18:22 -08:00
e1b847fbc5 Find boot image with MagiskInstaller
Fix #8211
2024-10-07 16:52:35 -07:00
310be7ab47 Return exit value of action.sh 2024-09-08 01:12:30 -07:00
fbebb6ac10 Add action.sh for user to manually trigger modules' functionality from app 2024-09-08 01:12:30 -07:00
869aa62328 ci: fix build 2024-09-05 21:50:46 -07:00
a82f17c594 Disable Samsung PROCA
Signed-off-by: Salvo Giangreco <giangrecosalvo9@gmail.com>
2024-09-04 01:49:02 -07:00
7cf56b4406 Simplify ramdisk test 2024-08-21 16:46:37 -07:00
e6bd2ff60f Fix stock image restore
Fix #8211
2024-08-20 02:23:20 -07:00
2cbec20238 find_boot_image: test GKI 1.0 2024-08-19 03:05:24 -07:00
4b724c7257 find_boot_image: test previous kernels (<=4.19) 2024-08-19 03:05:24 -07:00
ab04c6ab39 find_boot_image: keep symlink 2024-08-19 03:05:24 -07:00
c76cc4c6bd Update cuttlefish hostside tools 2024-08-16 15:58:29 -07:00
9db2e99086 Test 16k on Cuttlefish 2024-08-15 22:51:40 -07:00
07835a3e0e util_functions.sh: Fix syntax error due to missing then
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
2024-08-06 01:16:19 -07:00
09131aca89 Fix find_boot_image
Close #8255
2024-08-05 11:24:30 -07:00
ca36b42d79 Update release.sh 2024-08-03 01:55:03 -07:00
3b27de3715 Output logs to files 2024-07-25 03:48:13 -07:00
939bfac920 Make sure version is fetched correctly 2024-07-25 03:04:27 -07:00
300a2a242c Add release script 2024-07-24 23:10:57 -07:00