加固前奏2-替换application
运行加载过程
ActivityThread.JAVA
Application app = data.info.makeApplication(data.restrictedBackupMode, null);
->进入LoadedApk.java
String appClass = mApplicationInfo.className;
app.attachBaseContext() //可控函数
...
mActivityThread.mAllApplications.add(app);
mApplication = app;
<-退出
mInitialApplication = app;
mInstrumentation.callApplicationOnCreate(app);
-> app.onCreate() //可控函数
onCreate中实现