custom attributes or custom data for assigning property/values to an application

Hi,

Is there any way via example custom attributes or custom data, to set 3 different values to an application?
For example, the application (we install via MC) we have has 3 values that needs to be filled in at first start. One of the values is unique per device.

Is there any way to automate this via SOTI MobiControl instead of manually having to enter this?

The device is a Sunmi P2 Lite SE, Android Classic

Thanks

7 months ago
SOTI MobiControl
ANSWERS
RS
Rafael Schäfer Platinum Contributor
7 months ago

The app needs to be compatible with managed app config, then you can provide this data directly via Soti in it's (enterprise) app policy using macros or direct input.

Just to mention, ofc, you also could create an xml/ini file from Soti providing such data and the app reads it but Android is tightening the possibility of apps accessing several folder paths that this can cause problems regarding folder permissions to write/read the relevant file.

RC
Raymond Chan Diamond Contributor
7 months ago

As your devices are Sunmi P2 Lite SE enrolled with Android Classic device agent, remote configuration of managed app parameter by MobiControl server via industrial-standard AppConfig framework does not work for your case even if your app binary supports AppConfig.  If your device firmware get enhanced and can eventually be enrolled successfully with Android-Enterprise device agent, then the AppConfig framework is the simplest solution.

If your company owns the app such that it can be modified, then either one of the following approaches can be used:

1. Add codes in the app to read data from a file on the device, and use MobiControl file-sync/app policy/script to send/write required property/values in data file in predefined public device directory readable by the app.

2. Add codes in the app to receive customized Android intent with arguments covering your required properties/values, and use legacy MobiControl script  command sendintent (interactively, or in file-sync policy pre-script, or app-policy post-install script) to deploy the  parameters to the app.

Macros of custom-attributes can be used in script in either of the above approaches, and custom-attribute values for large number of devices can be imported in bulk with CSV file.

ZC
Zafer Cigdem Platinum Contributor
7 months ago

I agree with Raymond,

I'd advice the same as Raymond especially if it's your own application or 3rd party application that can be modified for some sections.

We've done something similar as mentioned on Point-1 to direct the app to a specific path to read the data and continue/trigger action when required.

NS
Nathalie S
7 months ago

Thanks Raymond for the reply. We will look into this!

RS
Rafael Schäfer Platinum Contributor
7 months ago

Hmm, learned something new. Thanks @Raymond.
I didn't know that the managed app config part won't work on Android Classic managed devices. But very important and good to know.

But still your first possibility matches with my second mentioned which i guess will be the easiest way to go for her then.

So, sorry@ Nathalie for this maybe caused irritation.

NS
Nathalie S
7 months ago

No worries, thank you for sharing your idea

A
APMOD
7 months ago

Hi Nathalie ,

Thank you for your post on SOTI Pulse.

Thanks Raymond and Rafael for responding to the post, your expertise and willingness to help are greatly appreciated!

Could you kindly let us know if the issue has been resolved?

Could you please mark the post as answer if this discussion answered your query?

If you have any additional questions or concerns, please don’t hesitate to reach out. We are here to provide support and assistance whenever you need it.

Kind regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |