Giter VIP home page Giter VIP logo

Comments (34)

nikias avatar nikias commented on June 12, 2024 4

I know. It needs to talk to another service for activation. I have the code and it will be committed soon.

from libideviceactivation.

nikias avatar nikias commented on June 12, 2024 1

It's nothing we can control. This is what Apple's server returns. If the device is activated (ideviceinfo -k ActivationState returns 'Activated') there is no point in asking Apple's server about it :)

from libideviceactivation.

Derewith avatar Derewith commented on June 12, 2024

this not work anymore dude!

from libideviceactivation.

truonggiang0710 avatar truonggiang0710 commented on June 12, 2024

Hi @nikias, I'm waiting it ! Thanks !

from libideviceactivation.

mallon735 avatar mallon735 commented on June 12, 2024

Today I am not able to activate iOS 10.3.2 (iPhone 6S) also. Yesterday it was working. It seems that Apple has changed something in their server.

I am getting following response from server:

<xmlui>
<navigationBar title="Activation Error" hidesBackButton="true"/>
<tableView><section/></tableView><tableView><section footer="Activation request
 could not be completed. Please press the home button to try again. If the problem persists, please contact customer care."/>
</tableView>
</xmlui>

from libideviceactivation.

nikias avatar nikias commented on June 12, 2024

@mallon735 is this still happening?
@truonggiang0710 I committed some updated code (that I wrote in 2016) but it still needs some additional work for iOS 11...

from libideviceactivation.

mallon735 avatar mallon735 commented on June 12, 2024

No. Your latest commit fixed this.
Thank you for your great work.

from libideviceactivation.

nikias avatar nikias commented on June 12, 2024

@mallon735 ok cool. Still need to fix it for iOS 11

from libideviceactivation.

truonggiang0710 avatar truonggiang0710 commented on June 12, 2024

@nikias It's not perfect ! I run 10 times on iOS10.3.2 but only 1 time activate successfully.
I will wait you add some information into activation request.
I will test gain on iOS10 and iOS11

from libideviceactivation.

nikias avatar nikias commented on June 12, 2024

@truonggiang0710 I think it depends on the device maybe? I found the same new way to activate can also be used on pre iOS 11 devices. It uses an additional request for a "drmHandshake". I am implementing it right now.

from libideviceactivation.

nikias avatar nikias commented on June 12, 2024

Please check my latest commit cb265d0. Requires libimobiledevice commit libimobiledevice/libimobiledevice@0dbe76b with my patch from here: https://gist.github.com/nikias/b351bf633d62703e0ff4f2fee9628401

from libideviceactivation.

ginsudev avatar ginsudev commented on June 12, 2024

Hi, what command is it, to apply your patch? I have it downloaded

from libideviceactivation.

nikias avatar nikias commented on June 12, 2024

Save patch to file, then

patch -p1 < savedpatch.diff

from libideviceactivation.

ginsudev avatar ginsudev commented on June 12, 2024

uhh, this is the first time i have ever used libideviceactivation, and the reason i am using it, is because i downgraded with iDeviceReRestore to iOS 9.2.1 on iPhone 5c (5,4) And i cannot activate

