RK Android7.1 拨号 添加通话编译
一.1.1.device 添加通话编译 telephony.mk
1 2 3 4 5 6 7 8 9 10 11 | --- 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # # 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
1 2 3 4 5 6 7 | --- 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>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | --- 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> |
分类:
RockChip
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】