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

mediaUserTokens? #50

Open
Manveer-Singh-99 opened this issue Jan 22, 2025 · 16 comments
Open

mediaUserTokens? #50

Manveer-Singh-99 opened this issue Jan 22, 2025 · 16 comments

Comments

@Manveer-Singh-99
Copy link

please contanct me on discord at yamcha9662 so that i can respond quickly

Image

ive extracted widevine files from android studio but im unsure how to extract browser cookies and in what format to make media tokens (im using hackbroserdata as suggested by @chad-fa in #45)

@cym5563
Copy link

cym5563 commented Jan 22, 2025

Since I am a complete newbie to coding, including GitHub, I finally succeeded after racking my brain for two days.
Here's how I did it:

Refer to This to get device_client_id_blob and device_private_key

(In your case, you should rename client_id.bin to device_client_id_blob and private_key.pem to device_private_key. It must not have an extension like .bin.)

Then, create a folder with a virtual name in the device of the manzana installation path (in my case, "Android"),
and put the two files extracted earlier in the created folder. Like this

Device

Android (or any name)

device_client_id_blob
device_private_key

Now run Mansana and enter your device id number (maybe '0'), it will ask for your media-user-token value.

log in to the Apple Music Web with Chrome (subscription must be active)
Right click, click ''Inspect'' at the bottom, then open the Applications tab
Image

Click on the Cookies arrow on the left, then click on the https://music.apple.com Cookies tab.
you can find the media-user-token value

Copy and paste it into manzana and voila! manzana works like magic

( I also tried the hackbroserdata recommended by @chad-fa, but it seemed too complicated for me, so I tried this method. It was worth a try though. Thanks to @chad-fa and @dropcreations

@Manveer-Singh-99
Copy link
Author

Thanks for the help and i managed to get a bit further along; although i have a new error (🥲) that says "No Client ID Blob available for this device". I used a Mac to dump the android decryption keys (since the android vm would always fail to boot) and then moved it to a windows pc where i ran the script; even the mediaUserToken is from the google chrome of the windows pc; any clue what i'm doing wrong?

@cym5563
Copy link

cym5563 commented Jan 22, 2025

In my case, I dumped the file (pixel6, android pie) from android stage on windows pc and brought it to mac. (The device id selection window appeared in manzana without any problem.)
At first, I imported the media token together with windows pc, but it didn't work, so I tried again on chrome on mac and it was fixed.

Make sure you renamed the dumped file correctly, and if that doesn't work, try dumping the file again on mac or windows. (I'm not an expert, this is my subjective opinion.)

Sorry I couldn't help😥

@Manveer-Singh-99
Copy link
Author

Manveer-Singh-99 commented Jan 22, 2025

how did you manage to run the script on macOS? arent some of the dependencies windows only?
Edit: i found ccextractor IS on macOS but no CLI version i could find; only GUI

@cym5563
Copy link

cym5563 commented Jan 23, 2025

I was able to install mp4box, bento4, and ccextractor using brew.

brew install mp4box
brew install bento4

For ccextractor, I installed it using This code.

brew tap alebcay/homebrew-ccextractor
brew install alebcay/ccextractor/ccextractor

@Manveer-Singh-99
Copy link
Author

Still having the "No Client ID Blob available for this device" on macOS too; just to be clear, the 2 decryption files and the media user token can be from 2 different devices right? (decryption files from android studio vm and mediaUserToken from Chrome installed on macOS in my case)

@cym5563
Copy link

cym5563 commented Jan 23, 2025

I don't know if everyone else does this, but for me, yes, it works.
To explain my process from the beginning,

Installed mp4box, bento4, ccextractor using brew on Mac.
Followed the manzana installation process.
Extracted 2 decryption files using Android Studio on Windows PC.
Moved the files to the manzana - device folder on Mac, manzana successfully recognized the files.
Logged into Apple Music with Chrome for Mac, copied the media token
Entered it in manzana. Done

I repeated this process and successfully installed it on another Mac. Hope this helps. Good luck!

@Manveer-Singh-99
Copy link
Author

Alright, thanks! I'll try using fresh installs of both OSes; maybe something got crapped over by everything else i have installed on them; will let you know if all goes smoothly.

@Manveer-Singh-99
Copy link
Author

Manveer-Singh-99 commented Jan 23, 2025

Life is meaningless 😃😃! It still wont work for some reason

Image

(still couldnt get windows Android Studio to work for some reason; i used Android Studio Mac on Apple Silicon)

@Manveer-Singh-99
Copy link
Author

if you're comfortable sharing, can i have the two decryption files of yours? because i think im messing up some part of the android studio and dumping process,

@cym5563
Copy link

cym5563 commented Jan 27, 2025

Sent a Discord friend request to yamcha9662

@jaseyrae9400
Copy link

Sent a Discord friend request to yamcha9662

Can i also have a copy of the 2 description files of yours if that's okay? Thanks in advance.

@Manveer-Singh-99
Copy link
Author

yamcha.zip

@Manveer-Singh-99
Copy link
Author

did it work for you?

@jaseyrae9400
Copy link

jaseyrae9400 commented Jan 28, 2025

did it work for you?

Yes. But now i'm having problems with adding the mediaUserToken. How do i add that?

@jaseyrae9400
Copy link

I don't know if everyone else does this, but for me, yes, it works.
To explain my process from the beginning,

Installed mp4box, bento4, ccextractor using brew on Mac.
Followed the manzana installation process.
Extracted 2 decryption files using Android Studio on Windows PC.
Moved the files to the manzana - device folder on Mac, manzana successfully recognized the files.
Logged into Apple Music with Chrome for Mac, copied the media token
Entered it in manzana. Done

I repeated this process and successfully installed it on another Mac. Hope this helps. Good luck!

How did you enter the media user token? Where exactly did you put it?

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

No branches or pull requests

3 participants