MAC Address and Wifi MAC Address field is showing unknown in Android Plus Enterprise device

Solved

I enrolled my personal Android 12 phone in soti mobicontrol using work profile. I need to fetch Mac address of the device but when pull devices data using the API and also in dashboard mac addresses fiels are coming as blank/unknown.

Any Solution to this?

Agent Version - 2024.1.1 Build 1125

Android Version - 12

a year ago
Android
ANSWERS
ZC
Zafer Cigdem
a year ago

Hi DM Org,

What you can try also, you can send out below JavaScript to your Android device and verify whether you can see any MAC address on the devices log on MobiControl Webconsole -> Device Details -> Logs section

var mac_address = mobicontrol.device.macAddress;
mobicontrol.log.info('Device MAC Address is: ' +mac_address );
 
you should see something as below:
 
Zafer
Solution
J
JCMOD@SOTI
a year ago

Hi DM Org,


Thank you for posting on SOTI Pulse.


This restriction is apart of the Android 11 privacy update. Since a MAC address is unique and should persist after a factory wipe. Google has decided to prevent developers from accessing it for work profile / normal personal devices.

However, this is possible for Work Managed and COPE devices if the MobiControl agent has the location permission granted. And applies to SSID and BSSID too for example.

Regards,

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

DO
DM Org
a year ago

I enrolled a Samsung device in Work Managed Profile and I still got mac address and wifi mac as blank

GET /device/{id} Response :

{ "$type": "DeviceAndroidForWork", "AndroidForWork": { "$type": "AndroidForWork", "AfwProfileDisabled": false, "AfwProvisionStage": "CompletedProvision", "AfwManagementType": "AfwManagedProfile", "AndroidEnterpriseName": null, "FeedbackReportPolicyEnabled": null, "IsAndroidManagementEnrolledDevice": false, "DevicePolicyController": "MobicontrolAgent" }, "BuildVersion": null, "CellularTechnology": "None", "UserIdentities": [ { "$type": "DeviceUserIdentity", "Email": null } ], "AndroidAccountType": "SkipGoogleAccountAddition", "SafetynetAttestationStatus": "PassedHardwareBacked", "AndroidEnterpriseEmail": null, "AgentUpgradeEnabled": false, "AgentVersion": "2024.1.1.1125", "PlugInVersion": "", "AndroidApiLevel": 30, "AndroidDeviceAdmin": true, "AndroidRcLibraryVersion": "1.25.2.2", "Antivirus": { "$type": "Antivirus", "LastEmptyQuarantine": 0, "LastVirusScan": 0, "AntivirusVersion": "", "InfectedFilesCount": 0, "LastScanDuration": 0, "QuarantinedFilesCount": null }, "AsuLevel": 46, "Memory": { "$type": "Memory", "AvailableExternalStorage": 17350041600, "AvailableMemory": 3472400384, "AvailableSDCardStorage": null, "AvailableStorage": 17371013120, "TotalExternalStorage": 120080805888, "TotalMemory": 7949307904, "TotalSDCardStorage": null, "TotalStorage": 120101777408 }, "BatteryStatus": 89, "CanResetPassword": true, "CellularCarrier": "airtel", "CellularSignalStrength": 100, "CustomData": [], "DeviceTerms": null, "DeviceUserInfo": null, "MultiUserDeviceInfo": null, "ExchangeBlocked": false, "ExchangeAccessRequest": "None", "ExchangeStatus": "Accepted", "HardwareEncryptionCaps": 5, "HardwareEncryption": "Block, DataProtectionEnabled", "HardwareSerialNumber": "RZ8NA28XBXP", "MobileSerialNumber": "", "HardwareVersion": null, "ICCID": "89911100000589021600", "IMEI_MEID_ESN": "356062111062519", "InRoaming": true, "IntegratedApplications": null, "Ipv6": "", "IsAgentCompatible": true, "IsAgentless": false, "IsEncrypted": true, "IsOSSecure": true, "LastCheckInTime": "2024-04-16T05:10:57Z", "LastAgentConnectTime": "2024-04-16T05:10:19Z", "LastAgentDisconnectTime": "2024-04-16T05:36:54Z", "LastLoggedOnUser": null, "NetworkBSSID": "02:00:00:00:00:00", "NetworkConnectionType": "Wifi", "NetworkRSSI": -48, "NetworkSSID": "", "OEMVersion": "RP1A.200720.012.M315FXXS2BVB7", "PasscodeEnabled": false, "PasscodeStatus": "Unknown", "PersonalizedName": "Galaxy M31", "PhoneNumber": null, "SEForAndroidStatus": null, "SelectedApn": "Unavailable", "SubscriberNumber": "404022408540559", "SupportedApis": [ "AndroidRcRemoteView", "AndroidWorkManagedProfile", "AndroidVideoStreaming" ], "EFOTAFirmwareVersion": null, "CarrierCode": null, "DeviceFirmwareUpgrade": null, "BuildSecurityPatch": "2022-03-01", "LifeGuardVersion": "", "Elm": null, "IsCharging": false, "MXVersion": null, "AndroidEnterpriseMigrationStatus": "None", "UserAccountsCount": 0, "ExchangeOnlineEmailAccess": [], "IsAdminModeEnabled": false, "TimeZone": "Asia/Kolkata", "Kpe": null, "Sims": [ { "$type": "DeviceSimInfo", "Type": "SecondarySim", "CarrierSettingsVersion": null, "CurrentCarrierNetwork": "airtel", "CurrentMCC": "404", "CurrentMNC": "02 ", "EID": null, "ICCID": "8991000905487803845", "ImeiOrMeid": "356062111062519", "IMSI": "404022408540559", "IsDataPreferred": false, "IsRoaming": false, "IsVoicePreferred": false, "LabelID": null, "PhoneNumber": null, "CellularSignalStrength": 100 } ], "AgentCompatibilityStatus": "Compatible", "Kind": "AndroidForWork", "CompliancePolicyStatus": "Compliant", "ComplianceStatus": true, "ComplianceItems": [ { "$type": "ComplianceItem", "ComplianceType": "IsSecured", "ComplianceValue": true }, { "$type": "ComplianceItem", "ComplianceType": "IsDeviceAdmin", "ComplianceValue": null }, { "$type": "ComplianceItem", "ComplianceType": "NotWiped", "ComplianceValue": true }, { "$type": "ComplianceItem", "ComplianceType": "IsEnabled", "ComplianceValue": true }, { "$type": "ComplianceItem", "ComplianceType": "IsEnrolled", "ComplianceValue": true } ], "DeviceId": "356062111062519", "DeviceName": "AndroidEnterprise 00003", "EnrollmentType": "Device", "EnrollmentTime": "2024-04-16T05:10:18.32Z", "EnrollmentPolicyReferenceId": "3f004cc4-1825-47e4-bab3-7501d660724c", "Family": "AndroidPlus", "HostName": "10.233.3.16", "IsAgentOnline": false, "CustomAttributes": [], "MACAddress": "", "BluetoothMAC": null, "WifiMAC": null, "Manufacturer": "samsung", "Mode": "Active", "Model": "SM-M315F", "OSVersion": "11", "Path": "\\\\My Company\\Management Devices", "Platform": "AndroidPlus", "ServerName": "A0020372", "Watermark": -32750, "AzureRegistrationMode": "Unknown", "AzureRegistrationStatus": "Unknown", "AzureDeviceId": "00000000-0000-0000-0000-000000000000", "AzureComplianceStatus": "NotApplicable", "AzureUserId": "00000000-0000-0000-0000-000000000000", "VpnIp": null, "VpnIPv6": null }

