[TIMOB-24492] Android: Ti.Platform.macaddress returns wrong value in Android 6. Tested with SDK 6.0.1.GA.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2018-12-11T09:51:05.000+0000 |
Affected Version/s | Release 6.0.2 |
Fix Version/s | n/a |
Components | Android |
Labels | macaddress |
Reporter | Sharif AbuDarda |
Assignee | Unknown |
Created | 2017-03-16T21:17:34.000+0000 |
Updated | 2018-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.
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.