<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/from-permissions-to-sessions-rethinking-location-access-in-android-17-okoctvuph" -->

---
title: From Permissions to Sessions: Rethinking Location Access...
description: Android 17 introduces a system-rendered LocationButton composable that developers can embed via a new Jetpack library, replacing custom permission UI with a...
canonical: https://daily.dev/posts/from-permissions-to-sessions-rethinking-location-access-in-android-17-okoctvuph
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: From Permissions to Sessions: Rethinking Location Access in Android 17 | daily.dev
og:description: Android 17 introduces a system-rendered LocationButton composable that developers can embed via a new Jetpack library, replacing custom permission UI with a...
og:url: https://daily.dev/posts/from-permissions-to-sessions-rethinking-location-access-in-android-17-okoctvuph
og:image: https://api.daily.dev/og/posts/OKoctVUpH.png
og:image:alt: From Permissions to Sessions: Rethinking Location Access in Android 17
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# From Permissions to Sessions: Rethinking Location Access in Android 17

**[Medium](https://daily.dev/sources/medium_js)** · 3 min read · 3 upvotes · 1 comments

## Summary

Android 17 introduces a system-rendered LocationButton composable that developers can embed via a new Jetpack library, replacing custom permission UI with a standard control gated by a new USE_LOCATION_BUTTON permission. Tapping the button grants precise location for the current session only rather than persistent access. The walkthrough covers adding the alpha dependency, declaring the required manifest permissions (ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION with onlyForLocationButton flag, and USE_LOCATION_BUTTON), rendering the button in Compose, and customizing its color, outline, size, and corner radius. On Android Cinnamon Bun (API 37) and later the button uses remote rendering by the system, falling back to a local Compose implementation on older versions or if remote rendering fails.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://proandroiddev.com/from-permissions-to-sessions-rethinking-location-access-in-android-17-5a13124b777d>

## Questions this post answers

### What is the new USE_LOCATION_BUTTON permission in Android 17 for?

USE_LOCATION_BUTTON is a new Android 17 permission required to render the system-owned Location Button, which grants an app precise location access only for the current session instead of persistent access. Developers declare it alongside ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION with the onlyForLocationButton flag in the manifest, replacing the need to immediately request ACCESS_FINE_LOCATION at runtime.

_Developers adapting location permission flows can track Android platform changes like this on daily.dev._

### How do I add the Jetpack Compose LocationButton to an Android app?

Add the androidx-locationbutton-compose library (version 1.0.0-alpha01) via libs.versions.toml, declare ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION with usesPermissionFlags='onlyForLocationButton', and USE_LOCATION_BUTTON in the manifest, then use the LocationButton composable with an onPermissionResult callback that receives a boolean granted result. The button can be customized with backgroundColor, textColor, iconTint, strokeColor, strokeWidth, and cornerRadius parameters.

_Compose developers implementing new permission UI patterns can follow tutorials like this via daily.dev._

### Does the Android 17 Location Button work on older Android versions?

Yes. On Android Cinnamon Bun (API 37) and later, the Location Button uses remote rendering by the system as its primary display method. On pre-Cinnamon Bun devices (API 36 or lower), or if remote rendering fails, it falls back to a local Compose implementation, so the same composable code works across both scenarios.

_Teams supporting mixed Android API levels can keep up with rollout details like this on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@pratikbharad** · 1 upvotes

> In the near future, this one-time precise location permission will be the industry standard for sure.

## Similar posts on daily.dev

- [Redefining Location Privacy: New Tools and Improvements for Android 17](https://daily.dev/posts/redefining-location-privacy-new-tools-and-improvements-for-android-17-f0eiiylt9) · Android Developers Blog · 3 upvotes · 0 comments
- [The Real Permission Flow for Background Location in React Native \(Android \+ iOS\)](https://daily.dev/posts/the-real-permission-flow-for-background-location-in-react-native-android-ios--tupdu99ko) · Medium · 0 upvotes · 0 comments
- [The Enforced Accessibility of the Geolocation Element – Frontend Masters Blog](https://daily.dev/posts/the-enforced-accessibility-of-the-geolocation-element-frontend-masters-blog-vsdfbupnk) · Frontend Masters · 2 upvotes · 0 comments
- [Android now stops you sharing your location in photos](https://daily.dev/posts/android-now-stops-you-sharing-your-location-in-photos-iijps4b2o) · Terence Eden · 0 upvotes · 0 comments
- [Android System Design: Designing Location-Based Apps](https://daily.dev/posts/android-system-design-designing-location-based-apps-uvwckrh7g) · Medium · 0 upvotes · 0 comments

---

Tags: [#mobile](https://daily.dev/tags/mobile), [#android](https://daily.dev/tags/android), [#kotlin](https://daily.dev/tags/kotlin), [#jetpack-compose](https://daily.dev/tags/jetpack-compose)

[View this post on daily.dev](https://daily.dev/posts/from-permissions-to-sessions-rethinking-location-access-in-android-17-okoctvuph)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"From Permissions to Sessions: Rethinking Location Access in Android 17","url":"https://daily.dev/posts/from-permissions-to-sessions-rethinking-location-access-in-android-17-okoctvuph","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/from-permissions-to-sessions-rethinking-location-access-in-android-17-okoctvuph"},"datePublished":"2026-09-06T19:34:38.882Z","dateModified":"2026-09-14T08:52:11.479Z","description":"Android 17 introduces a system-rendered LocationButton composable that developers can embed via a new Jetpack library, replacing custom permission UI with a...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c7ca1ee71a3985f0650a615aff5cdd97?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c7ca1ee71a3985f0650a615aff5cdd97?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/from-permissions-to-sessions-rethinking-location-access-in-android-17-okoctvuph","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"mobile,android,kotlin,jetpack-compose","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"From Permissions to Sessions: Rethinking Location Access in Android 17"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/from-permissions-to-sessions-rethinking-location-access-in-android-17-okoctvuph","comment":[{"@type":"Comment","text":"In the near future, this one-time precise location permission will be the industry standard for sure.","datePublished":"2026-09-07T06:35:51.062Z","url":"https://daily.dev/posts/OKoctVUpH#c-EwJLfk2Lz","author":{"@type":"Person","name":"pratik bharad","url":"https://daily.dev/pratikbharad","image":"https://media.daily.dev/image/upload/s--_L6xwplo--/f_auto,q_auto/v1700137990/avatars/avatar_yQ0Yyq4SQpV7nCTC0nWSi"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/from-permissions-to-sessions-rethinking-location-access-in-android-17-okoctvuph#faq","mainEntity":[{"@type":"Question","name":"What is the new USE_LOCATION_BUTTON permission in Android 17 for?","acceptedAnswer":{"@type":"Answer","text":"USE_LOCATION_BUTTON is a new Android 17 permission required to render the system-owned Location Button, which grants an app precise location access only for the current session instead of persistent access. Developers declare it alongside ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION with the onlyForLocationButton flag in the manifest, replacing the need to immediately request ACCESS_FINE_LOCATION at runtime. Developers adapting location permission flows can track Android platform changes like this on daily.dev."}},{"@type":"Question","name":"How do I add the Jetpack Compose LocationButton to an Android app?","acceptedAnswer":{"@type":"Answer","text":"Add the androidx-locationbutton-compose library (version 1.0.0-alpha01) via libs.versions.toml, declare ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION with usesPermissionFlags='onlyForLocationButton', and USE_LOCATION_BUTTON in the manifest, then use the LocationButton composable with an onPermissionResult callback that receives a boolean granted result. The button can be customized with backgroundColor, textColor, iconTint, strokeColor, strokeWidth, and cornerRadius parameters. Compose developers implementing new permission UI patterns can follow tutorials like this via daily.dev."}},{"@type":"Question","name":"Does the Android 17 Location Button work on older Android versions?","acceptedAnswer":{"@type":"Answer","text":"Yes. On Android Cinnamon Bun (API 37) and later, the Location Button uses remote rendering by the system as its primary display method. On pre-Cinnamon Bun devices (API 36 or lower), or if remote rendering fails, it falls back to a local Compose implementation, so the same composable code works across both scenarios. Teams supporting mixed Android API levels can keep up with rollout details like this on daily.dev."}}]}
```

