Skip to content

Commit

Permalink
gDefault npe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
关杰 committed Mar 29, 2017
1 parent 088efd3 commit cc7af78
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ public void init(Application application,boolean reset) throws AssertionArrayExc

Object gDefault = null;
if(Build.VERSION.SDK_INT<25) {
AtlasHacks.ActivityManagerNative_gDefault.get(AtlasHacks.ActivityManagerNative.getmClass());
gDefault = AtlasHacks.ActivityManagerNative_gDefault.get(AtlasHacks.ActivityManagerNative.getmClass());
}else{
AtlasHacks.ActivityManagerNative_getDefault.invoke(AtlasHacks.ActivityManagerNative.getmClass());
gDefault = AtlasHacks.ActivityManagerNative_getDefault.invoke(AtlasHacks.ActivityManagerNative.getmClass());
}
AtlasHacks.Singleton_mInstance.hijack(gDefault, activityManagerProxy);
}catch(Throwable e){}
Expand Down

0 comments on commit cc7af78

Please sign in to comment.