1: Modify Contactsprovider2.java, Querydialersearchincrement ().
Before modifying,
(1). + dialersearchlookupcolumns.call_log_id + "> 0" + "and" + ... about l:9226
(2). + dialersearchlookupcolumns.call_log_id + "> 0" + "and" + ... about l:9231
After modification,
(1). + dialersearchlookupcolumns.call_log_id + "<-1" + "and" + .....
(2). + dialersearchlookupcolumns.call_log_id + "<-1" + "and" + .....
2: Modify Contactsdatabasehelper.java, Createdialersearchview ().
Before modifying,
+ dialersearchlookupcolumns.call_log_id + "> 0" ... about l:5862
After modification,
+ dialersearchlookupcolumns.call_log_id + "<-1" .....
Purpose of the above modification: The search results are subject to the dialer search form.
The first two steps can already solve this problem
3: It is also recommended to turn on the Fuzzy query option.
In Alps/mediatek/extertal/sqlite/custom/sqlite3_android_custom.cpp,
Before the change,
extern void Register_dialer_search_local_functions () {#ifdef config_cmcc_support
Create_number_match_function (0,1);
Create_name_match_function (0,2);
#endif
}
Android dial can match to contact for the first time, after the phone number is prefixed, after making a call, no longer match the problem to the contact person