From 5b38c9442a5c887a70fd69350070c9ff1fc9210e Mon Sep 17 00:00:00 2001 From: Aunali321 Date: Mon, 17 Oct 2022 00:46:48 +0530 Subject: [PATCH] fix: increase sleep timer for mount script. --- lib/services/root_api.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/root_api.dart b/lib/services/root_api.dart index 2e63d20f..478593cb 100644 --- a/lib/services/root_api.dart +++ b/lib/services/root_api.dart @@ -133,7 +133,7 @@ class RootAPI { Future installServiceDScript(String packageName) async { String content = '#!/system/bin/sh\n' - 'while [ "\$(getprop sys.boot_completed | tr -d \'"\'"\'\\\\r\'"\'"\')" != "1" ]; do sleep 1; done\n' + 'while [ "\$(getprop sys.boot_completed | tr -d \'"\'"\'\\\\r\'"\'"\')" != "1" ]; do sleep 3; done\n' 'base_path=$_managerDirPath/$packageName/base.apk\n' 'stock_path=\$(pm path $packageName | grep base | sed \'"\'"\'s/package://g\'"\'"\')\n' '[ ! -z \$stock_path ] && mount -o bind \$base_path \$stock_path';