[Android Software/Hacking General [Developers Only]] michfood:
have a problem.

superuser.apk and rootexplorer.apk - does not work properly after some time of normal work.

logcat:

21:12:49.536 Error Database 1139 CREATE TABLE android_metadata failed
21:12:49.536 Error Database 1139 Failed to setLocale() when constructing, closing the database
21:12:49.537 Error Database 1139 android.database.sqlite.SQLiteException: unable to open database file
21:12:49.537 Error Database 1139	at android.database.sqlite.SQLiteDatabase.native_setLocale(Native Method)
21:12:49.537 Error Database 1139	at android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:2018)
21:12:49.537 Error Database 1139	at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1886)
21:12:49.537 Error Database 1139	at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:851)
21:12:49.537 Error Database 1139	at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:885)
21:12:49.537 Error Database 1139	at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:878)
21:12:49.537 Error Database 1139	at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:601)
21:12:49.537 Error Database 1139	at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:234)
21:12:49.537 Error Database 1139	at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:149)
21:12:49.537 Error Database 1139	at com.speedsoftware.rootexplorer.dw.a(Unknown Source)
21:12:49.537 Error Database 1139	at com.speedsoftware.rootexplorer.dg.a(Unknown Source)
21:12:49.537 Error Database 1139	at com.speedsoftware.rootexplorer.i.a(Unknown Source)
21:12:49.537 Error Database 1139	at com.speedsoftware.rootexplorer.i.a(Unknown Source)
21:12:49.537 Error Database 1139	at com.speedsoftware.rootexplorer.i.a(Unknown Source)
21:12:49.537 Error Database 1139	at com.speedsoftware.rootexplorer.RootExplorerPhone.onKeyDown(Unknown Source)
21:12:49.537 Error Database 1139	at android.view.KeyEvent.dispatch(KeyEvent.java:1289)
21:12:49.537 Error Database 1139	at android.app.Activity.dispatchKeyEvent(Activity.java:2119)
21:12:49.537 Error Database 1139	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1791)
21:12:49.537 Error Database 1139	at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2607)
21:12:49.537 Error Database 1139	at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2582)
21:12:49.537 Error Database 1139	at android.view.ViewRoot.handleMessage(ViewRoot.java:1914)
21:12:49.537 Error Database 1139	at android.os.Handler.dispatchMessage(Handler.java:130)
21:12:49.537 Error Database 1139	at android.os.Looper.loop(SourceFile:351)
21:12:49.538 Error Database 1139	at android.app.ActivityThread.main(ActivityThread.java:3850)
21:12:49.538 Error Database 1139	at java.lang.reflect.Method.invokeNative(Native Method)
21:12:49.538 Error Database 1139	at java.lang.reflect.Method.invoke(Method.java:538)
21:12:49.538 Error Database 1139	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
21:12:49.538 Error Database 1139	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:659)
21:12:49.538 Error Database 1139	at dalvik.system.NativeStart.main(Native Method)

it seems something wrong with sqlite access to databases - maybe some permissions, user ID or something else.

after moving all superuser`s data to physical internal memory - it began to work.

maybe we don`t need to move all system apps data to SD to avoid bugs?

ps - moving rootexplorer`s data to internal memory solved the problem too