storoj / libimobiledevice-win32

win32 port of libimobiledevice (http://libimobiledevice.org)
64 stars 61 forks source link

libimobiledevice-win32 code showing error #7

Open prateek1108 opened 10 years ago

prateek1108 commented 10 years ago

hi....... libimobiledevice-win32 is showing error of "error link 1104 :cannot open file libimobiledevice.lib " in projects idevice-debug-client and idevicebackup2

airwolf2026 commented 10 years ago

hi prateek1108,i can build the solution with no errors, maybe u should set idevice-debug-client 'project dependence' libimobiledevice?

prateek1108 commented 10 years ago

thanks airwolf2026 for reply, by your suggestion i am able to remove the compile time error but now runtime error is coming i.e" unable to start program \libimobiledevice-win32-master\debug\getopt.lib"

storoj commented 10 years ago

just set a project that you need as startup project using project's context menu (you have getopt project as startup project now)

prateek1108 commented 10 years ago

which project i have to set as startup project.....

vc123456 commented 10 years ago

I have set getopt project as startup project but runtime error is continuing... i.e "unable to start program \libimobiledevice-win32-master\debug\getopt.lib"

airwolf2026 commented 10 years ago

hi vc123456, the getopt project is a dll ,not a exe, so if you want to debug ,you should set 'ideviceinstalller' or other you like as a startup projcet

vivek0626 commented 10 years ago

hi airwolf2026, for your reply, i have set ideviceinstaller as a startup project but now runtime error is coming i.e" The program can't start because zlib1.dll is missing from your computer. Try reinstalling the program to fix this problem"

prateek1108 commented 10 years ago

hi airwolf2026, In which operating system and evirnment(Software installed) for compiling this code

storoj commented 10 years ago

there are dlls (zlib, iconv, libxml2) in vendors directory, you have to put them to Debug directory

airwolf2026 commented 10 years ago

hi prateek1108 my env is win7+sp1, and vs2010

vivek0626 commented 10 years ago

hi, i have restore all dlls (zlib, iconv, libxml2) in debug folder respect to error but runtime exception is coming. i have simple explain my problem.... i want to create simply window based application (vs2010) to copy sms.db ( /private/var/mobile/Library/SMS/sms.db) file in iphone to my computer for recover deleted sms and backup purpose without jail-breaking.

please give you any type of suggestion.. thanks in advance....

prateek1108 commented 10 years ago

but in vs 2010 this .sln is showing file unidentified .........i had tried this in windows xp ,vs 2012.,

airwolf2026 commented 10 years ago

hi vivek0626, you could use Filerelay service to download the sms.db or use the backupclient2

vivek0626 commented 10 years ago

hi airwolf2026, thanks for reply, suggest any of the demi project link...

vivek0626 commented 10 years ago

currently my project copied sms.db database on jailbreak iphone but i want to copy without jailbreking iphone.

airwolf2026 commented 10 years ago

without jailbreak,you could use file_relay.c to download the user dbs(contains addressbook,sms etc);

vivek0626 commented 10 years ago

can you create a small project to download the addressbook db.

prateek1108 commented 10 years ago

i had run this code but some of .dll is giving error at run-time ..........can you please provide any other link to this code or to code compatible with vs 2010......something is missing or corrupted in this libimobiledevice-win32 code.

airwolf2026 commented 10 years ago

hi vivek0626, i wrote a demo func to download the userdatabase

idevice_t device = NULL; lockdownd_client_t client = NULL; lockdownd_service_descriptor_t service_descriptor = NULL;

if (IDEVICE_E_SUCCESS != idevice_new(&device, NULL)) {
    fprintf(stderr, "No iPhone found, is it plugged in?\n");
    return;
}

if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &client, "file_relay")) {
    fprintf(stderr, "Could not connect to lockdownd. Exiting.\n");
    goto leave_cleanup;
}

if ((lockdownd_start_service
    (client, "com.apple.mobile.file_relay",
    &service_descriptor) != LOCKDOWN_E_SUCCESS) || !service_descriptor->port) {
        fprintf(stderr,
            "Could not start com.apple.mobile.file_relay!\n");
        goto leave_cleanup;
}

file_relay_client_t fileRelayClient = NULL;
file_relay_error_t ret = file_relay_client_new(device,service_descriptor,&fileRelayClient);
if(ret!=FILE_RELAY_E_SUCCESS)
    goto leave_cleanup;
else
{
    idevice_connection_t connection = NULL;
    //connect to the service port
    idevice_error_t  connRet = idevice_connect(device,service_descriptor->port,&connection);
    if(connRet==IDEVICE_E_SUCCESS)
    {
        const char* source[2]={"UserDatabases",NULL};
        ret = file_relay_request_sources(fileRelayClient,source,&connection);
    }
}

leave_cleanup:
if (client) { lockdownd_client_free(client); } idevice_free(device);
//bla bla other resource release

vipinbeni commented 9 years ago

Hi Sir @airwolf2026 ,

Could you please tell me how can i insert and extract Text Message(SMS) from ios device .If any Example code or process its really appreciated .

Thanks a lot in advance.

airwolf2026 commented 9 years ago

@vipinbeni You can extract SMS from FileRelay service. You can't insert message in SMS in normal iOS(except jailbreak)

vipinbeni commented 9 years ago

Dear Sir @airwolf2026 ,

Can you give me some reference code for sms(FileRelay ) and i have a product that insert sms to ios device without jailbreak. is there are no way to insert sms text messages to device.

thanks vipin

airwolf2026 commented 9 years ago

@vipinbeni That product may be use a ath flaw (no check the path is valide)

vipinbeni commented 9 years ago

Dear Sir @airwolf2026 , Could you please tell me about this in detail if you have time as i have no idea about ath flaw and FileRelay

thanks.

airwolf2026 commented 9 years ago

@vipinbeni Why your team make another wheel? Because there are a lot free software to manage iDevice.

vipinbeni commented 9 years ago

Dear Sir ,

Its our project to complete ios syn .

that why we have to complete it. Please help me.

thanks.

On Fri, Feb 27, 2015 at 8:36 AM, airwolf2026 notifications@github.com wrote:

@vipinbeni https://github.com/vipinbeni Why your team make another wheel? Because there are a lot free software to manage iDevice.

— Reply to this email directly or view it on GitHub https://github.com/storoj/libimobiledevice-win32/issues/7#issuecomment-76323266 .

Thanks Vipin Kumar Beniwal