• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
mdbackup binary plist files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mdbackup binary plist files


  • Subject: mdbackup binary plist files
  • From: "Ryan Chapman" <email@hidden>
  • Date: Wed, 16 Jul 2008 23:15:01 -0400

Hopefully there is someone here who knows something about binary plist
files.  When an iPhone's firmware is upgraded in iTunes, a framework called
MobileSync creates a backup of the iPhone's data files.  The backup is
stored in .mdbackup files, in ~/Library/Application
Support/MobileSync/<targetId>/
I've found that the .mdbackup files are Apple binary plists (the magic is
bplist00, followed by 0xD4), however any attempts to read the files give the
error "Conversion of data failed. The file is not UTF-8, or in the encoding
specified in XML header if XML."  I've tried the Property List Editor and
the code below:

#import <Foundation/Foundation.h>
#import <stdio.h>

int main(int argc, char **argv)
{
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

        NSString *path = @"./file42.mdbackup";
        NSData *plistData;
        NSString *error;
        NSPropertyListFormat format;
        id plist;
        plistData = [NSData dataWithContentsOfFile:path];

        plist = [NSPropertyListSerialization propertyListFromData:plistData
                        mutabilityOption:NSPropertyListImmutable
                        format:&format
                        errorDescription:&error];
        if(!plist)
        {
                NSLog(error);
                [error release];
        }
        NSLog(@"%s", plist);
        [pool release];
        return 0;
}


Is there are way to use the Cocoa classes to read this type of binary plist,
or am I stuck with straight C?  If C is the only way, does anyone have a
file structure (format) reference for binary plists?

Thanks

Ryan
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: mdbackup binary plist files
      • From: Omar Qazi <email@hidden>
    • Re: mdbackup binary plist files
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Challenge Chapter 6 help!
  • Next by Date: Re: Getting the keyEquivalent as a string
  • Previous by thread: Challenge Chapter 6 help!
  • Next by thread: Re: mdbackup binary plist files
  • Index(es):
    • Date
    • Thread