Import working on desktop, not on phone

8 views
Skip to first unread message

mbriody...@gmail.com

unread,
Jul 27, 2007, 7:31:29 AM7/27/07
to Safe_and_SafeDesktop
After looking at the source code I managed to get the import function
to work. I used the same structure as contained in the
safe_encrypted.xml but changed the <EncryptedSafeElement> to
<SafeElement>.

Import now works fine on the desktop version. However on the version
on the phone the same xml file fails to import and gives an error. It
looks like it is expecting <EncryptedSafeElement>?

Can you shed any light on this please?

mbriody...@gmail.com

unread,
Jul 30, 2007, 7:19:57 AM7/30/07
to Safe_and_SafeDesktop
Okay I now realise that import on the phone is encrypted and not plain
text so this works okay if I plain text import into the desktop and
then copy the encrypted XML file to my phone and import that.

Separate question - I intend to regularly update on the desktop and
copy the encrypted XML to the phone (cheaper and easier than using
sync). The problem is that this method combines the existing data with
that in the XML file so everything is duplicated.

Is there a way to clear out the database on the phone before
importing? I've searched on the phone (a SE W880i) and I can't find
where the database is stored. Can anyone help please?

Thomas King

unread,
Jul 30, 2007, 4:47:22 PM7/30/07
to safe_and_s...@googlegroups.com
Hi Mark,
sorry for the delay, I just got back to my computer after celebrating a few
computer-free days :-) and I am still getting through my emails.

First of all, thanks for using Safe and SafeDesktop! I am glad to get feedback
from Safe and SafeDesktop users!

As you already figured out by yourself: The reason why your xml file does not
work with Safe and SafeDesktop is that the current version of Safe is only
able to handle encrypted xml files while SafeDesktop is only able to import
clear text (unencrypted) xml files. Let me explain why I added a clear text
import to SafeDesktop. The import feature of SafeDesktop is considered as a
method to import data of previous Safe versions. These versions were only
capable to export data in an unencrypted way.

Regarding your second question: Of course, it is possible to add a "Delete
all" menu item to the menu of Safe. However, the synchronization mechanism
will still store a copy of the so-called "deleted" entries even if the
entries are not shown in the listing. The next time you start synchronizing
all data that is marked as deleted on the phone will be removed from your
desktop (and the phone). Do you want to implement this feature and send me a
patch? Otherwise, it will take a few days until I have enough time to do it
on my own. So, I would really appreciate if you implement such a feature!

Best regards,
Thomas

mbriody...@gmail.com

unread,
Jul 31, 2007, 7:43:06 AM7/31/07
to Safe_and_SafeDesktop
Thanks for your reply Thomas.

I am happy with the import/export and this is fairly painless now.

I am not up to the job of coding a patch - I am an ex-developer with
enough knowledge to be able to read Java and follow what is going on
but I can't code in it. I'm happy to wait for you to have time to add
a patch.

>From what you are saying, if I never use "sync" then will the deleted
entries comtinue to build up or is there some garbage collection which
will eventually delete them?

I will never use sync (data on O2 is way too expensive!) so would it
be possible to build the garbage collect into the "Delete All"
function?

Incidentally, I have a workaround - I managed to locate the database
file for Safe, buried a few subfolders down on the phone in

\Memory Stick\system\ams\java\db\j9bxxxxxxxxxxxxxxxxxxxxxxxc2.d

If I delete this file and restart Safe I end up with an empty
database, then I can use Import.

mbriody...@gmail.com

unread,
Aug 16, 2007, 4:15:43 AM8/16/07
to Safe_and_SafeDesktop
Hi Thomas, has there been any update on the 'clear all' function? Also
could you build in a "garbage collect" as I will never use sync (see
my previous post). Or is there another way to force the space to be
reclaimed?

Thanks,

Mark

Thomas King

unread,
Aug 17, 2007, 5:10:47 AM8/17/07
to safe_and_s...@googlegroups.com
Hi Mark,
I haven't worked on these features so far because I see only limited use for
them. Currently, other feature requests such as categories are more pressing
and I spend my limited spare-time on them. However, you are sincerely invited
to submit a patch that contains your requested features. Making a donation
may also change the priorities in the feature request list! ;-)

Best regards,
Thomas


--
Praktische Informatik IV, University of Mannheim
A5,6, 68159 Mannheim, Germany
Tel: +49 621 181 2615, Fax: +49 621 181 2601

Thomas King

unread,
Jan 29, 2008, 6:00:39 PM1/29/08
to safe_and_s...@googlegroups.com, mbriody...@gmail.com
Hi all:
the successor of Safe called MobileKnox supports such a "clear all" function.
It is dubbed "Delete all entries" and can be enabled in the settings.
MobileKnox can be downloaded from http://www.mobileknox.com

Enjoy using MobileKnox and DesktopKnox

Best regards,
Thomas

On Thursday 16 August 2007 10:15:43 am mbriody...@gmail.com wrote:

Reply all
Reply to author
Forward
0 new messages