Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: KernelSU compatibility #1592

Closed
4 tasks done
nebrassy opened this issue Dec 25, 2023 · 2 comments · Fixed by #1611
Closed
4 tasks done

bug: KernelSU compatibility #1592

nebrassy opened this issue Dec 25, 2023 · 2 comments · Fixed by #1611
Labels
Bug report Something isn't working

Comments

@nebrassy
Copy link

Bug description

Kernelsu compatibility was recently broken by this commit here

c23275f#diff-3a871b8563714fef81752772ddd7d536b29a27637010bcb169a168518bf6cae2R155

Version of ReVanced Manager and version & name of application you tried to patch

1.18
Youtube Music

Installation type

Root

Device logs

https://haste.aicp-rom.com/ekosizelom.coffeescript

Patcher logs

No response

Acknowledgements

  • This request is not a duplicate of an existing issue.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • The issue is solely related to the ReVanced Manager
@La-Hire
Copy link

La-Hire commented Jan 18, 2024

mod the sh and it works on ksu, maybe some help?

#!/system/bin/sh
#MAGISKTMP="$(magisk --path)" || MAGISKTMP=/sbin
#MIRROR="$MAGISKTMP/.magisk/mirror"

until [ "$(getprop sys.boot_completed)" = 1 ]; do sleep 3; done
until [ -d "/sdcard/Android" ]; do sleep 1; done

#Unmount any existing installation to prevent multiple unnecessary mounts.
grep com.google.android.youtube /proc/mounts | while read -r line; do echo $line | cut -d " " -f 2 | sed "s/apk.*/apk/" | xargs -r umount -l; done

base_path=/data/adb/revanced/com.google.android.youtube/base.apk
stock_path=$(pm path com.google.android.youtube | grep base | sed "s/package://g" )

chown system:system $base_path
chcon u:object_r:apk_data_file:s0 $base_path
mount -o bind $MIRROR$base_path $stock_path

#Kill the app to force it to restart the mounted APK in case it is already running
am force-stop com.google.android.youtube

@oSumAtrIX
Copy link
Member

This is already fixed in dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants