Answer the question
In order to leave comments, you need to log in
How to add contact to android phone book (contacts2.db) via sqlite (ROOT)?
Rooted device, Android 5.1.
Task: programmatically add Nxxx phone numbers to the Android system contact
storage
content insert --uri content://com.android.contacts/raw_contacts --bind account_type:s:ACTYPE --bind account_name:s:ACNAME
content insert --uri content://com.android.contacts/data --bind raw_contact_id:i:1 --bind mimetype:s:vnd.android.cursor.item/phone_v2 --bind data1:s:'+12223334455'
INSERT INTO "data" VALUES(1,NULL,5,1,0,0,0,0,'+12223334455','+12223334455',NULL,NULL,NULL,NULL,NULL,NULL,'+12223334455','1','3',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question