1、进入android sdk/tools
2、输入adb shell 回车
3、输入cd data/data/项目目录/databases 回车
4、输入sqlit3 ***.db 回车(***.db databases 文件夹下的数据库文件,到此已进入指定的sqltile数据库)
5、输入.table 回车(列出此数据库所包含的数据表)
6、输入.schema 表名 (列出表的创建语句)
C:/Documents and Settings/Administrator>adb shell
# cd data/data/cn.***.hpc.tmms
cd data/data/cn.***.hpc.tmms
# ls
ls
lib
shared_prefs
databases
# cd databases
cd databases
# ls
ls
mmssms.db
# sqlite3 mmssms.db
sqlite3 mmssms.db
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> .table
.table
addr mms_data raw
android_metadata part sms
attachments pdu sr_pending
canonical_addresses pending_msgs threads
drm rate transparent_sync
sqlite> select * from threads;
select * from threads;
1|present|1|1287039619533|1|1|瀹屽叏鏃犳墍浜嬩簨|0|1|0|0|0
2|present|1|1287043177388|1|2|222|0|1|0|0|0
sqlite> .schema threads
.schema threads
CREATE TABLE threads (_id INTEGER PRIMARY KEY,sync_state TEXT DEFAULT 'present',sync_enable INTERGER DEFAULT 1,date INTE
GER DEFAULT 0,message_count INTEGER DEFAULT 0,recipient_ids TEXT,snippet TEXT,snippet_cs INTEGER DEFAULT 0,read INTEGER
DEFAULT 1,type INTEGER DEFAULT 0,error INTEGER DEFAULT 0,has_attachment INTEGER DEFAULT 0);