Comments (34)
I know. It needs to talk to another service for activation. I have the code and it will be committed soon.
from libideviceactivation.
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.
this not work anymore dude!
from libideviceactivation.
Hi @nikias, I'm waiting it ! Thanks !
from libideviceactivation.
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.
@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.
No. Your latest commit fixed this.
Thank you for your great work.
from libideviceactivation.
@mallon735 ok cool. Still need to fix it for iOS 11
from libideviceactivation.
@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.
@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.
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.
Hi, what command is it, to apply your patch? I have it downloaded
from libideviceactivation.
Save patch to file, then
patch -p1 < savedpatch.diff
from libideviceactivation.
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.
Do you have a SIM card inserted?
idevice_activation_request_new_from_lockdownd: Unable to get IMSI from lockdownd
from libideviceactivation.
@noahlittle moved to #25
from libideviceactivation.
@nikias it's seem to work perfectly. I'm testing more. I will show for you if there is any issue.
from libideviceactivation.
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.
OK. Thanks a lot @nikias !
from libideviceactivation.
@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.
from libideviceactivation.
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.
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.
@albertser sadly no..
@nikias any updates? :)
from libideviceactivation.
@truonggiang0710 did you try recently to activate devices?
from libideviceactivation.
@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.
@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.
@daniel-bluesea I have no more idea with your log.
from libideviceactivation.
@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.
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.
this is the rejected record:
AccountTokenCertificate DeviceCertificate FairPlayKeyData AccountToken AccountTokenSignatureis it empty? or the data tags/sections hold base64/encrypted info that plist_to_xml/plist_to_bin can represent?
from libideviceactivation.
works fine :) it was a windows issue
from libideviceactivation.
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.
@jsilvaeco I am quite sure this is something related to "code is hacked onto the win32 version".
from libideviceactivation.
Closing, this is fixed in master already.
from libideviceactivation.
Related Issues (20)
- Make issue HOT 1
- No package 'libcurl' found HOT 10
- Activation HOT 2
- I am using ubuntu and get these errors HOT 1
- is this work without a SIM on an iPhone 4?
- libideviceactivation install problem HOT 2
- Package 'openssl', required by 'libimobiledevice-1.0', not found HOT 1
- Fuck provide the binaries HOT 3
- Activation server reports errors. HOT 4
- configure: error: Package requirements (libcurl >= 7.20) were not met: HOT 2
- Compiled Binaries needed HOT 3
- libimobiledevice
- Cant see my libimobiledevice
- libimobiledevice/lockdown.h' file not found
- ld: symbol(s) not found for architecture x86_64
- Syntax error how to fix this.. Iām newbie
- Can we change Hello screen to Home through libdeviceactivation
- Unable to activate iPod touch 2G on iOS 3.1.3
- Unable to activate iPad Air Model A1475 Cellular HOT 4
- windows/mingw: compilation problem with clang
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libideviceactivation.