Motorola Development Community

Member Login

Quick Search



Development Hacking, development, scripts etc


Reply
  #11  
Old 07-10-2005
MotoFans JUNR
 
Join Date: Jul 2005
Location: Argentina
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Playing with native.db

Never hear about KitchenSync, but I will try it!

I have been busy upgrading to 680i ! Nice! It look much better!

I made a small C program to read de native.db I will test it with the 680i now, and then I will send it to the forum.

I love this phone!!
Reply With Quote
  #12  
Old 07-11-2005
MotoFans MODR
 
Join Date: Jun 2005
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Playing with native.db

Regarding SMS:
Does this mean if an SMS is deleted from native.db it will be deleted from the phone ? i would love to have that control !!!

Also, does anyone know if it is possible to intercept SMS messages from Java ? any suggestions ? cos i want to make a program that would block all non-wanted SMS... awesome ryt ?

keep it up ppl !!
lets develop for Linux and make it the most dominant one ...!!!

-MAQ
Reply With Quote
  #13  
Old 07-11-2005
Moto Fans SENR
 
Join Date: Feb 2005
Posts: 694
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Playing with native.db

Quote:
Originally Posted by matiu
The E680 appz store the data in
/ezxlocal/sysDatabase/native.db

which is a Berkeley DB file (Btree, version 9, native byte-order). To play with it, we need the db-utils package (simple 'db' in gentoo).
How did you figure this out? I'm wondering because I can use db_dump on the native.db file okay, but when I try it on a MIDLet RMS record (also a .db file) I get "unexpected file type"..
Reply With Quote
  #14  
Old 07-11-2005
MotoFans XPRT
 
Join Date: May 2005
Location: Germany, Hannover
Posts: 289
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to pascal
Default Re: Playing with native.db

.db means not .db
think its no registerd file name extension
__________________
Reply With Quote
  #15  
Old 07-11-2005
MotoFans JUNR
 
Join Date: Jul 2005
Location: Argentina
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Playing with native.db

Hi All!

Here is a small C program to export all your contacts from your E680i phone to a standard CSV file, importable from most email clients (I have successfully use it with Thunderbird).

Still uses db_dump tool, I couldn't figured out yet how to get the data using Berkeley DB's API directly.

Works in Linux, and (maybe) under cygwin.


* Usage:
* 1) Compile this program (gcc -o get_contacts get_contacts.c)
* 2) Install Berkeley DB utils ('db-utils' package in many distros) ('db' in gentoo)
* 3) Grab from your phone /ezxlocal/sysDatabase/native.db
* 4) run: db_dump /path/to/native.db > native.raw
* 5) run: /path/to/get_contacts native.raw > contacts.csv
* Done! Your phone's contacts should be in contacts.csv file.
Attached Files
File Type: c get_contacts.c (3.3 KB, 259 views)
Reply With Quote
  #16  
Old 07-11-2005
MotoFans JUNR
 
Join Date: Jul 2005
Location: Argentina
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Playing with native.db

Quote:
Originally Posted by rpconnect
Quote:
Originally Posted by matiu
The E680 appz store the data in
/ezxlocal/sysDatabase/native.db

which is a Berkeley DB file (Btree, version 9, native byte-order). To play with it, we need the db-utils package (simple 'db' in gentoo).
How did you figure this out? I'm wondering because I can use db_dump on the native.db file okay, but when I try it on a MIDLet RMS record (also a .db file) I get "unexpected file type"..
UNIX's file utility:

$ file native.db
native.db: Berkeley DB (Btree, version 9, native byte-order)
$file --version
file-4.12

The file is 'dumpeable' with
$ db4.2_dump -V
Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)

which says:
$db4.2_dump native.db |head
VERSION=3
format=bytevalue
[starts data]
Reply With Quote
  #17  
Old 07-12-2005
Moto Fans SENR
 
Join Date: Feb 2005
Posts: 694
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Playing with native.db

@maitu
Thanks for the help, doing "file rms.db" says that it is simply a data file, at least I know now.
Reply With Quote
  #18  
Old 07-14-2005
MotoFans JUNR
 
Join Date: Jul 2005
Location: Argentina
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Playing with native.db

Dear all,

Here is a c program to export e680i contacts to .vcf, .txt or .csv files. It uses the Berlekey DB API directly, no need to run other programs. Works in Linux. It shoud handle UNICODE ok. See Changelog for details.

I have use it to export vcf and csv files to thunderbird and 'rolo'.

The program will soon accept synchronization features to/from:
.csv files
E680i's native db file
.ical
.vcf (vCard)
.txt
.mab (thunderbird)

And not so soon, it will be able to handle emails and SMS to/from .mbox format.

I try program it using a modular design, so it shouldn't be so difficult to add support of other formats. I will be working in: .db synchro filter, and .mab (Thunderbird's) synchro filter.

Any comments/feedback is welcome!

Enjoy!

matías

PS: The download will be soon removed, and added to the "download section"...
Attached Files
File Type: gz usync-0.1-alpha.tar_110.gz (16.6 KB, 205 views)
Reply With Quote
  #19  
Old 07-14-2005
maxx_730's Avatar
Moto Fans SENR
 
Join Date: Feb 2005
Location: The Netherlands
Cell: E680 flashed to E680i
Posts: 1,368
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: Playing with native.db

Cool, thanks! Wanna add it to the download section? I can do it too, but that way you wont be able to edit it if you release a new version
__________________
Yes, but does it run Linux?
Reply With Quote
  #20  
Old 07-14-2005
MotoFans JUNR
 
Join Date: Jul 2005
Location: Argentina
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Playing with native.db

ok, I will add it wright now! thanks!
matías
__________________
--
http://nits.com.ar
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem playing videos activexpert E6 General Chat 3 02-14-2008 04:57 AM
i need help playing videos on rokr e6 pinoy8181 E6 General Chat 4 08-14-2007 03:44 AM
Bicycle Playing Card Larry -The Lounge- 0 03-20-2007 07:18 AM
Help required for playing videos s.kris79 A1200 General Chat 3 01-18-2007 11:15 AM
playing videos HELP itzkinz E680i General Chat 1 02-12-2006 09:58 AM

 
Advertisement

Partner Links





Web Analytics