How does android disable the home location of the incoming call number?

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.