|
|
@@ -1,14 +1,14 @@
|
|
|
-const mcc = "310"
|
|
|
-const mnc = "630"
|
|
|
-const simOperator = "310630"
|
|
|
-const networkOperator = "310630"
|
|
|
-const simSerialNumber = "89380062300689131123"
|
|
|
-const iccId = "89380062300689131123"
|
|
|
-const number = "6183592513"
|
|
|
+const mcc = "255"
|
|
|
+const mnc = "06"
|
|
|
+const simOperator = "25506"
|
|
|
+const networkOperator = "25506"
|
|
|
+const simSerialNumber = "89380062300689133048"
|
|
|
+const iccId = "89380062300689133048"
|
|
|
+const number = "969379250"
|
|
|
const imei = "864929043714851"
|
|
|
-const imsi = "3106306433246456"
|
|
|
-const countryIso = "us"
|
|
|
-const subId = ""
|
|
|
+const imsi = "255065209546456"
|
|
|
+const countryIso = "ua"
|
|
|
+const subId = "12"
|
|
|
|
|
|
setImmediate(() => {
|
|
|
Java.perform(function () {
|
|
|
@@ -91,7 +91,7 @@ setImmediate(() => {
|
|
|
}
|
|
|
|
|
|
SmsManager.getDefault.overload().implementation = function () {
|
|
|
- const _smsManager = this.getDefault(i)
|
|
|
+ const _smsManager = this.getDefault()
|
|
|
console.log(`SmsManager.getDefault`)
|
|
|
return _smsManager
|
|
|
}
|
|
|
@@ -99,14 +99,16 @@ setImmediate(() => {
|
|
|
SmsManager.getDefaultSmsSubscriptionId.overload().implementation =
|
|
|
function () {
|
|
|
const _subId = this.getDefaultSmsSubscriptionId()
|
|
|
- console.log(`SmsManager.getDefaultSmsSubscriptionId: ${_subId}`)
|
|
|
- return _subId
|
|
|
+ console.log(
|
|
|
+ `SmsManager.getDefaultSmsSubscriptionId: ${_subId} -> ${subId}`
|
|
|
+ )
|
|
|
+ return parseInt(subId)
|
|
|
}
|
|
|
|
|
|
SmsManager.getSubscriptionId.overload().implementation = function () {
|
|
|
const _subId = this.getSubscriptionId()
|
|
|
- console.log(`SmsManager.getSubscriptionId: ${_subId}`)
|
|
|
- return _subId
|
|
|
+ console.log(`SmsManager.getSubscriptionId: ${_subId} -> ${subId}`)
|
|
|
+ return parseInt(subId)
|
|
|
}
|
|
|
|
|
|
const SubscriptionInfo = Java.use("android.telephony.SubscriptionInfo")
|
|
|
@@ -258,25 +260,11 @@ setImmediate(() => {
|
|
|
return parseInt(subId)
|
|
|
}
|
|
|
|
|
|
- // const asos = Java.use("asos")
|
|
|
- // asos.b.overload().implementation = function () {
|
|
|
- // console.log("asos.b")
|
|
|
- // return true
|
|
|
- // }
|
|
|
-
|
|
|
- const asmy = Java.use("asmy")
|
|
|
- const bqni = Java.use("bqni")
|
|
|
- const askd = Java.use("askd")
|
|
|
- // asmy.b.overload().implementation = function () {
|
|
|
- // this.$super.b()
|
|
|
- // this._a.value.Q(bqni.b(19))
|
|
|
- // this._a.value.av(27)
|
|
|
- // const a = this._a.value._P.value.a()
|
|
|
- // var c = askd.c(a, "")
|
|
|
- // console.log(this._a.value.r)
|
|
|
- // var ar = Java.cast(this._a.value, Java.use("arqs"))
|
|
|
- // ar.r(36, Java.cast(c, Java.use("java.lang.Object")))
|
|
|
- // }
|
|
|
+ TelephonyManager.getSimState.overload().implementation = function () {
|
|
|
+ const _simState = this.getSimState()
|
|
|
+ console.log(`spoof TelephonyManager.getSimState: ${_simState} -> 5`)
|
|
|
+ return 5
|
|
|
+ }
|
|
|
|
|
|
const PhoneNumberVerification = Java.use(
|
|
|
"com.google.android.gms.constellation.PhoneNumberVerification"
|
|
|
@@ -287,14 +275,12 @@ setImmediate(() => {
|
|
|
"int",
|
|
|
"int",
|
|
|
"java.lang.String",
|
|
|
- "android.os.Bundle",
|
|
|
- "int",
|
|
|
- "long"
|
|
|
- ).implementation = function (str, l, i, i2, str2, bundle, i3, l2) {
|
|
|
+ "android.os.Bundle"
|
|
|
+ ).implementation = function (str, j, i, i2, str2, bundle) {
|
|
|
console.log("PhoneNumberVerification.$init")
|
|
|
|
|
|
console.log(
|
|
|
- `str: ${str}, l: ${l}, i: ${i}, i2: ${i2}, str2: ${str2}, i3: ${i3}, l2: ${l2}`
|
|
|
+ `str: ${str}, j: ${j}, i: ${i}, i2: ${i2}, str2: ${str2}`
|
|
|
)
|
|
|
// print bundle
|
|
|
if (bundle) {
|
|
|
@@ -305,20 +291,29 @@ setImmediate(() => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- return this.$init(str, l, i, i2, str2, bundle, i3, l2)
|
|
|
+ return this.$init(str, j, i, i2, str2, bundle)
|
|
|
}
|
|
|
|
|
|
- // const aays = Java.use("aays")
|
|
|
- // aays.d.overload("int", "boolean").implementation = function (i, z) {
|
|
|
- // console.log("aays.d", i, z, Object.keys(this.f.value))
|
|
|
+ const aays = Java.use("aays")
|
|
|
+ aays.d.overload("int", "boolean").implementation = function (i, z) {
|
|
|
+ console.log("aays.d", i, z, Object.keys(this.f.value))
|
|
|
|
|
|
- // return number
|
|
|
- // }
|
|
|
+ return number
|
|
|
+ }
|
|
|
+
|
|
|
+ const aoor = Java.use("aoor")
|
|
|
+ aoor.h.overload("android.content.Context", "int").implementation =
|
|
|
+ function (c, i) {
|
|
|
+ const _i = this.h(c, i)
|
|
|
+ console.log("aoor.h", c, i, _i)
|
|
|
+ return _i
|
|
|
+ }
|
|
|
|
|
|
const SetAsterismConsentRequest = Java.use(
|
|
|
"com.google.android.gms.asterism.SetAsterismConsentRequest"
|
|
|
)
|
|
|
SetAsterismConsentRequest.$init.overload(
|
|
|
+ //int i, int i2, int i3, int[] iArr, Long l, int i4, Bundle bundle, int i5, String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8
|
|
|
"int",
|
|
|
"int",
|
|
|
"int",
|
|
|
@@ -334,8 +329,7 @@ setImmediate(() => {
|
|
|
"java.lang.String",
|
|
|
"java.lang.String",
|
|
|
"java.lang.String",
|
|
|
- "java.lang.String",
|
|
|
- "int"
|
|
|
+ "java.lang.String"
|
|
|
).implementation = function (
|
|
|
i,
|
|
|
i2,
|
|
|
@@ -352,8 +346,7 @@ setImmediate(() => {
|
|
|
str5,
|
|
|
str6,
|
|
|
str7,
|
|
|
- str8,
|
|
|
- i6
|
|
|
+ str8
|
|
|
) {
|
|
|
console.log(
|
|
|
Java.use("android.util.Log").getStackTraceString(
|
|
|
@@ -363,7 +356,7 @@ setImmediate(() => {
|
|
|
console.log("SetAsterismConsentRequest.$init")
|
|
|
|
|
|
console.log(
|
|
|
- `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}`
|
|
|
+ `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}`
|
|
|
)
|
|
|
// print bundle
|
|
|
const keySet = bundle.keySet().toArray()
|
|
|
@@ -388,8 +381,7 @@ setImmediate(() => {
|
|
|
str5,
|
|
|
str6,
|
|
|
str7,
|
|
|
- str8,
|
|
|
- i6
|
|
|
+ str8
|
|
|
)
|
|
|
}
|
|
|
|
|
|
@@ -417,4 +409,26 @@ setImmediate(() => {
|
|
|
return this.$init(i, str, str2)
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
+ // spoof sim to exist
|
|
|
+ const bjsf = Java.use("athm")
|
|
|
+ bjsf.r.overload("android.content.Context").implementation = function (c) {
|
|
|
+ console.log("athm.r")
|
|
|
+ return true
|
|
|
+ }
|
|
|
+
|
|
|
+ const asts = Java.use("asts")
|
|
|
+ asts.b.overload().implementation = function () {
|
|
|
+ const url = this.b()
|
|
|
+ console.log("asts.b(configUrl)", url.orElse("null"))
|
|
|
+ console.log("l", this.l())
|
|
|
+ console.log("g", this.g())
|
|
|
+ console.log("k", this.k())
|
|
|
+ const str = Java.use("arhb").M().s().a()
|
|
|
+ console.log("str", str)
|
|
|
+ // todo: rcs-acs-mcc%s.jibe.google.com
|
|
|
+ return Java.use("j$.util.Optional").of(
|
|
|
+ "http://rcs-acs-mcc255.jibe.google.com/"
|
|
|
+ )
|
|
|
+ }
|
|
|
})
|