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
shenax
Visitor

Hi. Did you finally find a solution?

I also did a backup via "Backup and Restore" to SD card -> Android -> data -> Sony BnR

Now my Sony Z3c is dead.

And I can't extract this files from "Sony BnR" folder.

NO OTHER PHONE UNDERSTAND THIS DATA.

XPERIA COMPANION CANT READ IT  EITHER.

AND THERE IS NO ORIGINAL SONY "Backup and Restore" APP in Google Play store.

How can I get my contacts back?

P.S. A girl from Sony support team call center didn't help mush. Just said I should try the same exact phone model to restore data from SD.

Danytphilip
Visitor

Anyone find a way to read the SonyBnR files yet? I'm having trouble with my fone and need to read those files.

dmitrye1
Visitor

Hello, just would like to share how I coped with this problem.

I made a new manual backup with Xperia Backup and Restore (only for wifi networks) and moved the old backup files (there were contacts, apps, call log and messages) in the new backup folder using the Total Commander app (path: \SD Card\Android\data\SonyBnR)

Everything recovered just fine then, no password asking.

Anamon2
Visitor

Great, thank you for sharing this tip! I'll try it next chance I get.