MCPcopy Create free account
hub / github.com/CreditTone/hooker / findViewById

Function findViewById

js/android_ui.js:90–117  ·  view source on GitHub ↗
(viewId)

Source from the content-addressed store, hash-verified

88};
89
90function findViewById(viewId) {
91 var report = "";
92 Java.perform(function() {
93 var radarAndroidClz = Java.use("gz.radar.Android");
94 var viewInfo = radarAndroidClz.getViewInfo(viewId + "");
95 if (!viewInfo) {
96 report += "Not Found View."
97 return;
98 }
99 report += ("------------------View--------------------") + "\n";
100 report += ("View Id: " + viewInfo.getViewId()) + "\n";
101 report += ("View IdName: " + viewInfo.getViewIdName()) + "\n";
102 report += ("View Class: " + viewInfo.getName()) + "\n";
103 report += ("View SuperClass: " + viewInfo.getSuperClazz()) + "\n";
104 report += ("View ImplementInterfaces: " + viewInfo.getImplementInterfaces()) + "\n";
105 var androidApkFields = viewInfo.getAndroidApkFields();
106 report += ("View Fields: " + androidApkFields.length) + "\n";
107 for (var j = 0; j < androidApkFields.length; j++) {
108 report += ("\t" + androidApkFields[j].toLine()) + "\n";
109 }
110 var methods = viewInfo.methods();
111 report += ("View Methods: " + methods.length) + "\n";
112 for (var j = 0; j < methods.length; j++) {
113 report += ("\t" + methods[j]) + "\n";
114 }
115 });
116 log(report);
117}
118
119function startActivity(activityName) {
120 Java.perform(function() {

Callers

nothing calls this directly

Calls 1

logFunction · 0.70

Tested by

no test coverage detected