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

YTM Report thread #362

Open
th3an7 opened this issue Jun 21, 2018 · 92 comments
Open

YTM Report thread #362

th3an7 opened this issue Jun 21, 2018 · 92 comments

Comments

@th3an7
Copy link
Collaborator

th3an7 commented Jun 21, 2018

I've created a new branch that supports YouTube Music - it works ok in video mode (playing songs as videos) - sound only is not available without YouTube RED subscription...

The .java code is exactly the same as original one for normal YT app - the only changes I've made are hooks direct URL and YTM package name...

I've tested it on Genymotion android emulator with Xposed Framework installed and it's working fine - music is played in a background with playback controls visible as notification

It's also confirmed that it's working on a physical devices - Honor 8 and Galaxy S4 - XDA

If you want to test it yourself, check this XDA post HERE

If anyone better at programming wants to try merging YTM and YT apps support together in one YT/MBP Xposed module - there you have it :)

@th3an7
Copy link
Collaborator Author

th3an7 commented Jun 21, 2018

Forgot about one thing - if YouTube Music is not available in your country - use US VPN or setup a proxy connection for your WiFi network...

@wokawoka
Copy link

wokawoka commented Dec 9, 2018

This is just great.
Is there a way to get the compiled apk for a more recent version?
If not, would it be possible to get the sources for the YT music to compile?
Many thanks in advance

@wokawoka
Copy link

wokawoka commented Dec 9, 2018

In addition, I tested your 0.1 version with an old yt music 2.23.56 version and the music unfortunately stops when the app is minimized.
It's strange because that old ytm version doesn't even add any notification with controls on my phone, differently to what you were showing in your video. Maybe I'd need to find a 2.23.55 apk but I couldn't find online.

@th3an7
Copy link
Collaborator Author

th3an7 commented Dec 9, 2018

@wokawoka try 2.53.54 HERE

I was looking at the latest version but it has changed so much i don't really know which classes is which :/

