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
140
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
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
すこし踏み込む CancellationToken
htkym
2
1.7k
SREの越境 / SRE Collaboration
y0hgi
2
310
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
200
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
気持ちぃ〜角丸 Squircle
ryu1013
0
310
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
28
32k
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
golang-bob.pdf
iwatsukayura
0
130
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
Featured
See All Featured
We Are The Robots
honzajavorek
0
400
Discover your Explorer Soul
emna__ayadi
2
1.3k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
New Earth Scene 8
popppiees
4
2.7k
BBQ
matthewcrist
90
10k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
570
sira's awesome portfolio website redesign presentation
elsirapls
0
450
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Documentation Writing (for coders)
carmenintech
77
5.6k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Building an army of robots
kneath
307
47k
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!