mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 10:11:17 +00: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:
parent
c332715e4a
commit
4e3a30b515
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user