I have multiple devices and code on computer will be a lot faster than Android.File access causes me a lot of headache, and current implementation still have some flaw it.
Why would want load script from file?
ref: https://github.com/ikws4/WeiJu2/issues/7#issuecomment-1248109818
Currently I try to override function getAllCellInfo of TelephonyManager class.
But the return is a List<CellInfo>. I don't know how to write the return for a List. Could you help me, please? Both return=List and return=List<CellInfo> doesn't work
Code:
local TelephonyManager = import("android.telephony.TelephonyManager")
local List = import("java.util.List")
hook {
class = TelephonyManager,
returns = List,
method = "getAllCellInfo",
params = {
},
replace = function(this, params)
return nil
end,
}
Thank you in advance.