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 Runtime Permissions
Search
Jay Newstrom
October 14, 2015
Programming
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Android Runtime Permissions
Jay Newstrom
October 14, 2015
Other Decks in Programming
See All in Programming
SREの越境 / SRE Collaboration
y0hgi
1
210
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
290
モバイル交通系ICへのチャージ実例から考える、クロスプラットフォーム開発におけるiOS実機テスト設計とCI運用
yusuga
1
480
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
120
速習iPhone Duo対応
yuukiw00w
1
520
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
1
150
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
290
App Intentsのビルドプロセスを支える技術
kntkymt
0
380
市販E-Readerを乗っ取れ 〜Embedded Swiftで電子ペーパーガジェットを制御する〜
trickart
0
190
App Storeの外へ──日本のiOSサイドローディング入門 for iOSDC Japan 2026
yuukiw00w
0
220
GraphRAGのKnowledge Graphを 直接!見る/View-GraphRAG's-KnowledgeGraph-directly!
tyumugi1113
1
330
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
1.9k
Featured
See All Featured
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
610
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
76k
How to Talk to Developers About Accessibility
jct
2
550
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
370
Product Roadmaps are Hard
iamctodd
55
13k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
510
Faster Mobile Websites
deanohume
310
32k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
260
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
480
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Transcript
Android Runtime Permissions Jay Newstrom
Agenda • Workflow differences • How to update your app
• Gotchas • Organizing Code
Installing an App
None
None
None
Installing an App on Marshmallow
None
None
None
None
Benefits • App updates • User trust • User control
Normal and Dangerous Permissions Normal Dangerous Internet Photos Bluetooth Files
Flashlight Location Vibrate Contacts
Permission Groups Calendar Camera Contacts Location Microphone Phone Sensors SMS
Storage
Permission Groups Calendar Contacts READ_CALENDAR READ_CONTACTS WRITE_CALENDAR WRITE_CONTACTS GET_ACCOUNTS
How to Upgrade • build.gradle changes • targetSdkVersion = 23
• Support v4 Library = 23.0.1 • Ask before using dangerous permissions • No manifest changes
How to Upgrade • ContextCompat.checkSelfPermission • ActivityCompat.shouldShowRequestPermissionRationale • ActivityCompat.requestPermissions •
Override onRequestPermissionsResult
Gotchas • Sharing • Permission denied • Know when dangerous
permissions are used • Unknown permissions are denied (old versions of Android)
Required Permissions • Snapchat
Organizing Code • Assume Permission Denied • Ask Android for
permission • When Android says you have permission, perform the operation
More Information • http://developer.android.com/guide/topics/security/permissions.html • https://developer.android.com/training/permissions/ • http://developer.android.com/reference/android/support/v4/content/ ContextCompat.html •
http://blog.danlew.net/2015/10/07/sharing-files-on-android-in-a-world-with-runtime- permissions/ • https://medium.com/ribot-labs/exploring-the-new-android-permissions-model- ba1d5d6c0610 • https://commonsware.com/blog/2015/10/07/runtime-permissions-files-action-send.html • https://github.com/tbruyelle/RxPermissions
Thanks!