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

Android12:内置第三方应用,权限控制器已停止运行,应用app已停止运行

1.设备先安装我提供的app【EasyControler】
2.设备--设置--关于手机--版本号(滑动到最下方)---连续点击六下打开 开发者模式
3.设置--系统--开发者模式--开发者选项 --打开usb调试
4.设置--安全设备管理应用--easycontrol的开关打开
5.将设备连接电脑  打开cmd命令框 输入指令:adb shell dpm set-device-owner com.easycontrol.emm/com.easycontrol.emm.receiver.DeviceOwnerReceiver
6.设备重启  重启后打开easycontrol的app  (如果开机后弹出xxx停止运行,将设备多重启几次) 打开app后  app首页显示正常的序列号,说明app正常运行
7.将设备的序列号导入到平台   设备联网  即可完成绑定

C:\Users\xxxxx>adb shell dpm set-device-owner com.easycontrol.emm/com.easycontrol.emm.receiver.DeviceOwnerReceiver
Success: Device owner set to package com.easycontrol.emm/.receiver.DeviceOwnerReceiver
Active admin set to component com.easycontrol.emm/.receiver.DeviceOwnerReceiver

报错原因:

11-07 10:23:11.591  5673  5690 E AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
11-07 10:23:11.591  5673  5690 E AndroidRuntime: Process: com.android.permissioncontroller, PID: 5673
11-07 10:23:11.591  5673  5690 E AndroidRuntime: java.lang.IllegalArgumentException: com.android.permissioncontroller: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_M
UTABLE be specified when creating a PendingIntent.
11-07 10:23:11.591  5673  5690 E AndroidRuntime: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be
used with inline replies or bubbles.

11-07 10:23:11.591  5673


http://www.kler.cn/news/147884.html

相关文章:

  • PC行内编辑
  • 一篇文章搞懂 JavaScript 箭头函数
  • 力扣2.两数相加
  • IDEA:Command line is too long
  • 嵌入式常见协议---IIC协议
  • 《使用Python将Excel数据批量写入MongoDB数据库》
  • C++(20):通过remove_cvref_t退化类型
  • 自动化部署 扩容openGauss —— Ansible for openGauss
  • 文件上传绕过
  • 设计模式篇---外观模式
  • 搜索的剪枝
  • 论文阅读:“Appearance Capture and Modeling of Human Teeth”
  • 【复杂网络建模】——ER网络度分布、无标度网络度分布
  • centos 7.7 安装Python-3.7.4
  • 华为云编译构建CodeArts Build常见问答汇总
  • VMware系列:此平台不支持虚拟化 Intel-VT-x/EPT 或 AMD-V/RVI
  • 编译器设计02-前端概述
  • .c怎么转.exe?10000字长文带你深剖编译过程!
  • Vatee万腾科技新高峰:Vatee前瞻性创新的数字化之力
  • 西南科技大学电路分析基础实验A1(元件伏安特性测试 )
  • 播放器开发(三):FFmpeg与SDL环境配置
  • 村村通工程(Prim算法)/最小生成树Prim算法【数据结构】
  • Android : SQLite 增删改查—简单应用
  • F5社区学习心得分享:如何克服云迁移挑战?
  • C#文件流FileStream类
  • GEE教程——提取NASA NEX-GDDP 数据中的指定时间范围内的pr数据(含超限提示)
  • 聊聊VMware vSphere
  • C++不同平台下的RTTI实现
  • 云服务器:未来的计算力量
  • 如何解决中小制造业企业信息化难题?