mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user