1***@qq.com
1***@qq.com
  • 发布:2023-08-01 22:32
  • 更新:2023-11-15 14:31
  • 阅读:331

【报Bug】华为上架在已配置androidPrivacy.json的情况下提示隐私合规问题

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Win10

HBuilderX类型: 正式

HBuilderX版本号: 3.8.11

手机系统: Android

手机系统版本号: Android 13

手机厂商: 华为

手机机型: 荣耀20

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

App下载地址或H5⽹址: http://luyowa.com/hxlv/

示例代码:

尊敬的开发者,您好,在用户同意隐私政策前,您的应用[获取MAC地址,ANDROID ID个人信息],请参考以下调用栈,可协助您定位问题,并将相关信息获取调整至同意政策之后,谢谢。
···
未同意隐私政策,应用获取ANDROID ID个人信息
[com.getui.gtc.dim.c.a.d(Unknown Source:6),
com.getui.gtc.dim.b.e.a(Unknown Source:581),
com.getui.gtc.dim.b.e.a(Unknown Source:152),
com.getui.gtc.dim.a.a(Unknown Source:730),
com.getui.gtc.dim.DimManager.get(Unknown Source:11),
com.getui.gtc.extension.distribution.gws.k.l.e(Unknown Source:59),
com.getui.gtc.extension.distribution.gws.a.b$1.run(Unknown Source:183),
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167),
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641),
java.lang.Thread.run(Thread.java:933)]
未同意隐私政策,应用获取MAC地址个人信息
[com.getui.gtc.dim.c.a.h(Unknown Source:37),
com.getui.gtc.dim.b.e.a(Unknown Source:624),
com.getui.gtc.dim.b.e.a(Unknown Source:152),
com.getui.gtc.dim.a.a(Unknown Source:730),
com.getui.gtc.dim.DimManager.get(Unknown Source:11),
com.getui.gtc.extension.distribution.gbd.m.o.d(Unknown Source:74),
com.getui.gtc.extension.distribution.gbd.m.o.b(Unknown Source:41),
com.getui.gtc.extension.distribution.gbd.a.b.e.a(Unknown Source:306),
com.getui.gtc.extension.distribution.gbd.a.b.e$a.run(Unknown Source:103),
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167),
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641),
java.lang.Thread.run(Thread.java:933)]
···

androidPrivacy.json:

{  
    "version" : "1",  
    "prompt" : "template",  
    "title" : "服务协议和隐私政策",  
    "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识(设备序列号/AndroidID/IMEI/MAC/AndroidID/IDFA/OpenUDID/GUID/SIM卡IMSI/地理位置等)、粗略位置、详细位置、操作日志、OAID、MAC地址、IP地址等信息用于分析、优化应用性能与体验。<br/>  你可阅读<a href=\"http://junesunray.com/agreement/travail.html\">《隐私政策》</a>了解详细信息。我们的产品基于DCloud uni-app(5+ App/Wap2App)开发,应用运行期间需要收集您的设备唯一识别码(IMEI/android ID/DEVICE_ID/IDFA、SIM 卡 IMSI 信息、OAID)以提供统计分析服务,并通过应用启动数据及异常错误日志分析改进性能和用户体验,为用户提供更好的服务。详情内容请访问《DCloud用户服务条款》。(DCloud用户服务条款超链至:https://ask.dcloud.net.cn/protocol.html)。如果你同意,请点击下面按钮开始接受我们的服务。",  
    "buttonAccept" : "同意并继续",  
    "buttonRefuse" : "暂不同意",  
    "hrefLoader" : "system",  
    "second" : {  
        "title" : "温馨提示",  
        "message" : "  进入应用前,你需先同意<a href=\"http://junesunray.com/agreement/travail.html\">《隐私政策》</a>,否则将退出应用。",  
        "buttonAccept" : "同意并继续",  
        "buttonRefuse" : "退出应用"  
    },  
    "disagreeMode" : {  
        "support" : false,  
        "loadNativePlugins" : false,  
        "visitorEntry" : true,  
        "showAlways" : true  
    },  
    "styles" : {  
        "backgroundColor" : "#FFFFFF",  
        "borderRadius" : "5px",  
        "title" : {  
            "color" : "#000000"  
        },  
        "buttonAccept" : {  
            "color" : "#007aff"  
        },  
        "buttonRefuse" : {  
            "color" : "#FF0000"  
        },  
        "buttonVisitor" : {  
            "color" : "#CCCCCC"  
        }  
    }  
}

manifest.json:

