Contacts2.db中calls表各个字段含义:
字段 |
类型 |
描述 |
_id | integer | 主键,自动增长 |
number | text | 通话电话号码 |
date | integer | 拨打该电话号码的开始时间(以1970-01-01 00:00:00)计算到当前的时间差以毫秒为单位 |
duration | integer | 打电话持续时间以秒为单位 |
type | integer | 拨打类型:1为接听 2为打出 3未接 |
new | integer | 好像都为1 |
name | text | 联系人的名字 |
numbertype | integer | 和data表中的data2字段是一样的,如果是2表示此条是和手机号的通话记录 |
contacts表各个字段含义:
字段 |
类型 |
描述 |
_id | integer | 索引Key,自增长 |
name_raw_contact_id | integer | 当前联系人的id |
photo_id | integer | 联系人图片id |
custom_ringtone | text | 为该联系人自定义铃声:content://media/external/audio/media/1 |
send_to_voicemail | integer | 直接将来电转到语音信箱:0为不设置;1为设置 |
times_contacted | integer | 通话次数 |
last_time_contacted | integer | 最后通话的日期(以1970-01-01 00:00:00)计算 |
starred | integer | 加星标的那些人:0为不加星;1为加星 |
in_visible_group | integer | 联系人在UI中是否可见:0为不可见;1为可见 |
has_phone_number | integer | 联系人是否至少有一个电话号码 |
lookup | text | |
status_update_id | integer | |
single_is_restricted | integer |
data表各个字段含义:
字段 |
类型 |
描述 |
_id |
integer |
索引Key,自增长 |
package_id |
integer |
|
mimetype_id |
integer |
当前行保存数据的类型:1为邮箱;2聊天账号;3住址;4图片;5电话号码;6姓名;7公司+职位;8昵称;9所属组;10备注;11网址 |
raw_contact_id |
integer |
与contacts表中的name_raw_contact_id相同,该数据所属联系人 |
is_primary |
integer |
0;1; |
is_super_primary |
integer |
0;1好像在联系人图片列中出现 |
data_version |
integer |
数据版本(更改次数) |
data1 |
text |
好像是基本数据类型存放在这一列 |
data2 |
text |
名字,其它字段存放就不知,如果是2则表示data1存放的是手机号同时 |
data3 |
text |
姓氏,其它字段存放就不知 |
data4 |
text |
存入电话号码倒写;职位;街道;其它不知 |
data5 |
text |
若是聊天账号行则有数据,,其它不知 |
data6 |
text |
|
data7 |
text |
若是住址行则有市数据;其它不知 |
data8 |
text |
若是住址行则有省数据;其它不知 |
data9 |
text |
若是住址行则有邮编数据;其它不知 |
data10 |
text |
若是姓名行则有数据;其它不知 |
data11 |
text |
若是姓名行则有数据;其它不知 |
data12 |
text |
|
data13 |
text |
|
data14 |
text |
|
data15 |
text |
若是照片行则有数据;其它不知 |
data_sync1 |
text |
|
data_sync2 |
text |
|
data_sync3 |
text |
|
data_sync4 |
text |
|
mimetypes表各个字段含义:
字段 |
类型 |
描述 |
_id |
integer |
索引Key,自增长,与data表的mimetype_id字段相同 |
mimetype |
text |
1 vnd.android.cursor.item/email_v2 2 vnd.android.cursor.item/im 3 vnd.android.cursor.item/postal-address_v2 4 vnd.android.cursor.item/photo 5 vnd.android.cursor.item/phone_v2 6 vnd.android.cursor.item/name 7 vnd.android.cursor.item/organization 8 vnd.android.cursor.item/nickname 9 vnd.android.cursor.item/group_membership 10 vnd.android.cursor.item/note 11 vnd.android.cursor.item/website 1为邮箱;2聊天账号;3住址;4图片;5电话号码;6姓名;7公司+职位;8昵称;9所属组;10备注;11网址 |
原有数据raw_contacts表各个字段含义:
字段 |
类型 |
描述 |
_id |
integer |
索引Key,自增长 |
is_restricted |
integer |
|
account_name |
string |
|
account_type |
string |
|
sourceid |
text |
|
version |
integer |
联系人修改次数 |
dirty |
integer |
版本修改的标记位 |
deleted |
integer |
是否删除了:0为没有,1为删除 |
contact_id |
integer |
联系人表的id |
aggregation_mode |
integer |
|
aggregation_needed |
integer |
|
custom_ringtone |
text |
自定义铃声 |
send_to_voicemail |
integer |
|
times_contacted |
integer |
通话次数 |
last_time_contacted |
integer |
最后通话时间截 |
starred |
integer |
是否标星,1标记,0未标 |
display_name |
text |
显示名字 |
display_name_alt |
text |
显示名字 |
display_name_source |
integer |
值为40,不知 |
phonetic_name |
text |
|
phonetic_name_style |
text |
|
sort_key |
text |
姓名拆分加拼音:如“小明”,则为“XIAO 小 MING 明” |
sort_key_alt |
text |
姓名拆分加拼音:如“小明”,则为“XIAO 小 MING 明” |
name_verified |
integer |
|
contact_in_visible_group |
integer |
|
sync1 |
text |
|
sync2 |
text |
|
sync3 |
text |
|
sync4 |
text |
Contacts2.db中短信表各个字段含义:
字段 |
类型 |
描述 |
_id | integer | 主键,自动增长 |
thread_id | integer | 序号,同一发信人的id相同 |
address | integer | 发件人手机号码 |
person_id | integer | 联系人列表里的序号,陌生人为null (不稳定无法获取联系人ID) |
date | text | 发件日期 |
protocol | integer | 协议,分为: 0 SMS_RPOTO, 1 MMS_PROTO |
read | integer | 是否阅读 0未读, 1已读 |
status | integer | 状态 -1接收,0 complete, 64 pending, 128 failed |
type | integer | ALL = 0; |
body | text | 短信内容 |
service_center | integer | 短信服务中心号码编号 |
subject | text | 短信的主题 |
reply_path_present | text | TP-Reply-Path |
locked | integer | 0-消息被锁,1-消息没有被锁 |
Contacts2.db中彩信表pdu各个字段含义:
字段 |
类型 |
描述 |
_id | integer | 主键,自动增长 |
date | text | 消息发送日期 |
message_box | text | 区分彩信的收件箱,发件箱,草稿箱等. |
read | integer | 是否阅读 0未读, 1已读 |
message_id | integer | 信息ID |
subject | text | 彩信的subject |
Subject_charset | text | 彩信的subject主题 |
content_type | integer | 消息内容类型 |
content_location | text | 如果彩信太大,或者由于网络原因,也又是由于手机设备原因,dowload失败,彩信看不了,这个字段就会有彩信的网址(http://格式的,就是一个网址) |
from | text | 发送者的地址 |
to | text | 收件人的地址 |
cc | text | cc收件人的地址 |
bcc | text | bbc收件人的地址 |
expipy | text | 消息到期时间 |
message_class | text | 类的消息 |
message_type | text | 消息的类型定义为MMS规范 |
mms_version | text | 这消息符合这个版本的规范 |
message_size | text | 消息的大小 |
priority | text | 消息的优先级 |
read_report | text | 阅读报告 |
peport_allowed | text | 是否允许的报告 |
pesport_status | text | 信息响应状态 |
status | text | 消息的状态 |
transaction_id | integer | 事务ID |
retrieve_status | text | 消息检索状态 |
retrieve_text | text | 消息检索文本 |
retrieve_text_charset | text | 检索文本字符集 |
read_status | text | 消息读取状态 |
content_class | text | 消息内容类 |
delivery_report | text | 消息交付报告 |
delivery_time_token | text | 消息的交付时间标记 |
delivery_time | text | 消息交付时间 |
response_text | text | 消息响应文本 |
sender_visibility | text | 消息的发送方可见性 |
reply_charging | text | 回答充电的消息 |
reply_charging_deadline_token | text | 回答充电期限的令牌的消息 |
reply_charging_deadline | text | 回复充电的最后期限 |
reply_charging_id | integer | 回答充电id |
reply_charging_size | text | 回答充电信息大小 |
previously-sent_by | text | 此前发送的消息 |
previously-sent_date | text | 此前发送消息日期 |
store | text | 商店的消息 |
mm_state | text | mm状态消息 |
mm_flags_token | text | mm旗牌 |
mm_flags | text | mm旗帜 |
store_status | text | 存储状态 |
store_status_text | text | 存储状态的文本消息 |
stored | text | 存储 |
totals | integer | 消息的总数 |
mbox_totals | integer | mbox总数 |
mbox_totals_token | integer | mbox总数令牌 |
quotas | text | 配额 |
mbox_quotas | text | mbox的消息 |
mbox_quotas_token | text | mbox配额令牌 |
message_count | integer | 消息数 |
start | text | 消息的开始 |
distribution_indicator | text | 分布指示器 |
element_descriptor | text | 元素描述符的信息 |
limit | text | 消息的极限 |
recommended_retrieval_mode | text | 建议检索模式的信息 |
recommended_retrieval_mode_text | text | 建议检索模式的文本消息 |
status_text | text | 文本状态 |
applic_id | integer | 为id |
reply_applic_id | integer | 回答为id的消息 |
aux_applic_id | integer | 辅助为id的消息 |
drm_content | text | drm内容 |
adaptation_allowed | text | 适应允许的消息 |
replace_id | integer | 替换id |
cancel_id | integer | 取消id |
cancel-status | text | 取消状态 |
thread_ id | integer | 线程ID |
locked | integer | 0-消息被锁,1-消息没有被锁 |
Contacts2.db中彩信表part各个字段含义:
字段 |
类型 |
描述 |
_id | integer | 主键,自动增长 区分某条彩信的不同附件(包括文本,图片,音频,视频等格式) |
mid | integer | 外键,引用pdu表的_id. 指示该附件属于哪条彩信(一条彩信有可能包含有多个图片,多个音频,多个视频等) |
type | text | 指示附件是什么类型的(text/ 表示文本, audio/ 表示音频, video/表是 视频 , image/表示图片) |
date | text | 标明附件存放在手机的哪个地方 |
content | text | 表示彩信的内容 |