Is there a watchsettings alternative on AE?

JB
Josh Bradley
Microlise Ltd.

Hi, 

I'm trying to automate having to grant MobiControl access to apps with usage access. 

Thanks

Josh. 

6 years ago
Android
ANSWERS
MD
Matt Dermody
6 years ago
I don’t believe so. You’re trying to set permissions for apps that you install? If so, I’m not sure watchsettings would have been the right approach. You can set app permissions via scripting under AE without watchsettings or writesecuresetting.
JB
Josh Bradley
6 years ago

Hi Matt, 

I was going to try to create a script from the output from watchsettings to grant permissions to MobiControl. 

Seems crazy that enrolling the device as AE with MobiControl being the admin app doesn't grant the application all of the permissions it needs. 

I've tried these scripts but they did nothing; 

afw_set_permission_grant_state net.soti.mobicontrol.androidwork android.permission.USAGE_ACCESS_SETTINGS allow
request_appops_permission android.permission.PACKAGE_USAGE_STATS

Thanks

Josh. 

RC
Raymond Chan
6 years ago (edited 6 years ago)

The script command afw_set_permission_grant_state  does not support managing of permissions of the device agent itself.

JB
Josh Bradley
6 years ago

Hi, 

Can you recommend an alternative? 

Any suggestions are welcome.

Thanks, 

Josh. 

TM
Thomas Morgan
6 years ago

Hi Josh, have you tried installing the devices plugin? i have found this auto accepts the stats permission required for lockdown on AE. 

MD
Matt Dermody
6 years ago

Good point! I think Josh is using Zebra devices so there is definitely a plugin available. I'd be surprised if you weren't using it already however as you'd be limited to Remote View instead of Remote Control without the plugin. 

JB
Josh Bradley
6 years ago

Hi Guys, 

The device that I'm seeing this on is actually our custom device that we're waiting on a plug in from Soti. 

When we get the Plug In I'll retest and update! 

Thanks for your help!