Git Product home page Git Product logo

Comments (18)

airend avatar airend commented on July 19, 2024 2

@supericqicq3, as suspected, that dlopen error is unrelated to microG. Here's how I managed to fix it manually:

  1. Extract libjsc.so from the YT Music APK (e.g., unzip com.google.android.apps.youtube.music.apk lib/arm64-v8a/libjsc.so)
  2. Find where YT Music was mounted (e.g., path=$( pm path com.google.android.apps.youtube.music | grep base | sed 's/package://g' | sed 's/\/base.apk//g' ))
  3. Copy extracted libjsc.so to $path/lib/arm64, and adjust permissions (i.e., -rwxr-xr-x 1 system system 9127104 2022-06-19 11:25 libjsc.so)

The patched YouTube Music app should start now. Of course, the assumption is that you deployed the app in root mode already.

from revanced-cli.

oSumAtrIX avatar oSumAtrIX commented on July 19, 2024

YouTube Music will not work without a microg patch which is in the works.

from revanced-cli.

airend avatar airend commented on July 19, 2024

@oSumAtrIX, this dlopen issue happens with the root version as well.

E AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libjsc.so" not found: needed by /data/data/com.google.android.apps.youtube.music/app_lib/libelements.so.5.03.50 in namespace classloader-namespace

This seems unrelated to microG support, and more like a gradle issue?

from revanced-cli.

oSumAtrIX avatar oSumAtrIX commented on July 19, 2024

As I said, YouTube Music will not work without a separate youtube music specific microg patch

from revanced-cli.

airend avatar airend commented on July 19, 2024

I did build revanced-patches with your microG PR, which yields the same dlopen error.

Thank you for your work. Hopefully, root mode YouTube Music will be functional, regardless of microG support.

from revanced-cli.

Canny1913 avatar Canny1913 commented on July 19, 2024

Because that patch is for Youtube. Not YT music.

from revanced-cli.

airend avatar airend commented on July 19, 2024

I'm referring to commit e22060b52cf09b5b6fe08d5b9ffb8f102efc6cf5 in PR #22.

At any rate, the conversation here was supposed to be about root-mode YT music (regardless of microG support). I simply added that I tested that cherry-pick just in case, even if I didn't expect that to be the culprit.

from revanced-cli.

Sculas avatar Sculas commented on July 19, 2024

I did build revanced-patches with your microG PR, which yields the same dlopen error.

The MicroG PR is a draft because it's not finished yet, that may also be why it doesn't work for you 🙂

from revanced-cli.

Canny1913 avatar Canny1913 commented on July 19, 2024

Does the patches work?

from revanced-cli.

airend avatar airend commented on July 19, 2024

As I said a couple of times already, this is root mode deploy (i.e., -d and no --install). I haven't tested non-root mode, but I suspect the dlopen error will happen there as well.

The original bug reporter ran into an issue that has nothing to do with the WIP music-microg-support. It's an YTM installation issue, possibly from the patcher. Alas, the issue was quickly dismissed.

from revanced-cli.

Canny1913 avatar Canny1913 commented on July 19, 2024

music-microg-support patch doesn't do anything lol (check the source code). its just a placeholder. non-root music isn't ready yet.

from revanced-cli.

u2716 avatar u2716 commented on July 19, 2024

I can confirm @airend method fixed my YTM from crashing and yes @Canny1913 all the available music patches work (though codecs-unlocks patch doesn't unlock Opus on personal uploaded songs, which only have AAC, but it's probably not the patch's fault, just google not encoding in opus uploaded music I think, because the patch works well with all the other songs)

from revanced-cli.

ponces avatar ponces commented on July 19, 2024

Just to let you know this commit fixed the need of any lib workaround!
No issues here with root method! Great work @Canny1913 !!

from revanced-cli.

oSumAtrIX avatar oSumAtrIX commented on July 19, 2024

The link does not point anywhere.

from revanced-cli.

ponces avatar ponces commented on July 19, 2024

The link does not point anywhere.

Ups, sorry! It does now 😅

from revanced-cli.

TheJeterLP avatar TheJeterLP commented on July 19, 2024

The link does not point anywhere.

Ups, sorry! It does now 😅

So this issue can be closed I guess?

from revanced-cli.

ponces avatar ponces commented on July 19, 2024

I would say yes... Or maybe wait for OP confirmation on this... Idk

from revanced-cli.

airend avatar airend commented on July 19, 2024

Can confirm that YTM works w/o workarounds now.

from revanced-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.