gpt4 book ai didi

android - React Native Expo 应用程序在 Play 管理中心错误地列出了详细信息

转载 作者:行者123 更新时间:2023-12-04 13:35:26 24 4
gpt4 key购买 nike

我已经上传了一个通过 Expo 内置的 React Native 应用程序。我已将权限设置为无:

{
"expo": {
"android": {
"permissions": []
... other settings
}
... other settings
}

而且我只将其设置为纵向模式:
{
"expo": {
"orientation": "portrait",
... other settings
}
}

但是当我将应用程序包上传到 PLayConsole 时,它​​会列出具有 15 个权限的应用程序:

android.permission.ACCESS_NETWORK_STATE android.permission.ACCESS_WIFI_STATE android.permission.FOREGROUND_SERVICE android.permission.INTERNET android.permission.MODIFY_AUDIO_SETTINGS android.permission.RECEIVE_BOOT_COMPLETED android.permission.REQUEST_INSTALL_PACKAGES android.permission.STORAGE android.permission.SYSTEM_ALERT_WINDOW android.permission.USE_BIOMETRIC android.permission.WAKE_LOCK com.google.android.c2dm.permission.RECEIVE com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE com.sja.firstaid.permission.C2D_MESSAGE host.exp.exponent.permission.C2D_MESSAGE



以及特征下的两个方向:

2 features: android.hardware.screen.landscape, android.hardware.screen.portrait



我无法确定忽略这些设置的原因。

最佳答案

注:权限键似乎忽略权限而不是添加权限列表 Docs
独立应用程序在安装时将请求的附加权限列表,
以及 Expo 应用程序运行所需的最低要求。

  To use ALL permissions supported by Expo, do not specify the "permissions" key.

To use ONLY the following minimum necessary permissions and none of the extras supported
by Expo, set "permissions" to []. The minimum necessary permissions do not require a
Privacy Policy when uploading to Google Play Store and are:

• receive data from Internet
• view network connections
• full network access
• change your audio settings
• draw over other apps
• prevent device from sleeping

To use the minimum necessary permissions ALONG with certain additional permissions,
specify those extras in "permissions", e.g.

["CAMERA", "RECORD_AUDIO"]

ExpoKit: to change the permissions your app requests, you'll need to edit
AndroidManifest.xml manually. To prevent your app from requesting one of the
permissions listed below, you'll need to explicitly add it to `AndroidManifest.xml`
along with a `tools:node="remove"` tag.

"permissions": [
"ACCESS_COARSE_LOCATION",
"ACCESS_FINE_LOCATION",
"CAMERA",
"MANAGE_DOCUMENTS",
"READ_CONTACTS",
"READ_CALENDAR",
"WRITE_CALENDAR",
"READ_EXTERNAL_STORAGE",
"READ_PHONE_STATE",
"RECORD_AUDIO",
"USE_FINGERPRINT",
"VIBRATE",
"WAKE_LOCK",
"WRITE_EXTERNAL_STORAGE",
"com.anddoes.launcher.permission.UPDATE_COUNT",
"com.android.launcher.permission.INSTALL_SHORTCUT",
"com.google.android.c2dm.permission.RECEIVE",
"com.google.android.gms.permission.ACTIVITY_RECOGNITION",
"com.google.android.providers.gsf.permission.READ_GSERVICES",
"com.htc.launcher.permission.READ_SETTINGS",
"com.htc.launcher.permission.UPDATE_SHORTCUT",
"com.majeur.launcher.permission.UPDATE_BADGE",
"com.sec.android.provider.badge.permission.READ",
"com.sec.android.provider.badge.permission.WRITE",
"com.sonyericsson.home.permission.BROADCAST_BADGE"
],

关于android - React Native Expo 应用程序在 Play 管理中心错误地列出了详细信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62407644/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com