Skip to content

Commit

Permalink
fix: increase sleep timer for mount script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aunali321 committed Oct 16, 2022
1 parent 3b8dc66 commit 5b38c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/root_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class RootAPI {

Future<void> 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';
Expand Down

0 comments on commit 5b38c94

Please sign in to comment.