[Nexus One Android Development] arunciks:
File not found....

weird FCes started to happen.. I don't know if its SD card going bad, Rom or maybe the partitioning itself.

The issue starts to happen after about 2 weeks after ROM install..... QND MIUI XPART. Happens with different versions of the ROM (17..20 ..30). Its weird since everything works for sometime like 2 weeks and then just suddenly starts. I suspect that apps using db SQLlite starts FC.

I am using XPART of the ROM.

Factory reset and reinstall fixes issue for awhile.

Some logs for example Titanium Backup (similar things with file access happen to Launcher Pro, HTC keyboard and other apps) app:

I/ActivityManager( 1052): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.keramidas.TitaniumBackup/.MainActivity bnds=[238,76][355,211]

} from pid 23423

I/ActivityManager( 1052): Start proc com.keramidas.TitaniumBackup for activity com.keramidas.TitaniumBackup/.MainActivity: pid=26024 uid=10081 gids={1015, 3003}

I/com.keramidas.TitaniumBackup.MainApplication(26024 ): onCreate()

W/Settings(26024): Setting android_id has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.

D/com.keramidas.TitaniumBackup.i.k(26024): Debug features are disabled.

I/com.keramidas.TitaniumBackup.h.a(26024): restoreMySettings_ifNeeded()

I/com.keramidas.TitaniumBackup.i.az(26024): Detected 0 mount point(s) in addition to Android "external" storage.

I/com.keramidas.TitaniumBackup.h.a(26024): Restoring the settings ...

I/com.keramidas.TitaniumBackup.h.a(26024): Copying: /mnt/sdcard/data/com.keramidas.TitaniumBackup/settings/shared_prefs~com.keramidas.TitaniumBackup_preferen ces.xml => /data/data/com.keramidas.Titaniu

mBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml

I/com.keramidas.TitaniumBackup.h.a(26024): Parent directory is: /data/data/com.keramidas.TitaniumBackup/shared_prefs

W/System.err(26024): java.io.FileNotFoundException: /data/data/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml.tmp (Permission denied)

W/System.err(26024): at org.apache.harmony.luni.platform.OSFileSystem.open (Native Method)

W/System.err(26024): at dalvik.system.BlockGuard$WrappedFileSystem.open(Bl ockGuard.java:232)

W/System.err(26024): at java.io.FileOutputStream.<init>(FileOutputStream.j ava:94)

W/System.err(26024): at java.io.FileOutputStream.<init>(FileOutputStream.j ava:66)

W/System.err(26024): at com.keramidas.TitaniumBackup.h.a.b(Source:152)

W/System.err(26024): at com.keramidas.TitaniumBackup.h.a.b(Source:131)

W/System.err(26024): at com.keramidas.TitaniumBackup.MainApplication.onCre ate(Source:70)

W/System.err(26024): at android.app.Instrumentation.callApplicationOnCreat e(Instrumentation.java:969)

W/System.err(26024): at android.app.ActivityThread.handleBindApplication(A ctivityThread.java:3283)

W/System.err(26024): at android.app.ActivityThread.access$2200(ActivityThr ead.java:117)

W/System.err(26024): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:969)

W/System.err(26024): at android.os.Handler.dispatchMessage(Handler.java:99 )

W/System.err(26024): at android.os.Looper.loop(Looper.java:130)

W/System.err(26024): at android.app.ActivityThread.main(ActivityThread.jav a:3694)

W/System.err(26024): at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err(26024): at java.lang.reflect.Method.invoke(Method.java:507)

W/System.err(26024): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:841)

W/System.err(26024): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:599)

W/System.err(26024): at dalvik.system.NativeStart.main(Native Method)

I/com.keramidas.TitaniumBackup.h.a(26024): Copying: /mnt/sdcard/data/com.keramidas.TitaniumBackup/settings/databases~schedules => /data/data/com.keramidas.TitaniumBackup/databases/schedules

I/com.keramidas.TitaniumBackup.h.a(26024): Parent directory is: /data/data/com.keramidas.TitaniumBackup/databases

W/System.err(26024): java.io.FileNotFoundException: /data/data/com.keramidas.TitaniumBackup/databases/schedules.tmp (Permission denied)

W/System.err(26024): at org.apache.harmony.luni.platform.OSFileSystem.open (Native Method)

W/System.err(26024): at dalvik.system.BlockGuard$WrappedFileSystem.open(Bl ockGuard.java:232)

W/System.err(26024): at java.io.FileOutputStream.<init>(FileOutputStream.j ava:94)

W/System.err(26024): at java.io.FileOutputStream.<init>(FileOutputStream.j ava:66)

W/System.err(26024): at com.keramidas.TitaniumBackup.h.a.b(Source:152)

W/System.err(26024): at com.keramidas.TitaniumBackup.h.a.b(Source:131)

W/System.err(26024): at com.keramidas.TitaniumBackup.MainApplication.onCre ate(Source:70)

W/System.err(26024): at android.app.Instrumentation.callApplicationOnCreat e(Instrumentation.java:969)

W/System.err(26024): at android.app.ActivityThread.handleBindApplication(A ctivityThread.java:3283)

W/System.err(26024): at android.app.ActivityThread.access$2200(ActivityThr ead.java:117)

W/System.err(26024): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:969)

W/System.err(26024): at android.os.Handler.dispatchMessage(Handler.java:99 )

W/System.err(26024): at android.os.Looper.loop(Looper.java:130)

W/System.err(26024): at android.app.ActivityThread.main(ActivityThread.jav a:3694)

W/System.err(26024): at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err(26024): at java.lang.reflect.Method.invoke(Method.java:507)

W/System.err(26024): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:841)

W/System.err(26024): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:599)

W/System.err(26024): at dalvik.system.NativeStart.main(Native Method)

I/com.keramidas.TitaniumBackup.h.a(26024): Copying: /mnt/sdcard/data/com.keramidas.TitaniumBackup/settings/databases~custom => /data/data/com.keramidas.TitaniumBackup/databases/custom

I/com.keramidas.TitaniumBackup.h.a(26024): Parent directory is: /data/data/com.keramidas.TitaniumBackup/databases

W/System.err(26024): java.io.FileNotFoundException: /data/data/com.keramidas.TitaniumBackup/databases/custom.tmp (Permission denied)

W/System.err(26024): at org.apache.harmony.luni.platform.OSFileSystem.open (Native Method)

W/System.err(26024): at dalvik.system.BlockGuard$WrappedFileSystem.open(Bl ockGuard.java:232)

W/System.err(26024): at java.io.FileOutputStream.<init>(FileOutputStream.j ava:94)

W/System.err(26024): at java.io.FileOutputStream.<init>(FileOutputStream.j ava:66)

W/System.err(26024): at com.keramidas.TitaniumBackup.h.a.b(Source:152)

W/System.err(26024): at com.keramidas.TitaniumBackup.h.a.b(Source:131)

W/System.err(26024): at com.keramidas.TitaniumBackup.MainApplication.onCre ate(Source:70)

W/System.err(26024): at android.app.Instrumentation.callApplicationOnCreat e(Instrumentation.java:969)

W/System.err(26024): at android.app.ActivityThread.handleBindApplication(A ctivityThread.java:3283)

W/System.err(26024): at android.app.ActivityThread.access$2200(ActivityThr ead.java:117)

W/System.err(26024): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:969)

W/System.err(26024): at android.os.Handler.dispatchMessage(Handler.java:99 )

W/System.err(26024): at android.os.Looper.loop(Looper.java:130)

W/System.err(26024): at android.app.ActivityThread.main(ActivityThread.jav a:3694)

W/System.err(26024): at java.lang.reflect.Method.invokeNative(Native Method)

W/System.err(26024): at java.lang.reflect.Method.invoke(Method.java:507)

W/System.err(26024): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:841)

W/System.err(26024): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:599)

W/System.err(26024): at dalvik.system.NativeStart.main(Native Method)

D/dalvikvm(26024): GC_CONCURRENT freed 349K, 51% free 2779K/5639K, external 0K/0K, paused 3ms+2ms

D/dalvikvm(26024): GC_EXTERNAL_ALLOC freed 21K, 52% free 2757K/5639K, external 0K/0K, paused 50ms

W/Resources(26024): Converting to string: TypedValue{t=0x10/d=0x0 a=-1}

W/Resources(26024): Converting to string: TypedValue{t=0x10/d=0x80 a=-1}

W/Resources(26024): Converting to string: TypedValue{t=0x10/d=0x3 a=-1}

E/ApplicationContext(26024): Couldn't create directory for SharedPreferences file /data/data/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml

W/Resources(26024): Converting to string: TypedValue{t=0x10/d=0x1 a=-1}

E/ApplicationContext(26024): Couldn't create directory for SharedPreferences file /data/data/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml

W/Resources(26024): Converting to string: TypedValue{t=0x10/d=0x3 a=-1}

I/com.keramidas.TitaniumBackup.MainActivity(26024): Main Activity is being created for the first time => scheduling next wake-up ...

E/ApplicationContext(26024): Couldn't create directory for SharedPreferences file /data/data/com.keramidas.TitaniumBackup/shared_prefs/com.keramidas.TitaniumBackup_preferences.xml

E/ApplicationContext(26024): Couldn't create directory for SharedPreferences file /data/data/com.keramidas.TitaniumBackup/shared_prefs/_has_set_default_values.xml

I/com.keramidas.TitaniumBackup.schedules.SchedulerSe rvice(26024): scheduleNextWakeup(): Invoked with idToExcludeForToday=null

I/Database(26024): sqlite returned: error code = 14, msg = cannot open file at line 27205 of [42537b6056]

E/Database(26024): sqlite3_open_v2("/data/data/com.keramidas.TitaniumBackup/databases/schedules", &handle, 6, NULL) failed

E/SQLiteOpenHelper(26024): Couldn't open schedules for writing (will try read-only):

E/SQLiteOpenHelper(26024): android.database.sqlite.SQLiteException: unable to open database file

E/SQLiteOpenHelper(26024): at android.database.sqlite.SQLiteDatabase.dbopen(Nati ve Method)

E/SQLiteOpenHelper(26024): at android.database.sqlite.SQLiteDatabase.<init>(SQLi teDatabase.java:1849)

E/SQLiteOpenHelper(26024): at android.database.sqlite.SQLiteDatabase.openDatabas e(SQLiteDatabase.java:820)

E/SQLiteOpenHelper(26024): at android.database.sqlite.SQLiteDatabase.openOrCreat eDatabase(SQLiteDatabase.java:854)

E/SQLiteOpenHelper(26024): at android.database.sqlite.SQLiteDatabase.openOrCreat eDatabase(SQLiteDatabase.java:847)

E/SQLiteOpenHelper(26024): at android.app.ContextImpl.openOrCreateDatabase(Conte xtImpl.java:556)

E/SQLiteOpenHelper(26024): at android.content.ContextWrapper.openOrCreateDatabas e(ContextWrapper.java:203)

E/SQLiteOpenHelper(26024): at android.database.sqlite.SQLiteOpenHelper.getWritab leDatabase(SQLiteOpenHelper.java:118)

E/SQLiteOpenHelper(26024): at android.database.sqlite.SQLiteOpenHelper.getReadab leDatabase(SQLiteOpenHelper.java:187)

E/SQLiteOpenHelper(26024): at com.keramidas.TitaniumBackup.schedules.SchedulerSe rvice.a(Source:168)

E/SQLiteOpenHelper(26024): at com.keramidas.TitaniumBackup.MainActivity.onCreate (Source:286)

E/SQLiteOpenHelper(26024): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1047)

E/SQLiteOpenHelper(26024): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1619)

E/SQLiteOpenHelper(26024): at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:1671)

E/SQLiteOpenHelper(26024): at android.app.ActivityThread.access$1500(ActivityThr ead.java:117)

E/SQLiteOpenHelper(26024): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:931)

E/SQLiteOpenHelper(26024): at android.os.Handler.dispatchMessage(Handler.java:99 )

E/SQLiteOpenHelper(26024): at android.os.Looper.loop(Looper.java:130)

E/SQLiteOpenHelper(26024): at android.app.ActivityThread.main(ActivityThread.jav a:3694)

E/SQLiteOpenHelper(26024): at java.lang.reflect.Method.invokeNative(Native Method)

E/SQLiteOpenHelper(26024): at java.lang.reflect.Method.invoke(Method.java:507)

E/SQLiteOpenHelper(26024): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:841)

E/SQLiteOpenHelper(26024): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:599)

E/SQLiteOpenHelper(26024): at dalvik.system.NativeStart.main(Native Method)

I/Database(26024): sqlite returned: error code = 14, msg = cannot open file at line 27205 of [42537b6056]

E/Database(26024): sqlite3_open_v2("/data/data/com.keramidas.TitaniumBackup/databases/schedules", &handle, 1, NULL) failed

D/AndroidRuntime(26024): Shutting down VM

W/dalvikvm(26024): threadid=1: thread exiting with uncaught exception (group=0x40174568)

E/AndroidRuntime(26024): FATAL EXCEPTION: main

E/AndroidRuntime(26024): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.keramidas.TitaniumBackup/com.keramidas.TitaniumBackup.MainActivity}: android.database.sqlite.SQLiteExcep

tion: unable to open database file

E/AndroidRuntime(26024): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1655)

E/AndroidRuntime(26024): at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:1671)

E/AndroidRuntime(26024): at android.app.ActivityThread.access$1500(ActivityThr ead.java:117)

E/AndroidRuntime(26024): at android.app.ActivityThread$H.handleMessage(Activit yThread.java:931)

E/AndroidRuntime(26024): at android.os.Handler.dispatchMessage(Handler.java:99 )

E/AndroidRuntime(26024): at android.os.Looper.loop(Looper.java:130)

E/AndroidRuntime(26024): at android.app.ActivityThread.main(ActivityThread.jav a:3694)

E/AndroidRuntime(26024): at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(26024): at java.lang.reflect.Method.invoke(Method.java:507)

E/AndroidRuntime(26024): at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:841)

E/AndroidRuntime(26024): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:599)

E/AndroidRuntime(26024): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime(26024): Caused by: android.database.sqlite.SQLiteException: unable to open database file

E/AndroidRuntime(26024): at android.database.sqlite.SQLiteDatabase.dbopen(Nati ve Method)

E/AndroidRuntime(26024): at android.database.sqlite.SQLiteDatabase.<init>(SQLi teDatabase.java:1849)

E/AndroidRuntime(26024): at android.database.sqlite.SQLiteDatabase.openDatabas e(SQLiteDatabase.java:820)

E/AndroidRuntime(26024): at android.database.sqlite.SQLiteOpenHelper.getReadab leDatabase(SQLiteOpenHelper.java:197)

E/AndroidRuntime(26024): at com.keramidas.TitaniumBackup.schedules.SchedulerSe rvice.a(Source:168)

E/AndroidRuntime(26024): at com.keramidas.TitaniumBackup.MainActivity.onCreate (Source:286)

E/AndroidRuntime(26024): at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1047)

E/AndroidRuntime(26024): at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:1619)

E/AndroidRuntime(26024): ... 11 more

W/ActivityManager( 1052): Force finishing activity com.keramidas.TitaniumBackup/.MainActivity