RK Android7.1 拨号 添加通话编译

 

一.1.1.device 添加通话编译 telephony.mk

--- a/device/rockchip/common/device.mk
+++ b/device/rockchip/common/device.mk
@@ -836,4 +836,5 @@ PRODUCT_COPY_FILES += \
 #   device/rockchip/common/eGTouchD/eGTouchD:system/bin/eGTouchD \
 #   device/rockchip/common/eGTouchD/eGTouchA.ini:system/etc/eGTouchA.ini \
 #   device/rockchip/common/eGTouchD/eGalaxTouch_VirtualDevice.idc:system/usr/idc/eGalaxTouch_VirtualDevice.idc
-      
\ No newline at end of file
+
+$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)
\ No newline at end of file

  1.2.看看telephony.mk 做了什么  build\target\product\telephony.mk 

#
# Copyright (C) 2007 The Android Open Source 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.
#

# This is the list of product-level settings that are specific
# to products that have telephony hardware.

PRODUCT_PACKAGES := \
    CarrierConfig \
    Dialer \  #拨号
    CallLogBackup \
    CellBroadcastReceiver \
    EmergencyInfo \
    rild

PRODUCT_COPY_FILES := \

 1.3.默认应用:\build\target\product\core.mk

--- a/build/target/product/core.mk
+++ b/build/target/product/core.mk
@@ -48,6 +48,7 @@ PRODUCT_PACKAGES += \
     StorageManager \
     TeleService \
     VpnDialogs \
+	Contacts \

  

 

1.4.这里config.xml 会覆盖掉settingsprovider下面的数据库资源

<!-- 语音通话是否支持 -->
<bool name="config_voice_capable">false</bool>
<!-- 短信是否支持 -->
<bool name="config_sms_capable">false</bool>

--- a/device/rockchip/common/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/device/rockchip/common/overlay/frameworks/base/core/res/res/values/config.xml
@@ -20,7 +20,7 @@
 <resources>
 
     <!-- This device is not "voice capable"; it's data-only. -->
-    <bool name="config_voice_capable">false</bool>
+    <bool name="config_voice_capable">true</bool>
 
     <!-- Flag indicating whether we should enable the automatic brightness in Settings.
          config_hardware_automatic_brightness_available is not set, so we will use software implementation -->
@@ -164,7 +164,7 @@
     <bool name="config_enableMultiUserUI">true</bool>
 
     <!-- This device allows sms service. -->
-    <bool name="config_sms_capable">false</bool>
+    <bool name="config_sms_capable">true</bool>
 
     <bool name="config_ui_enableFadingMarquee">true</bool>
 

  

  

posted @ 2021-07-07 18:31  CrushGirl  阅读(439)  评论(0编辑  收藏  举报