Android > get device information %MCDEVICENAME%

Android > get device information %MCDEVICENAME%

Hi all,

anyone know if it possible, in Android, get device information %MCDEVICENAME% and write it in a file in same device ?

 

thanks

 

Gian Luca

5 Answers

Order By:   Standard | Newest | Votes
RRMOD@SOTI | posted this 19 May 2021

Hi Gian,

 

Thanks for requesting from Support Staff.

 

Please provide the device model(s) is/are you using?  Are you using  Android Plus or Android Enterprise device agent(s)/ windows enrollment.

Kindly find the list of available Macros  and the use cases. You can use macros to automatically pull information from your devices and input it as a value into SOTI MobiControl. For example, when enrolling your devices, you can instruct SOTI MobiControl to name your devices according to data specific to each device, such as a device's IMEI number or MAC address.

You can use macros in various places throughout the SOTI MobiControl console such as device naming during enrollment, certain profile configurations and other device configuration and tracking actions.

Note: Macros are resolved whenever a device checks into SOTI MobiControl and updated accordingly. Therefore, device names will change to reflect new information.
 
 
%MCDEVICENAME% is basically a variable for device name assigned by SOTI for the enrolled devices. You could use this variable in your SOTI scripts to get device name value for each devices (especially helpful if you are doing a general script that can be used for any devices enrolled in SOTI)Use can also use the following macro to get device name.

 

Personalized Device Name       %PERSONALIZED_DEVICE_NAME%  

 

 

Also, if this post has helped you in solving your inquiry, I would request you to mark the particular comment as "is solution", so others may benefit from this information.

 
 

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

  • 0
  • 0
Matt Dermody | posted this 19 May 2021

There are read/write functions available in the new(ish) javascripting options for the Android Enterprise devices:

 

https://www.soti.net/mc/help/javascriptapi/en/mobicontrol.io.File.html#writeText

  • 0
  • 0
Gian Luca | posted this 20 May 2021

Hi,

 

device model is Honeywell Thor VM1 Android \ Android Plus.

 

thanks

 

Gian Luca

  • 0
  • 0
Raymond Chan | posted this 21 May 2021

While there are new javascript command supporting limited file write operation as mentioned by Matt,  it's a pity that many predefined macros and device status are still not yet supported in the Javscript runtime library despite my repeated feature-requests made in the last 12-18 months.

 

  • 0
  • 0
Gian Luca | posted this 25 May 2021

Hi,

 

if possible, in a Honeywell  Android device I need a file, example devname.txt, and inside the file 

devicename = %devicename%

 

Thanks,

 

Gian Luca

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback