New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of com.apple.mobile.MCInstall #1029
base: master
Are you sure you want to change the base?
Conversation
Hey Ethan, I looked through your merge request and saw that the erase device command was still apart of the backup tool documentation, but the feature was reverted. File in your changes: The erase device command should be implemented as it goes hand in hand with your new feature. A device will need to be erased before setting it's cloud configuration with supervision. Thanks, |
Hey Dalton, Thanks for catching that! I was originally going to make the erasure command a separate pull request, but I never went back and created a pull request for it, looks like I missed the references to the command in the documentation when removing the code. I updated **tools/idevicebackup2.c to include the erase command, as it is definitely helpful when preparing devices. Thanks, |
Hi Ethan, I'd like to check it out for testing, may I know how to do it? Thanks in adv. |
You can build and install this branch the same way as master, where are you running into trouble? |
how can we download this binary ? |
@WilliamHottzz did you get this binary? |
@fsinnes no not yet. It doesn’t have sln to build it with visual studio … a binary would be helpful |
@ethanatwork I built the ORIGINAL libimobiledevice myself successfully FINALLY but that doesnt matter when I want this function above all, I tried the same process with this version and I get a few errors in MSYS @ethanatwork if you dont mind can we get a windows binary of your version? That function to erase through the settings version without the firmware would complete my current project. |
What error are you getting compiling this version that you don't get compiling from master? I don't use windows so I can't compile you a windows binary, but I can try to help get it to build for you. |
Ok so to help some other people out, here is the list of steps I took to successfully build the windows binaries for LIBIMOBILEDEVICE. This method was built from several different threads I found where people were trying to get it to work. I don't know what it all does, I just know that it has worked for me after ALOT of trial and error. Whenever I ran into a problem, I would wipe out the MSYS2 installation and start over because I didn't know if leftover files were creating errors as well, still don't I guess. All you need to do is install MSYS2 (it installs both 32 and 64 but we will be using 32) and I have found that your windows user name having a space in it is a huge issue. (ex: Foo Bar, rather than FooBar) (using MSYS2 32)
|
What file would we have to build? in MSYS2 i did
Edit: Or if it's easier could you kinda drop an explanation on what Like a step-by-step how to perform the |
@WilliamHottzz I was under the impression there was no actual backup happening here, that we were just triggering the settings version of the "erase all data" function. |
Not sure tbh. I’ve seen that the reset is triggered from “mobile
obliterater” but don’t see any reference to it in the source …
I’ll attempt a windows C binary later today maybe.
Do you have discord ? We appear to be working on similar ideas, maybe we
can work together on some stuff ?
…On Mon, Oct 11, 2021 at 3:02 PM Forrest Sinnes ***@***.***> wrote:
@WilliamHottzz <https://github.com/WilliamHottzz> I was under the
impression there was no actual backup happening here, that we were just
triggering the settings version of the "erase all data" function.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1029 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANO7WTGAYDEKNC7ANK76YNLUGM7GBANCNFSM4RTJBWNQ>
.
|
@WilliamHottzz I've been thinking the same thing since I found your comments in the main branch, mine is spewkihecks#2640 |
In your version for CMD_ERASE you have But in mobilebackup2.c the method is ...
The third param plist_t options cannot be null ... this is the only issue im having, what goes in the third param? |
It works for me with the options as null. Is that the line that the compiler errors on for you? If that's all that's preventing it from compiling you could try using an empty plist_t instead of null. The erase command isn't creating a backup at all, it's just sending a message to Erase the device. Check out the code for changing the backup password to see another use of the mobilebackup2_send_message method. Sorry I'm not on here more often, I'd be up for joining a discord to work on this stuff if you have one set up. Hope this helps |
Yes of course. Send me you discord ?
…On Wed, Oct 13, 2021 at 5:45 PM Ethan Carlson ***@***.***> wrote:
It works for me with the options as null. Is that the line that the
compiler errors on for you? If that's all that's preventing it from
compiling you could try using an empty plist_t instead of null.
The erase command isn't creating a backup at all, it's just sending a
message to Erase the device. Check out the code for changing the backup
password to see another use of the mobilebackup2_send_message method.
Sorry I'm not on here more often, I'd be up for joining a discord to work
on this stuff if you have one set up.
Hope this helps
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1029 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANO7WTCKFYTNWOTZ3SMSVPTUGYDYVANCNFSM4RTJBWNQ>
.
|
How much time on average does this erase command take? Thanks in advance! |
Running the actual command takes seconds. The device will run a "erase all content and settings" which takes approximately 10 minutes or less. The device does not need to remain connected after the command is sent. |
Hi ethana, |
I implemented com.apple.mobile.MCInstall to manage configuration profiles under mcinstall.c, I also built a command-line utility making use of the implementation, called ideviceprovision. All three files are based on the implementation of com.apple.mobile.misagent. The other changed files are makefiles and documentation. Hope this is helpful.