当前位置:网站首页>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社区,最好的一种方式,投入较大。
边栏推荐
- Linux软件:如何安装Redis服务
- [shutter] image component (load network pictures | load static pictures | load local pictures | path | provider plug-in)
- node_ Modules cannot be deleted
- helm 基础学习
- Is there a specific format for English papers?
- MySQL 23道经典面试吊打面试官
- 毕业总结
- mm中的GAN模型架构
- Form form instantiation
- [pulsar document] concepts and architecture
猜你喜欢

Basic use of shell script

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

An excellent orm in dotnet circle -- FreeSQL
![[shutter] Introduction to the official example of shutter Gallery (project introduction | engineering construction)](/img/f7/a8eb8e40b9ea25021751d7150936ac.jpg)
[shutter] Introduction to the official example of shutter Gallery (project introduction | engineering construction)

DotNet圈里一个优秀的ORM——FreeSql

文件操作IO-Part2

pageoffice-之bug修改之旅

Nacos+openfeign error reporting solution

2022上半年值得被看见的10条文案,每一句都能带给你力量!
![[MCU project training] eight way answering machine](/img/a3/6a50619cd16269bf485a4a273677aa.jpg)
[MCU project training] eight way answering machine
随机推荐
Detailed explanation of pod life cycle
mm中的GAN模型架构
Overlay of shutter (Pop-Up)
Multiprocess programming (II): Pipeline
LeedCode1480.一维数组的动态和
Slf4j + logback logging framework
Confluence的PDF导出中文文档异常显示问题解决
Centos7 one click compilation to build MySQL script
One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function
Extension of flutter
[shutter] image component (load network pictures | load static pictures | load local pictures | path | provider plug-in)
字符设备注册常用的两种方法和步骤
Form form instantiation
Callback event after the antv X6 node is dragged onto the canvas (stepping on a big hole record)
LeedCode1480. Dynamic sum of one-dimensional array
[shutter] image component (the placeholder | transparent_image transparent image plug-in is loaded into the memory)
Blue decides red - burst CS teamserver password
Nc20806 District interval
Nacos+openfeign error reporting solution
NC17059 队列Q