0
0
Fork 0
mirror of https://github.com/YTVanced/VancedManager synced 2024-11-26 21:13:01 +00:00

Test Fix Root 3.2

This commit is contained in:
ostajic 2020-11-01 18:09:16 +01:00
parent 9118aa848d
commit 155407dbc4

View file

@ -434,7 +434,7 @@ object PackageHelper {
private fun setupScript(apkFPath: String, path: String): Boolean
{
if(Shell.su("""echo "#!/system/bin/sh\nwhile [ '\${"$"}(getprop sys.boot_completed)' != 1 ];\ndo sleep 1;\ndone;\nmount -o bind $apkFPath $path" > /data/adb/service.d/vanced.sh""").exec().isSuccess)
if(Shell.su("""echo "#!/system/bin/sh\nwhile [ '\${"$"}(getprop sys.boot_completed)' != '1' ];\ndo sleep 1;\ndone;\nmount -o bind $apkFPath $path" > /data/adb/service.d/vanced.sh""").exec().isSuccess)
{
Shell.su("""echo "#!/system/bin/sh\nwhile read line; do echo \${"$"}{line} | grep youtube | awk '{print \${'$'}2}' | xargs umount -l; done< /proc/mounts" > /data/adb/post-fs-data.d/vanced.sh""").exec()
return Shell.su("chmod 744 /data/adb/service.d/vanced.sh").exec().isSuccess