mirror of
https://github.com/S3NEO/android_device_samsung_matissewifi.git
synced 2024-11-06 22:05:47 +00:00
overlay: disable voice & sms capability
Disabling voice & sms capability as only 3G & LTE model have ability to do that
This commit is contained in:
parent
0b6eaa3a70
commit
f27ca934d9
2 changed files with 51 additions and 0 deletions
|
@ -17,6 +17,9 @@
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
|
||||||
|
|
||||||
|
# Overlays
|
||||||
|
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
||||||
|
|
||||||
# System properties
|
# System properties
|
||||||
PRODUCT_PROPERTY_OVERRIDES += \
|
PRODUCT_PROPERTY_OVERRIDES += \
|
||||||
ro.carrier=wifi-only \
|
ro.carrier=wifi-only \
|
||||||
|
|
48
overlay/frameworks/base/core/res/res/values/config.xml
Normal file
48
overlay/frameworks/base/core/res/res/values/config.xml
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
/*
|
||||||
|
** Copyright 2011, The Android Open Source Project
|
||||||
|
** Copyright 2017-2019, 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.
|
||||||
|
*/
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- These resources are around just to allow their values to be customized
|
||||||
|
for different hardware and product builds. -->
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<!-- Flag indicating whether the current device allows sms service.
|
||||||
|
If true, this means that the device supports both sending and
|
||||||
|
receiving sms via the telephony network.
|
||||||
|
This can be overridden to false for "data only" devices
|
||||||
|
which can't send and receive sms message.
|
||||||
|
|
||||||
|
Note: Disable SMS also disable voicemail waiting sms,
|
||||||
|
cell broadcasting sms, and MMS. -->
|
||||||
|
<bool name="config_sms_capable">false</bool>
|
||||||
|
|
||||||
|
<!-- Flag indicating whether the current device is "voice capable".
|
||||||
|
If true, this means that the device supports circuit-switched
|
||||||
|
(i.e. voice) phone calls over the telephony network, and is
|
||||||
|
allowed to display the in-call UI while a cellular voice call is
|
||||||
|
active. This can be overridden to false for "data only" devices
|
||||||
|
which can't make voice calls and don't support any in-call UI.
|
||||||
|
|
||||||
|
Note: this flag is subtly different from the
|
||||||
|
PackageManager.FEATURE_TELEPHONY system feature, which is
|
||||||
|
available on *any* device with a telephony radio, even if the
|
||||||
|
device is data-only. -->
|
||||||
|
<bool name="config_voice_capable">false</bool>
|
||||||
|
|
||||||
|
</resources>
|
Loading…
Reference in a new issue