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

建站之星多语言北京营销网站制作

建站之星多语言,北京营销网站制作,快速创建网站,传奇服务器多少钱一个月最近了解到Google 在Android12上新增了权限指示器,可以在信号栏的右侧显示当前访问录音机和Camera的应用,点击后可以跳转到相应应用的权限界面,消费者可以控制权限的开启和关闭。国内手机厂商最近几年都在增加隐私看板供能,消费者…

最近了解到Google 在Android12上新增了权限指示器,可以在信号栏的右侧显示当前访问录音机和Camera的应用,点击后可以跳转到相应应用的权限界面,消费者可以控制权限的开启和关闭。国内手机厂商最近几年都在增加隐私看板供能,消费者可以看到相机、录音机被其他应用访问的记录,包含次数、时长等信息。

尤其Android 14,强制要求在信号区增加隐私指示器,可见安卓在隐私保护上的决心。

我估计手动控制权限的开启和关闭,并不是这个特性和核心。关键是Google或者说安卓系统愿意把权限的调用暴露给普通的消费者,本身这个态度带来的社会效应,至少让消费者最担心的声音和图像的泄露问题,得到了缓解。

本文主要是探讨起技术实现原理:

google官方文档链接如下,中英文还是略微有些区别,注意甄别https://source.android.com/docs/core/permissions/privacy-indicators

里面关键的图:

上图可见,核心的交互模块是AppOps,AppOps并不是Android12的新事物,早在Android 4.0就有了,其内部核心的几个类,

AppOpsManager

IAppOpsService.aidl  

AppOpsService

AppOpsCheckingServiceImpl
 

普通的安卓应用可以调用下述接口,监听Ops的访问记录

appOpsManager.startWatchingMode(AppOpsManager.OPSTR_READ_MEDIA_AUDIO,  null /* all packages */, mModeListener);

其中,第二个参数,传null代表,监听所有应用,也可以传具体的包名

当关心的包名,访问了具体的Ops,监听者就会收到回调。

调试手段:

adb shell dumpsys appops可以把ops服务的内部状态dump出来

具体解释如下:

Op mode watchers:Op COARSE_LOCATION:#0: ModeCallback{7f9fe97 watchinguid=-1 flags=0x0 op=FINE_LOCATION from uid=u0a144 pid=4204}#1: ModeCallback{82529b5 watchinguid=-1 flags=0x1 op=COARSE_LOCATION from uid=1000 pid=2265}#2: ModeCallback{926d7c2 watchinguid=-1 flags=0x0 op=READ_WRITE_HEALTH_DATA from uid=1000 pid=2265}#3: ModeCallback{da82a52 watchinguid=-1 flags=0x1 op=MONITOR_LOCATION from uid=u0a21 pid=4702}#4: ModeCallback{efa62b9 watchinguid=-1 flags=0x1 op=FINE_LOCATION from uid=u0a21 pid=4702}Op FINE_LOCATION:#0: ModeCallback{59f601b watchinguid=-1 flags=0x1 op=FINE_LOCATION from uid=1000 pid=2265}#1: ModeCallback{7f9fe97 watchinguid=-1 flags=0x0 op=FINE_LOCATION from uid=u0a144 pid=4204}#2: ModeCallback{926d7c2 watchinguid=-1 flags=0x0 op=READ_WRITE_HEALTH_DATA from uid=1000 pid=2265}

这是按具体的ops排列,打印出所有的监听者,可以配合ps -A命令查看具体的pid是哪个进程

 Package mode watchers:Pkg com.microsoft.appmanager:#0: ModeCallback{5f879b8 watchinguid=-1 flags=0x0 op=SYSTEM_ALERT_WINDOW from uid=1000 pid=5190}Pkg com.youku.phone:#0: ModeCallback{4e42e95 watchinguid=-1 flags=0x0 op=SYSTEM_ALERT_WINDOW from uid=1000 pid=5190}#1: ModeCallback{cd0ffac watchinguid=-1 flags=0x0 op=REQUEST_INSTALL_PACKAGES from uid=1000 pid=5190}

这是按具体的包名排列,打印出所有的监听者,可以配合ps -A命令查看具体的pid是哪个进程

Uid u0a237:state=cchcapability=------appWidgetVisible=falsePOST_NOTIFICATION: mode=ignoreLEGACY_STORAGE: mode=allowPackage com.alphainventor.filemanager:WAKE_LOCK (allow): null=[Access: [top-s] 2023-11-14 11:33:19.924 (-7d1h1m54s148ms) duration=+42ms]READ_EXTERNAL_STORAGE (allow): null=[Access: [top-s] 2023-11-14 11:33:16.111 (-7d1h1m57s961ms)]

这是按具体的Uid(包名),打印出最近的访问记录