Agent : 2024.1.1.1

Android : 11

Profile : Work Managed

Any solution to this?

J
JCMOD@SOTI
a year ago

Hi DM Org,

Can you confirm that you've granted the location permission for the MobiControl agent on your affected test device?

Regards,

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

Not sure about that regarding BYOD but as this device is not an Enterprise Recommended device (which will be the most BYOD i think), isn't it possible that the relevant information just can' be fetched because of that (if the OS doesn't provide the relevant API?

J
JCMOD@SOTI
a year ago

Hi Rafael,

It seems from my side, as long as the location permission has been enabled for the MobiControl android agent, and the management type is AE Work Managed or COPE, then the MAC Address and other similar values should be accessible.

If that doesn't work, it could be related to if the device is Android Enterprise Recommended, but that would need to be confirmed.

Regards,

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

DO
DM Org
a year ago

Location permission was on by default

J
JCMOD@SOTI
a year ago

Hi DM Org,

I would like to recommend that you create a Support Case with us to look into this further. As it should work, generally speaking, as long as the management type is Work Managed or COPE.

You can raise a ticket directly through https://soti.net/services/log-a-case/ or by emailing us at support@soti.net.
 

Regards,

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

EG
Edgar Gomez
a year ago

Is the MAC address visible in the webconsole?

DO
DM Org
a year ago

No

RC
Raymond Chan Diamond Contributor
a year ago

What is the model of your problematic device?  Have you tested with other device brand/model(s) on the same server to see if there is similar problem.

As mentioned by others in various earlier posts in this thread,  MAC and Wifi MAC address should be readable by the device agent for AE device in work managed or COPE mode.  If your problem is specific to only one device model of a particular firmware version and not found in other test device(s), then the problem is likely related to the firmware of the device model.

V
VPMod@SOTI.net
a year ago

Hi DM Org

 
Thanks for posting on SOTI Pulse. 

Have you had an opportunity to test the suggested solutions by Rafael, Raymond, and Zafar and has it successfully addressed your query?

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

 
If not, or If you have any additional questions or concerns, please don't hesitate to reach out. We're dedicated to providing assistance and support.

Technical Support, SOTI Inc.