Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Android端末のNFCを無効化しようとしてダメだった話
Search
みっちゃん
March 14, 2023
Programming
7k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Android端末のNFCを無効化しようとしてダメだった話
Mobile勉強会 Wantedly × チームラボ #8 での登壇
https://teamlab.connpass.com/event/274800/
みっちゃん
March 14, 2023
More Decks by みっちゃん
See All by みっちゃん
Do you use git worktree?
mitchan
0
140
Android値受け渡し大全 〜 設計を制する者が「渡す」を制す 〜
mitchan
1
7.4k
2024年にチャレンジしたことを振り返るぞ
mitchan
0
310
DroidKaigi初めて登壇したレポ
mitchan
1
280
実践!難読化ガイド
mitchan
0
4.4k
「実践!難読化ガイド」事前予告編
mitchan
0
340
画面遷移 〜iOSとAndroid〜
mitchan
0
470
パソコン音痴な私がモバイル開発界隈でぬくぬく成長している理由
mitchan
0
620
ドキュメントから adbコマンドの仕組みを読み解く
mitchan
1
430
Other Decks in Programming
See All in Programming
JRuby: Past, Present, and Future
headius
0
190
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
4
3.6k
setup-vp GitLab対応の裏側
naokihaba
0
120
App Intentsのビルドプロセスを支える技術
kntkymt
0
430
AI × TiDD / 2026.09.05 Redmine 大阪
tokudiro
1
190
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
4.9k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
520
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
340
Building an Out-of-Order CPU
latte72
1
800
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
360
大喜利で理解するLLM as a Judge / Understanding LLM-as-a-Judge through Ogiri
rockname
0
160
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
500
Featured
See All Featured
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
How to make the Groovebox
asonas
2
2.4k
The Limits of Empathy - UXLibs8
cassininazir
1
690
Six Lessons from altMBA
skipperchong
29
4.5k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Everyday Curiosity
cassininazir
0
320
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Chasing Engaging Ingredients in Design
codingconduct
0
330
Transcript
Android端末のNFCを無効化しようとして ダメだった話 登壇者:みっちゃん
自己紹介 名前:みっちゃん 会社:STORES inc.(22卒) 役職:Androidエンジニア Twitter Qiita
どうしてAndroidでNFCを無効化したかったのか STORES 決済 というアプリの開発に日々取り組んでおります どういうアプリ? お店の決済を支えるアプリ お店のオーナーさんのスマホにインストールして頂き、 決済端末(カードリーダー)とBluetoothで連携しています!
None
これでは、お商売になりません!!
None
iOSではPassKitを使っている https://developer.apple.com/documentation/passkit/pkpasslibrary/1617078-requestautomaticpasspresentation
AndroidでもNFCをオフにするAPIはないの? NfcAdapterというAPIを発見! 端末のNFCに関してあれこれさせてくれそうな気配... しかし! ドキュメントを読んでも、AndroidのNFC設定をoffにさせてくれそうなメソッドは特に生え ていない。
これは、Adapterという名前からも予想できる通り、端末のNFCリーダライター機能を使う ためのAPIのよう 端末のNFCリーダライター機能を使うためのAPIのよう
ドキュメントを読もう!!! てか、ドキュメントを読みましょう。 やはりドキュメントなのです。 NFC Basics
みんなはどうしているんだ Stack Overflowで同様のお悩みを見つけました。 Android: Changing NFC settings (on/off) programmatically
最終的な調査結果 Android端末のNFC無効化に対してわかったこと • 内部的に無効化するのはおそらく不可能 代替案 • アプリから内部的にスマホの設定画面に遷移し、ユーザー自身の手によって NFCの設定をオフにし てもらう •
「Android端末をお使いのオーナーさんは、スマホの設定画面から NFC機能をオフにするようお願い します」的なコミュニケーションをとることで回避
最後に Android端末のNFCを内部的にOFFにする方法がわかった/知っているという方がいれ ば是非知見を共有いただきたいです ありがとうございました!!