01/06/2015 - Completely fixed the search function with Android APKs.
This commit is contained in:
Kalen Kinloch 2015-01-06 11:12:02 -08:00
parent f7fe03ed5a
commit bf583ec9d9
6 changed files with 23 additions and 3 deletions

Binary file not shown.

View file

@ -235,5 +235,5 @@ Changelog:
--- 2.5.1 ---:
01/06/2015 - Silenced the error connecting to update server for offline mode.
01/06/2015 - Fixed a search function with Android APKs.
--- 2.5.1 ---:
01/06/2015 - Fixed another issue with LDC searching for Android APKs.01/06/2015 - Fixed another issue with LDC searching for Android APKs.
--- 2.5.2 ---:
01/06/2015 - Completely fixed the search function with Android APKs.

View file

@ -89,6 +89,8 @@ public class FieldCallSearch implements SearchTypeDetails {
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {
}
@ -113,6 +115,8 @@ public class FieldCallSearch implements SearchTypeDetails {
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {
}

View file

@ -63,6 +63,8 @@ public class LDCSearch implements SearchTypeDetails {
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {
}
@ -80,8 +82,16 @@ public class LDCSearch implements SearchTypeDetails {
final Iterator<FieldNode> fields = node.fields.iterator();
while (methods.hasNext()) {
final FieldNode field = fields.next();
String desc2 = field.desc;
try {
desc2 = Type.getType(field.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = field.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {
}
if (field.value instanceof String) {
srn.notifyOfResult(node.name + "." + field.name + field.desc
srn.notifyOfResult(node.name + "." + field.name + desc2
+ " -> \"" + field.value + "\" > field");
}
}

View file

@ -89,6 +89,8 @@ public class MethodCallSearch implements SearchTypeDetails {
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {
}
@ -112,6 +114,8 @@ public class MethodCallSearch implements SearchTypeDetails {
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {
}

View file

@ -58,6 +58,8 @@ public class RegexSearch implements SearchTypeDetails {
String desc2 = method.desc;
try {
desc2 = Type.getType(method.desc).toString();
if(desc2 == null || desc2.equals("null"))
desc2 = method.desc;
} catch(java.lang.ArrayIndexOutOfBoundsException e) {
}