Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

Commit b0263b2

Browse files
committed
Delay pinitd start to attempt to avoid vulnerability failures
1 parent 9f2675f commit b0263b2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

android/app/src/main/java/com/penumbraos/pinitd/util/launchCommand.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ import kotlin.time.Duration.Companion.milliseconds
1818
val EXEMPTIONS_SETTING_URI: Uri = Settings.Global.getUriFor("hidden_api_blacklist_exemptions")
1919

2020
fun launchWithBootProtection(context: Context) {
21-
Log.w(SHARED_TAG, "Boot completed. Checking boot protection")
21+
Log.w(SHARED_TAG, "Boot completed. Delaying to wait for Android to stabilize")
22+
23+
Thread.sleep(10000)
24+
25+
Log.w(SHARED_TAG, "Delay completed. Checking boot protection")
2226

2327
// TODO: Check if exemption is already set. If so, this boot may be broken, so we need to clear and reboot before starting
2428
// Make sure to count this as a boot failure

0 commit comments

Comments
 (0)