当前位置:网站首页>cordova-plugin-device获取设备信息插件导致华为审核不通过
cordova-plugin-device获取设备信息插件导致华为审核不通过
2022-07-02 23:47:00 【kenick】
1.起因
经检测发现,您的应用存在获取用户的【ANDROID ID】敏感信息行为,且未在应用内的隐私政策/在AppGallery Connect上提交的隐私政策网址中进行说明,不符合华为应用市场审核标准。
2.分析
从华为处获取到的堆栈调用信息为:
"stackTrace":[
"org.apache.cordova.device.Device.getUuid(Device.java:112)",
"org.apache.cordova.device.Device.initialize(Device.java:58)",
"org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:57)",
"org.apache.cordova.PluginManager.getPlugin(PluginManager.java:171)",
"org.apache.cordova.PluginManager.exec(PluginManager.java:122)",
"org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)",
"org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)",
"android.os.MessageQueue.nativePollOnce(NativeMethod)",
"android.os.MessageQueue.next(MessageQueue.java:374)",
"android.os.Looper.loop(Looper.java:185)",
"android.os.HandlerThread.run(HandlerThread.java:67)"
]
经查找资料,在项目的platforms\android\app\src\main\java\org\apache\cordova\device\Device.java中发现该类的初始化方法有问题。
由于初始化时就获取了uuid,导致虽然在项目中有对获取有控制(必须先获取用户授权),但一进入app,在未获取用户授权前,就已经获取了uuid。
3.解决方法
1.舍弃该插件(cordova-plugin-device),适用于对业务及逻辑影响不大的情况下;
2.继续使用该插件,修改插件获取原生设备ID的方式,适用于上层逻辑复杂但对设备ID要求不是很严格的情况下。
3.自定义插件,并上传到cordova社区,最好的一种方式,投入较大。
边栏推荐
猜你喜欢

Redis21 classic interview questions, extreme pull interviewer

Which websites can I search for references when writing a thesis?

如何系统学习机器学习

Confluence的PDF导出中文文档异常显示问题解决

Introduction and use of ftrace tool

ftrace工具的介绍及使用

MySQL 23 classic interview hanging interviewer

University of Oslo: Li Meng | deep reinforcement learning based on swing transformer

文件操作IO-Part2

Nacos+openfeign error reporting solution
随机推荐
mm中的GAN模型架构
node_ Modules cannot be deleted
Overlay of shutter (Pop-Up)
Nc20806 District interval
Vulkan并非“灵药“
Andorid 获取系统标题栏高度
[IELTS reading] Wang Xiwei reading P1 (reading judgment question)
[golang syntax] map common errors golang panic: assignment to entry in nil map
Array common operation methods sorting (including ES6) and detailed use
Linux软件:如何安装Redis服务
Nc17059 queue Q
What website can you find English literature on?
An excellent orm in dotnet circle -- FreeSQL
Introduction and use of ftrace tool
Shell 实现文件基本操作(切割、排序、去重)
Explain in detail the significance of the contour topology matrix obtained by using the contour detection function findcontours() of OpenCV, and how to draw the contour topology map with the contour t
文件操作IO-Part2
Form form instantiation
JSON转换工具类
Rust所有权(非常重要)