Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24492] Android: Ti.Platform.macaddress returns wrong value in Android 6. Tested with SDK 6.0.1.GA.

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionNot Our Bug
Resolution Date2018-12-11T09:51:05.000+0000
Affected Version/sRelease 6.0.2
Fix Version/sn/a
ComponentsAndroid
Labelsmacaddress
ReporterSharif AbuDarda
AssigneeUnknown
Created2017-03-16T21:17:34.000+0000
Updated2018-12-11T09:51:05.000+0000

Description

Hello, I am testing the below code as a sample. Ti.Platform.macaddress returns wrong value.
var win = Ti.UI.createWindow({

    theme : "Theme.AppCompat.Fullscreen",

    backgroundColor : '#fff'

});

var macAddress = Ti.Platform.macaddress;

var btn = Ti.UI.createButton({

title : 'Pick',

top : 50,

});

btn.addEventListener('click', function() {

    Ti.API.info("macaddress: "+ macAddress);

});

win.add(btn);

win.open();
The response is
 [INFO]  macaddress: 02:00:00:00:00:00
Which is not current. Tested with Galaxy j7 Android 6.0.1. Thanks.

Comments

  1. Ercan POLAT 2017-05-22

    Facing with the same issue on Android 7.0 and 6.0. There is no problem on Android 5.x. Tested with sdks 5.2.2.GA & 6.0.3.GA & 6.0.4.GA.

JSON Source