Allow 30 seconds for app migration in tests

The hidden app compiles its dynamic APK on first launch. On API 24
this pushes package removal past the 20-second receiver timeout.
Wait up to 30 seconds while still requiring the removal broadcast.

Assisted-by: GPT-6
This commit is contained in:
LoveSy
2026-10-04 02:14:44 +00:00
committed by topjohnwu
parent f7a9b39be2
commit e2dc5984ea
@@ -22,7 +22,8 @@ class AppMigrationTest {
companion object {
private const val APP_PKG = "com.topjohnwu.magisk"
private const val STUB_PKG = "repackaged.$APP_PKG"
private const val RECEIVER_TIMEOUT = 20L
// First launch may compile the hidden app's dynamic APK before uninstalling.
private const val RECEIVER_TIMEOUT = 30L
}
private val instrumentation get() = InstrumentationRegistry.getInstrumentation()