SlideShare a Scribd company logo
About Beacon Russia 2014
Beacon in Android
Maxim Kabluka
About Beacon Russia 2014
Beacon в Android
About Beacon Russia 2014
Beacon в Android
Android 4.3
Jelly Bean
About Beacon Russia 2014
Beacon в Android
=
About Beacon Russia 2014
AndroidManifest.xml:
...
<uses-feature
android:name="android.hardware.bluetooth_le"
android:required="true" />
<uses-permission
android:name="android.permission.BLUETOOTH" />
<uses-permission
android:name="android.permission.BLUETOOTH_ADMIN" />
...
Usage of BLE
About Beacon Russia 2014
public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord);
scanRecord = d6 be 89 8e 40 24 05 a2 17 6e 3d 71 02 01 1a 1a ff 4c 00 02 15 e2 c5
6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 00 00 00 00 c5 52 ab 8d 38 a5
d6 be 89 8e # Access address for advertising data
40 # Advertising Channel PDU Header byte 0
24 # Advertising Channel PDU Header byte 1
05 a2 17 6e 3d 71 # Bluetooth Mac address
02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 00 00 00 00
c5 # Bluetooth advertisement
52 ab 8d 38 a5 # checksum
http://stackoverflow.com/questions/18906988/what-is-the-ibeacon-bluetooth-profile
Scanning
About Beacon Russia 2014
Bluetooth advertisement = 02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48
d2 b0 60 d0 f5 a7 10 96 e0 00 00 00 00 c5
02 # Number of bytes that follow in first AD structure
01 # Flags AD type
1A # Flags value 0x1A = 000011010
1A # Number of bytes that follow in second (and last) AD structure FF # Manufacturer
specific data AD type
4C 00 # Company identifier code (0x004C == Apple)
02 # Byte 0 of iBeacon advertisement indicator
15 # Byte 1 of iBeacon advertisement indicator
e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 # iBeacon proximity uuid
00 00 # major
00 00 # minor
c5 # The 2's complement of the calibrated Tx Power
http://stackoverflow.com/questions/18906988/what-is-the-ibeacon-bluetooth-profile
Advertisement data
About Beacon Russia 2014
Intervals
t
Scanning
Signal emission
1sec
About Beacon Russia 2014
Bugs
About Beacon Russia 2014
Open issues
About Beacon Russia 2014
Android 5.0 Lollipop
● Peripheral mode
● ScanFilter
● ScanSettings
About Beacon Russia 2014
Thank you for your attention!

More Related Content

Similar to Beacons in Androind - About Beacon Russia 2014

IoThings you don't even need to hack
IoThings you don't even need to hackIoThings you don't even need to hack
IoThings you don't even need to hack
Slawomir Jasek
 
[1C2]webrtc 개발, 현재와 미래
[1C2]webrtc 개발, 현재와 미래[1C2]webrtc 개발, 현재와 미래
[1C2]webrtc 개발, 현재와 미래
NAVER D2
 
Hacking Of MIBand 3
Hacking Of MIBand 3Hacking Of MIBand 3
Hacking Of MIBand 3
Mahendrs Purbia
 
CISCO Live SD-WAN Technology Bi-Diractional
CISCO Live SD-WAN Technology Bi-DiractionalCISCO Live SD-WAN Technology Bi-Diractional
CISCO Live SD-WAN Technology Bi-Diractional
sachidaddjrt
 
Electrical Schematic of PowerPC GNU/Linux Notebook
Electrical Schematic of PowerPC GNU/Linux NotebookElectrical Schematic of PowerPC GNU/Linux Notebook
Electrical Schematic of PowerPC GNU/Linux Notebook
Roberto Innocenti
 
CCNP ENCOR ICT.pdf
CCNP ENCOR ICT.pdfCCNP ENCOR ICT.pdf
CCNP ENCOR ICT.pdf
dali790735
 
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
SilvioDias29
 