2.53.54 is the latest one added to the sources... it should work but haven't tested this since I made it :P
Module is exactly the same as for the normal YT app with a differences in package name to hook and direct link to file with hooks - the rest is the same (even app package name is the same so it may be a problem when getting logs since you probably won't know which one generates errors...)

That's why it is experimental AF :P

@wokawoka
Copy link

Thank you very much for your reply @th3an7
I've just tried again with YTM version 2.53.54 and it looks like I'm experiencing the same problem as with version 2.23.56 (that I previously downloaded from apkmirror as well):
the music stops when the app is minimized and there is absolutely no notification with play controls like in the video I've seen online. The xposed module is correcltly activated (v.0.1-experimental4), I'm running stock android 7.1 with latest xposed installed

I'm just wondering if the fact that I'm using youtube vanced could interfer with your module. If your module is targeting the YTM specific hooks I tend to believe that it shouldn't.

Any other idea/suggestion?
Thank you very much and keep up with the great work on YouTubeBackgroundPlayback

@th3an7
Copy link
Collaborator Author

th3an7 commented Dec 11, 2018

@wokawoka well... if you're not using module for normal YT app then you should check logcat and xposed logs - maybe you'll find something there

If you'd be using both modules at the same time it would be difficult since both apps are generating logs with the same tags... but in this case you should be fine as you're using Vanced only :P

@wokawoka
Copy link

Thank you for replying.
Nothing interesting in the xposed log, this is what I've found in the logcat:

12-11 17:41:17.456 I/YTMusicBackgroundPlayback(30213): No hook details were found for the version of YouTube installed on your device. [vc:25354330]

12-11 17:41:17.456 I/YTMusicBackgroundPlayback(30213): Using the fall-back hook details for YouTube as a last resort.

12-11 17:41:17.461 W/YTMusicBackgroundPlayback(30213): One of the hooks could not be applied: java.lang.ClassNotFoundException: com.google.android.libraries.youtube.player.background.BackgroundTransitioner

12-11 17:41:17.465 W/YTMusicBackgroundPlayback(30213): One of the hooks could not be applied: java.lang.ClassNotFoundException: com.google.android.libraries.youtube.innertube.model.PlayabilityStatusModel

12-11 17:41:17.465 W/YTMusicBackgroundPlayback(30213): Ignoring an unrecognized hook action for YouTube in the list. [a:return_string;vc:25354330]

12-11 17:41:17.469 W/YTMusicBackgroundPlayback(30213): One of the hooks could not be applied: java.lang.ClassNotFoundException: com.google.android.apps.youtube.app.background.BackgroundSettings

12-11 17:41:17.473 I/YTMusicBackgroundPlayback(30213): Done applying the hooks. [vc:25354330]

Any suggestion?

@th3an7
Copy link
Collaborator Author

th3an7 commented Dec 11, 2018

Hmm... looks like it didn't find hooks for your version despite it's already added here on github...
12-11 17:41:17.456 I/YTMusicBackgroundPlayback(30213): No hook details were found for the version of YouTube installed on your device. [vc:25354330]

2.53.54 = 25354330/1000 which is OK

Try restarting your device or force closing YTMusic app once again... We'll try something...

@wokawoka
Copy link

You know what, I rebooted once again and not it works: "done applying hooks"!
It's quite strange because I already did reboot at least once previously.
Do you know why it needed more than one reboot in order to be able to correctly get the hooks?

Youtube music in the background It's so cool.
If now I could get rid of the ads (on some more recent versions they were blocked from my host file but youtube music from time to time was still interrupting the music and playing a short jingle) , I still have to test this version tough.

Do you by chance plan to eventually release an update version working with a more recent version? It would be great, I can't understand why other users haven't commented much here or on xda (or at least that's the impression I got) because being able to reduce youtube music is even more useful than doing it on regular youtube.
Thank you once again for your prompt assistance and for the generous job you are doing.

@th3an7
Copy link
Collaborator Author

th3an7 commented Dec 11, 2018

@wokawoka I knew it... I am so f****** stupid... I was updating hooks but forgot that the link inside the module points to wrong repo 🤦‍♂️

Note to myself - release either update for module with corrected link OR update hooks on my fork...

About module - it's useless for most users since YT Music works only in US and to test it I had to use emulator with VPN - that's why it's experimental AF - probably only You are using it right now :P

I could check the latest version once again but in the meantime, you'd better be using this one as it's working (I guess :P)

@wokawoka
Copy link

I didn't get what was the problem about the wrong repo. Are you speaking about the dropbox link from which I downloaded the xposed module?
According to your description it was supposed to work with youtube music version 2.23.56 and 2.23.55, while it's running perfectly with version 2.23.54 atm. Anyway, it works and I'm extremely happy now.

I have also to say that I'm writing from Europe in this right moment (Germany) and youtube music works perfectly (now in the background thanks to your module!) on both my mobile and my laptop so I guess that there are some Countries outside the US where the service works (I guess it could be easy to find them out reading online).
I bet you could make more people than just me happy (especially considering that using a "freemium" spotify on a mobile is not as easy as it use to be.

@th3an7
Copy link
Collaborator Author

th3an7 commented Dec 11, 2018

@wokawoka hmm... maybe they are finally expanding YTM market...

About the link - in source code there is direct link to hooks:

private static final String HOOKS_DOWNLOAD_URL = "https://raw.githubusercontent.com/pylerSM/YouTubeBackgroundPlayback/yt-music/assets/hooks-music.json";

I guess after uploading that module for testing purposes, I forgot to build it again with correct link...

I'll leave it for now as it is as it's working - i just need to remember to update both repos respectively...

@wokawoka
Copy link

I see. Then I just hope that you'll not change the hooks on the github repo while we are listening successfully with this combo (xposed module + ytm 2.23.54 version works).
I cross my fingers for an updated version in the future and I'll keep monitoring this repo.
Many thanks once again!

@th3an7
Copy link
Collaborator Author

th3an7 commented Dec 11, 2018

Well @wokawoka your prayers may have been heard - can you please test it for 2.61.50?

As I said - there was a lot of changes so it may or may not work - backup your current version first :)

So - Install YT Music v2.61.50 and either force close app or completely reboot your device to force download new hooks

@wokawoka
Copy link

Great news!
Alright, I've backed up the current version of the module.
But, as a general question, if each time, after a reboot, it fetches the hooks from the repo, is there a way to just freeze it like it is (say, with the hooks for the 2.23.54 version), other than, maybe, blocking its access via the firewall?
Does it mean that, since you updated the hooks on the repo, my setup would have stopped working after a reboot? Or maybe you did keep the hooks for both versions?

Anyway I'm going to install ytm 2.61.50 and report back in a few minutes.
Thanks

@th3an7
Copy link
Collaborator Author

th3an7 commented Dec 11, 2018 via email

@wokawoka
Copy link

You are my hero. It looks like it's working with ytm 2.61.50 as well!

While testing the 2.23.54 version I didn't get any ads (they were blocked by the adway hosts file or the one on my router, I guess) but from time to time (not really often) I was still getting the opening/closing jingle that the app plays before and after each ad.
Do you think that this is hardcoded in the app and there's nothing to do or it may be somehow possible to remove this jingle as well? Honestly it's not bothering me much, but removing that as well would be just the perfect setup for me to go back to listen to my music in streaming.

@th3an7
Copy link
Collaborator Author

th3an7 commented Dec 11, 2018

In theory you could check if YouTube AdAway works for YT Music (and it should as it also looks for ads there) but it may crash - use this prebuild version from HERE

In the past some users reported that using both YTBP and YTAdAway crashes YouTube app so be cautious...

As I said - it may work but you need to check it yourself :)

@wokawoka
Copy link

Thank you for the suggestion.
I installed the version you linked and I've installed it. So far it's not crashing but I'm not able to say if it's removing the ads since my host file is already blocking them. I tend to think that the short sound that announces and closes the ads is hardcoded in the app and it's not being downloaded.
If I'll be able to block it I'll surely report back.
Thank you once again. I go back listening to some music now. I did appreciate your help a lot.
Keep up with the great work you are doing

@Untzo
Copy link

Untzo commented Feb 25, 2019

is not working anymore on version 3.03.55 of YTmusic

@th3an7
Copy link
Collaborator Author

th3an7 commented Feb 25, 2019 via email

@Untzo
Copy link

Untzo commented Feb 25, 2019

Thx

@th3an7
Copy link
Collaborator Author

th3an7 commented Feb 25, 2019

@Untzo Check if it works again - just force close YTM app or reboot your phone (FC should be enough tho)

Seems like it didn't change much so 🤞

@Untzo
Copy link

Untzo commented Feb 25, 2019

Yes it's fully working thx for your help

@Untzo
Copy link

Untzo commented Mar 4, 2019

Plz post the new link when will be readyl

@th3an7
Copy link
Collaborator Author

th3an7 commented Mar 5, 2019

@Untzo sorry it took me so long... should work again - as always - just force close YTMusic app :)

