How does android disable the home location of the incoming call number?
MTK Platform numbers can be divided into two types: 1. Mobile phone numbers are located at the location; 2. Fixed phone numbers are located at the location;
Mobile phone number:
MTK does it by itself. to disable the option, you only need to disable MTK_PHONE_NUMBER_GEODESCRIPTION;
The path of the database file is alps/mediatek/external/geocoding. db;
Only Chinese is supported.
Fixed phone number:
It is built on Google Android, and the original code of Google needs to be annotated to be disabled;
The path of the database file is alps/external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/data.
Supports multiple languages.
Possible problems:
In customized Chinese versions, if MTK_PHONE_NUMBER_GEODESCRIPTION is disabled, an error will be reported during compilation because of option dependency checks,
MTK_PHONE_NUMBER_GEODESCRIPTION cannot be disabled in OP01 or OP02. To disable MTK_PHONE_NUMBER_GEODESCRIPTION, remove the following check code:
File: android_dep_rule.mak
Location: alps \ mediatek \ build \ addon \ core
# For phone number geo-description
Ifneq ($ (filter OP01 % OP02 %, $ (OPTR_SPEC_SEG_DEF )),)
Ifeq (no, $ (strip $ (MTK_PHONE_NUMBER_GEODESCRIPTION )))
$ (Call dep-err-seta-or-onb, OPTR_SPEC_SEG_DEF, none OP01/OP02, MTK_PHONE_NUMBER_GEODESCRIPTION)
Endif
Endif
If you do not disable MTK_PHONE_NUMBER_GEODESCRIPTION, use the following operations:
You can set geoDescription to null in ① CallerInfo. java, updateGeoDescription;
Then, in ② DefaultCallLogInsertionHelper. java's getGeocodedLocationFor () method, null is returned.