l***@yuxirj.com
l***@yuxirj.com
  • 发布:2022-09-22 10:32
  • 更新:2022-09-22 10:32
  • 阅读:182

【报Bug】HBuilderX打包时默认加入了APP不用的权限,APP上架因隐私条款,上架被拒绝!

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Windows

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

HBuilderX版本号: 3.6.3

App下载地址或H5⽹址: https://fy.cnynld.com/downloads/apps/lan.apk

示例代码:

{
"name" : "小兰翻译",
"appid" : "xxxx",
"description" : "小兰翻译助手是为中国与东南亚各国从事商业活动、旅游、文化交流专门打造的小语种翻译服务平台,能方便的解决交流时的沟通障碍。目前提供了短文翻译、长文翻译、拍照识别翻译、语音识别翻译、人工翻译等功能。目前支持中、英、老挝、缅甸、泰国、柬埔寨、越南等语言的双向翻译。",
"versionName" : "1.2.3",
"versionCode" : 143,
"transformPx" : false,
/ 5+App特有相关 /
"app-plus" : {
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
// "alwaysShowBeforeRender" : true,
"alwaysShowBeforeRender" : false,
"waiting" : true,
// "autoclose" : true,
"autoclose" : false,
"delay" : 0
},
/ 模块配置 /
"modules" : {
"LivePusher" : {},
"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_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.INTERNET\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_APN_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a" ],
"minSdkVersion" : 23,
"targetSdkVersion" : 30,
"autoSdkPermissions" : false
},
/ ios打包配置 /
"ios" : {
"urltypes" : "recharge",
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "您在进行读取本地图片文件,并对图片文件进行翻译时,需要相册。",
"NSCameraUsageDescription" : "进行图片拍摄时,需要调用相机",
"NSPhotoLibraryAddUsageDescription" : "",
"NSMicrophoneUsageDescription" : "进行语音翻译时,需要调用麦克风进行声音获取,其它时间我们不采集麦克风信息"
},
"UIBackgroundModes" : "audio",
"idfa" : false,
"dSYMs" : false
},
/ SDK配置 /
"sdkConfigs" : {
"speech" : {
"baidu" : {
"appid" : "2616xxxx",
"apikey" : "xxxxxx",
"secretkey" : "xxxxxx"
}
},
"ad" : {},
"payment" : {}
},
"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"
}
}
},
"splashscreen" : {
"androidStyle" : "common",
"useOriginalMsgbox" : false
}
},
"nativePlugins" : {}
},
/ 快应用特有相关 /
"quickapp" : {},
/ 小程序特有相关 /
"mp-weixin" : {
"appid" : "",
"setting" : {
"urlCheck" : false
},
"usingComponents" : true
},
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu" : {
"usingComponents" : true,
"setting" : {
"urlCheck" : false
}
},
"mp-toutiao" : {
"usingComponents" : true
},
"uniStatistics" : {
"enable" : false
},
"vueVersion" : "2",
"fallbackLocale" : "zh-Hans",
"locale" : "auto"
}

操作步骤:

编译发布,卸载手机上安装的旧的app,安装新发布app,启动时,app会请求“要求允许拨打电话和管理电话号码?”

预期结果:

编译发布后,未申请的权限,HBuilderX不要自动内置进去。

实际结果:

编译发布后,实际内置了通话权限、电话通讯录管理权限、后台访问地理位置、获取粗略位置、获取精确位置、检索正在运行的应用、读取手机状态和身份、读取联系人等权限。

bug描述:

APP开发时未申请申请开启通讯录、定位、短信、日历、拨打电话这些权限,HBuilderX打包时自带了这些权限,APP上架通不过该怎么办?

2022-09-22 10:32 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复