android + permission script -> afw_set_permission_policy ?

android + permission script -> afw_set_permission_policy ?

Hello,

we have mobicontrol in version v 13 0 34 54

we used many zebra TC75X on android 7 with client mobicontrol on version 13 6 0 1476.

Each time we install an app the user need to ACCEPT permission ...

 

I would like to automate this, i've find in doc of mobicontrol the script for android + :

afw_set_permission_policy grant

 

I've include this inside the package builder (pre install script), add my apk inside.

add package inside a profile and add profile to a device.

 

But each time the permission appear on screen and user need to ACCEPT ...

 

If I look inside the log of mobicontrol i have this entry: Script command is not supported by device (afw_set_permission_grant_state)

 

Must i update the client or ?

Anyone can tell me how i can automate this because we have many device ?

 

thanks for your time

9 Answers

Order By:   Standard | Newest | Votes
christopheBERNARD | posted this 05 November 2020

Hello,

just for information about this topic

the help of mobicontrol is not true

 

afw_set_permission_policy

 

is documented on the android+ help but it's only for android entreprise

 

 

 

  • 1
  • 0
christopheBERNARD | posted this 31 August 2020

Hello,

 

I've send a mail at your support ..

When i will be some respond i will publish here ...

 

thanks

  • 1
  • 0
christopheBERNARD | posted this 03 September 2020

Hello,

i've some news about my ticket and the document i have refer in this topic is for the version of mobicontrol > v 14

 

Actually, i have a trial version v 14 who is installed with a license for three month ..

I will test this ...

 

  • 0
  • 0
christopheBERNARD | posted this 02 September 2020

hello,

actually not ...and no news from support ..

 

The only solution i've found is to use stageNow, install the apk in a folder and run stage now script ...

I've tested and it's work well ..But I'm not fan of this solution, because we need to copy the apk inside a folder and run a script ...

 

Two actions ...two risk of problem compare to install the apk DIRECTLY

  • 0
  • 0
Walid Jaballah | posted this 02 September 2020

Hi 

Has this been resolved... I am having similar issue with

 

Device agent 14.3.0.1000

Android plus 

 

Thanks

  • 0
  • 0
DDMOD@SOTI | posted this 28 August 2020

Hi Christophe,

 

As said in above posts, most of the scripts work well depending on the enrollment type of the device. I would like you to reach out to SOTI Support Team either via support case(click here) or call (click here) to understand the scenario and provide the solution accordingly.

 

Regards,

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 0
  • 0
Raymond Chan | posted this 27 August 2020

You are using an OEM specfic Android+ agent rather than the generic Android-Enterprise device agent.  The script comand mentioned does not work on the former, and only works partially on the latter (based on some tests done about a year ago).  I myself am waiting for a more stable set of script commands for handling apps permissions on AE platform.

 

 

  • 0
  • 0
christopheBERNARD | posted this 26 August 2020

Hello DDMOD,

thanks for your reply, yes device is enrolled by android +

i've found the doc here -> 

https://soti.net/mc/help/v14.3/en/scriptcmds/reference/androidplus.html

 

But i've try but not work ...

Or perhpas something i do it's not on the right way ...

 

- create package

- add pre install script (with permission flag)

- add apk

- add package builder inside mobicontrol

- add package to profile and publish to device

 

In the log we have -> script command is not supported by device 

 

thanks for your time

 

  • 0
  • 0
DDMOD@SOTI | posted this 25 August 2020

Hi Christophe,

 

Thanks for the post!

Can you please confirm the enrollment type i.e. Android Plus or Android Enterprise?

The scripts you provided will not work on Android Plus devices as the 'afw' only works for Android Enterprise.

 

Regards,

Technical Support | SOTI Inc. |+1-888-494-SOTI (7684) | support@soti.net | www.soti.net |

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback