Skip to content

Commit

Permalink
resolved a blunder in APK frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
palaniappan1 committed Oct 31, 2024
1 parent 1390a6e commit b4fde46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,10 @@ public JavaSootMethod makeSootMethod(
final Method method, List<BodyInterceptor> bodyInterceptors, @Nonnull View view) {
int modifierFlags = method.getAccessFlags();
if (Modifier.isAbstract(modifierFlags) || Modifier.isNative(modifierFlags)) {
String className = declaringclassType.getClassName();
if (DexUtil.isByteCodeClassName(className)) {
className = DexUtil.dottedClassName(className);
}
MethodSignature methodSignature =
new MethodSignature(
declaringclassType,
className,
method.getName(),
Collections.emptyList(),
DexUtil.toSootType(method.getReturnType(), 0));
DexMethodSource dexMethodSource =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,12 @@ public JavaSootMethod makeSootMethod(
// If the Nop Statements are not removed, graph.initializeWith throws a runtime exception
// It is only for the case where there is a JNop Statement after the return statement. Crazy
// android code :(
String className = classType.getClassName();
if (DexUtil.isByteCodeClassName(className)) {
className = DexUtil.dottedClassName(className);
}
MethodSignature methodSignature =
new MethodSignature(
classType, className, parameterTypes, DexUtil.toSootType(method.getReturnType(), 0));
classType,
method.getName(),
parameterTypes,
DexUtil.toSootType(method.getReturnType(), 0));
while (stmtList.get(stmtList.size() - 1) instanceof JNopStmt) {
stmtList.remove(stmtList.size() - 1);
}
Expand Down

0 comments on commit b4fde46

Please sign in to comment.