admin-root / android-quill

Automatically exported from code.google.com/p/android-quill
GNU General Public License v3.0
0 stars 0 forks source link

Backup is not reliable #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have tablet kernel panic during automatic notes backup
2. Reboot, find notebook for class you have a test in this Friday missing
3. Attempt to restore from backup

What is the expected output? What do you see instead?
Expect to see notebook restored, see error message. Backup file is missing when 
you come back later.

What version of the product are you using? On what operating system?
Version 10.2 (From Android Market) on Lenovo Thinkpad Tablet 32 GB running 
Android 4.0.3 (ThinkPadTablet_A400_0070_0132_US)

Please provide any additional information below.
My tablet crashed and rebooted soon after switching away from Quill (during its 
automatic backup process) this resulted in an entire notebook disappearing and 
the backup being unusable.

Two things here:
- Backups should not destroy the previous backup, at least not until the new 
one is fully saved.
- I'm not sure if it was the failed restore or the subsquent backup process, 
but the backup file is gone now too so I can't even attempt to recover notes 
using a hex editor or somesuch.

I plan to change this on my own whenever I have time (since Quill is open 
source) but I'm not sure when that will be.

Original issue reported on code.google.com by pathogendavid on 30 Oct 2012 at 1:05

GoogleCodeExporter commented 9 years ago
Its possible that the kernel panic was due to something breaking in the file 
system, in that case there is little one can do. Though versioned backups sound 
like a good idea.

Can you see whats left of the notebook directory in the internal storage? Just 
run

adb shell
run-as com.write.Quill
ls -alR files

Original comment by vbraun.n...@gmail.com on 30 Oct 2012 at 10:07

GoogleCodeExporter commented 9 years ago
The kernel panic happens when I open my camera app, I think Lenovo replaced it 
with a faulty part when I sent the tablet in to get fixed recently.

Unfortunately run-as fails for me:
shell@android:/ $ run-as com.write.Quill
run-as com.write.Quill
run-as: Package 'com.write.Quill' is not debuggable

I imagine it might work if I built the package myself (but its been a while 
since I worked on any Android apps so I imagine my build environment would need 
some work.) Are the packages in the downloads section debugable by any chance?

Unfortunately I do not have root anymore, otherwise I'd use that.

Original comment by pathogendavid on 31 Oct 2012 at 1:50

GoogleCodeExporter commented 9 years ago
Rooted with a new root exploit ( 
http://forum.xda-developers.com/showthread.php?t=1925025 )

Here is the file listing: http://pastebin.com/raw.php?i=XzKvXV4G

Unfortunately this seems to be the same as the list of backup files I have:
0ed70f4e-bdda-406c-a349-a9d9469fb6f6.quill  0ed70f4e-bdda-406c-a349-a9d9469fb6f6
2bcb7c1a-98fb-4bc6-9ed1-f0bb8e63717b.quill  2bcb7c1a-98fb-4bc6-9ed1-f0bb8e63717b
332a5991-5d42-4f91-90fd-ca5b6539c260.quill  332a5991-5d42-4f91-90fd-ca5b6539c260
94e6f41b-c0e2-4b38-9fb9-b5418d6e9f2c.quill  94e6f41b-c0e2-4b38-9fb9-b5418d6e9f2c
a70c5db2-f5ea-4f0a-8003-b4cedc4f46be.quill  a70c5db2-f5ea-4f0a-8003-b4cedc4f46be
a73deee8-8186-45fd-933e-d5452add451f.quill  a73deee8-8186-45fd-933e-d5452add451f
acf5488f-e0d5-4b76-90c0-c57e035c6c64.quill  acf5488f-e0d5-4b76-90c0-c57e035c6c64
c7957aa5-539c-4ae0-83f7-258fe5eb0b04.quill  c7957aa5-539c-4ae0-83f7-258fe5eb0b04
dd632471-38ba-498d-a17b-fe26b4d1db3d.quill  dd632471-38ba-498d-a17b-fe26b4d1db3d
f7818c54-1943-4a24-9dc6-aa2a6227ca12.quill  f7818c54-1943-4a24-9dc6-aa2a6227ca12

Also to clarify: I have most of my notebooks, its just a single notebook that 
has vanished into thin air.

Is there an easy way to get a list of name -> GUID ascoiations? I do know that 
an empty "Default Quill Notebook" appeared with the creation date of the 0 Unix 
time (Jan 1st 1970) so maybe that notebook directory still has pages floating 
around in it?

Original comment by pathogendavid on 31 Oct 2012 at 2:26

GoogleCodeExporter commented 9 years ago
You can 

cat files/notebook_<uuid>/index.quill_data 

this will show you the name of the notebook among other data. That way you can 
figure out the uuid of the notebook you want.

Original comment by vbraun.n...@gmail.com on 31 Oct 2012 at 10:31

GoogleCodeExporter commented 9 years ago
dd632471-38ba-498d-a17b-fe26b4d1db3d    Default Quill Notebook

Seems to be the id of the new notebook, and that folder only contains a single 
91 byte file, so I suppose the notebook is toast. Oh well, my fault for not 
backing up more frequently :/ I would still like to see the automated backup 
improve though, I saw in the changelog you're working on syncing right now, 
that'd definitely be neat!

Original comment by pathogendavid on 31 Oct 2012 at 11:32