Is it possible for an inhouse build app to get the SOTI DevicesName

Solved
DV
Dennis Vdh
Katoen Natie

Hello, 

I'm investigating the possibility to retrieve the DeviceName used by SOTI. 
From within a inhouse build Android Application.

I'm not developing it myself, but I hoped it would be possible to get this info from Intend or JS or using some Identifier to query rest API of the server...


Devices : Android Enterprise DO
Agent v14.1.7.1117
Mobicontrol v15.2.2.1080

Thanks 

Dennis

5 years ago
Android Scripting
ANSWERS
C
Christophe
5 years ago

Hello,

we used android + and mobicontrol has a database locate on the device

when device is enroll, we copy this database and place this into a public folder

in this database we have some information ...

Perhpas with android entreprise there is also a database soti ?

Solution
RC
Raymond Chan Diamond Contributor
5 years ago

Your in-house app can implement its own intent to receive and store device name sent from MobiControl device agent at regular inteval (say every 15/30/60 minutes).

MM
Miguel Machado
2 years ago

Hi Raymond,

Do you know how can I implement this receiver? 

Which intent is send from MobiControl?

DV
Dennis Vdh
5 years ago

Wow thank you for the quick reply Raymond,

This is a very good idea.

I also stumbled on this approach. https://discussions.soti.net/thread/creating-a-text-with-device-name-in-it/
File sync a dummy file, and copy (rename) it to %devicename%.DeviceName

copy /sdcard/FileSync/AutoRunOnStartup/Rename.DeviceName /sdcard/Download/%devicename%.DeviceName

I will make sure our Developers look into both approaches.

DV
Dennis Vdh
5 years ago (edited 5 years ago)

Interesting approach.
I used similar trick to use .js scripts in lockdown. 

Update :
Thanks Bernard

It is actually possible to retrieve te .db files used by Mobicontrol Agent on Android Enterprise DO devices.

mkdir /sdcard/TEMP
copy \data\data\net.soti.mobicontrol.androidwork\databases\settings \sdcard\TEMP\SotiSettings.db