Skip to content

Commit 35c1b12

Browse files
committed
Make sure the application class is loaded
1 parent 3f744e5 commit 35c1b12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

soot-infoflow-android/src/soot/jimple/infoflow/android/entryPointCreators/AndroidEntryPointCreator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ protected SootMethod createDummyMainInternal() {
281281
String classAppl = "android.app.Application";
282282
if (applicationClass != null)
283283
classAppl = applicationClass.getName();
284+
applicationClass = Scene.v().forceResolve(classAppl, SootClass.SIGNATURES);
284285
Local clazzL = j.newLocal("clazz", RefType.v("java.lang.Class"));
285286
body.getLocals().add(clazzL);
286287
Local classLoader = j.newLocal("classLoader", RefType.v("java.lang.ClassLoader"));

0 commit comments

Comments
 (0)