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
160
Android値受け渡し大全 〜 設計を制する者が「渡す」を制す 〜
mitchan
1
7.4k
2024年にチャレンジしたことを振り返るぞ
mitchan
0
310
DroidKaigi初めて登壇したレポ
mitchan
1
280
実践!難読化ガイド
mitchan
0
4.5k
「実践!難読化ガイド」事前予告編
mitchan
0
340
画面遷移 〜iOSとAndroid〜
mitchan
0
480
パソコン音痴な私がモバイル開発界隈でぬくぬく成長している理由
mitchan
0
630
ドキュメントから adbコマンドの仕組みを読み解く
mitchan
1
430
Other Decks in Programming
See All in Programming
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
Jetpack Compose Mechanisms
skydoves
3
820
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
110
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1.1k
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
180
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
250
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
380
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
620
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
JIS keyboard support in Omarchy
lef237
0
130
Featured
See All Featured
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
410
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
How to train your dragon (web standard)
notwaldorf
96
6.9k
A Soul's Torment
seathinner
8
3.8k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
540
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
Making Projects Easy
brettharned
120
6.8k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
Balancing Empowerment & Direction
lara
6
1.3k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
780
Utilizing Notion as your number one productivity tool
mfonobong
4
620
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にする方法がわかった/知っているという方がいれ ば是非知見を共有いただきたいです ありがとうございました!!