.png)
Posted by Robert Clifford, Developer Relations Engineer and Manjeet Rulhania, Software program Engineer
A pillar of the Android ecosystem is our shared dedication to person belief. Because the cellular panorama has advanced, so does our strategy to defending delicate info. In Android 17, we’re introducing a collection of recent location privateness options designed to provide customers extra management and supply builders elegant options for knowledge minimization and product security. Our technique focuses on introducing new instruments to steadiness high-quality experiences with sturdy privateness protections, and enhancing transparency for customers to assist handle their knowledge.
Introducing the situation button: simplified entry for one time use
For a lot of widespread duties, like discovering a close-by store or tagging a social put up, your app doesn’t want everlasting or background entry to a person’s exact location.With Android 17, we’re introducing the situation button, a brand new UI aspect designed to supply a well-lit path for accountable one time exact location entry. Trade companions have requested this new characteristic as a option to deliver an easier, and extra personal location movement to their customers.
Customers get higher privateness safety
Transferring the choice making for location sharing to the purpose the place a person takes motion, helps the person make a clearer alternative about how a lot info they wish to share and for a way lengthy. This empowers customers to restrict knowledge sharing to solely what apps want in that session. As soon as consent is supplied, this session based mostly entry eliminates repeated prompts for location dependent options. This advantages builders by making a smoother expertise for his or her customers and offering excessive confidence in person intent, as entry is explicitly requested in the intervening time of motion.
Full UI customization to match your app’s aesthetic
The placement button gives in depth customization choices to make sure integration along with your app’s aesthetic whereas sustaining system-wide recognizability. You may modify the button’s visible fashion together with:
- Background and icon colour scheme
- Define fashion
- Measurement and form
Moreover, you may choose the suitable textual content label from a predefined listing of choices. To make sure safety and belief, the situation icon itself stays necessary and non-customizable, whereas the font dimension is system-managed to respect person accessibility settings
Simplified Integration with Jetpack and automated backwards compatibility
The placement button can be supplied as a Jetpack library, making certain simple integration into your current app layouts much like another Jetpack view implementation, and simplifying the way you request permission to entry exact location. Moreover, while you implement location button with the Jetpack library it can mechanically deal with backwards compatibility by defaulting to the present location immediate when a person faucets it on a tool operating Android 16 or under.
The Android location button is out there for testing as of Android 17 Beta 3.
Location entry transparency
Customers usually battle to know the instruments they’ll use to observe and management entry to their location knowledge. In Android 17, we’re aligning location permission transparency with the excessive requirements already set for the Microphone and Digicam.
- Up to date Location Indicator: A persistent indicator will now seem to tell a person every time a non-system app accesses their location
- Attribution & Management: Customers can faucet the indicator to see precisely which apps have just lately accessed their location and handle these permissions instantly by means of a “Current app use” dialog.
Strengthening person privateness with density-based Coarse Location
Android 17 can be enhancing the algorithm for approximate (coarse) areas to pay attention to inhabitants density. Beforehand, coarse areas used a static 2 km-wide grid, which in low-population areas is probably not sufficiently personal since a 2km sq. might usually include solely a handful of customers. The brand new strategy replaces this fastened grid with a dynamically-sized space based mostly on native inhabitants density. By growing the grid for areas with decrease inhabitants density, Android ensures a extra constant privateness assure throughout totally different environments from dense city facilities to distant areas.
Improved runtime permission dialog
The runtime permission dialog for location is among the extra complicated flows for customers to navigate, with customers being requested to resolve on the granularity and size of permission entry they’re keen to grant to every app. In an effort to assist customers to take advantage of knowledgeable privateness selections with much less friction, we’ve redesigned the dialog to make “Exact” and “Approximate” selections extra visually distinct, encouraging customers to pick the extent of entry which most accurately fits their wants.
Begin constructing for Android 17
The brand new location privateness instruments can be found now in Beta 3. We’re searching for your suggestions to assist refine these options earlier than the final launch.
Construct a smoother, extra personal expertise immediately.

