Có rất nhiều trường hợp chúng ta bị mất toàn bộ danh bạ mà không biết nguyên nhân nào. Trong khi đó có những trường hợp không sử dụng tài khoản iCloud, không lưu danh bạ trong ổ cứng.
Lấy danh bạ trong file contact viber là một cách khá đơn giản giúp chúng ta lưu lại được những thông tin liên lạc quan trọng này.
Bước 1: Download itools
Bước 2: Kết nối iPhone với máy tính dùng chương trình iTools và bắt đầu.
#1: Chọn mục Applications và Browser đến Ứng dụng Viber
#2: Copy file contact.data ra máy tính
Như hình trên, ta biết được định dạng file là SQLite
#4: Tiếp theo, chúng ta tải add-on SQLite manager cho Firefox
Vào FF, chọn menu bên phải > add on > tìm và cài đặt SQLite manager > khởi động lại FF
#5: Vào FF, chọn Tool > SQlite Manager
#6: Mở file contacts.data bằng sqlite manager trên firefox (nhớ chọn All files ở file type để thấy được file contacts.data)
Trong sqlite chúng ta thấy có nhiều cột thông tin, tuy nhiên cần chú ý 2 cột chính là ZPHONENUMBERINDEX và ZABCONTACT
Đối với table ZABCONTACT chú ý 2 cột zmainname và z_pk
Đối với table ZPHONENUMBERINDEX chú ý 2 cột zphonenum và zcontact
#7: Vào iPhone, thêm danh bạ bất kỳ sau đó lưu ra csv bằng iTools
Mục đích để biết được iTools nó lưu file csv ở định dạng nào. (có nhiều định dạng csv)
Nếu không hiển thị danh bạ trong infomation thì kết nối lại iP với máy tính
Sau khi xuất csv xong chúng ta mở file bằng chương trình notepad sẽ thấy cấu trúc như sau:
Name,Given Name,Additional Name,Family Name,Yomi Name,Given Name Yomi,Additional Name Yomi,Family Name Yomi,Name Prefix,Name Suffix,Nickname,Birthday,Notes,Group Membership,E-mail 1 - Type,E-mail 1 - Value,E-mail 2 - Type,E-mail 2 - Value,E-mail 3 - Type,E-mail 3 - Value,E-mail 4 - Type,E-mail 4 - Value,E-mail 5 - Type,E-mail 5 - Value,IM 1 - Type,IM 1 - Service,IM 1 - Value,IM 2 - Type,IM 2 - Service,IM 2 - Value,IM 3 - Type,IM 3 - Service,IM 3 - Value,IM 4 - Type,IM 4 - Service,IM 4 - Value,IM 5 - Type,IM 5 - Service,IM 5 - Value,Phone 1 - Type,Phone 1 - Value,Phone 2 - Type,Phone 2 - Value,Phone 3 - Type,Phone 3 - Value,Phone 4 - Type,Phone 4 - Value,Phone 5 - Type,Phone 5 - Value,Phone 6 - Type,Phone 6 - Value,Phone 7 - Type,Phone 7 - Value,Phone 8 - Type,Phone 8 - Value,Phone 9 - Type,Phone 9 - Value,Phone 10 - Type,Phone 10 - Value,Address 1 - Type,Address 1 - Formatted,Address 1 - Street,Address 1 - City,Address 1 - PO Box,Address 1 - Region,Address 1 - Postal Code,Address 1 - Country,Address 2 - Type,Address 2 - Formatted,Address 2 - Street,Address 2 - City,Address 2 - PO Box,Address 2 - Region,Address 2 - Postal Code,Address 2 - Country,Address 3 - Type,Address 3 - Formatted,Address 3 - Street,Address 3 - City,Address 3 - PO Box,Address 3 - Region,Address 3 - Postal Code,Address 3 - Country,Address 4 - Type,Address 4 - Formatted,Address 4 - Street,Address 4 - City,Address 4 - PO Box,Address 4 - Region,Address 4 - Postal Code,Address 4 - Country,Address 5 - Type,Address 5 - Formatted,Address 5 - Street,Address 5 - City,Address 5 - PO Box,Address 5 - Region,Address 5 - Postal Code,Address 5 - Country,Organization 1 - Name,Organization 1 - Title,Organization 1 - Department,Website 1 - Type,Website 1 - Value,Website 2 - Type,Website 2 - Value,Website 3 - Type,Website 3 - Value,Website 4 - Type,Website 4 - Value,Website 5 - Type,Website 5 - Value,Event 1 - Type,Event 1 - Value,Event 2 - Type,Event 2 - Value,Event 3 - Type,Event 3 - Value
Tong Dai,Tong Dai,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,mobile,1800 1090,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
#8: Bây giờ chúng ta tiến hành run SQLite với câu script ghép chuổi bên dưới để ra định dạnh CSV
Chọn mục Execute SQL > passe câu lệnh vào ô rồi chọn run SQL bên dưới
Câu lệnh:
select zmainname||','||zmainname||',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,mobile,'||zphonenum||',,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,'
from zphonenumberindex ,ZABCONTACT
where zphonenumberindex.zcontact=zabcontact.z_pk
#9: Sau khi chạy ra dữ liệu xong > Nhấn Shift chọn tất cả các dữ liệu vừa run được > Click Phải chuột chọn "Copy rows as CSV"
Sau khi Copy và dán vào Notepad xong nó có dạng như sau:
"Yen,Yen,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,mobil e,0939147808,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
"Yen Hoan My,Yen Hoan My,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,mobile,012 02876696,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
"Xe Om Phat,Xe Om Phat,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,mobile,0 936250351,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
"Xe Loc Dien,Xe Loc Dien,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,mobile,0 673775137,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
"Truong Anh Ngu AMA,Truong Anh Ngu AMA,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,mobile,07 103734848,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,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,,,,,,,,,,,,,,"
"Tri,Tri,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,mobil e,0907729992,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"
#10: Khi dán ra notepad nó dư dấu ngoặc kép nên chúng ta, Nhấn Ctrl + H để tìm và thay thế " bằng rỗng (để trống ô replace with)
Copy dòng đầu tiên ở notepad đã mở ở #7 vào file notepad mới
Name,Given Name,Additional Name,Family Name,Yomi Name,Given Name Yomi,Additional Name Yomi,Family Name Yomi,Name Prefix,Name Suffix,Nickname,Birthday,Notes,Group Membership,E-mail 1 - Type,E-mail 1 - Value,E-mail 2 - Type,E-mail 2 - Value,E-mail 3 - Type,E-mail 3 - Value,E-mail 4 - Type,E-mail 4 - Value,E-mail 5 - Type,E-mail 5 - Value,IM 1 - Type,IM 1 - Service,IM 1 - Value,IM 2 - Type,IM 2 - Service,IM 2 - Value,IM 3 - Type,IM 3 - Service,IM 3 - Value,IM 4 - Type,IM 4 - Service,IM 4 - Value,IM 5 - Type,IM 5 - Service,IM 5 - Value,Phone 1 - Type,Phone 1 - Value,Phone 2 - Type,Phone 2 - Value,Phone 3 - Type,Phone 3 - Value,Phone 4 - Type,Phone 4 - Value,Phone 5 - Type,Phone 5 - Value,Phone 6 - Type,Phone 6 - Value,Phone 7 - Type,Phone 7 - Value,Phone 8 - Type,Phone 8 - Value,Phone 9 - Type,Phone 9 - Value,Phone 10 - Type,Phone 10 - Value,Address 1 - Type,Address 1 - Formatted,Address 1 - Street,Address 1 - City,Address 1 - PO Box,Address 1 - Region,Address 1 - Postal Code,Address 1 - Country,Address 2 - Type,Address 2 - Formatted,Address 2 - Street,Address 2 - City,Address 2 - PO Box,Address 2 - Region,Address 2 - Postal Code,Address 2 - Country,Address 3 - Type,Address 3 - Formatted,Address 3 - Street,Address 3 - City,Address 3 - PO Box,Address 3 - Region,Address 3 - Postal Code,Address 3 - Country,Address 4 - Type,Address 4 - Formatted,Address 4 - Street,Address 4 - City,Address 4 - PO Box,Address 4 - Region,Address 4 - Postal Code,Address 4 - Country,Address 5 - Type,Address 5 - Formatted,Address 5 - Street,Address 5 - City,Address 5 - PO Box,Address 5 - Region,Address 5 - Postal Code,Address 5 - Country,Organization 1 - Name,Organization 1 - Title,Organization 1 - Department,Website 1 - Type,Website 1 - Value,Website 2 - Type,Website 2 - Value,Website 3 - Type,Website 3 - Value,Website 4 - Type,Website 4 - Value,Website 5 - Type,Website 5 - Value,Event 1 - Type,Event 1 - Value,Event 2 - Type,Event 2 - Value,Event 3 - Type,Event 3 - Value
Lưu file dưới định dạng csv chú ý chọn Encoding là Unicode
No comments:
Post a Comment