クラウドネイティブ時代の分散トレーシング - Distributed Tracing in a Cloud Native Age
クラウドネイティブ時代の分散トレーシング - Distributed Tracing in a Cloud Native Ageクラウドネイティブ時代の分散トレーシング - Distributed Tracing in a Cloud Native Age
クラウドネイティブ時代の分散トレーシング - Distributed Tracing in a Cloud Native Age
Yoichi Kawasaki
 
Ccna 4 Chapter 3 V4.0 Answers
Ccna 4 Chapter 3 V4.0 AnswersCcna 4 Chapter 3 V4.0 Answers
Ccna 4 Chapter 3 V4.0 Answers
ccna4discovery
 
Hp 15 ay series bdl50 la-d704 p
Hp 15 ay series bdl50 la-d704 pHp 15 ay series bdl50 la-d704 p
Hp 15 ay series bdl50 la-d704 p
JosPinaya
 
DetailsiBeacon_endocsSetupBeaconInIOS.pdf
DetailsiBeacon_endocsSetupBeaconInIOS.pdfDetailsiBeacon_endocsSetupBeaconInIOS.pdf
DetailsiBeacon_endocsSetupBeaconInIOS.pdf
SomnathKhamaru1
 
Nse4 fgt 6.0
Nse4 fgt 6.0Nse4 fgt 6.0
Nse4 fgt 6.0
Salem Trabelsi
 
Jade moon-how html5 to reduce sw costs
Jade moon-how html5 to reduce sw costsJade moon-how html5 to reduce sw costs
Jade moon-how html5 to reduce sw costs
Jade Moon
 
RPKI: An Operator’s Implementation
RPKI: An Operator’s ImplementationRPKI: An Operator’s Implementation
RPKI: An Operator’s Implementation
MyNOG
 
DEF CON 27 - XILING GONG PETER PI - exploiting qualcom wlan and modem over th...
DEF CON 27 - XILING GONG PETER PI - exploiting qualcom wlan and modem over th...DEF CON 27 - XILING GONG PETER PI - exploiting qualcom wlan and modem over th...
DEF CON 27 - XILING GONG PETER PI - exploiting qualcom wlan and modem over th...
Felipe Prado
 
STS Platform
STS PlatformSTS Platform
STS Platform
Hank Lydick
 
Cube mgmt-15-mt-book
Cube mgmt-15-mt-bookCube mgmt-15-mt-book
Cube mgmt-15-mt-book
icns01
 
Beacon bluetooth low energy
Beacon bluetooth low energyBeacon bluetooth low energy
Beacon bluetooth low energy
Arif Huda
 
The (Io)Things you don't even need to hack. Should we worry?
The (Io)Things you don't even need to hack. Should we worry?The (Io)Things you don't even need to hack. Should we worry?
The (Io)Things you don't even need to hack. Should we worry?
SecuRing
 
CCNA 200-120 Exam Questions
CCNA 200-120 Exam QuestionsCCNA 200-120 Exam Questions
CCNA 200-120 Exam Questions
Eng. Emad Al-Atoum
 

Similar to Beacons in Androind - About Beacon Russia 2014 (20)

IoThings you don't even need to hack
IoThings you don't even need to hackIoThings you don't even need to hack
IoThings you don't even need to hack
 
[1C2]webrtc 개발, 현재와 미래
[1C2]webrtc 개발, 현재와 미래[1C2]webrtc 개발, 현재와 미래
[1C2]webrtc 개발, 현재와 미래
 
Hacking Of MIBand 3
Hacking Of MIBand 3Hacking Of MIBand 3
Hacking Of MIBand 3
 
CISCO Live SD-WAN Technology Bi-Diractional
CISCO Live SD-WAN Technology Bi-DiractionalCISCO Live SD-WAN Technology Bi-Diractional
CISCO Live SD-WAN Technology Bi-Diractional
 
Electrical Schematic of PowerPC GNU/Linux Notebook
Electrical Schematic of PowerPC GNU/Linux NotebookElectrical Schematic of PowerPC GNU/Linux Notebook
Electrical Schematic of PowerPC GNU/Linux Notebook
 
