|
@@ -22,9 +22,13 @@ function trace(tag) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function dump(obj) {
|
|
function dump(obj) {
|
|
|
- const gson = Java.use("com.google.gson.Gson").$new()
|
|
|
|
|
- const json = gson.toJson(obj)
|
|
|
|
|
- return json
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ const gson = Java.use("com.google.gson.Gson").$new()
|
|
|
|
|
+ const json = gson.toJson(obj)
|
|
|
|
|
+ return json
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ return ""
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
class Log {
|
|
class Log {
|
|
@@ -715,7 +719,9 @@ Java.perform(function () {
|
|
|
d=${d ? dump(d) : null},
|
|
d=${d ? dump(d) : null},
|
|
|
e=${e ? dump(e) : null})`)
|
|
e=${e ? dump(e) : null})`)
|
|
|
|
|
|
|
|
- return this.m(amlu, list)
|
|
|
|
|
|
|
+ const res = this.m(amlu, list)
|
|
|
|
|
+ Log.e(`alyx.m res: ${dump(res)}`)
|
|
|
|
|
+ return res
|
|
|
}
|
|
}
|
|
|
// alyx.r.overload(
|
|
// alyx.r.overload(
|
|
|
// "amlu",
|
|
// "amlu",
|
|
@@ -736,6 +742,46 @@ Java.perform(function () {
|
|
|
// }
|
|
// }
|
|
|
// return true
|
|
// return true
|
|
|
// }
|
|
// }
|
|
|
|
|
+
|
|
|
|
|
+ alyx.x.overload("amlu", "java.util.List").implementation = function (
|
|
|
|
|
+ amlu,
|
|
|
|
|
+ list
|
|
|
|
|
+ ) {
|
|
|
|
|
+ const res = this.x(amlu, list)
|
|
|
|
|
+ Log.e(`alyx.x(
|
|
|
|
|
+ amlu=${dump(amlu)},
|
|
|
|
|
+ list=${dump(list)})
|
|
|
|
|
+ => ${dump(res)}`)
|
|
|
|
|
+ return res
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ //amlu amluVar, fixf fixfVar, ammt ammtVar
|
|
|
|
|
+ alyx.e.overload("amlu", "fixf", "ammt").implementation = function (
|
|
|
|
|
+ amlu,
|
|
|
|
|
+ fixf,
|
|
|
|
|
+ ammt
|
|
|
|
|
+ ) {
|
|
|
|
|
+ const res = this.e(amlu, fixf, ammt)
|
|
|
|
|
+ Log.e(`alyx.e(
|
|
|
|
|
+ amlu=${dump(amlu)},
|
|
|
|
|
+ fixf=${dump(fixf)},
|
|
|
|
|
+ ammt=${dump(ammt)})
|
|
|
|
|
+ => ${dump(res)}`)
|
|
|
|
|
+ return res
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // alyx.v.overload("amlu", "java.util.List").implementation = function (
|
|
|
|
|
+ // amlu,
|
|
|
|
|
+ // list
|
|
|
|
|
+ // ) {
|
|
|
|
|
+ // const res = this.v(amlu, list)
|
|
|
|
|
+ // Log.e(`alyx.v(
|
|
|
|
|
+ // amlu=${dump(amlu)},
|
|
|
|
|
+ // list=${dump(list)})
|
|
|
|
|
+ // => ${dump(res)}`)
|
|
|
|
|
+ // trace()
|
|
|
|
|
+ // return res
|
|
|
|
|
+ // }
|
|
|
} catch (error) {}
|
|
} catch (error) {}
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -819,4 +865,46 @@ Java.perform(function () {
|
|
|
// Log.w(`SystemProperties.getBoolean(${str}, ${z}): ${_z}`)
|
|
// Log.w(`SystemProperties.getBoolean(${str}, ${z}): ${_z}`)
|
|
|
// return _z
|
|
// return _z
|
|
|
// }
|
|
// }
|
|
|
|
|
+
|
|
|
|
|
+ const alzg = Java.use("alzg")
|
|
|
|
|
+ alzg.d.overload(
|
|
|
|
|
+ // boolean, map
|
|
|
|
|
+ "boolean",
|
|
|
|
|
+ "java.util.Map"
|
|
|
|
|
+ ).implementation = function (z, map) {
|
|
|
|
|
+ Log.e(`alzg.d(z=${z}, map=${dump(map)})`)
|
|
|
|
|
+ return this.d(z, map)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ const ammv = Java.use("ammv")
|
|
|
|
|
+ ammv.a.overload(
|
|
|
|
|
+ // amlu amluVar, fixf fixfVar, ammt ammtVar, ammi ammiVar
|
|
|
|
|
+ "amlu",
|
|
|
|
|
+ "fixf",
|
|
|
|
|
+ "ammt",
|
|
|
|
|
+ "ammi"
|
|
|
|
|
+ ).implementation = function (amlu, fixf, ammt, ammi) {
|
|
|
|
|
+ Log.e(`ammv.a(
|
|
|
|
|
+ amlu=${dump(amlu)},
|
|
|
|
|
+ fixf=${dump(fixf)},
|
|
|
|
|
+ ammt=${dump(ammt)},
|
|
|
|
|
+ ammi=${dump(ammi)})`)
|
|
|
|
|
+ trace()
|
|
|
|
|
+ return this.a(amlu, fixf, ammt, ammi)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ const amag = Java.use("amag")
|
|
|
|
|
+ amag.b.overload(
|
|
|
|
|
+ // akxi akxiVar, fiwx fiwxVar, long j
|
|
|
|
|
+ "akxi",
|
|
|
|
|
+ "fiwx",
|
|
|
|
|
+ "long"
|
|
|
|
|
+ ).implementation = function (akxi, fiwx, j) {
|
|
|
|
|
+ Log.e(`amag.b(
|
|
|
|
|
+ akxi=${dump(akxi)},
|
|
|
|
|
+ fiwx=${dump(fiwx)},
|
|
|
|
|
+ j=${j})`)
|
|
|
|
|
+ trace()
|
|
|
|
|
+ return this.b(akxi, fiwx, j)
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|