如何从世博会管理的工作流程中删除权限?
How to remove permissions from Expo managed workflow?
今天我为 Android 构建了我的应用程序,然后我将它上传到 google 播放。一切都很好,因为我获得了很多我并不真正需要的权限。
Image
他们是 13
android.permission.ACCESS_COARSE_LOCATION,
android.permission.ACCESS_FINE_LOCATION,
android.permission.ACCESS_NETWORK_STATE, android.permission.INTERNET,
android.permission.MODIFY_AUDIO_SETTINGS,
android.permission.READ_EXTERNAL_STORAGE,
android.permission.READ_PHONE_STATE,
android.permission.SYSTEM_ALERT_WINDOW, android.permission.VIBRATE,
android.permission.WAKE_LOCK,
android.permission.WRITE_EXTERNAL_STORAGE,
com.google.android.c2dm.permission.RECEIVE,
com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE
我只需要 异步存储库 的写入和读取存储
所以我阅读了一些有关如何删除它的信息。我尝试了以下步骤
首先,我在 app.js 行
之后添加
"android": {
"permissions": [
"WRITE_EXTERNAL_STORAGE",
"READ_EXTERNAL_STORAGE",
"READ_INTERNAL_STORAGE"
],
当时没用
从包中删除 expo-location-lock.json and node_modules folder and 运行 npm install - 再次无效。
我使用了 SDK 版本 41.0.0 和 npm 版本 7.15.1
的 eas build
感谢您的宝贵时间!
St运行gely 但我找到了解决方案。刚刚 运行
npm uninstall react-native-maps
。也许这个库导致了那个问题
官方文档说:
To use ONLY the following minimum necessary permissions and none of
the extras supported by Expo in a default managed app, 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 • prevent device from sleeping To use ALL
permissions supported by Expo by default, do not specify the
permissions key. To use the minimum necessary permissions ALONG
with certain additional permissions, specify those extras in
permissions, e.g. [ "CAMERA", "ACCESS_FINE_LOCATION" ].
这就是为什么你有额外的权限,你可以阅读它here
今天我为 Android 构建了我的应用程序,然后我将它上传到 google 播放。一切都很好,因为我获得了很多我并不真正需要的权限。 Image
他们是 13
android.permission.ACCESS_COARSE_LOCATION, android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_NETWORK_STATE, android.permission.INTERNET, android.permission.MODIFY_AUDIO_SETTINGS, android.permission.READ_EXTERNAL_STORAGE, android.permission.READ_PHONE_STATE, android.permission.SYSTEM_ALERT_WINDOW, android.permission.VIBRATE, android.permission.WAKE_LOCK, android.permission.WRITE_EXTERNAL_STORAGE, com.google.android.c2dm.permission.RECEIVE, com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE
我只需要 异步存储库 的写入和读取存储 所以我阅读了一些有关如何删除它的信息。我尝试了以下步骤 首先,我在 app.js 行
之后添加"android": {
"permissions": [
"WRITE_EXTERNAL_STORAGE",
"READ_EXTERNAL_STORAGE",
"READ_INTERNAL_STORAGE"
],
当时没用 从包中删除 expo-location-lock.json and node_modules folder and 运行 npm install - 再次无效。 我使用了 SDK 版本 41.0.0 和 npm 版本 7.15.1
的 eas build感谢您的宝贵时间!
St运行gely 但我找到了解决方案。刚刚 运行
npm uninstall react-native-maps
。也许这个库导致了那个问题
官方文档说:
To use ONLY the following minimum necessary permissions and none of the extras supported by Expo in a default managed app, 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 • prevent device from sleeping To use ALL permissions supported by Expo by default, do not specify the permissions key. To use the minimum necessary permissions ALONG with certain additional permissions, specify those extras in permissions, e.g. [ "CAMERA", "ACCESS_FINE_LOCATION" ].
这就是为什么你有额外的权限,你可以阅读它here