samdmarshall / SDMMobileDevice

MobileDevice Implementation
BSD 3-Clause "New" or "Revised" License
574 stars 97 forks source link

Backup from Device #103

Closed kapil0408 closed 7 years ago

kapil0408 commented 7 years ago

Atleast please help on it. i am very near to take backup from device to my mac system. i have reached on last stage to take backup.

i got from device in response as you described in SDMMD_MobileBackup2.h file

( DLMessageDownloadFiles, ( "efb2701063497003269535183f353b293f7a501a/Status.plist" ), { }, 0, 0 )

and then i am passing parameters BackupPath and “efb2701063497003269535183f353b293f7a501a/Status.plist” below function

SDMMD_MB2SendFile(conn, (bridge CFStringRef)(strBackupPath), (bridge CFDataRef)(data));

In SDMMD_MB2SendFile contains two function:

  1. SDMMD_MB2SendFileStream
  2. SDMMD_MB2SendEndStream

SDMMD_MB2SendFileStream is working fine but SDMMD_MB2SendEndStream is not working fine.

so i am unable to write this file (efb2701063497003269535183f353b293f7a501a/Status.plist) on my backup folder path (/Users/admin/Library/Application Support/MobileSync/Backup/efb2701063497003269535183f353b293f7a501a)

Please help any Idea :)