mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-13 18:43:33 +01:00
AndroidTarget: Ensure permissions are granted for installed application
Upon clearing data of a previously installed application the runtime permissions can also be cleared, to avoid having to reinstall the application all available permissions are explicitly granted to the required application.
This commit is contained in:
@ -630,6 +630,10 @@ class PackageHandler(object):
|
||||
self.install_apk(context)
|
||||
else:
|
||||
self.reset(context)
|
||||
if self.apk_info.permissions:
|
||||
self.logger.debug('Granting runtime permissions')
|
||||
for permission in self.apk_info.permissions:
|
||||
self.target.grant_package_permission(self.apk_info.package, permission)
|
||||
self.apk_version = host_version
|
||||
|
||||
def start_activity(self):
|
||||
|
Reference in New Issue
Block a user