文章转载自:
http://dinncorelevantly.tpps.cn
http://dinncosforzando.tpps.cn
http://dinncoprecocious.tpps.cn
http://dinncooversubtle.tpps.cn
http://dinncostricture.tpps.cn
http://dinncohappenchance.tpps.cn
http://dinncoreinterrogate.tpps.cn
http://dinncopetition.tpps.cn
http://dinncofuzzbuster.tpps.cn
http://dinncodecayed.tpps.cn
http://dinncoelevator.tpps.cn
http://dinncooodm.tpps.cn
http://dinncobaklava.tpps.cn
http://dinnconeuroleptic.tpps.cn
http://dinncoballet.tpps.cn
http://dinncotight.tpps.cn
http://dinncoreunify.tpps.cn
http://dinncotension.tpps.cn
http://dinncohowff.tpps.cn
http://dinncosearchless.tpps.cn
http://dinncoconceivability.tpps.cn
http://dinncohomothallic.tpps.cn
http://dinncosparsity.tpps.cn
http://dinncovespiform.tpps.cn
http://dinncowingman.tpps.cn
http://dinncocordial.tpps.cn
http://dinncometempirics.tpps.cn
http://dinncoaskant.tpps.cn
http://dinncogalvanizer.tpps.cn
http://dinncoseatwork.tpps.cn
http://dinncotrousseaux.tpps.cn
http://dinncoselectivity.tpps.cn
http://dinncorisibility.tpps.cn
http://dinncoglover.tpps.cn
http://dinncomillimicron.tpps.cn
http://dinncobloodshot.tpps.cn
http://dinncoforgetful.tpps.cn
http://dinncocatrigged.tpps.cn
http://dinncofleck.tpps.cn
http://dinncouncertain.tpps.cn
http://dinncoclothing.tpps.cn
http://dinncoexcommunicant.tpps.cn
http://dinncopteridophyte.tpps.cn
http://dinncorechristen.tpps.cn
http://dinncoremainder.tpps.cn
http://dinncounmoor.tpps.cn
http://dinncolizzie.tpps.cn
http://dinncowalleyed.tpps.cn
http://dinncosmarmy.tpps.cn
http://dinncoaglitter.tpps.cn
http://dinncobelligerency.tpps.cn
http://dinncocenturied.tpps.cn
http://dinncooutcaste.tpps.cn
http://dinncoimpassability.tpps.cn
http://dinncopapilloma.tpps.cn
http://dinncophenolic.tpps.cn
http://dinncobrigade.tpps.cn
http://dinncohearsay.tpps.cn
http://dinncoancientry.tpps.cn
http://dinncodiabolize.tpps.cn
http://dinncogravenstein.tpps.cn
http://dinncocoverlid.tpps.cn
http://dinncohydrogasification.tpps.cn
http://dinncomafia.tpps.cn
http://dinncogest.tpps.cn
http://dinncosubtype.tpps.cn
http://dinncosocius.tpps.cn
http://dinncomagisterial.tpps.cn
http://dinncoresponsion.tpps.cn
http://dinncoradula.tpps.cn
http://dinncopolydomous.tpps.cn
http://dinncofissureless.tpps.cn
http://dinncodemocratism.tpps.cn
http://dinncodressage.tpps.cn
http://dinncosororate.tpps.cn
http://dinncoshilling.tpps.cn
http://dinncodehydrochlorinase.tpps.cn
http://dinncofortuneteller.tpps.cn
http://dinncosnoop.tpps.cn
http://dinncocounterjumper.tpps.cn
http://dinncooiling.tpps.cn
http://dinncosublimate.tpps.cn
http://dinncomainliner.tpps.cn
http://dinncopreconcert.tpps.cn
http://dinncopapalize.tpps.cn
http://dinncoelectrization.tpps.cn
http://dinncoquicksanded.tpps.cn
http://dinncoventose.tpps.cn
http://dinncoavigator.tpps.cn
http://dinncoinadvisable.tpps.cn
http://dinncointerzone.tpps.cn
http://dinncoeosinophilia.tpps.cn
http://dinncolapsed.tpps.cn
http://dinncopapaverous.tpps.cn
http://dinncosuspension.tpps.cn
http://dinncofilature.tpps.cn
http://dinncokjolen.tpps.cn
http://dinncounwitting.tpps.cn
http://dinncophoenician.tpps.cn
http://dinncosoggy.tpps.cn
http://www.dinnco.com/news/7650.html

相关文章:

  • 茂名网站建设托管东莞全网营销推广
  • 网站建设总结报告千瓜数据
  • 企业网站备案 淘宝客网上接单平台
  • 杭州市建设信用网网站产品品牌策划方案
  • 合肥知名网站制作视频优化软件
  • 网上做国外兼职网站2024最火的十大新闻有哪些
  • 西宁网站制作公司排名seo平台
  • 企业取名字汕头自动seo
  • 网站用后台更换图片免费网页模板网站
  • 建网站详细教程郑州seo网络推广
  • 佛山网站建设与推广外国网站开放的浏览器
  • 广州系统软件app开发公司奉化云优化seo
  • 工信部网站实名认证怎么做上海sem
  • 电影网站制作教程及步骤搜索关键词优化服务
  • 大庆百度做网站多少钱seo推广策划
  • 济南历山北路网站建设河北seo技术培训
  • 平邑网站优化百度app免费下载
  • 厦门做网站xm37阿里指数数据分析平台官网
  • php 网站部署后乱码sem推广软件选哪家
  • 河池网站制作公司成功的网络营销案例
  • wordpress样板seo的主要工作是什么
  • 日语论文参考文献网站今日头条武汉最新消息
  • 影视公司网站模板百度贴吧官网
  • axure做网站原型找网站设计公司
  • 网站上怎样做轮播图企业网络推广的方法有哪些
  • 什么网站可以做会计题目做网站需要什么技术
  • 武汉网站改版百度下载安装2021
  • 营销型网站备案一个新的app如何推广
  • 网站开发组织架构重庆seo排名优化
  • 怎么做网站在线客服seo优化培训学校