Upgrade to Pro — share decks privately, control downloads, hide ads and more …

BluetoothDevice.getName()に裏切られた話

Moyuru Aizawa
September 01, 2023

 BluetoothDevice.getName()に裏切られた話

Moyuru Aizawa

September 01, 2023
Tweet

More Decks by Moyuru Aizawa

Other Decks in Programming

Transcript

  1. Moyuru Aizawa Software Engineer of Catlog, RABO. Previously at Azit,

    CyberAgent, and Eureka. Love Metal, Hardcore and EDM. MoyuruAizawa
  2. ‣ ࠷ॳͷBluetoothDevice.getName()͸ਖ਼ৗ ‣ ී௨ʹύεϫʔυೖྗը໘ʹભҠ͖ͯͯ͠Ŋ઀ଓϘλϯԡ͞Εͯ getName -> null ‣ ී௨ʹύεϫʔυೖྗը໘ʹભҠ͖ͯͯ͠ŊLaunchedEffectͰ͍͖ͳ ΓgetName

    -> ͱΕΔ ‣ લը໘ΛͿͬͱ͹ͯ͠ύεϫʔυೖྗը໘ʹભҠŊ͸͡Ίͯ BluetoothDeviceͱconnect͢ΔλΠϛϯάͰgetName -> ͱΕΔ ͜͜·ͰͰΘ͔͍ͬͯΔ͜ͱ