(2/2) Make sensitive phone numbers not to be shown in call log history.
Considering sensitive phone numbers to be, hotlines dealing with violence against women. In the EU, these numbers do not show up in the phone bill. In order to avoid these phone numbers to be listed in the Call Log, we have implemented a new XML file which is parsed with phone numbers from different countries to be filtered. This file needs to be copied to device via desired Android.mk file in order to be able to process it. The comparison is made checking the network MCC the SIM is connected to in order to consider roaming and multisim scenarios. Test: CallLogManagerTest.testDontLogCallsToSensitivePhoneNumber PASS Change-Id: I2e78d0f3e13d1ad1298613651ece136e30b86dfe Signed-off-by: Olaia Segovia <olaia.segovia@bq.com>
This commit is contained in:
committed by
Joey Rizzoli
parent
eb37f20c81
commit
7c5e4cbf2f
@@ -1,3 +1,7 @@
|
||||
# Sensitive Phone Numbers list
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/cm/prebuilt/common/etc/sensitive_pn.xml:system/etc/sensitive_pn.xml
|
||||
|
||||
# World APN list
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/cm/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
|
||||
|
||||
49
prebuilt/common/etc/sensitive_pn.xml
Normal file
49
prebuilt/common/etc/sensitive_pn.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
* Copyright (C) 2017 The Android Open Source Project
|
||||
* Copyright (C) 2017 The LineageOS Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<sensitivePNS>
|
||||
<!--Spain-->
|
||||
<sensitivePN network="214">
|
||||
<item>016</item>
|
||||
</sensitivePN>
|
||||
<!--GB-->
|
||||
<sensitivePN network="234">
|
||||
<item>08082000247</item>
|
||||
</sensitivePN>
|
||||
<!--Germany-->
|
||||
<sensitivePN network="262">
|
||||
<item>08000116016</item>
|
||||
</sensitivePN>
|
||||
<!--Portugal-->
|
||||
<sensitivePN network="268">
|
||||
<item>800202148</item>
|
||||
</sensitivePN>
|
||||
<!--France-->
|
||||
<sensitivePN network="208">
|
||||
<item>3919</item>
|
||||
</sensitivePN>
|
||||
<!--Italy-->
|
||||
<sensitivePN network="222">
|
||||
<item>1522</item>
|
||||
</sensitivePN>
|
||||
<!--Austria-->
|
||||
<sensitivePN network="232">
|
||||
<item>0800222555</item>
|
||||
</sensitivePN>
|
||||
</sensitivePNS>
|
||||
Reference in New Issue
Block a user