Join now - be part of our community!

Decode SonyBnR (Backup & Restore) files?

Anamon2
Visitor

Decode SonyBnR (Backup & Restore) files?

Sony's Backup & Restore tool allows to back up application data, call logs, contacts, text conversations and other settings to an SD memory card or Google Drive. The different backup categories are stored in files coming in pairs such as SETTINGS and SETTINGS_meta, or CALL_LOG and CALL_LOG_meta.

I have used Backup & Restore to successfully transfer over my settings and data across a factory reset. However, I'm looking for a way to open and inspect the backup files without having to do an actual restore on the phone (which overwrites the current settings). For example, I have another set of Backup & Restore data from a previous Xperia phone, and I'd like to check the text messages that are stored in that backup set, without having to overwrite (or add them to) the messages I have on my current phone.

The _meta files are uncompressed XML files containing some information about the backup set, such as the time at which it was created, and a checksum. It also contains a tag "<isCompressed>1</isCompressed>". This is an example, my CONVERSATIONS_meta file:

<?xml version="1.0" encoding="UTF-8"?><root><deviceId>##TRUNCATED##</deviceId><clientVersion>2360324</clientVersion><checksum>4267047373</checksum><signature>##TRUNCATED##
</signature><modificationTime>1476100656386</modificationTime><initializationVector>UL5xoPlnxlqembfFIc6wvA==
</initializationVector><isCompressed>1</isCompressed><json_data/></root>

The CONVERSATIONS file itself, though, seems to be a compressed binary format. The first line is plain text and legible:

XT XML VERSION=00000001

but the rest is not readily decipherable, and I couldn't figure out how to do it. It's not a regular ZIP or GZIP file, at least not with standard headers (in contrast to the backup files created by PC Companion). Apparently, there is also no standardised binary XML format, everybody seems to be developing their own.

Has anyone had any success in opening and reading these files, or would know how to approach decoding them? Are they simply compressed, or also encrypted in some way?

13 REPLIES 13
athquad
Visitor

Hi, did you ever get anywhere with this? My sony went away for repair and never came back and I ended up with a Samsung phone. I'm now tearing my hair out trying to find how I can restore the relevant backup stuff.

Anamon2
Visitor

Nothing yet, unfortunately.

I might take another look at it myself on occasion. Considering almost everything else is stored in standard formats, I somehow doubt that this would be somehow encrypted or in a strange proprietary format. Having both the backup and the actual files still on the phone might help with the figuring out how the files are built.

OxoneGTR
Visitor

Hi Guys,

I used to own a Z5 Compact till yesterday when I traded it in. In my stupiditity I didnt use to native transfer app to transfer from the Xperia to the new HTC. But i did do a backup for the Z5 on my sdcard for my contacts, sms, call logs etc.

Now I would like to know how can I extract from these backups? To clarify it's not the .dbk file. The files I have are like "CONTACTS" and "CONTACTS_meta".

Any help would be appreciated.

Cheers,

Omer

profile.country.GB.title
Uliwooly
Expert
AldriAnne
Visitor

Hi guyz, I really don't know what to do now. I need to restore the apps that I was able to back up but the thing is it ask for a password that consists of 4-8 characters. And I can't remember that I created one. Please need help badly. Thank you
OxoneGTR
Visitor

Hiya,

Yes the problem mentioned in that thread is exactly what I am facing.

Cheers.
Bugmenotsony
Visitor

If it ask your password it's kind of impossible to decrypt, if you don't know the password. You at least have know the password. 

You should hope, that's not an AES Encyrpting method used.

Please use Uniextractor to find the right way to extract your Backup files.

romasq
Visitor

Hi,

I have the same problem.. does Uniextractor resolved the problem ?

Thks

Roman

Tomo1
Visitor

Hi
I've go the same problem. I did a backup, reflashed the firmware in phone, and now I cannot restore. Phone sees backup, asks what to restore, and when I press the restore button nothing is happening. Uniextractor can't figure out the format. Is there any chance to get my contacts back?