在开发msm8909项目过程中,碰到一个现象,就是烧完版本后开机,会随机出现apk报错的情况,过一段时间,再关机开机,就没有报错。
在Log中,主要报如下错误:
E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.android.providers.contacts.debug.DumpFileProvider: java.lang.ClassNotFoundException: Didn't find class "com.android.providers.contacts.debug.DumpFileProvider" on path: DexPathList[[zip file "/system/priv-app/ContactsProvider/ContactsProvider.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:5002)
E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:4594)
E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4534)
E AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:151)
E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
E AndroidRuntime: at android.os.Looper.loop(Looper.jav