Power on after upgrade to prompt "Android.process.acore" to stop running--analyze solution

Source: Internet
Author: User

OTA upgrade, upgrade caused by all the problems are can be explained, some can solve, and some cannot solve.


A project reported the problem. After upgrade, you will be prompted to "Android.process.acore" to stop running.


Grab adb log and see this fatal log below.


11-06 14:40:33.633 3827 3827 E androidruntime:fatal exception:main
11-06 14:40:33.633 3827 3827 E AndroidRuntime:Process:android.process.acore, pid:3827
11-06 14:40:33.633 3827 3827 E AndroidRuntime:java.lang.RuntimeException:Unable to get provider Com.android.providers. Contacts. CallLogProvider:android.database.sqlite.SQLiteException:Can ' t downgrade database from version 851 to 850
11-06 14:40:33.633 3827 3827 E androidruntime:At Android.app.ActivityThread.installProvider (activitythread.java:5043)
11-06 14:40:33.633 3827 3827 E androidruntime:At Android.app.ActivityThread.installContentProviders (activitythread.java:4614)
11-06 14:40:33.633 3827 3827 E androidruntime:At Android.app.ActivityThread.handleBindApplication (activitythread.java:4547)
11-06 14:40:33.633 3827 3827 E androidruntime:At android.app.activitythread.access$1500 (activitythread.java:151)
11-06 14:40:33.633 3827 3827 E androidruntime:At Android.app.activitythread$h.handlemessage (activitythread.java:1402)
11-06 14:40:33.633 3827 3827 E androidruntime:At Android.os.Handler.dispatchMessage (handler.java:110)
11-06 14:40:33.633 3827 3827 E androidruntime:At Android.os.Looper.loop (looper.java:193)
11-06 14:40:33.633 3827 3827 E androidruntime:At Android.app.ActivityThread.main (activitythread.java:5324)
11-06 14:40:33.633 3827 3827 E androidruntime:At Java.lang.reflect.Method.invokeNative (Native Method)
11-06 14:40:33.633 3827 3827 E androidruntime:At Java.lang.reflect.Method.invoke (method.java:515)
11-06 14:40:33.633 3827 3827 E androidruntime:At Com.android.internal.os.zygoteinit$methodandargscaller.run (zygoteinit.java:829)
11-06 14:40:33.633 3827 3827 E androidruntime:At Com.android.internal.os.ZygoteInit.main (zygoteinit.java:645)
11-06 14:40:33.633 3827 3827 E androidruntime:At Dalvik.system.NativeStart.main (Native Method)


From log you can see a problem with the database for the Om.android.providers.contacts contact module. The problem is that can ' t downgrade database from version 851 to 850, that is, cannot downgrade from the advanced version of the database to the low-level version. This should be caused by the limitations of Android.


Google for what?

Stackvoerflow someone explained, if you inherit the ondowngrade below, you can. But a contact is not allowed to do so.

You is usingAndroid SQLiteOpenHelper, you need to overrideonDowngradeIf you want to is able to run your application with a database on the device with a higher version than your code can handle.

Should care about this "Database Version thing" if ever your the database schema is ever going to There is good chance it would).


Workaround: Back up the contact data first. (Preferably a network backup, full backup DB may not be effective)

Method One

1 Settings-Application Management--contacts--Empty data 2 settings-Application management--dial pad-empty data


Method Two, set-Restore factory settings-erase all data. Then automatically restarts to recovery and then it's OK--just wait a minute.


Power on after upgrade to prompt "Android.process.acore" to stop running--analyze solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.