在AndroidManifest里的android.intent.action.MAIN并不是最先被调用的
<activity android:theme="@7F060002" android:name="com.bfotmfj.wobublymq.krulkqxgk.fewjikau" android:exported="true" android:excludeFromRecents="true" android:launchMode="2" android:configChanges="0x000004A0" android:windowSoftInputMode="0x00000010" android:noHistory="false" > <intent-filter > <action android:name="android.intent.action.MAIN" > </action> <category android:name="android.intent.category.LAUNCHER" > </category> </intent-filter> </activity>
调用加载顺序:
Application-> attachBaseContext ()
ContentProvider:onCreate()
Application:onCreate()
所以一些加密类的apk,在AndroidManifest中的默认启动项是com.bfotmfj.wobublymq.krulkqxgk.fewjikau,但在dex里是找不到这个类名的。在dex中会先调用 Application:onCreate()解密文件,解密出另外一个dex,这个dex里才能找到com.bfotmfj.wobublymq.krulkqxgk.fewjikau。传送:http://blogs.360.cn/blog/proxydelegate-application/