libimobiledevice / libideviceactivation

A library to handle the activation process of iOS devices
https://libimobiledevice.org
GNU Lesser General Public License v2.1
276 stars 129 forks source link

Unable to get IMSI from lockdownd #28

Closed Rayee666 closed 5 years ago

Rayee666 commented 6 years ago

I got error "idevice_activation_request_new_from_lockdownd: Unable to get IMSI from lockdownd" when i try to activate my device with cmd "ideviceactivation.exe activate -d".And i run with the latest libideviceactivation/libplist/libideviceactivation.

Please HELP!!! Many many thanks.

Activate INFO:

C:\Users\Desktop\ioslibrary>ideviceactivation.exe activate -d idevice_activation_request_new_from_lockdownd: Unable to get IMSI from lockdownd

* Trying 17.171.27.65... * TCP_NODELAY set * Connected to albert.apple.com (17.171.27.65) port 443 (#0) * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * SSL connection using TLSv1.2 / AES128-GCM-SHA256 * ALPN, server accepted to use http/1.1 * Server certificate: * subject: jurisdictionC=US; jurisdictionST=California; businessCategory=Privat e 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: host "albert.apple.com" matched cert's "albert.apple.com" * issuer: C=US; O=Symantec Corporation; OU=Symantec Trust Network; CN=Symantec Class 3 EV SSL CA - G3 * SSL certificate verify result: self signed certificate in certificate chain (19), continuing anyway. > 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: 9207 Expect: 100-continue Content-Type: multipart/form-data; boundary=------------------------ea25abe9554b7802

< HTTP/1.1 100 < HTTP/1.1 200 < Cache-Control: private, no-cache, no-store, must-revalidate, max-age=0 < Content-Type: application/x-buddyml < Content-Length: 295 < Date: Mon, 11 Sep 2017 06:41:59 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>5+??Xc Activation server reports errors. Activation Error

Device INFO:

C:\Users\Desktop\ioslibrary>ideviceinfo.exe ActivationState: Unactivated BasebandActivationTicketVersion: V2 BasebandCertId: 3255536192 BasebandChipID: 7278817 BasebandKeyHashInformation: AKeyStatus: 2 SKeyHash: 7MQEUyvzG4gjjZc7KsNNAVTS8g4= SKeyStatus: 0 BasebandMasterKeyHash: AEA5CCE143668D0EFB4CE1F2C94C966A6496C6AA BasebandRegionSKU: AgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAA== BasebandSerialNumber: EMgV3g== BasebandStatus: BBInfoAvailable BasebandVersion: 11.60.00 BluetoothAddress: 88:1f:a1:5a:d5:f5 BoardId: 2 BrickState: true BuildVersion: 14G60 CPUArchitecture: armv7s CarrierBundleInfoArray[1]: 0: CFBundleIdentifier: com.apple.ATT_US CFBundleVersion: 28.2.5 IntegratedCircuitCardIdentity: 89014103277879936370 InternationalMobileSubscriberIdentity: 310410787993637 MCC: 310 MNC: 410 SIMGID1: //8= SIMGID2: //8= CertID: 3255536192 ChipID: 35152 ChipSerialNo: EMgV3g== CompassCalibration: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== DeviceClass: iPhone DeviceColor: white DeviceName: iPhone DieID: 3190309641489576672 EthernetAddress: 88:1f:a1:5a:d5:f6 FirmwareVersion: iBoot-3406.60.10 FusingStatus: 3 HardwareModel: N42AP HardwarePlatform: s5l8950x HasSiDP: true HostAttached: true IntegratedCircuitCardIdentity: 89014103277879936370 InternationalMobileEquipmentIdentity: 990002825302597 InternationalMobileSubscriberIdentity: 310410787993637 MLBSerialNumber: F3X31832PCMDNVDD MobileEquipmentIdentifier: 99000282530259 MobileSubscriberCountryCode: 310 MobileSubscriberNetworkCode: 410 ModelNumber: ME040 NonVolatileRAM: IONVRAM-SYNCNOW-PROPERTY: SU9OVlJBTS1TWU5DTk9XLVBST1BFUlRZ auto-boot: dHJ1ZQ== backlight-level: MTU0Ng== boot-args: boot-breadcrumbs: KSAwMDAzMDAwZCAwMDAzMDAwZig2YjcyNmU2YykgMDAwMzAwMGMoNmI3MjZlN mMpIDAwMDMwMDBkIDAwMDMwMDEwIDxET05FPiA8Q09NTUlUPiA8Qk9PVD4gNDAwNjAwMDMoZmZmZmZmZ mYpIDAwMDMwMDBmKDY0NzQ3MjY1KSA0MDA2MDAwNCAwMDAzMDAxMSAwMDAzMDAwNyAwMDAzMDAwYyg2N Dc0NzI2NSkgMDAwMzAwMGQgMDAwMzAwMGYoNmI3MjZlNmMpIDAwMDMwMDBjKDZiNzI2ZTZjKSAwMDAzM DAwZCAwMDAzMDAxMCA8RE9ORT4gPENPTU1JVD4g bootdelay: MA== oblit-begins: T2JsaXRUeXBlOiBPYmxpdGVyYXRlRGF0YVBhcnRpdGlvbi4gUmVhc29uOiB1bmtub 3du obliteration: aGFuZGxlX21lc3NhZ2U6IE9ibGl0ZXJhdGlvbiBDb21wbGV0ZQ== PartitionType: PasswordProtected: false PhoneNumber: +1 (817) 995-4165 PkHash: wguKQOoMFsrCLtMrgu2YMM0rtSJ7ik4ia9YLIdt1ny0= ProductName: iPhone OS ProductType: iPhone5,2 ProductVersion: 10.3.3 ProductionSOC: true ProtocolVersion: 2 ProximitySensorCalibration: T00DAA0IRzgQAwAAAABeAQAA4wADABlYygMDACBb5wLuAkMAvCkQ AgLxNxcAAABlAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= RegionInfo: J/A SBLockdownEverRegisteredKey: false SIMGID1: /w== SIMGID2: /w== SIMStatus: kCTSIMSupportSIMStatusReady SIMTrayStatus: kCTSIMSupportSIMTrayInsertedWithSIM SerialNumber: F2LKN3H1F8H4 SoftwareBehavior: GQAAAAAAAAAAAAAAAAAAAA== SoftwareBundleVersion: SupportedDeviceFamilies[1]: 0: 1 TelephonyCapability: true TimeIntervalSince1970: 1505112026.288380 TimeZone: US/Pacific TimeZoneOffsetFromUTC: -25200.000000 TrustedHostAttached: true UniqueChipID: 4047402921291 UniqueDeviceID: cf7c198671d91552b56a099b9d3871957982b53d UntrustedHostBUID: 305293771680299927198971284 UseRaptorCerts: true Uses24HourClock: false WiFiAddress: 88:1f:a1:5a:d5:f4 kCTPostponementInfoPRIVersion: 0.1.95 kCTPostponementInfoPRLName: 0 kCTPostponementInfoServiceProvisioningState: false kCTPostponementStatus: kCTPostponementStatusReady

Other CMDs:

C:\Users\Desktop\ioslibrary>ideviceinfo.exe -k InternationalMobileSubscriberIdentity

C:\Users\Desktop\ioslibrary>ideviceinfo.exe -k InternationalMobileEquipmentIdentity 990002825302597

ManojKumarVJ commented 6 years ago

Your ideviceinfo output shows IMSI number: InternationalMobileSubscriberIdentity: 310410787993637

You can try add -s 310410787993637 to ideviceactivation command.

Rayee666 commented 6 years ago

@ManojKumarVJ Of course not Q_____Q~~~ -s, --service URL use activation webservice at URL instead of default

thanks all the same.

nikias commented 6 years ago

Oh I think I realized what is going on but not exactly why. Your full ideviceinfo output shows the IMSI but if you just query the InternationalMobileSubscriberIdentity the device is not returning a value. I might want to change the code to fall back to full ideviceinfo output if reading just the IMSI etc fails.

nikias commented 5 years ago

This is fixed in latest code.