You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class HookInfo {
public String className;
public String methodName;
public static List<HookInfo> infoList = new ArrayList<>();
public HookInfo(String className, String methodName) {
this.className = className;
this.methodName = methodName;
}
public static List<HookInfo> getInfoList() {
infoList.add(new HookInfo("android.telephony.TelephonyManager",
"getDeviceId"
));
infoList.add(new HookInfo("android.telephony.TelephonyManager",
"getSubscriberId"
));
return infoList;
}
}
public class testInfo {
public static void t(HookInfo info) throws ClassNotFoundException {
Class cls = String.class.getClassLoader().loadClass(info.className);
test.doTest(cls, info.methodName);
}
}
public class test {
public static void doTest(Class cls, String m) {
}
}
package com.example.test;
public class Main {
public void test() throws ClassNotFoundException {
List<HookInfo> list = HookInfo.getInfoList();
for (HookInfo info : list) {
testInfo.t(info);
}
}
}
测试代码如下:
package com.example.test.util;
package com.example.test;
测试规则:
{
"ConstStringTest1": {
"ConstStringMode": true,
"traceDepth": 26,
"desc": {
"name": "test",
"category": "ConstStringTest",
"detail": "ConstStringTest",
"wiki": "",
"possibility": "4",
"model": "middle"
},
"targetStringArr": ["android.telephony.TelephonyManager"],
"minLen": 2,
"source": {
"ConstString": ["android.telephony.TelephonyManager"]
},
"sink": {
"<com.example.test.util.test: * doTest()>": {
"TaintCheck": [
"p"
]
}
}
}
}
The text was updated successfully, but these errors were encountered: