1. alps \ external \ SQLite \ Android \ oldphonenumberutils. the value of min_match in CPP. If it is 11, it is an 11-bit match. If it is 7, it is a 7-bit match.
2. If no source code is available, check whether the featureoption. mtk_cta_support switch is true. If the internal code is true, 11-bit matching is used. If the source code is false, 7-bit matching is used.
[Description]
Matching numbers based on the mccmnc of the SIM card to adapt to different lengths,
[Solution]
1. Modify external \ SQLite \ Android \ oldphonenumberutils. cpp,
Add code:
Static int getmatchcountbymccmnc ()
{
Int mactchcount = 7;
Char * pmccmnc = (char *) malloc (40 );
Memset (pmccmnc, 0, sizeof (char) * 40 );
Property_get ("GSM. Sim. Operator. Numeric", pmccmnc, "0 ");
/*...*/
Free (pmccmnc );
Return mactchcount;
}
# Else
Change static int min_match = 7
Min_match = getmatchcountbymccmnc ();
2. Modify Alps \ frameworks \ base \ telephony \ Java \ Android \ telephony \ phonenumberutils. Java
Add code:
Public static int getmatchcountbymccmnc ()
{
Int mactchcount = 7;
String strmccmnc;
Strmccmnc = systemproperties. Get ("GSM. Sim. Operator. Numeric ");
/* Cal the mactchcount by mccmnc */
...
Return mactchcount;
}
Modify static final int min_match = 7 as follows:
Int min_match = getmatchcountbymccmnc ();
Find a better document ..
Modify Alps \ frameworks \ base \ telephony \ Java \ Android \ telephony \ phonenumberutils. Java
Modify external \ SQLite \ Android \ oldphonenumberutils. cpp,
The path should be here to modify the number.
Number matching digits