{"action":"created","issue":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/1956","repository_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin","labels_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/1956/labels{/name}","comments_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/1956/comments","events_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/1956/events","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin/issues/1956","id":249317863,"number":1956,"title":"Android O: We are unable to get Bluetooth Mac Address","user":{"login":"mlesnic","id":19724972,"avatar_url":"https://avatars0.githubusercontent.com/u/19724972?v=4","gravatar_id":"","url":"https://api.github.com/users/mlesnic","html_url":"https://github.com/mlesnic","followers_url":"https://api.github.com/users/mlesnic/followers","following_url":"https://api.github.com/users/mlesnic/following{/other_user}","gists_url":"https://api.github.com/users/mlesnic/gists{/gist_id}","starred_url":"https://api.github.com/users/mlesnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlesnic/subscriptions","organizations_url":"https://api.github.com/users/mlesnic/orgs","repos_url":"https://api.github.com/users/mlesnic/repos","events_url":"https://api.github.com/users/mlesnic/events{/privacy}","received_events_url":"https://api.github.com/users/mlesnic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"yaronyg","id":1480964,"avatar_url":"https://avatars3.githubusercontent.com/u/1480964?v=4","gravatar_id":"","url":"https://api.github.com/users/yaronyg","html_url":"https://github.com/yaronyg","followers_url":"https://api.github.com/users/yaronyg/followers","following_url":"https://api.github.com/users/yaronyg/following{/other_user}","gists_url":"https://api.github.com/users/yaronyg/gists{/gist_id}","starred_url":"https://api.github.com/users/yaronyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaronyg/subscriptions","organizations_url":"https://api.github.com/users/yaronyg/orgs","repos_url":"https://api.github.com/users/yaronyg/repos","events_url":"https://api.github.com/users/yaronyg/events{/privacy}","received_events_url":"https://api.github.com/users/yaronyg/received_events","type":"User","site_admin":false},"assignees":[{"login":"yaronyg","id":1480964,"avatar_url":"https://avatars3.githubusercontent.com/u/1480964?v=4","gravatar_id":"","url":"https://api.github.com/users/yaronyg","html_url":"https://github.com/yaronyg","followers_url":"https://api.github.com/users/yaronyg/followers","following_url":"https://api.github.com/users/yaronyg/following{/other_user}","gists_url":"https://api.github.com/users/yaronyg/gists{/gist_id}","starred_url":"https://api.github.com/users/yaronyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaronyg/subscriptions","organizations_url":"https://api.github.com/users/yaronyg/orgs","repos_url":"https://api.github.com/users/yaronyg/repos","events_url":"https://api.github.com/users/yaronyg/events{/privacy}","received_events_url":"https://api.github.com/users/yaronyg/received_events","type":"User","site_admin":false},{"login":"enricogior","id":3206696,"avatar_url":"https://avatars2.githubusercontent.com/u/3206696?v=4","gravatar_id":"","url":"https://api.github.com/users/enricogior","html_url":"https://github.com/enricogior","followers_url":"https://api.github.com/users/enricogior/followers","following_url":"https://api.github.com/users/enricogior/following{/other_user}","gists_url":"https://api.github.com/users/enricogior/gists{/gist_id}","starred_url":"https://api.github.com/users/enricogior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enricogior/subscriptions","organizations_url":"https://api.github.com/users/enricogior/orgs","repos_url":"https://api.github.com/users/enricogior/repos","events_url":"https://api.github.com/users/enricogior/events{/privacy}","received_events_url":"https://api.github.com/users/enricogior/received_events","type":"User","site_admin":false},{"login":"jareksl","id":10142812,"avatar_url":"https://avatars2.githubusercontent.com/u/10142812?v=4","gravatar_id":"","url":"https://api.github.com/users/jareksl","html_url":"https://github.com/jareksl","followers_url":"https://api.github.com/users/jareksl/followers","following_url":"https://api.github.com/users/jareksl/following{/other_user}","gists_url":"https://api.github.com/users/jareksl/gists{/gist_id}","starred_url":"https://api.github.com/users/jareksl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jareksl/subscriptions","organizations_url":"https://api.github.com/users/jareksl/orgs","repos_url":"https://api.github.com/users/jareksl/repos","events_url":"https://api.github.com/users/jareksl/events{/privacy}","received_events_url":"https://api.github.com/users/jareksl/received_events","type":"User","site_admin":false},{"login":"mlesnic","id":19724972,"avatar_url":"https://avatars0.githubusercontent.com/u/19724972?v=4","gravatar_id":"","url":"https://api.github.com/users/mlesnic","html_url":"https://github.com/mlesnic","followers_url":"https://api.github.com/users/mlesnic/followers","following_url":"https://api.github.com/users/mlesnic/following{/other_user}","gists_url":"https://api.github.com/users/mlesnic/gists{/gist_id}","starred_url":"https://api.github.com/users/mlesnic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlesnic/subscriptions","organizations_url":"https://api.github.com/users/mlesnic/orgs","repos_url":"https://api.github.com/users/mlesnic/repos","events_url":"https://api.github.com/users/mlesnic/events{/privacy}","received_events_url":"https://api.github.com/users/mlesnic/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2017-08-10T11:36:15Z","updated_at":"2017-08-14T14:51:31Z","closed_at":null,"body":"In Android 6, Google blocked ability to get Bluetooth Mac Address using API. We managed to make it work however by using a 'hole' and by getting Bluetooth Mac Address from Settings using reflection ([link](https://github.com/thaliproject/Thali_CordovaPlugin_BtLibrary/blob/master/BtConnectorLib/btconnectorlib2/src/main/java/org/thaliproject/p2p/btconnectorlib/internal/bluetooth/BluetoothManager.java#L407)). \r\nUnfortunately, it looks like in Android O, we are no longer able to do it, we can't get mac address and advertise it. \r\nIt looks like access to this only have apps with permissions `LOCAL_MAC_ADDRESS` ([link](https://android-developers.googleblog.com/2017/04/changes-to-device-identifiers-in.html)), and this permissions are only granted to system apps because of security reasons.\r\n\r\nWe need to find a way to get device's bluetooth mac address.\r\n\r\nEDIT: Additional links: [1](http://www.goland.org/thalilocalp2psurvivingmarshmallow/)"},"comment":{"url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/comments/322211770","html_url":"https://github.com/thaliproject/Thali_CordovaPlugin/issues/1956#issuecomment-322211770","issue_url":"https://api.github.com/repos/thaliproject/Thali_CordovaPlugin/issues/1956","id":322211770,"user":{"login":"yaronyg","id":1480964,"avatar_url":"https://avatars3.githubusercontent.com/u/1480964?v=4","gravatar_id":"","url":"https://api.github.com/users/yaronyg","html_url":"https://github.com/yaronyg","followers_url":"https://api.github.com/users/yaronyg/followers","following_url":"https://api.github.com/users/yaronyg/following{/other_user}","gists_url":"https://api.github.com/users/yaronyg/gists{/gist_id}","starred_url":"https://api.github.com/users/yaronyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaronyg/subscriptions","organizations_url":"https://api.github.com/users/yaronyg/orgs","repos_url":"https://api.github.com/users/yaronyg/repos","events_url":"https://api.github.com/users/yaronyg/events{/privacy}","received_events_url":"https://api.github.com/users/yaronyg/received_events","type":"User","site_admin":false},"created_at":"2017-08-14T14:51:31Z","updated_at":"2017-08-14T14:51:31Z","body":"BRO MODE worked last time we tested it but that was more than a year ago so most likely the code has rotted."}}
{"actor":{"display_login":"yaronyg"}}