root@noah:/home/noah/Desktop/libideviceactivation# ideviceactivation activate -u 6e12bc29c2da97d8ab599649b45f6a4d82e2be2b -d
idevice_activation_request_new_from_lockdownd: Unable to get MEID from lockdownd
idevice_activation_request_new_from_lockdownd: Unable to get IMSI from lockdownd
*   Trying 17.149.240.65...
* Connected to albert.apple.com (17.149.240.65) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* SSL connection using TLSv1.2 / AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* 	 subject: jurisdictionC=US; jurisdictionST=California; businessCategory=Private Organization; serialNumber=C0806592; C=US; postalCode=95014; ST=California; L=Cupertino; street=1 Infinite Loop; O=Apple Inc.; OU=GNCS Traffic Management; CN=albert.apple.com
* 	 start date: Feb 21 00:00:00 2017 GMT
* 	 expire date: Feb 21 23:59:59 2019 GMT
* 	 subjectAltName: albert.apple.com matched
* 	 issuer: C=US; O=Symantec Corporation; OU=Symantec Trust Network; CN=Symantec Class 3 EV SSL CA - G3
* 	 SSL certificate verify ok.
> POST /deviceservices/deviceActivation HTTP/1.1
Host: albert.apple.com
User-Agent: iOS Device Activator (MobileActivation-20 built on Jan 15 2012 at 19:07:28)
Accept: */*
Content-Length: 9048
Expect: 100-continue
Content-Type: multipart/form-data; boundary=------------------------f3ef62668612072d

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Cache-Control: private, no-cache, no-store, must-revalidate, max-age=0
< Content-Type: application/x-buddyml
< Content-Length: 295
< Date: Tue, 04 Jul 2017 08:01:56 GMT
< 
* Connection #0 to host albert.apple.com left intact
<xmlui><navigationBar title="Activation Error" hidesBackButton="true"/><tableView><section/></tableView><tableView><section footer="Activation request could not be completed. Please press the home button to try again. If the problem persists, please contact customer care."/></tableView></xmlui>
Activation server reports errors.
	Activation Error

from libideviceactivation.

nikias avatar nikias commented on June 12, 2024

Do you have a SIM card inserted?

idevice_activation_request_new_from_lockdownd: Unable to get IMSI from lockdownd

from libideviceactivation.

nikias avatar nikias commented on June 12, 2024

@noahlittle moved to #25

from libideviceactivation.

truonggiang0710 avatar truonggiang0710 commented on June 12, 2024

@nikias it's seem to work perfectly. I'm testing more. I will show for you if there is any issue.

from libideviceactivation.

truonggiang0710 avatar truonggiang0710 commented on June 12, 2024

Hi @nikias,

I have a iPad 4 Wi-Fi (Activated, OS 10.3.3).
I activated and it returned Device Unknown
I found a line in your code
printf("NOTE: This device appears to be already activated. The server might report an error 'Device Unknown' instead of acknowledging the activation.\n");
Apple server response
< <xmlui><navigationBar title="Device Unknown" hidesBackButton="true"/><tableView><section/></tableView><tableView><section footer="Please visit the Service Answer Center at https://support.apple.com/iphone/repair/service to find answers to all your questions about service options, warranty and other processes in your country."/></tableView></xmlui>

What's happen ?
Do we need to modify activation request ? Or Apple server error ?

Thanks a lot !

from libideviceactivation.

truonggiang0710 avatar truonggiang0710 commented on June 12, 2024

OK. Thanks a lot @nikias !

from libideviceactivation.

daniel-bluesea avatar daniel-bluesea commented on June 12, 2024

@nikias i updated my lib according to: commit cb265d0 and commit libimobiledevice/libimobiledevice@0dbe76b and the patch from here: https://gist.github.com/nikias/b351bf633d62703e0ff4f2fee9628401

and i'm getting the following error after trying to activate:
"Failed to activate device with record."

and the device (ios 10.3.3) is indeed deactivated

maybe its related also to the: IDEVICE_ACTIVATION_USER_AGENT_ITUNES ? should i update it to the latest iTunes user agent string?

btw, deactivation works fine.

activation_debug_info.txt

from libideviceactivation.

daniel-bluesea avatar daniel-bluesea commented on June 12, 2024

also, iTunes when connecting to a "freshed" restore device (idevicerestore), gives an option to update to its newest version or activate the device via the device setup wizard.

so maybe its related somehow..
i'll try to sniff what data the new iTunes sends apple servers/services during activation

from libideviceactivation.

albertser avatar albertser commented on June 12, 2024

hi @daniel-bluesea did you solve your problem?

the activation stop working for me sometime on last Thursday, with the same error you mentioned.

the deactivation is working ok.

i ran iTunes to check what they are doing differently but currently i cant put my finger on it.

from libideviceactivation.

daniel-bluesea avatar daniel-bluesea commented on June 12, 2024

@albertser sadly no..

@nikias any updates? :)

from libideviceactivation.

daniel-bluesea avatar daniel-bluesea commented on June 12, 2024

@truonggiang0710 did you try recently to activate devices?

from libideviceactivation.

truonggiang0710 avatar truonggiang0710 commented on June 12, 2024

@daniel-bluesea Yes, I activated OK.
You should update last version libimobiledevice and run again.
If it's not successful. Try again with iTunes ?

from libideviceactivation.

daniel-bluesea avatar daniel-bluesea commented on June 12, 2024

@truonggiang0710 thanks for replying.
i did update to last versions of libimobiledevice & libideviveactivation. but i keep getting the "Failed to activate device with record." error..

itunes is doing the activation ok but i want to activate with this lib.. :)

from libideviceactivation.

truonggiang0710 avatar truonggiang0710 commented on June 12, 2024

@daniel-bluesea I have no more idea with your log.

from libideviceactivation.

daniel-bluesea avatar daniel-bluesea commented on June 12, 2024

@truonggiang0710 can you please run ideviceactivation.exe activate -d and attach your output so i will be able to compare it to mine?

from libideviceactivation.

daniel-bluesea avatar daniel-bluesea commented on June 12, 2024

if i'm not mistaken, the "Failed to activate device with record." error mean that the iDevice is rejecting the record that was received from the (albert) server. @nikias do you have any "tips" how to debug the record? or to understand why the device is rejecting it?

from libideviceactivation.

daniel-bluesea avatar daniel-bluesea commented on June 12, 2024

this is the rejected record:

AccountTokenCertificate DeviceCertificate FairPlayKeyData AccountToken AccountTokenSignature

is it empty? or the data tags/sections hold base64/encrypted info that plist_to_xml/plist_to_bin can represent?

record.txt

from libideviceactivation.

daniel-bluesea avatar daniel-bluesea commented on June 12, 2024

works fine :) it was a windows issue

from libideviceactivation.

jsilvaeco avatar jsilvaeco commented on June 12, 2024

I'm trying to get activation to work on the latest iOS11 beta, and the software appears to do the drm handshake, and get a valid response from the server, but when it sends the CreateTunnel1ActivationInfoRequest with the handshake data, the response returned is a block invoke error...does that mean that lockdown is now preventing the activation request from being called? Or is there something missing with lockdown interaction (not initialized, etc?). Anyone successfully activate on iOS11? Hard to tell from the thread if users were on previous versions when they had success. (ps I'm running from windows, so the code is hacked onto the win32 version, so that could also be the issue if others are having success)

response to CreateSessionA

Error Failed to receive request from host: 0x00000001 ({ FunctionName = "init_lockdown_server_block_invoke"; NSLocalizedDescription = "Failed to receive request from host: 0x00000001"; SourceLine = 91; })

Thanks!

from libideviceactivation.

nikias avatar nikias commented on June 12, 2024

@jsilvaeco I am quite sure this is something related to "code is hacked onto the win32 version".

from libideviceactivation.

nikias avatar nikias commented on June 12, 2024

Closing, this is fixed in master already.

from libideviceactivation.

Related Issues (20)

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.