Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions ItunesBackupFileExtractor/MbdbExtract.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
#define DEBUG

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down Expand Up @@ -49,11 +51,22 @@ public static List<MBDBFile> ReadMBDB(string iTunesBackupFolder)
byte[] sha1Buffer = sha1Crypt.ComputeHash(ASCIIEncoding.UTF8.GetBytes(string.Format("{0}-{1}", MbdbFile.Domain, MbdbFile.FilePath)));
MbdbFile.EncryptedFilename = GetHexStringByByteArray(sha1Buffer);

//Add MbdbFile to list
mbdbFiles.Add(MbdbFile);
#if DEBUG
if (MbdbFile.Domain.StartsWith("com.apple.TextEncoding") || MbdbFile.Domain.StartsWith("com.apple.assetsd"))
{
//Do we need to do anything here??
}
else
{
#endif
//Add MbdbFile to list
mbdbFiles.Add(MbdbFile);

//Ignoring the rest
NextFile(fs);
//Ignoring the rest
NextFile(fs);
#if DEBUG
}
#endif
}

return mbdbFiles;
Expand Down