GithubHelp home page GithubHelp logo

Whats the client? about libirecovery HOT 5 CLOSED

chronic-dev avatar chronic-dev commented on August 31, 2024
Whats the client?

from libirecovery.

Comments (5)

nikias avatar nikias commented on August 31, 2024

libirecovery is now officially at https://github.com/libimobiledevice/libirecovery - to answer your question: you don't need to know the type because it is returned in that parameter. Just use an irecv_client_t client and then pass &client as the parameter. When the function successfully returns it will point to an irecv_client_t 'handle' that you can use for the rest of the API.

from libirecovery.

WilliamHottzz avatar WilliamHottzz commented on August 31, 2024

What i'm trying to do, for a basic understanding is just reboot the device via usb.
irecv_client_t client;
irecv_open_with_ecid(&client, (unsigned long long)"PHONE ECID");
irecv_reboot(client);

but at irecv_reboot(client); i'm getting a access violation

Is there a quick example of doing this?

from libirecovery.

nikias avatar nikias commented on August 31, 2024

Casting the phone ecid from a string to unsigned long long will not work. You need it as a numerical value. Also check for errors, I bet that client is NULL before calling irecv_reboot in your case.

from libirecovery.

WilliamHottzz avatar WilliamHottzz commented on August 31, 2024

irecv_client_t client;
irecv_open_with_ecid(&client, (unsigned long long)0xMY_ECID);
if (client == NULL) printf("WE got nothing"); else irecv_reboot(client);

at irecv_reboot(client); still getting access violation, i have the right ECID copied from 3uTools & its in recovery 0x1281

from libirecovery.

nikias avatar nikias commented on August 31, 2024

Can you please move to the official repo, and try with the latest code https://github.com/libimobiledevice/libirecovery
Thanks.

from libirecovery.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.