after modified browser project, install, run core dump occur

Quickly share your Android Code Snippets here...

after modified browser project, install, run core dump occur

Postby sdy1978 » Fri Apr 03, 2009 3:20 pm

I import the browser component to eclipse as project, and rm the /system/app/Browser.apk, then run the browser from eclipse, but core dump occurs, anyone happens to know how to resolved it? thanks!
here is what i did:
1. import browser component to eclipse from android source
2. run the eumulator,
3. adb remount
4. adb shell rm /system/app/Browser.apk
5. run the browser from eclipse
6. as noon as the brower screen is displayed, core dump occurs

below is the log from logcate, seems it is because the UID has mismatched:

Logcat :
03-30 04:48:44.505: ERROR/PackageManager(51): Package com.android.browser has mismatched uid: 10027 on disk, 10034 in settings......
.......
03-30 04:48:49.784: ERROR/Database(297): sqlite3_open_v2("/data/data/com.android.browser/databases/webview.db", &handle, 6, NULL) failed
03-30 04:48:49.793: DEBUG/AndroidRuntime(297): Shutting down VM
03-30 04:48:49.793: WARN/dalvikvm(297): threadid=3: thread exiting with uncaught exception (group=0x4000fe68)
03-30 04:48:49.793: ERROR/AndroidRuntime(297): [b]Uncaught handler: thread main exiting due to uncaught exception
03-30 04:48:49.825: ERROR/AndroidRuntime(297): java.lang.RuntimeException: Unable to create application com.android.browser.Browser: android.database.sqlite.SQLiteException: unable to open database file
[/b]
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3467)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.app.ActivityThread.access$2500(ActivityThread.java:112)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1623)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.os.Handler.dispatchMessage(Handler.java:99)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.os.Looper.loop(Looper.java:123)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.app.ActivityThread.main(ActivityThread.java:3790)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at java.lang.reflect.Method.invokeNative(Native Method)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at java.lang.reflect.Method.invoke(Method.java:521)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:745)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:503)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at dalvik.system.NativeStart.main(Native Method)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): Caused by: android.database.sqlite.SQLiteException: unable to open database file
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1569)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:624)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:645)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:638)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.app.ApplicationContext.openOrCreateDatabase(ApplicationContext.java:460)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:181)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.webkit.WebViewDatabase.getInstance(WebViewDatabase.java:168)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.webkit.WebSyncManager.<init>(WebSyncManager.java:66)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.webkit.CookieSyncManager.<init>(CookieSyncManager.java:70)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.webkit.CookieSyncManager.createInstance(CookieSyncManager.java:97)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at com.android.browser.Browser.onCreate(Browser.java:50)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1045)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3464)
03-30 04:48:49.825: ERROR/AndroidRuntime(297): ... 10 more



thanks a lot!
sdy1978
Freshman
Freshman
 
Posts: 5
Joined: Mon Dec 22, 2008 8:37 am

Top

Return to Code Snippets for Android

Who is online

Users browsing this forum: No registered users and 10 guests