@SammyTRK
Copy link

@th3an7 The new version of YT music v3.53.51 has changed the second method somewhat. I can find it with the same search but the whole method has changed some. I tried updating it as I usually do but its not working. :(

Also, I found LuckyPatcher has a custom patch for YTM that gives background playback, gets rid of ads and enables audio only. You should check it out maybe you can use that to enable those features in this app. Although I'm guessing it probably won't work with 3.53.51 either (haven't tried it yet).

@th3an7
Copy link
Collaborator Author

th3an7 commented Feb 20, 2020

@th3an7 The new version of YT music v3.53.51 has changed the second method somewhat. I can find it with the same search but the whole method has changed some. I tried updating it as I usually do but its not working. :(

What were the classes you found? It may be the issue with first one actually as I can't seem to find it myself (just did quick search with old HEXes...)
Second one may be vog.c adpe (at least that's what LP patch looks for...)

Also, I found LuckyPatcher has a custom patch for YTM that gives background playback, gets rid of ads and enables audio only. You should check it out maybe you can use that to enable those features in this app. Although I'm guessing it probably won't work with 3.53.51 either (haven't tried it yet).

Ye, there are also patches for YT (that's how I was looking for classes to update the module before :D) Second class may be working (see above) but dunno what about the rest (and if Xposed can hook them properly)...

If you don't mind, you could DM me on Discord - Th3Ant#9411 so it would be easier to talk (or somewhere else... just send me info where we could figure out something quicker :D (might not respond immediately so I'll check when I can - probably due to timezones)

@SammyTRK
Copy link

@th3an7 Ok.

@Sajito
Copy link
Contributor

Sajito commented Apr 20, 2020

@th3an7 @SammyTRK have you two figured out what changed? Am running YTM 3.61.51 without any hooks present.

@th3an7
Copy link
Collaborator Author

th3an7 commented Apr 20, 2020

@th3an7 @SammyTRK have you two figured out what changed? Am running YTM 3.61.51 without any hooks present.

I've pushed update with new hooks - it should work (if not, let me know :P )

@someone5678
Copy link

@th3an7
Copy link
Collaborator Author

th3an7 commented Jun 10, 2020

https://apkcombo.com/youtube-music-stream-songs-music-videos/com.google.android.apps.youtube.music/download/apk

3.69.52 is out and module does'nt work

Seems like there was no changes - just version bump...
Updated and should be up again

@someone5678
Copy link

@th3an7
Copy link
Collaborator Author

th3an7 commented Jun 21, 2020

https://apkcombo.com/youtube-music-stream-songs-music-videos/com.google.android.apps.youtube.music/download/apk

YTM 3.71.54 is out now!

Updated 😃

@someone5678
Copy link

https://apkcombo.com/youtube-music-stream-songs-music-videos/com.google.android.apps.youtube.music/download/apk

YTM 3.71.57 is out!

@someone5678
Copy link

https://apkcombo.com/en-pl/youtube-music-stream-songs-music-videos/com.google.android.apps.youtube.music/download/apk

YTM 3.75.50 has released!

@th3an7
Copy link
Collaborator Author

th3an7 commented Jul 31, 2020

YTM 3.77.52 released!
https://apkcombo.com/youtube-music-stream-songs-music-videos/com.google.android.apps.youtube.music/download/apk

It was already added yesterday I think (in commit #413 ) - is it not working? It was PR-ed so I didn't check classes myself...

@someone5678
Copy link

someone5678 commented Aug 1, 2020

It was already added yesterday I think (in commit #413 ) - is it not working? It was PR-ed so I didn't check classes myself...

Oops sorry I didn't check that 😌

th3an7 added a commit that referenced this issue Aug 14, 2020
@th3an7
Copy link
Collaborator Author

th3an7 commented Aug 14, 2020

Sorry for the delay - should be up and working again :D

@th3an7
Copy link
Collaborator Author

th3an7 commented Aug 31, 2020

@Apologize327 Moving convo here as mentioned in the other issue...
I've updated hooks for 3.81.52 - they've changed something and I may need to add new class... testing old method first

Let me know if it still doesn't work

@th3an7 th3an7 changed the title VERY experimental support for YTM app YTM Report thread Aug 31, 2020
@an3dt4
Copy link

an3dt4 commented Sep 20, 2020

@th3an7
Copy link
Collaborator Author

th3an7 commented Sep 20, 2020

YTM 3.83.55 is out
https://apkcombo.com/youtube-music-stream-songs-music-videos/com.google.android.apps.youtube.music/download/apk

Hmm... I've updated hooks for that version 2 days ago.. Is it not working? Can you please check Xposed logs?
There was couple changes already in previous version but I didn't change hooks to reflect that - this one (3.83.55) is using the same method.

If it doesn't work, I'll try adding new class to hooks and see if that fixes it (or breaks even more...) - but yeah, check Xposed logs if there is anything useful for now

@an3dt4
Copy link

an3dt4 commented Sep 21, 2020

Sorry ,my bad, it's working, just need re-installing YTM but not update directly every time to make it work.

@th3an7
Copy link
Collaborator Author

th3an7 commented Sep 21, 2020

Sorry ,my bad, it's working, just need re-installing YTM but not update directly every time to make it work.

Hmm... that doesn't sound right - it should work after updating too...
If it happens again, can you check Xposed logs anyway and/or if it's possible, could you send base.apk from data/app/ (if it exists)?

Wonder why it didn't apply hooks...

@an3dt4
Copy link

an3dt4 commented Sep 21, 2020

Sorry ,my bad, it's working, just need re-installing YTM but not update directly every time to make it work.

Hmm... that doesn't sound right - it should work after updating too...
If it happens again, can you check Xposed logs anyway and/or if it's possible, could you send base.apk from data/app/ (if it exists)?

Wonder why it didn't apply hooks...

ok, I'll check it next version

@someone5678
Copy link

th3an7 added a commit that referenced this issue Oct 23, 2020
#362 

Couple changes here and there... hopefully it works fine 🤞
@th3an7
Copy link
Collaborator Author

th3an7 commented Oct 23, 2020

YTM 3.89.52 released!

https://apkcombo.com/youtube-music-stream-songs-music-videos/com.google.android.apps.youtube.music/

Updated - some things have changed so let me know if it still works (hope the script still shows correct classes 🤞

@th3an7 th3an7 pinned this issue Oct 23, 2020
@someone5678
Copy link

YTM 3.89.52 released!
https://apkcombo.com/youtube-music-stream-songs-music-videos/com.google.android.apps.youtube.music/

Updated - some things have changed so let me know if it still works (hope the script still shows correct classes 🤞

Working without any problem Thx!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants