I need to copy the database from phones which is without "Root“ to pads. So I also adopt the method like others: copy /data/data/../databases/test.db to /sdcard at first. And then I use adb shell sqlite3 command in my PC or in my friends' PC, there are some question: 1) sometimes, it can open successfully 2)sometimes,it show "file is encrypted or is not a database" 3) sometimes, it show "database disk image is malformed"
Note: the sqlite3 version are different.
the root cause of "file is encrypted or is not a database" is the version problem, is it right?
what is the root cause "database disk image is malformed"? I search some information about it on internet, but I can't still fix it.
Thanks!
Edit 1:The test phone is HTC HD Edit 2: I this thread: http://groups.google.com/group/android-developers/browse_thread/thread/2b8a8fa9b955eecd/0615c6111d93ea02?lnk=raot There are message: I would very strongly advise you against doing this. There is no guarantee that the binary database file will be compatible across Android version and much less across all custom ROMs.
It seems the root cause of "database disk image is malformed" is the Sqlite3 version. But how to backup the database to sdcard is best way? Are there another ways?