diff --git a/atlas-core/src/main/java/android/taobao/atlas/framework/Atlas.java b/atlas-core/src/main/java/android/taobao/atlas/framework/Atlas.java index 0f7aa556f..647eabcde 100644 --- a/atlas-core/src/main/java/android/taobao/atlas/framework/Atlas.java +++ b/atlas-core/src/main/java/android/taobao/atlas/framework/Atlas.java @@ -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){}