|
|
@ -4,6 +4,7 @@ import itertools |
|
|
|
import re |
|
|
|
import re |
|
|
|
import struct |
|
|
|
import struct |
|
|
|
import subprocess |
|
|
|
import subprocess |
|
|
|
|
|
|
|
import random |
|
|
|
|
|
|
|
|
|
|
|
ANDROID = os.path.isfile('/EON') |
|
|
|
ANDROID = os.path.isfile('/EON') |
|
|
|
|
|
|
|
|
|
|
@ -19,7 +20,8 @@ def get_imei(slot): |
|
|
|
|
|
|
|
|
|
|
|
ret = parse_service_call_string(service_call(["iphonesubinfo", "3" ,"i32", str(slot)])) |
|
|
|
ret = parse_service_call_string(service_call(["iphonesubinfo", "3" ,"i32", str(slot)])) |
|
|
|
if not ret: |
|
|
|
if not ret: |
|
|
|
ret = "000000000000000" |
|
|
|
# allow non android to be identified differently |
|
|
|
|
|
|
|
ret = "%015d" % random.randint(0, 1<<32) |
|
|
|
return ret |
|
|
|
return ret |
|
|
|
|
|
|
|
|
|
|
|
def get_serial(): |
|
|
|
def get_serial(): |
|
|
|