CCNP ENCOR ICT.pdf
CCNP ENCOR ICT.pdfCCNP ENCOR ICT.pdf
CCNP ENCOR ICT.pdf
 
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
ENCOR SA Scenario Especifica o algoritmo de hashing de senha a ser usado, nes...
 
クラウドネイティブ時代の分散トレーシング - Distributed Tracing in a Cloud Native Age
クラウドネイティブ時代の分散トレーシング - Distributed Tracing in a Cloud Native Ageクラウドネイティブ時代の分散トレーシング - Distributed Tracing in a Cloud Native Age
クラウドネイティブ時代の分散トレーシング - Distributed Tracing in a Cloud Native Age
 
Ccna 4 Chapter 3 V4.0 Answers
Ccna 4 Chapter 3 V4.0 AnswersCcna 4 Chapter 3 V4.0 Answers
Ccna 4 Chapter 3 V4.0 Answers
 
Hp 15 ay series bdl50 la-d704 p
Hp 15 ay series bdl50 la-d704 pHp 15 ay series bdl50 la-d704 p
Hp 15 ay series bdl50 la-d704 p
 
DetailsiBeacon_endocsSetupBeaconInIOS.pdf
DetailsiBeacon_endocsSetupBeaconInIOS.pdfDetailsiBeacon_endocsSetupBeaconInIOS.pdf
DetailsiBeacon_endocsSetupBeaconInIOS.pdf
 
Nse4 fgt 6.0
Nse4 fgt 6.0Nse4 fgt 6.0
Nse4 fgt 6.0
 
Jade moon-how html5 to reduce sw costs
Jade moon-how html5 to reduce sw costsJade moon-how html5 to reduce sw costs
Jade moon-how html5 to reduce sw costs
 
RPKI: An Operator’s Implementation
RPKI: An Operator’s ImplementationRPKI: An Operator’s Implementation
RPKI: An Operator’s Implementation
 
DEF CON 27 - XILING GONG PETER PI - exploiting qualcom wlan and modem over th...
DEF CON 27 - XILING GONG PETER PI - exploiting qualcom wlan and modem over th...DEF CON 27 - XILING GONG PETER PI - exploiting qualcom wlan and modem over th...
DEF CON 27 - XILING GONG PETER PI - exploiting qualcom wlan and modem over th...
 
STS Platform
STS PlatformSTS Platform
STS Platform
 
Cube mgmt-15-mt-book
Cube mgmt-15-mt-bookCube mgmt-15-mt-book
Cube mgmt-15-mt-book
 
Beacon bluetooth low energy
Beacon bluetooth low energyBeacon bluetooth low energy
Beacon bluetooth low energy
 
The (Io)Things you don't even need to hack. Should we worry?
The (Io)Things you don't even need to hack. Should we worry?The (Io)Things you don't even need to hack. Should we worry?
The (Io)Things you don't even need to hack. Should we worry?
 
CCNA 200-120 Exam Questions
CCNA 200-120 Exam QuestionsCCNA 200-120 Exam Questions
CCNA 200-120 Exam Questions
 

More from Neklo

Magento applications and modules functional testing
Magento applications and modules functional testingMagento applications and modules functional testing
Magento applications and modules functional testing
Neklo
 
iBeacon в гиперлокальном маркетинге
iBeacon в гиперлокальном маркетингеiBeacon в гиперлокальном маркетинге
iBeacon в гиперлокальном маркетинге
Neklo
 
Beacon Smart Store on About Beacon Russia 2014
Beacon Smart Store on About Beacon Russia 2014Beacon Smart Store on About Beacon Russia 2014
Beacon Smart Store on About Beacon Russia 2014
Neklo
 
Применение IBeacon и Beacon в сферах бизнеса
Применение IBeacon и Beacon в сферах бизнеса Применение IBeacon и Beacon в сферах бизнеса
Применение IBeacon и Beacon в сферах бизнеса
Neklo
 
