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

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~

相关文章:

  • MySQL(4)如何查看MySQL数据库的版本?
  • 『不废话』之Python 3.14 Beta版新特性
  • 【传感器】代码——DHT11温湿度传感器
  • 从0开始学linux韦东山教程第一三章问题小结(1)
  • 4.2java包装类
  • STM32--PWM--函数
  • 微软系统 红帽系统 网络故障排查:ping、traceroute、netstat
  • 40-算法打卡-二叉树-深度优先(前、中、后序遍历)-递归遍历-第四十天
  • 蓝绿激光对潜通信介绍
  • 《微机原理》微机程序段 计算机编程数据分区
  • 量化交易策略的运行
  • 【赛元8523触摸按键开发调试】
  • 【某OTA网站】phantom-token 1004
  • 基于 Ubuntu 24.04 部署 WebDAV
  • 【PHP】基于币安链,一个完整的USDT转账示例
  • C语言实现小波变换去噪
  • Go语言的逃逸分析是怎么进行的
  • docker 镜像的导出和导入(导出完整镜像和导出容器快照)
  • Docker存储空间不足与迁移实战:从根目录爆满到高效扩容
  • 在线服务器具体是指什么?
  • 国家主席习近平会见斯洛伐克总理菲佐
  • 以总理内塔尼亚胡称决心彻底击败哈马斯
  • 盖茨:20年内将捐出几乎全部财富,盖茨基金会2045年关闭
  • 戴维·珀杜宣誓就任美国驻华大使
  • AI聊天机器人涉多起骚扰行为,专家呼吁加强伦理设计与监管
  • 央行:5月15日起下调金融机构存款准备金率0.5个百分点