|
|
@@ -9,32 +9,62 @@ const imei = "{{imei}}"
|
|
|
const imsi = "{{imsi}}"
|
|
|
const countryIso = "{{countryIso}}"
|
|
|
const subId = "{{subId}}"
|
|
|
-function trace() {
|
|
|
- console.log(
|
|
|
- Java.use("android.util.Log").getStackTraceString(
|
|
|
- Java.use("java.lang.Throwable").$new()
|
|
|
- )
|
|
|
+function trace(tag) {
|
|
|
+ Log.e(
|
|
|
+ (tag || "") +
|
|
|
+ Java.use("android.util.Log").getStackTraceString(
|
|
|
+ Java.use("java.lang.Throwable").$new()
|
|
|
+ )
|
|
|
)
|
|
|
}
|
|
|
+
|
|
|
+class Log {
|
|
|
+ static TAG = "[GMS]"
|
|
|
+ static format(...msg) {
|
|
|
+ let m = []
|
|
|
+ for (let i = 0; i < msg.length; i++) {
|
|
|
+ if (typeof msg[i] === "object") {
|
|
|
+ m.push(msg[i] + "")
|
|
|
+ } else {
|
|
|
+ m.push(msg[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ m = m.join(" ")
|
|
|
+ return m
|
|
|
+ }
|
|
|
+ static i(...msg) {
|
|
|
+ console.log(`\x1b[30m${this.TAG} ${this.format(...msg)}\x1b[0m`)
|
|
|
+ }
|
|
|
+ static w(...msg) {
|
|
|
+ console.log(`\x1b[33m${this.TAG} ${this.format(...msg)}\x1b[0m`)
|
|
|
+ }
|
|
|
+ static e(...msg) {
|
|
|
+ console.log(`\x1b[31m${this.TAG} ${this.format(...msg)}\x1b[0m`)
|
|
|
+ }
|
|
|
+ static s(...msg) {
|
|
|
+ console.log(`\x1b[32m${this.TAG} ${this.format(...msg)}\x1b[0m`)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
Java.perform(function () {
|
|
|
const SmsManager = Java.use("android.telephony.SmsManager")
|
|
|
SmsManager.getSmsManagerForSubscriptionId.overload("int").implementation =
|
|
|
function (i) {
|
|
|
const _smsManager = this.getSmsManagerForSubscriptionId(i)
|
|
|
- console.log(`SmsManager.getSmsManagerForSubscriptionId: ${i}`)
|
|
|
+ Log.i(`SmsManager.getSmsManagerForSubscriptionId: ${i}`)
|
|
|
return _smsManager
|
|
|
}
|
|
|
|
|
|
SmsManager.getDefault.overload().implementation = function () {
|
|
|
const _smsManager = this.getDefault(i)
|
|
|
- console.log(`SmsManager.getDefault`)
|
|
|
+ Log.i(`SmsManager.getDefault`)
|
|
|
return _smsManager
|
|
|
}
|
|
|
|
|
|
SmsManager.getDefaultSmsSubscriptionId.overload().implementation =
|
|
|
function () {
|
|
|
const _subId = this.getDefaultSmsSubscriptionId()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof SmsManager.getDefaultSmsSubscriptionId: ${_subId} -> ${subId}`
|
|
|
)
|
|
|
return parseInt(subId)
|
|
|
@@ -42,12 +72,12 @@ Java.perform(function () {
|
|
|
|
|
|
SmsManager.getSubscriptionId.overload().implementation = function () {
|
|
|
const _subId = this.getSubscriptionId()
|
|
|
- console.log(`SmsManager.getSubscriptionId: ${_subId} -> ${subId}`)
|
|
|
+ Log.i(`SmsManager.getSubscriptionId: ${_subId} -> ${subId}`)
|
|
|
return parseInt(subId)
|
|
|
}
|
|
|
SmsManager.getCarrierConfigValues.overload().implementation = function () {
|
|
|
const _config = this.getCarrierConfigValues()
|
|
|
- console.log(`SmsManager.getCarrierConfigValues: ${_config}`)
|
|
|
+ Log.i(`SmsManager.getCarrierConfigValues: ${_config}`)
|
|
|
return _config
|
|
|
}
|
|
|
|
|
|
@@ -57,7 +87,7 @@ Java.perform(function () {
|
|
|
CarrierConfigManager.getConfigForSubId.overload("int").implementation =
|
|
|
function (i) {
|
|
|
const _config = this.getConfigForSubId(i)
|
|
|
- console.log(`CarrierConfigManager.getConfigForSubId: ${i}`)
|
|
|
+ Log.i(`CarrierConfigManager.getConfigForSubId: ${i}`)
|
|
|
return _config
|
|
|
}
|
|
|
|
|
|
@@ -67,7 +97,7 @@ Java.perform(function () {
|
|
|
SubscriptionManager.getActiveSubscriptionInfoCount.overload().implementation =
|
|
|
function () {
|
|
|
const _count = this.getActiveSubscriptionInfoCount()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`SubscriptionManager.getActiveSubscriptionInfoCount: ${_count}`
|
|
|
)
|
|
|
return _count
|
|
|
@@ -75,7 +105,7 @@ Java.perform(function () {
|
|
|
SubscriptionManager.getDefaultSubscriptionId.overload().implementation =
|
|
|
function () {
|
|
|
const _subId = this.getDefaultSubscriptionId()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof SubscriptionManager.getDefaultSubscriptionId: ${_subId} -> ${subId}`
|
|
|
)
|
|
|
return parseInt(subId)
|
|
|
@@ -83,7 +113,7 @@ Java.perform(function () {
|
|
|
SubscriptionManager.getDefaultSmsSubscriptionId.overload().implementation =
|
|
|
function () {
|
|
|
const _subId = this.getDefaultSmsSubscriptionId()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof SubscriptionManager.getDefaultSmsSubscriptionId: ${_subId} -> ${subId}`
|
|
|
)
|
|
|
return parseInt(subId)
|
|
|
@@ -91,7 +121,7 @@ Java.perform(function () {
|
|
|
SubscriptionManager.getDefaultVoiceSubscriptionId.overload().implementation =
|
|
|
function () {
|
|
|
const _subId = this.getDefaultVoiceSubscriptionId()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof SubscriptionManager.getDefaultVoiceSubscriptionId: ${_subId} -> ${subId}`
|
|
|
)
|
|
|
return parseInt(subId)
|
|
|
@@ -99,7 +129,7 @@ Java.perform(function () {
|
|
|
SubscriptionManager.getActiveDataSubscriptionId.overload().implementation =
|
|
|
function () {
|
|
|
const _subId = this.getActiveDataSubscriptionId()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof SubscriptionManager.getActiveDataSubscriptionId: ${_subId} -> ${subId}`
|
|
|
)
|
|
|
return parseInt(subId)
|
|
|
@@ -108,37 +138,33 @@ Java.perform(function () {
|
|
|
i
|
|
|
) {
|
|
|
const _slotIndex = this.getSlotIndex(i)
|
|
|
- console.log(
|
|
|
- `spoof SubscriptionManager.getSlotIndex: ${_slotIndex} -> 0`
|
|
|
- )
|
|
|
+ Log.i(`spoof SubscriptionManager.getSlotIndex: ${_slotIndex} -> 0`)
|
|
|
return 0
|
|
|
}
|
|
|
SubscriptionManager.isUsableSubscriptionId.overload("int").implementation =
|
|
|
function (i) {
|
|
|
const _isUsable = this.isUsableSubscriptionId(i)
|
|
|
- console.log(
|
|
|
- `SubscriptionManager.isUsableSubscriptionId: ${_isUsable}`
|
|
|
- )
|
|
|
+ Log.i(`SubscriptionManager.isUsableSubscriptionId: ${_isUsable}`)
|
|
|
return _isUsable
|
|
|
}
|
|
|
SubscriptionManager.isValidSubscriptionId.overload("int").implementation =
|
|
|
function (i) {
|
|
|
const _isValid = this.isValidSubscriptionId(i)
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof SubscriptionManager.isValidSubscriptionId(${i}): ${_isValid} -> true`
|
|
|
)
|
|
|
return true
|
|
|
}
|
|
|
SubscriptionManager.getPhoneNumber.overload("int").implementation =
|
|
|
function (i) {
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof SubscriptionManager.getPhoneNumber(${i}): -> ${number}`
|
|
|
)
|
|
|
return number
|
|
|
}
|
|
|
SubscriptionManager.getPhoneNumber.overload("int", "int").implementation =
|
|
|
function (i, i2) {
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof SubscriptionManager.getPhoneNumber(${i},${i2}): -> ${number}`
|
|
|
)
|
|
|
return number
|
|
|
@@ -146,7 +172,7 @@ Java.perform(function () {
|
|
|
SubscriptionManager.getActiveSubscriptionInfoList.overload().implementation =
|
|
|
function () {
|
|
|
const _list = this.getActiveSubscriptionInfoList()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`SubscriptionManager.getActiveSubscriptionInfoList ${_list.size()}`
|
|
|
)
|
|
|
return _list
|
|
|
@@ -155,7 +181,7 @@ Java.perform(function () {
|
|
|
"int"
|
|
|
).implementation = function (i) {
|
|
|
const _info = this.getActiveSubscriptionInfoForSimSlotIndex(i)
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`SubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex(${i}): ${
|
|
|
_info ? "ok" : "null"
|
|
|
}`
|
|
|
@@ -165,7 +191,7 @@ Java.perform(function () {
|
|
|
SubscriptionManager.getActiveSubscriptionIdList.overload().implementation =
|
|
|
function () {
|
|
|
const _list = this.getActiveSubscriptionIdList()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof SubscriptionManager.getActiveSubscriptionIdList ${_list} -> ${subId}`
|
|
|
)
|
|
|
return [parseInt(subId)]
|
|
|
@@ -185,9 +211,7 @@ Java.perform(function () {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
- console.log(
|
|
|
- `spoof SubscriptionManager.getActiveSubscriptionInfo(${i})`
|
|
|
- )
|
|
|
+ Log.i(`spoof SubscriptionManager.getActiveSubscriptionInfo(${i})`)
|
|
|
} catch (error) {
|
|
|
console.error(
|
|
|
`spoof error SubscriptionManager.getActiveSubscriptionInfo(${i})`
|
|
|
@@ -200,7 +224,7 @@ Java.perform(function () {
|
|
|
"int"
|
|
|
).implementation = function (s) {
|
|
|
const _info = this.getActiveSubscriptionInfoForSimSlotIndex(i)
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`SubscriptionManager.getActiveSubscriptionInfoForSimSlotIndex: ${_info}`
|
|
|
)
|
|
|
return _info
|
|
|
@@ -208,7 +232,7 @@ Java.perform(function () {
|
|
|
SubscriptionManager.isActiveSubscriptionId.overload("int").implementation =
|
|
|
function (i) {
|
|
|
const _isActive = this.isActiveSubscriptionId(i)
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof SubscriptionManager.isActiveSubscriptionId(${i}): ${_isActive} -> true`
|
|
|
)
|
|
|
return true
|
|
|
@@ -217,47 +241,43 @@ Java.perform(function () {
|
|
|
const SubscriptionInfo = Java.use("android.telephony.SubscriptionInfo")
|
|
|
SubscriptionInfo.getMcc.overload().implementation = function () {
|
|
|
const _mcc = this.getMcc()
|
|
|
- console.log(`spoof SubscriptionInfo.getMcc: ${_mcc} -> ${mcc}`)
|
|
|
+ Log.i(`spoof SubscriptionInfo.getMcc: ${_mcc} -> ${mcc}`)
|
|
|
return parseInt(mcc)
|
|
|
}
|
|
|
|
|
|
SubscriptionInfo.getMnc.overload().implementation = function () {
|
|
|
const _mnc = this.getMnc()
|
|
|
- console.log(`spoof SubscriptionInfo.getMnc: ${_mnc} -> ${mnc}`)
|
|
|
+ Log.i(`spoof SubscriptionInfo.getMnc: ${_mnc} -> ${mnc}`)
|
|
|
return parseInt(mnc)
|
|
|
}
|
|
|
|
|
|
SubscriptionInfo.getMccString.overload().implementation = function () {
|
|
|
const _mccString = this.getMccString()
|
|
|
- console.log(
|
|
|
- `spoof SubscriptionInfo.getMccString: ${_mccString} -> ${mcc}`
|
|
|
- )
|
|
|
+ Log.i(`spoof SubscriptionInfo.getMccString: ${_mccString} -> ${mcc}`)
|
|
|
return mcc
|
|
|
}
|
|
|
|
|
|
SubscriptionInfo.getMncString.overload().implementation = function () {
|
|
|
const _mncString = this.getMncString()
|
|
|
- console.log(
|
|
|
- `spoof SubscriptionInfo.getMncString: ${_mncString} -> ${mnc}`
|
|
|
- )
|
|
|
+ Log.i(`spoof SubscriptionInfo.getMncString: ${_mncString} -> ${mnc}`)
|
|
|
return mnc
|
|
|
}
|
|
|
|
|
|
SubscriptionInfo.getNumber.overload().implementation = function () {
|
|
|
const _number = this.getNumber()
|
|
|
- console.log(`spoof SubscriptionInfo.getNumber: ${_number} -> ${number}`)
|
|
|
+ Log.i(`spoof SubscriptionInfo.getNumber: ${_number} -> ${number}`)
|
|
|
return number
|
|
|
}
|
|
|
|
|
|
SubscriptionInfo.getIccId.overload().implementation = function () {
|
|
|
const _iccId = this.getIccId()
|
|
|
- console.log(`spoof SubscriptionInfo.getIccId: ${_iccId} -> ${iccId}`)
|
|
|
+ Log.i(`spoof SubscriptionInfo.getIccId: ${_iccId} -> ${iccId}`)
|
|
|
return iccId
|
|
|
}
|
|
|
|
|
|
SubscriptionInfo.getCountryIso.overload().implementation = function () {
|
|
|
const _countryIso = this.getCountryIso()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof SubscriptionInfo.getCountryIso: ${_countryIso} -> ${countryIso}`
|
|
|
)
|
|
|
return countryIso
|
|
|
@@ -266,33 +286,29 @@ Java.perform(function () {
|
|
|
SubscriptionInfo.getSubscriptionId.overload().implementation = function () {
|
|
|
const _subId = this.getSubscriptionId()
|
|
|
if (!subId) {
|
|
|
- console.log(_subId)
|
|
|
+ Log.i(_subId)
|
|
|
return _subId
|
|
|
}
|
|
|
- console.log(
|
|
|
- `spoof SubscriptionInfo.getSubscriptionId: ${_subId} -> ${subId}`
|
|
|
- )
|
|
|
+ Log.i(`spoof SubscriptionInfo.getSubscriptionId: ${_subId} -> ${subId}`)
|
|
|
return parseInt(subId)
|
|
|
}
|
|
|
|
|
|
const TelephonyManager = Java.use("android.telephony.TelephonyManager")
|
|
|
TelephonyManager.createForSubscriptionId.overload("int").implementation =
|
|
|
function (i) {
|
|
|
- console.log(`spoof TelephonyManager.createForSubscriptionId: ${i}`)
|
|
|
+ Log.i(`spoof TelephonyManager.createForSubscriptionId: ${i}`)
|
|
|
return this
|
|
|
}
|
|
|
|
|
|
TelephonyManager.getLine1Number.overload().implementation = function () {
|
|
|
const _number = this.getLine1Number()
|
|
|
- console.log(
|
|
|
- `spoof TelephonyManager.getLine1Number: ${_number} -> ${number}`
|
|
|
- )
|
|
|
+ Log.i(`spoof TelephonyManager.getLine1Number: ${_number} -> ${number}`)
|
|
|
return number
|
|
|
}
|
|
|
|
|
|
TelephonyManager.getSimOperator.overload().implementation = function () {
|
|
|
const _simOperator = this.getSimOperator()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof TelephonyManager.getSimOperator: ${_simOperator} -> ${simOperator}`
|
|
|
)
|
|
|
return simOperator
|
|
|
@@ -301,7 +317,7 @@ Java.perform(function () {
|
|
|
TelephonyManager.getNetworkOperator.overload().implementation =
|
|
|
function () {
|
|
|
const _networkOperator = this.getNetworkOperator()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof TelephonyManager.getNetworkOperator: ${_networkOperator} -> ${networkOperator}`
|
|
|
)
|
|
|
return networkOperator
|
|
|
@@ -310,7 +326,7 @@ Java.perform(function () {
|
|
|
TelephonyManager.getSimSerialNumber.overload().implementation =
|
|
|
function () {
|
|
|
const _simSerialNumber = this.getSimSerialNumber()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof TelephonyManager.getSimSerialNumber: ${_simSerialNumber} -> ${simSerialNumber}`
|
|
|
)
|
|
|
return simSerialNumber
|
|
|
@@ -318,22 +334,20 @@ Java.perform(function () {
|
|
|
|
|
|
TelephonyManager.getSubscriberId.overload().implementation = function () {
|
|
|
const _imsi = this.getSubscriberId()
|
|
|
- console.log(
|
|
|
- `spoof TelephonyManager.getSubscriberId: ${_imsi} -> ${imsi}`
|
|
|
- )
|
|
|
+ Log.i(`spoof TelephonyManager.getSubscriberId: ${_imsi} -> ${imsi}`)
|
|
|
return imsi
|
|
|
}
|
|
|
|
|
|
TelephonyManager.getImei.overload().implementation = function () {
|
|
|
const _imei = this.getImei()
|
|
|
- console.log(`spoof TelephonyManager.getImei: ${_imei} -> ${imei}`)
|
|
|
+ Log.i(`spoof TelephonyManager.getImei: ${_imei} -> ${imei}`)
|
|
|
return imei
|
|
|
}
|
|
|
|
|
|
TelephonyManager.getNetworkCountryIso.overload().implementation =
|
|
|
function () {
|
|
|
const _countryIso = this.getNetworkCountryIso()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof TelephonyManager.getNetworkCountryIso: ${_countryIso} -> ${countryIso}`
|
|
|
)
|
|
|
return countryIso
|
|
|
@@ -341,7 +355,7 @@ Java.perform(function () {
|
|
|
|
|
|
TelephonyManager.getSimCountryIso.overload().implementation = function () {
|
|
|
const _countryIso = this.getSimCountryIso()
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`spoof TelephonyManager.getSimCountryIso: ${_countryIso} -> ${countryIso}`
|
|
|
)
|
|
|
return countryIso
|
|
|
@@ -350,18 +364,16 @@ Java.perform(function () {
|
|
|
TelephonyManager.getSubscriptionId.overload().implementation = function () {
|
|
|
const _subId = this.getSubscriptionId()
|
|
|
if (!subId) {
|
|
|
- console.log(_subId)
|
|
|
+ Log.i(_subId)
|
|
|
return _subId
|
|
|
}
|
|
|
- console.log(
|
|
|
- `spoof TelephonyManager.getSubscriptionId: ${_subId} -> ${subId}`
|
|
|
- )
|
|
|
+ Log.i(`spoof TelephonyManager.getSubscriptionId: ${_subId} -> ${subId}`)
|
|
|
return parseInt(subId)
|
|
|
}
|
|
|
|
|
|
TelephonyManager.getSimState.overload().implementation = function () {
|
|
|
const _simState = this.getSimState()
|
|
|
- console.log(`spoof TelephonyManager.getSimState: ${_simState} -> 5`)
|
|
|
+ Log.i(`spoof TelephonyManager.getSimState: ${_simState} -> 5`)
|
|
|
return 5
|
|
|
}
|
|
|
|
|
|
@@ -378,9 +390,9 @@ Java.perform(function () {
|
|
|
"int",
|
|
|
"long"
|
|
|
).implementation = function (str, j, i, i2, str2, bundle, i3, l) {
|
|
|
- console.log("PhoneNumberVerification.$init")
|
|
|
+ Log.e("PhoneNumberVerification.$init")
|
|
|
|
|
|
- console.log(
|
|
|
+ Log.e(
|
|
|
`str: ${str}, j: ${j}, i: ${i}, i2: ${i2}, str2: ${str2}, i3: ${i3}, l: ${l}`
|
|
|
)
|
|
|
// print bundle
|
|
|
@@ -388,10 +400,10 @@ Java.perform(function () {
|
|
|
|
|
|
for (let i = 0; i < keySet.length; i++) {
|
|
|
const key = keySet[i]
|
|
|
- console.log(`key: ${key}, value: ${bundle.get(key)}`)
|
|
|
+ Log.i(`key: ${key}, value: ${bundle.get(key)}`)
|
|
|
}
|
|
|
|
|
|
- return this.$init(str, j, i, i2, str2, bundle)
|
|
|
+ return this.$init(str, j, i, i2, str2, bundle, i3, l)
|
|
|
}
|
|
|
|
|
|
const SetAsterismConsentRequest = Java.use(
|
|
|
@@ -434,16 +446,16 @@ Java.perform(function () {
|
|
|
str8,
|
|
|
i6
|
|
|
) {
|
|
|
- console.log("SetAsterismConsentRequest.$init")
|
|
|
+ Log.i("SetAsterismConsentRequest.$init")
|
|
|
|
|
|
- console.log(
|
|
|
+ Log.i(
|
|
|
`i: ${i}, i2: ${i2}, i3: ${i3}, iArr: ${iArr}, l: ${l}, i4: ${i4}, i5: ${i5}, str: ${str}, str2: ${str2}, str3: ${str3}, str4: ${str4}, str5: ${str5}, str6: ${str6}, str7: ${str7}, str8: ${str8}, i6: ${i6}`
|
|
|
)
|
|
|
// print bundle
|
|
|
const keySet = bundle.keySet().toArray()
|
|
|
for (let i = 0; i < keySet.length; i++) {
|
|
|
const key = keySet[i]
|
|
|
- console.log(`key: ${key}, value: ${bundle.get(key)}`)
|
|
|
+ Log.i(`key: ${key}, value: ${bundle.get(key)}`)
|
|
|
}
|
|
|
|
|
|
return this.$init(
|
|
|
@@ -475,8 +487,8 @@ Java.perform(function () {
|
|
|
"java.lang.String",
|
|
|
"java.lang.String"
|
|
|
).implementation = function (i, str, str2) {
|
|
|
- console.log("SetAsterismConsentResponse.$init")
|
|
|
- console.log(`i: ${i}, str: ${str}, str2: ${str2}`)
|
|
|
+ Log.i("SetAsterismConsentResponse.$init")
|
|
|
+ Log.i(`i: ${i}, str: ${str}, str2: ${str2}`)
|
|
|
return this.$init(i, str, str2)
|
|
|
}
|
|
|
|
|
|
@@ -502,7 +514,7 @@ Java.perform(function () {
|
|
|
const fivj = Java.use("fivj")
|
|
|
amac.o.overload("amlu", "boolean", "boolean", "fiwt").implementation =
|
|
|
function (amluVar, z, z2, fiwtVar) {
|
|
|
- console.log("amac.o", amluVar, z, z2, fiwtVar)
|
|
|
+ Log.i("amac.o", amluVar, z, z2, fiwtVar)
|
|
|
try {
|
|
|
var z3
|
|
|
var z4
|
|
|
@@ -518,7 +530,7 @@ Java.perform(function () {
|
|
|
}
|
|
|
var emizVar = Java.cast(emiyVar._b.value, emiz)
|
|
|
emizVar.b = emkm.a(10)
|
|
|
- console.log(emizVar, emizVar.b, emizVar.a)
|
|
|
+ Log.i(emizVar, emizVar.b, emizVar.a)
|
|
|
|
|
|
emizVar.a = emizVar.a | 1
|
|
|
var eV = emis.d.value.eV()
|
|
|
@@ -591,11 +603,11 @@ Java.perform(function () {
|
|
|
// TimeUnit.MILLISECONDS.value,
|
|
|
// v.e.value
|
|
|
// )
|
|
|
- // console.log("aaaaa")
|
|
|
+ // Log.i("aaaaa")
|
|
|
// const eqres = Java.cast(vdg, fiwu).eQ()
|
|
|
- // console.log("bbbbb")
|
|
|
+ // Log.i("bbbbb")
|
|
|
// const res = this.z(eqres)
|
|
|
- // console.log("SetConsentResponse: ", res)
|
|
|
+ // Log.i("SetConsentResponse: ", res)
|
|
|
// const arr = Java.array("java.lang.Object", [res])
|
|
|
// this._a.value.d("SetConsentResponse: %s", arr)
|
|
|
var amloVar2 = this._d.value
|
|
|
@@ -619,9 +631,9 @@ Java.perform(function () {
|
|
|
var edit = Java.cast(a3, ambs)._c.value.edit()
|
|
|
edit.putInt("device_consent_version", a4)
|
|
|
edit.apply()
|
|
|
- console.log("oooooooooo")
|
|
|
+ Log.i("oooooooooo")
|
|
|
} catch (e) {
|
|
|
- console.log("2222222", e)
|
|
|
+ Log.i("2222222", e)
|
|
|
trace()
|
|
|
}
|
|
|
// this.o(amluVar, z, z2, fiwtVar)
|
|
|
@@ -633,7 +645,7 @@ Java.perform(function () {
|
|
|
ConscryptFileDescriptorSocket.setSoWriteTimeout.overload(
|
|
|
"int"
|
|
|
).implementation = function (i) {
|
|
|
- console.log("ConscryptFileDescriptorSocket.setSoWriteTimeout: ", i)
|
|
|
+ Log.i("ConscryptFileDescriptorSocket.setSoWriteTimeout: ", i)
|
|
|
return this.setSoWriteTimeout(i)
|
|
|
}
|
|
|
// ConscryptFileDescriptorSocket.verifyCertificateChain.overload(
|
|
|
@@ -641,35 +653,66 @@ Java.perform(function () {
|
|
|
// "[[B",
|
|
|
// "java.lang.String"
|
|
|
// ).implementation = function (bArr, str) {
|
|
|
- // console.log(
|
|
|
+ // Log.i(
|
|
|
// "ConscryptFileDescriptorSocket.verifyCertificateChain: ",
|
|
|
// bArr,
|
|
|
// str
|
|
|
// )
|
|
|
// }
|
|
|
|
|
|
- const cvgy = Java.use("cvgy")
|
|
|
- cvgy.g.overload().implementation = function () {
|
|
|
- const g = this.g()
|
|
|
- console.log("cvgy.g", g)
|
|
|
- trace()
|
|
|
- return g
|
|
|
- }
|
|
|
-
|
|
|
- cvgy.createSocket.overload().implementation = function () {
|
|
|
- const createSocket = this.createSocket()
|
|
|
- console.log("cvgy.createSocket", createSocket)
|
|
|
- trace()
|
|
|
- return createSocket
|
|
|
- }
|
|
|
-
|
|
|
const alja = Java.use("alja")
|
|
|
alja.u.overload("java.lang.Exception").implementation = function (e) {
|
|
|
- console.log("alja.u", JSON.stringify(e))
|
|
|
- console.log(Object.keys(e))
|
|
|
+ Log.i("alja.u", JSON.stringify(e))
|
|
|
+ Log.i(Object.keys(e))
|
|
|
|
|
|
const b = e.b.value
|
|
|
- console.log("b", b.toString())
|
|
|
+ Log.i("b", b.toString())
|
|
|
return this.u(e)
|
|
|
}
|
|
|
+
|
|
|
+ const albf = Java.use("albf")
|
|
|
+ albf.h.overload("java.lang.String", "[Ljava.lang.Object;").implementation =
|
|
|
+ function (str, objArr) {
|
|
|
+ Log.e("albf.h", str, objArr)
|
|
|
+ if (str.includes("Verification failed")) {
|
|
|
+ trace()
|
|
|
+ }
|
|
|
+ return this.h(str, objArr)
|
|
|
+ }
|
|
|
+
|
|
|
+ const alyx = Java.use("alyx")
|
|
|
+ const fixf = Java.use("fixf")
|
|
|
+ alyx.a.overload("fixf").implementation = function (fixf) {
|
|
|
+ Log.i("alyx.a", fixf)
|
|
|
+ const b = this.a(fixf)
|
|
|
+ const keySet = b.keySet().toArray()
|
|
|
+ for (let i = 0; i < keySet.length; i++) {
|
|
|
+ const key = keySet[i]
|
|
|
+ Log.w(`key: ${key}, value: ${b.get(key)}`)
|
|
|
+ }
|
|
|
+ return b
|
|
|
+ }
|
|
|
+ alyx.m.overload("amlu", "java.util.List").implementation = function (
|
|
|
+ amlu,
|
|
|
+ list
|
|
|
+ ) {
|
|
|
+ Log.e("alyx.m", amlu, list)
|
|
|
+ const a = amlu._a.value // string
|
|
|
+ Log.e(`\ta=${a}`)
|
|
|
+ const f = amlu.f.value // string
|
|
|
+ Log.e(`\tf=${f}`)
|
|
|
+ const g = amlu.g.value // list
|
|
|
+ for (let i = 0; i < g.size(); i++) {
|
|
|
+ Log.e(`\tg[${i}]=${g.get(i)}`)
|
|
|
+ }
|
|
|
+ const d = amlu.d.value // map
|
|
|
+ for (const key in d.keySet()) {
|
|
|
+ Log.e(`\td[${key}]=${d.get(key)}`)
|
|
|
+ }
|
|
|
+ const e = amlu.e.value // map
|
|
|
+ for (const key in e.keySet()) {
|
|
|
+ Log.e(`\te[${key}]=${e.get(key)}`)
|
|
|
+ }
|
|
|
+ return this.m(amlu, list)
|
|
|
+ }
|
|
|
})
|