Beacon and iBeacon Technology
Beacon and iBeacon Technology Beacon and iBeacon Technology
Beacon and iBeacon Technology
Neklo
 
Create scalable and failure safe cluster MagentoCommerce using cloud hosting ...
Create scalable and failure safe cluster MagentoCommerce using cloud hosting ...Create scalable and failure safe cluster MagentoCommerce using cloud hosting ...
Create scalable and failure safe cluster MagentoCommerce using cloud hosting ...
Neklo
 

More from Neklo (6)

Magento applications and modules functional testing
Magento applications and modules functional testingMagento applications and modules functional testing
Magento applications and modules functional testing
 
iBeacon в гиперлокальном маркетинге
iBeacon в гиперлокальном маркетингеiBeacon в гиперлокальном маркетинге
iBeacon в гиперлокальном маркетинге
 
Beacon Smart Store on About Beacon Russia 2014
Beacon Smart Store on About Beacon Russia 2014Beacon Smart Store on About Beacon Russia 2014
Beacon Smart Store on About Beacon Russia 2014
 
Применение IBeacon и Beacon в сферах бизнеса
Применение IBeacon и Beacon в сферах бизнеса Применение IBeacon и Beacon в сферах бизнеса
Применение IBeacon и Beacon в сферах бизнеса
 
Beacon and iBeacon Technology
Beacon and iBeacon Technology Beacon and iBeacon Technology
Beacon and iBeacon Technology
 
Create scalable and failure safe cluster MagentoCommerce using cloud hosting ...
Create scalable and failure safe cluster MagentoCommerce using cloud hosting ...Create scalable and failure safe cluster MagentoCommerce using cloud hosting ...
Create scalable and failure safe cluster MagentoCommerce using cloud hosting ...
 

Beacons in Androind - About Beacon Russia 2014

  • 1. About Beacon Russia 2014 Beacon in Android Maxim Kabluka
  • 2. About Beacon Russia 2014 Beacon в Android
  • 3. About Beacon Russia 2014 Beacon в Android Android 4.3 Jelly Bean
  • 4. About Beacon Russia 2014 Beacon в Android =
  • 5. About Beacon Russia 2014 AndroidManifest.xml: ... <uses-feature android:name="android.hardware.bluetooth_le" android:required="true" /> <uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> ... Usage of BLE
  • 6. About Beacon Russia 2014 public void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord); scanRecord = d6 be 89 8e 40 24 05 a2 17 6e 3d 71 02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 00 00 00 00 c5 52 ab 8d 38 a5 d6 be 89 8e # Access address for advertising data 40 # Advertising Channel PDU Header byte 0 24 # Advertising Channel PDU Header byte 1 05 a2 17 6e 3d 71 # Bluetooth Mac address 02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 00 00 00 00 c5 # Bluetooth advertisement 52 ab 8d 38 a5 # checksum http://stackoverflow.com/questions/18906988/what-is-the-ibeacon-bluetooth-profile Scanning
  • 7. About Beacon Russia 2014 Bluetooth advertisement = 02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 00 00 00 00 c5 02 # Number of bytes that follow in first AD structure 01 # Flags AD type 1A # Flags value 0x1A = 000011010 1A # Number of bytes that follow in second (and last) AD structure FF # Manufacturer specific data AD type 4C 00 # Company identifier code (0x004C == Apple) 02 # Byte 0 of iBeacon advertisement indicator 15 # Byte 1 of iBeacon advertisement indicator e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 # iBeacon proximity uuid 00 00 # major 00 00 # minor c5 # The 2's complement of the calibrated Tx Power http://stackoverflow.com/questions/18906988/what-is-the-ibeacon-bluetooth-profile Advertisement data
  • 8. About Beacon Russia 2014 Intervals t Scanning Signal emission 1sec
  • 10. About Beacon Russia 2014 Open issues
  • 11. About Beacon Russia 2014 Android 5.0 Lollipop ● Peripheral mode ● ScanFilter ● ScanSettings
  • 12. About Beacon Russia 2014 Thank you for your attention!