Android 8上系统应用程序上的Android权限交互问题

时间:2018-06-22 15:20:41

标签: android shell permissions adb

我已经创建了一个android系统应用,该系统没有与之交互的屏幕。目前,它是在安装open ex之后第一次请求位置和存储的权限,如果我想使用它安装/卸载任何应用程序,它将再次在其中请求权限。我想使用adb或在应用程序中授予所有权限,而无需用户交互

permission: android.permission.INTERNET
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.CHANGE_WIFI_STATE'
permission: android.permission.CHANGE_NETWORK_STATE
permission: android.permission.ACCESS_FINE_LOCATION
permission: android.permission.CHANGE_WIFI_MULTICAST_STATE
uses-permission: name='android.permission.WRITE_SETTINGS'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
permission: android.permission.WRITE_SYNC_SETTINGS
uses-permission: name='android.permission.INTERNET'
permission: android.permission.WAKE_LOCK
uses-permission: name='android.permission.REQUEST_INSTALL_PACKAGES'
permission: android.permission.REQUEST_DELETE_PACKAGES
permission: android.permission.SET_DEBUG_APP
permission: android.permission.INSTALL_PACKAGES
permission: android.permission.REBOOT
permission: android.permission.SHUTDOWN
permission: android.permission.DEVICE_POWER
permission: android.permission.WRITE_SECURE_SETTINGS
permission: android.permission.UPDATE_DEVICE_STATS
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'

我尝试使用此命令授予权限,但未成功

adb shell pm grant com.xxx.remotemanagementservice android.permission.INTERNET adb shell pm grant com.xxx.remotemanagementservice android.permission.ACCESS_WIFI_STATE adb shell pm grant com.xxx.remotemanagementservice android.permission.ACCESS_NETWORK_STATE adb shell pm grant com.xxx.remotemanagementservice android.permission.CHANGE_WIFI_STATE adb shell pm grant com.xxx.remotemanagementservice android.permission.CHANGE_NETWORK_STATE adb shell pm grant com.xxx.remotemanagementservice android.permission.ACCESS_FINE_LOCATION adb shell pm grant com.xxx.remotemanagementservice android.permission.CHANGE_WIFI_MULTICAST_STATE adb shell pm grant com.xxx.remotemanagementservice android.permission.WRITE_SETTINGS adb shell pm grant com.xxx.remotemanagementservice android.permission.WRITE_EXTERNAL_STORAGE adb shell pm grant com.xxx.remotemanagementservice android.permission.WRITE_SYNC_SETTINGS adb shell pm grant com.xxx.remotemanagementservice android.permission.WAKE_LOCK adb shell pm grant com.xxx.remotemanagementservice android.permission.REQUEST_INSTALL_PACKAGES adb shell pm grant com.xxx.remotemanagementservice android.permission.REQUEST_DELETE_PACKAGES adb shell pm grant com.xxx.remotemanagementservice android.permission.SET_DEBUG_APP adb shell pm grant com.xxx.remotemanagementservice android.permission.INSTALL_PACKAGES adb shell pm grant com.xxx.remotemanagementservice android.permission.REBOOT adb shell pm grant com.xxx.remotemanagementservice android.permission.SHUTDOWN adb shell pm grant com.xxx.remotemanagementservice android.permission.DEVICE_POWER adb shell pm grant com.xxx.remotemanagementservice android.permission.WRITE_SECURE_SETTINGS adb shell pm grant com.xxx.remotemanagementservice android.permission.UPDATE_DEVICE_STATS adb shell pm grant com.xxx.remotemanagementservice android.permission.ACCESS_COARSE_LOCATION

0 个答案:

没有答案