当前位置: 首页 > backend >正文

Android屏蔽通话功能和短信功能

需求开发中,有个要求屏蔽电话功能和短信功能,禁止应用打电话或短信,禁止api开发出的应用打电话或短信。这个约束怎么做呢?

framework/base/core/res/res/values/config.xml.....<!-- 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 isallowed to display the in-call UI while a cellular voice call isactive.  This can be overridden to false for "data only" deviceswhich can't make voice calls and don't support any in-call UI.Note: this flag is subtly different from thePackageManager.FEATURE_TELEPHONY system feature, which isavailable on *any* device with a telephony radio, even if thedevice is data-only. --><bool name="config_voice_capable">false</bool> //禁止通话,该值设置false   。。。
<!-- Flag indicating whether the current device allows sms service.If true, this means that the device supports both sending andreceiving sms via the telephony network.This can be overridden to false for "data only" deviceswhich 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>//禁止短信,该值设置false
。。。。。

mark~

http://www.xdnf.cn/news/5015.html

相关文章:

  • AD 电阻容模型的创建
  • 68、微服务保姆教程(十一)微服务的监控与可观测性
  • 乌班图安装docker
  • 1.3.2 linux音频PulseAudio详细介绍
  • 关系模式-无损连接和保持函数依赖的判断
  • 用Python解密霍格沃茨的情感密码:哈利波特系列文本挖掘之旅
  • 用 Java 实现一个简单的阻塞队列
  • HTML字符串转换为React元素实现
  • 云轴科技ZStack入选赛迪顾问2025AI Infra平台市场发展报告代表厂商
  • LeetCode 1722. 执行交换操作后的最小汉明距离 题解
  • Filecoin存储管理:如何停止Lotus向特定存储路径写入新扇区数据
  • 【杂谈】-认知的范式革命:从逻辑理性到类比思维
  • 什么是AI写作
  • Rust 中的 Pin 和 Unpin:内存安全与异步编程的守护者
  • Typora+PicGo+Gitee图床配置教程 自动图片上传
  • WebRTC工作原理详细介绍、WebRTC信令交互过程和WebRTC流媒体传输协议介绍
  • RabittMQ-高级特性2-应用问题
  • 8.1.Kubernetes进阶
  • 使用零样本LLM在现实世界环境中推广端到端自动驾驶——论文阅读
  • tauri-plugin-store 这个插件将数据存在本地电脑哪个位置
  • ROS快速入门教程06
  • 在windows系统中安装图数据库NEO4J
  • vLLM部署Qwen2-7B模型推理
  • AI-02a5a4.神经网络-与学习相关的技巧-参数更新
  • 常见标签语言的对比
  • Cluster Interconnect in Oracle RAC
  • 国债收益率、需求与抛售行为的逻辑解析
  • TRO高能预警,Keith律所×Tane Hannah Meets版权两案王炸维权
  • 【深度学习】【目标检测】【Ultralytics-YOLO系列】YOLOV3核心文件detect.py解读
  • WPF 3D图形编程核心技术解析