[英]Android: detect if nearby device has certain app installed
I am not sure if that is even possible. 我不确定这是否可能。 It might be possible if both devices have the same app installed but what I am curious about is totally different. 如果两个设备都安装了相同的应用程序,可能是有可能的,但我很好奇的是完全不同的。
What I am curious about is if that would be possible to code any kind of app that will tell if a nearby device has for example Whatsapp, or Facebook or...etc installed. 我很好奇的是,是否有可能编写任何能够告诉附近设备是否安装了Whatsapp,Facebook或...等应用程序的应用程序。
Or maybe it will fall into privacy issues? 还是会陷入隐私问题?
Not in general, for obvious privacy and security reasons. 通常,出于明显的隐私和安全原因,这不是一般情况。
First, you have no means of communicating with an arbitrary nearby device, unless there is some app on that device that specifically is requesting that sort of communications. 首先,您无法与附近的任意设备通信,除非该设备上有某些专门要求此类通信的应用程序。
Second, even if there is some app on the nearby device that happens to be listening on some communications channel, it is unlikely to be exposing some sort of API over that channel that allows you to check to see what apps are installed. 其次,即使附近的设备上有某个应用程序恰巧正在某个通信通道上进行监听,也不太可能在该通道上公开某种API,该API可以让您检查安装了哪些应用程序。 If an app does this, that app itself is riddled with privacy and security flaws. 如果某个应用程序执行此操作,则该应用程序本身将充斥着隐私和安全漏洞。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.