当前位置:网站首页>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社区,最好的一种方式,投入较大。
边栏推荐
- antv x6节点拖拽到画布上后的回调事件(踩大坑记录)
- Is there a specific format for English papers?
- The "2022 China Digital Office Market Research Report" can be downloaded to explain the 176.8 billion yuan market in detail
- Graduation summary
- 简单聊聊运维监控的其他用途
- Linux软件:如何安装Redis服务
- 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
- AttributeError: ‘tuple‘ object has no attribute ‘layer‘问题解决
- 关于QByteArray存储十六进制 与十六进制互转
- Andorid 获取系统标题栏高度
猜你喜欢

【雅思阅读】王希伟阅读P1(阅读判断题)

Automated defect analysis in electron microscopic images-论文阅读笔记

Basic use of shell script

2022上半年值得被看见的10条文案,每一句都能带给你力量!

Feature Engineering: summary of common feature transformation methods

Solution to the problem of abnormal display of PDF exported Chinese documents of confluence

2022中国3D视觉企业(引导定位、分拣场景)厂商名单
![[MCU project training] eight way answering machine](/img/a3/6a50619cd16269bf485a4a273677aa.jpg)
[MCU project training] eight way answering machine
![[shutter] image component (the placeholder | transparent_image transparent image plug-in is loaded into the memory)](/img/73/19e2e0fc5ea6f05e34584ba40a452d.jpg)
[shutter] image component (the placeholder | transparent_image transparent image plug-in is loaded into the memory)

Detailed explanation of pod life cycle
随机推荐
使用jenkins之二Job
百数不断创新,打造自由的低代码办公工具
多进程编程(二):管道
Graduation summary
Vulkan-性能及精细化
Bypass AV with golang
Andorid 获取系统标题栏高度
可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场
[MCU project training] eight way answering machine
简单聊聊运维监控的其他用途
Overlay of shutter (Pop-Up)
Implement the foreach method of array
Bigder: how to deal with the bugs found in the 32/100 test if they are not bugs
Logback configuration file
奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习
Linux软件:如何安装Redis服务
MySQL 23道经典面试吊打面试官
UART、RS232、RS485、I2C和SPI的介绍
微信小程序获取某个元素的信息(高、宽等),并将px转换为rpx。
NC50528 滑动窗口