"stackTrace":["io.dcloud.common.util.TelephonyUtil.getSBBS(SourceFile:121)","io.dcloud.common.util.TelephonyUtil.getIMEI(SourceFile:3)","io.dcloud.feature.gg.dcloud.ADHandler.bd(SourceFile:17)","io.dcloud.feature.gg.dcloud.ADHandler.pull(SourceFile:11)","io.dcloud.feature.gg.dcloud.AdFeatureImpl.doForFeature(SourceFile:83)","io.dcloud.feature.gg.AdFeatureImplMgr.doForFeature(SourceFile:6)","io.dcloud.a.a(SourceFile:18)","io.dcloud.b.checkAndRequestStoragePermission(SourceFile:28)","io.dcloud.WebAppActivity.checkAndRequestStoragePermission(SourceFile:1)","io.dcloud.b$c.a(SourceFile:7)","io.dcloud.common.ui.b.a(SourceFile:338)","io.dcloud.b.onCreate(SourceFile:44)","io.dcloud.WebAppActivity.onCreate(SourceFile:24)","android.app.Activity.performCreate(Activity.java:8085)","android.app.Activity.performCreate(Activity.java:8073)","android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1320)","android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3850)","android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4056)","android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)","android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)","android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)","android.app.ActivityThread$H.handleMessage(ActivityThread.java:2464)","android.os.Handler.dispatchMessage(Handler.java:110)","android.os.Looper.loop(Looper.java:219)","android.app.ActivityThread.main(ActivityThread.java:8299)","java.lang.reflect.Method.invoke(Native Method)","com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)","com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1052)"]
- 发布:2022-02-22 10:48
- 更新:2022-02-22 15:52
- 阅读:980
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 10
HBuilderX类型: 正式
HBuilderX版本号: 3.3.5
手机系统: Android
手机系统版本号: Android 10
手机厂商: 华为
手机机型: 华为
页面类型: vue
vue版本: vue2
打包方式: 离线
项目创建方式: HBuilderX
示例代码:
操作步骤:
下载 安装 进入app
下载 安装 进入app
预期结果:
首次进入app 在不点授权前 不要调用获取手机状态的api
首次进入app 在不点授权前 不要调用获取手机状态的api
实际结果:
首次进入app 就自动调用获取手机状态的api
首次进入app 就自动调用获取手机状态的api
bug描述:
利用uniapp离线打包app 提交给华为应用市场 被驳回
理由是 请在用户同意隐私政策后再申请获取用户个人信息及权限
调度华为自检日志 得到的是
尊敬的开发者,您好!您的应用在用户同意隐私政策前存在获取用户个人信息(设备ID)信息接口的违规调用行为,请您将相关问题反馈至贵司的开发人员,自检日志及调用栈信息(不限于SDK的获取信息行为),应用上架需确保在用户同意隐私政策后再进行接口调用和个人信息获取。
"stackTrace":["io.dcloud.common.util.TelephonyUtil.getSBBS(SourceFile:121)","io.dcloud.common.util.TelephonyUtil.getIMEI(SourceFile:3)","io.dcloud.feature.gg.dcloud.ADHandler.bd(SourceFile:17)","io.dcloud.feature.gg.dcloud.ADHandler.pull(SourceFile:11)","io.dcloud.feature.gg.dcloud.AdFeatureImpl.doForFeature(SourceFile:83)","io.dcloud.feature.gg.AdFeatureImplMgr.doForFeature(SourceFile:6)","io.dcloud.a.a(SourceFile:18)","io.dcloud.b.checkAndRequestStoragePermission(SourceFile:28)","io.dcloud.WebAppActivity.checkAndRequestStoragePermission(SourceFile:1)","io.dcloud.b$c.a(SourceFile:7)","io.dcloud.common.ui.b.a(SourceFile:338)","io.dcloud.b.onCreate(SourceFile:44)","io.dcloud.WebAppActivity.onCreate(SourceFile:24)","android.app.Activity.performCreate(Activity.java:8085)","android.app.Activity.performCreate(Activity.java:8073)","android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1320)","android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3850)","android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4056)","android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)","android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)","android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)","android.app.ActivityThread$H.handleMessage(ActivityThread.java:2464)","android.os.Handler.dispatchMessage(Handler.java:110)","android.os.Looper.loop(Looper.java:219)","android.app.ActivityThread.main(ActivityThread.java:8299)","java.lang.reflect.Method.invoke(Native Method)","com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)","com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1052)"]
在点击授权钱 入口页面就调用了getIMEI 目前请技术人员能给出解决方案 谢谢 否则无法发布
3 个回复
FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866
临时解决办法,新建一个新的入口,申请权限之后,再跳转到uni-app的应用入口
坏立立 (作者)
这个入口文件 就是 uni的 是app的启动页 目前绕不过去
DCloud_Android_ST
请配置官方提供的隐私协议弹窗 参考文档https://ask.dcloud.net.cn/article/36937