Jump to content
Sony Insider Forums
xispe

GYM | Network Walkman BROWSER-PLAYER-EXTRACTOR

Recommended Posts

Hi!

I've been developing a homemade genre/artist/album browser for my nw-hd5.

I managed to figure out the structure of the files inside OMGAUDIO to get the information about all the tracks saved in the player.

So i constructed a small program for browsing the tracks in an itunes like interface :ol_eyepatch: COOL! :D

Here goes a screen shot!

hd5browser.png

I figured out also where the matching OMA files are kept in the various subdirectories under OMGAUDIO.

I've made some testings on changing artist / genre / album names and it works. There are independent files for artists, albums and genres :)

Well.. i've seen somewhere that someone had figured out the mechanism for encoding and decoding mp3 files (via mp3filemanager). If i get that code, I think it's possible to make a fine replacement for mp3filemanager! And even a player! :ol_biggrin::ol_biggrin:

Future work:

- Read your comments.

- Publish this stuff and code for you to try it out in other devices.

- Editing Genre/Artist/Album information.

- ?? create a sonicstage replacement ? :ol_biggrin::ol_biggrin:

Share this post


Link to post
Share on other sites

New version! :) New icons and cool stuff!

browser4.png

(Yes i drawn the icons by hand by looking at the player!) :ol_dead::ol_biggrin:

Executable:

http://www.uninova.pt/~rmf/nwhddbrowser/Ne...kmanBrowser.zip

Requires Microsoft .NET Framework 1.1 to be installed on the system. If not installed, download it from:

http://www.microsoft.com/downloads/details...&displaylang=en

Source code (C#, Visual Studio .NET 2003):

http://www.uninova.pt/~rmf/nwhddbrowser/Ne...owserSource.zip

Just run the program, it will look for the device, (a drive containg OMGAUDIO directory with the file 04CNTINF.DAT).

The software was tested only using a SINGLE HD5. I don't know if the filenames change in other devices. Nothing is written to the device, so you shouldn't loose anything by running the problem. Even if you do, I shall not be held resposible :ol_biggrin::ol_biggrin:

Have fun!

Share this post


Link to post
Share on other sites

Keep up the good work. I'm going to make this public soon -- if you want me to host it or whatever just tell me. I can allocate whatever resources necessary.

Share this post


Link to post
Share on other sites

thanks! ;) Wait big news on this later... i'm having success in decoding mp3 files directly from the player! :D

EDIT: opps the keys used for encoding depend not only on track number, but also on the device Identifier... :ol_dead::ol_cry:

Edited by xispe

Share this post


Link to post
Share on other sites

Ok! Making some real interesting progress now!

After doing some experiments, looking at the OMA files side by side with their mp3 correspondence I noticed that 4 substitution cyphers where used.

For instance, in the mp3 file i had the sequence:

UUUUUUUU

and in the oma i had:

XWERXWER

So, for the first byte, U gets replaced with X, the second gets replaced with W, the third with E, and the forth with X.

So i had the ideia to generate an mp3 file with some intellegent trash at the end. I wrote all the possible bytes (from 00 to FF) in groups of four in hexadecimal, something like:

FF FF FF FF FF FF FF FE ... until 00 00 00 00

Then i uploaded the file to the player using mp3 file manager, and looked at the resulting OMA file.

I produced a small program for generating the 4 substitution cyphers, given a source mp3 file (with that trash at the end) and the resulting OMA file :). So I got the 4 substition cyphers for this file.

Then I deleted the file in mp3 file manager, and uploaded a real mp3! As this track was given the same id (the previous one was deleted), the cypher for encoding is the same! So, i could successfully extract the original mp3 file from the OMA file, using the cypher discovered with my trashy file! :ol_biggrin::ol_biggrin:

So, the idea is to get all the substition cyphers possible, at up to "n" tracks.

Now the trick, I renamed the directory OMGAUDIO to OMGAUDIO_, opened MP3 File Manager and had a clean player, with no tracks. (But all my previous tracks were there).

So what I did was generate lots of trashy files, to upload to MP3 File Manager, for it to encode and for figuring out the cyphers for each track number. (numbers now starting by 1, as OMGAUDIO is empty!)

I used 5000 tracks, which i think is more than enough. (In my hd5 i have 1gb free and have around 2800 tracks).

After loading all of these, I modified my program, to compare the original file with all the encoded files, and to build a database of cyphers, to use in each track number!

(5 megabyte binary file)

After finishing that and saving all the cyphers in a file, I renamed the full of trash OMGAUDIO to OMGAUDIO crack, and renamed back OMGAUDIO_ to OMGAUDIO. This way i had my tracks back on MP3 File Manager and on the player it self.

Now, I had to do was to use the cyphers that i got, to decode the files in the player! Guess what!? IT WORKED! :ol_smile:

As for the results, i think the images are pretty nice :ol_cool::ol_lol:

Winamp playing a track just extracted from the hd5 ! :ol_lol:

post-6589-1111454820_thumb.jpg

About to extract a full album! ahahaha sony!!!

Image2.png

Just select the output folder...

Image3.png

Look! Where the heck is the DRM ? :ol_shocked:

Image5.png

Playing back the legal tracks in winamp! :ol_rolleyes:

Image6.png

I'm going to automate as much as possible all that process of generating the keys, for you to test on your devices. I think that the keys are also dependent on the device Id... (check the DvID.dat in the Mp3 File Manager directory). I tried to change it, and the tracks didn't play on the player :ol_smile:

[thanks to http://www.livejournal.com/users/waider/415461.html , for giving me the substitution cypher clue :ol_smile: ]

Edited by Ishiyoshi

Share this post


Link to post
Share on other sites

This is brilliant! I hope you don't mind that I edited Image1.png as an attachment because it's too large for the window.

Keep up the good work! Are you planning to incorporate compression options?

When you are ready to consolidate your work, please create a separate thread with concise walkthrough or description and I will pinned that thread accordingly. This thread will remain the discussion thread for your brilliant work. :ol_smile:

Share this post


Link to post
Share on other sites

well, i don't know, maybe in the future. The main objective was to do a reverse mp3filemanager. This along with mp3filemanager allows people to move in and out their mp3s, what is very useful.

Share this post


Link to post
Share on other sites

well, i don't know, maybe in the future. The main objective was to do a reverse mp3filemanager. This along with mp3filemanager allows people to move in and out their mp3s, what is very useful.

You are quite right. What you have done will help many of those that suffer from mandatory initialization. Thanks for sharing this with the community.

Share this post


Link to post
Share on other sites

Great work! Does it present you the save option only if you have MP3s? My Atrac files show correctly in the HD1, names and everything, but I don't see the Save button. It would be nice if it worked with Atrac as well, but even if not, that's already fabulous work.

Share this post


Link to post
Share on other sites

Nice work, finally someone is making progress with sony devices.

How do you save files? Or isn't that version uploaded yet.

Has anyone been able to edit the firmware yet?

Share this post


Link to post
Share on other sites

The version on the server doesn't have the save feature yet. I would ask you to wait a bit till the end of this week, it's going to be a busy week at work :ol_dead:

You have to install .NET Framework before using the application.

I did a test with atrac files, they were downloaded, but winamp didn't played them (of course). I didn't test in importing these files back in Sonic Stage. Maybe it works, maybe not i'll try later :ol_fatpleased:

Thanks for the support :ol_smile:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×