{  
    "name" : "",  
    "appid" : "__U************D1",  
    "description" : "爱露营、找攻略APP",  
    "versionName" : "1.2.9",  
    "versionCode" : 129,  
    "transformPx" : false,  
    "app-plus" : {  
        /* 5+App特有相关 */  
        "usingComponents" : true,  
        "nvueCompiler" : "uni-app",  
        "nvueStyleCompiler" : "uni-app",  
        "splashscreen" : {  
            "alwaysShowBeforeRender" : true,  
            "waiting" : true,  
            "autoclose" : true,  
            "delay" : 0  
        },  
        "modules" : {  
            "Share" : {},  
            "SQLite" : {},  
            "Camera" : {},  
            "Maps" : {},  
            "Geolocation" : {},  
            "OAuth" : {},  
            "Push" : {},  
            "VideoPlayer" : {},  
            "Payment" : {}  
        },  
        /* 模块配置 */  
        "distribute" : {  
            /* 应用发布信息 */  
            "android" : {  
                /* android打包配置 */  
                "permissions" : [  
                    "<uses-feature android:name=\"android.hardware.camera\"/>",  
                    "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",  
                    "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",  
                    "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",  
                    "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",  
                    "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",  
                    "<uses-permission android:name=\"android.permission.CAMERA\"/>",  
                    "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",  
                    "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",  
                    "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",  
                    "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",  
                    "<uses-permission android:name=\"android.permission.INTERNET\"/>",  
                    "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",  
                    "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",  
                    "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",  
                    "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",  
                    "<uses-permission android:name=\"android.permission.VIBRATE\"/>",  
                    "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",  
                    "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",  
                    "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"  
                ],  
                "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]  
            },  
            "ios" : {  
                "privacyDescription" : {  
                    "NSRemindersUsageDescription" : "狐请求提醒事项权限,将用于发送狐小旅硬件设备信息通知",  
                    "NSLocationAlwaysAndWhenInUseUsageDescription" : "狐小旅请求访问您的位置,用于发布个性化推文",  
                    "NSLocationAlwaysUsageDescription" : "请求访问您的位置,用于发布个性化推文",  
                    "NSLocationWhenInUseUsageDescription" : "狐小旅请求访问您的位置,用于发布个性化推文",  
                    "NSMicrophoneUsageDescription" : "请求访问您的话筒,用于聊天语音",  
                    "NSCameraUsageDescription" : "请求访问您的摄像头,用于聊天拍摄图片",  
                    "NSPhotoLibraryUsageDescription" : "狐请求访问您的相册,用于聊天上传图片",  
                    "NSPhotoLibraryAddUsageDescription" : "狐请求访问您的相册,用于聊天下载图片"  
                },  
                "idfa" : false,  
                "capabilities" : {  
                    "entitlements" : {  
                        "com.apple.developer.associated-domains" : [ "applinks:junesunray.com", "applinks:uniapp.ju************y.com" ]  
                    }  
                },  
                "dSYMs" : false  
            },  
            /* ios打包配置 */  
            "sdkConfigs" : {  
                "ad" : {},  
                "share" : {},  
                "payment" : {  
                    "alipay" : {  
                        "__platform__" : [ "ios", "android" ]  
                    },  
                    "weixin" : {  
                        "__platform__" : [ "ios", "android" ],  
                        "appid" : "wx************37b9",  
                        "UniversalLinks" : "https://un**********************y.com/uni-universallinks/__UNI_************D1/"  
                    }  
                },  
                "geolocation" : {  
                    "system" : {  
                        "__platform__" : [ "ios", "android" ]  
                    },  
                    "amap" : {  
                        "__platform__" : [ "ios", "android" ],  
                        "appkey_ios" : "308************2928ce",  
                        "appkey_android" : "43d3********366de"  
                    }  
                },  
                "oauth" : {  
                    "univerify" : {},  
                    "apple" : {},  
                    "weixin" : {  
                        "appid" : "wx****",  
                        "appsecret" : "06****",  
                        "UniversalLinks" : "https://uniapp************inks/__UNI__0***D1/"  
                    },  
                    "qq" : {  
                        "appid" : "10***",  
                        "UniversalLinks" : "https://uni************.com/qq_conn/1****943/"  
                    }  
                },  
                "push" : {  
                    "unipush" : {  
                        "version" : "2",  
                        "offline" : true  
                    }  
                },  
                "maps" : {  
                    "amap" : {  
                        "appkey_ios" : "30****",  
                        "appkey_android" : "43****"  
                    }  
                }  
            },  
            "splashscreen" : {  
                "androidStyle" : "default",  
                "android" : {  
                    "hdpi" : "D:/Program Files/HBuilderX/bin/hvlv-start/480.9.png",  
                    "xhdpi" : "D:/Program Files/HBuilderX/bin/hvlv-start/720.9.png",  
                    "xxhdpi" : "D:/Program Files/HBuilderX/bin/hvlv-start/1080.9.png"  
                },  
                "useOriginalMsgbox" : true,  
                "iosStyle" : "common"  
            },  
            "icons" : {  
                "android" : {  
                    "hdpi" : "unpackage/res/icons/72x72.png",  
                    "xhdpi" : "unpackage/res/icons/96x96.png",  
                    "xxhdpi" : "unpackage/res/icons/144x144.png",  
                    "xxxhdpi" : "unpackage/res/icons/192x192.png"  
                },  
                "ios" : {  
                    "appstore" : "unpackage/res/icons/1024x1024.png",  
                    "ipad" : {  
                        "app" : "unpackage/res/icons/76x76.png",  
                        "app@2x" : "unpackage/res/icons/152x152.png",  
                        "notification" : "unpackage/res/icons/20x20.png",  
                        "notification@2x" : "unpackage/res/icons/40x40.png",  
                        "proapp@2x" : "unpackage/res/icons/167x167.png",  
                        "settings" : "unpackage/res/icons/29x29.png",  
                        "settings@2x" : "unpackage/res/icons/58x58.png",  
                        "spotlight" : "unpackage/res/icons/40x40.png",  
                        "spotlight@2x" : "unpackage/res/icons/80x80.png"  
                    },  
                    "iphone" : {  
                        "app@2x" : "unpackage/res/icons/120x120.png",  
                        "app@3x" : "unpackage/res/icons/180x180.png",  
                        "notification@2x" : "unpackage/res/icons/40x40.png",  
                        "notification@3x" : "unpackage/res/icons/60x60.png",  
                        "settings@2x" : "unpackage/res/icons/58x58.png",  
                        "settings@3x" : "unpackage/res/icons/87x87.png",  
                        "spotlight@2x" : "unpackage/res/icons/80x80.png",  
                        "spotlight@3x" : "unpackage/res/icons/120x120.png"  
                    }  
                }  
            }  
        }  
    },  
    /* SDK配置 */  
    "quickapp" : {},  
    /* 快应用特有相关 */  
    "mp-weixin" : {  
        "appid" : "wx*****",  
        "setting" : {  
            "urlCheck" : false,  
            "es6" : true,  
            "minified" : true  
        },  
        "usingComponents" : true,  
        "permission" : {  
            "scope.userLocation" : {  
                "desc" : "小程序将使用定位功能"  
            }  
        },  
        "requiredPrivateInfos" : [ "getLocation", "chooseLocation" ],  
        "unipush" : {  
            "enable" : true  
        },  
        "secureNetwork" : {  
            "enable" : false  
        }  
    },  
    "vueVersion" : "2",  
    "locale" : "zh-Hans",  
    "_spaceID" : "***",  
    "_qq_spaceID" : "***",  
    "h5" : {  
        "sdkConfigs" : {  
            "maps" : {  
                "amap" : {  
                    "key" : "***",  
                    "securityJsCode" : "****",  
                    "serviceHost" : ""  
                }  
            }  
        },  
        "devServer" : {  
            "port" : ""  
        },  
        "router" : {  
            "base" : "./"  
        }  
    }  
}  

操作步骤:

打包上架,勾选华为应用市场

预期结果:

审核通过

实际结果:

审核不通过

bug描述:

您的应用审核未通过。 应用ID:10***** 应用名称:狐 应用版本:1.2.8 被拒绝原因:
应用审核意见:
在用户同意隐私政策前,您的应用[获取MAC地址,ANDROID ID个人信息],不符合华为应用市场审核标准。
修改建议:请在用户同意隐私政策后,再申请获取用户个人信息及权限。
请参考《审核指南》第7.5相关审核要求:https://developer.huawei.com/consumer/cn/doc/50104
APP常见个人信息保护问题FAQ请参考:
https://developer.huawei.com/consumer/cn/doc/distribution/app/FAQ-faq#h2-1628498414951-0
测试环境:Wi-Fi联网、EMUI 10.0(Mate 30)、中文环境。 如有疑问,可直接回复本条通知进行咨询

2023-08-01 22:32 负责人:无 分享
已邀请:
DCloud_Android_YJC

DCloud_Android_YJC

5***@qq.com

5***@qq.com

也是不行

要回复问题请先登录注册