我想从权限中删除“ SYSTEM_ALERT_WINDOW
”。我通过expo-Reactnative创建了apk
文件。因此我无法直接访问android项目。现在回答这些问题之一将对我有很大帮助。
SYSTEM_ALERT_WINDOW
”权限而不分离它?这是我来自世博会项目的app.json
文件:
{
"expo": {
"name": "hipotrip",
"description": "This project is really great.",
"slug": "hipotrip",
"privacy": "public",
"sdkVersion": "31.0.0",
"platforms": ["ios", "android"],
"version": "1.0.3",
"orientation": "portrait",
"icon": "./assets/icon.png",
"scheme": "hipotrip",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"bundleIdentifier": "com.berjistrip.flight",
"supportsTablet": true,
"buildNumber": "285"
},
"android": {
"package": "com.hamitrip.trip360",
"versionCode":285,
"permissions": [
"WRITE_CALENDAR",
"READ_EXTERNAL_STORAGE",
"READ_PHONE_STATE",
"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"
]
}
答案 0 :(得分:0)
您可以做的是使用apktool反编译APK,从清单中删除权限,增加versionCode
,还可以选择更改versionName
,然后仍然使用apktool重新编译
如果您想再次将其上传到Play商店,则仍然需要使用sign the APK的原始密钥库。