Scripts on Android Enterprise

NS

I am having difficulty sending some scripts to my Android Enterprise device - Samsung A50, Android 9.

Our platform is version 15.0.1.1181 and the agent version is 14.1.6.1018.

6 years ago
Android Scripting
ANSWERS
J
JVMOD@SOTI
6 years ago

Hello Natalie,

Thank you for your post,

does your device go offline when you try to perform this task? can you please verify what is the sleep time of the device and also do you have dose mode enabled on the device or feature control profile which has doze mode enabled?

Regards,

RC
Raymond Chan
6 years ago

It seems that you try to kill an application and then restart it.  Based on what you described, I would suggest you to add time delay between the kill and restart operation  using "sleep  #" script command.  I would try with 3 -or 5-second delay if I were you.

Good luck.

NS
Natalie Shield
6 years ago

Hello,

The device remains online throughout all of this process. The devices are set to lock after 10 minutes of inactivity and doze mode is disabled on our devices.

Thanks

NS
Natalie Shield
6 years ago

Thank you for your suggestion of a time delay, I will try that now.

Thanks

RC
Raymond Chan
6 years ago

If 3- or 5-second delay doesn't work,  you can try with a longer delay (say 25-30 seconds).  If it works,  reduce the delay gradually in more test(s)  until the mechanism start to fail.