android + permission script -> afw_set_permission_policy ?

C
Christophe
Post & Telecommunications Luxembourg

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

5 years ago
Android
ANSWERS
D
DDMOD@SOTI
5 years ago

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,

C
Christophe
5 years ago

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

RC
Raymond Chan Diamond Contributor
5 years ago (edited 5 years ago)

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.

D
DDMOD@SOTI
5 years ago

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,

C
Christophe
5 years ago

Hello,

I've send a mail at your support ..

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

thanks

WJ
Walid Jaballah
5 years ago

Hi 

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

Device agent 14.3.0.1000

Android plus 

Thanks

C
Christophe
5 years ago

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

C
Christophe
5 years ago

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 ...

C
Christophe
5 years ago (edited 5 years ago)

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