Features and APIs Overview
A new system UI
with Material You that's expressive, dynamic, and personal. Extend your apps
with redesigned widgets, AppSearch, Game Mode, and new codecs. Support new
protections like privacy dashboard and approximate location. Improve
productivity with rich content insertion, easier blurs, improved native
debugging, and much more.
Android 12 features and changes list
The following table lists all documented features and behavior
changes that might affect app developers. Use this list to find changes that
affect you, and then click on the corresponding link to read the documentation.
Category |
|
Type |
Name |
Activity lifecycle |
|
Change (all apps) |
Root
launcher activities are no longer finished on Back press |
Backup and restore |
|
Change (apps targeting 12+) |
Changes
in backup and restore |
Camera |
|
New features and APIs |
Camera2
vendor extensions |
Camera |
|
New features and APIs |
Quad
bayer camera sensor support |
Compatibility |
|
Change (apps targeting 12+) |
Updated
non-SDK restrictions |
Compatibility |
|
New features and APIs |
Updated
toggles for compatibility testing |
Connectivity |
|
Change (all apps) |
Passpoint
updates |
Connectivity |
|
Change (apps targeting 12+) |
Concurrent
Peer-to-Peer + Internet Connection |
Connectivity |
|
Change (apps targeting 12+) |
mDNSResponder
native API |
Connectivity |
|
New features and APIs |
Keeping
companion apps awake |
Connectivity |
|
New features and APIs |
Companion
Device Manager profiles |
Connectivity |
|
New features and APIs |
Bandwidth
estimation improvements |
Connectivity |
|
New features and APIs |
Wi-Fi
Aware (NAN) Enhancements |
Connectivity |
|
New features and APIs |
Concurrent
Peer-to-Peer + Internet Connection |
Connectivity |
|
New features and APIs |
Enable
screen off for NFC payments |
Core functionality |
|
New features and APIs |
Automatic
app updates |
Core functionality |
|
New features and APIs |
Device
chipset information |
Core functionality |
|
New features and APIs |
Updates
to core Java APIs |
Graphics and images |
|
Change (all apps) |
Improved
refresh rate switching |
Graphics and images |
|
New features and APIs |
Provide
apps direct access to tombstone traces |
Graphics and images |
|
New features and APIs |
AVIF
image support |
Graphics and images |
|
New features and APIs |
Easier
blurs, color filters, and other effects |
Graphics and images |
|
New features and APIs |
Native
animated image decoding |
Media |
|
New features and APIs |
Compatible
media transcoding |
Media |
|
New features and APIs |
Performance
class |
Media |
|
New features and APIs |
Video
encoding improvements |
Media |
|
New features and APIs |
Audio
focus |
Media |
|
New features and APIs |
MediaDrm
updates |
Performance |
|
Change (all apps) |
Restricted
App Standby Bucket |
Performance |
|
Change (apps targeting 12+) |
Foreground
service launch restrictions |
Performance |
|
Change (apps targeting 12+) |
Exact
alarm permission |
Performance |
|
Change (apps targeting 12+) |
Notification
trampoline restrictions |
Security and privacy |
|
Change (all apps) |
Microphone
and camera toggles |
Security and privacy |
|
Change (all apps) |
Microphone
and camera indicators |
Security and privacy |
|
Change (all apps) |
Permission
package visibility |
Security and privacy |
|
Change (all apps) |
BouncyCastle
implementation removed |
Security and privacy |
|
Change (all apps) |
Clipboard
access notifications |
Security and privacy |
|
Change (all apps) |
Apps
can't close system dialogs |
Security and privacy |
|
Change (all apps) |
Untrusted
touch events are blocked |
Security and privacy |
|
Change (apps targeting 12+) |
Approximate
location |
Security and privacy |
|
Change (apps targeting 12+) |
Modern
SameSite cookies in WebView |
Security and privacy |
|
Change (apps targeting 12+) |
Motion
sensors are rate-limited |
Security and privacy |
|
Change (apps targeting 12+) |
App
hibernation |
Security and privacy |
|
Change (apps targeting 12+) |
Attribution
declaration in data access auditing |
Security and privacy |
|
Change (apps targeting 12+) |
ADB
backup restriction |
Security and privacy |
|
Change (apps targeting 12+) |
Safer
component exporting |
Security and privacy |
|
Change (apps targeting 12+) |
Pending
intents mutability |
Security and privacy |
|
Change (apps targeting 12+) |
Unsafe
intent launches |
Security and privacy |
|
New features and APIs |
Privacy
Dashboard |
Security and privacy |
|
New features and APIs |
Bluetooth
permissions |
Security and privacy |
|
New features and APIs |
Permission
group lookup |
Security and privacy |
|
New features and APIs |
Hide
application overlay windows |
Security and privacy |
|
New features and APIs |
Known
signers permission protection flag |
Security and privacy |
|
New features and APIs |
Device
properties attestation |
Security and privacy |
|
New features and APIs |
Secure
lockscreen notification actions |
Security and privacy |
|
New features and APIs |
Localizable
strings for BiometricPrompt |
Security and privacy |
|
Feature |
Phishing
detection in messaging apps (Pixel only) |
Storage |
|
New features and APIs |
New
directory for voice recordings |
Storage |
|
New features and APIs |
Media
management access |
Storage |
|
New features and APIs |
App
storage access |
Storage |
|
New features and APIs |
Extended
file access support |
UX |
|
Change (all apps) |
Stretch overscroll
effect |
UX |
|
Change (all apps) |
App
splash screens |
UX |
|
Change (all apps) |
Web
intent resolution |
UX |
|
Change (all apps) |
Immersive
mode improvements for gesture nav |
UX |
|
Change (all apps) |
Display#getRealSize
and getRealMetrics: deprecation and constraints |
UX |
|
Change (all apps) |
All
apps in multi-window mode |
UX |
|
Change (all apps) |
Camera
preview on large screens |
UX |
|
Change (all apps) |
UX
delay for foreground service notifications |
UX |
|
Change (apps targeting 12+) |
Custom
notifications |
UX |
|
Change (apps targeting 12+) |
Android
App Links verification changes |
UX |
|
Change (apps targeting 12+) |
Picture-in-Picture
(PIP) behavior improvements |
UX |
|
New features and APIs |
Widgets
improvements |
UX |
|
New features and APIs |
Rich
content insertion |
UX |
|
New features and APIs |
App splash
screens API |
UX |
|
New features and APIs |
Rounded
corner APIs |
UX |
|
New features and APIs |
Rich
haptic experiences |
UX |
|
New features and APIs |
AppSearch |
UX |
|
New features and APIs |
Game mode |
UX |
|
New features and APIs |
Picture-in-Picture
(PIP) improvements |
UX |
|
New features and APIs |
New
phone call notifications allowing for ranking importance of incoming calls |
UX |
|
New features and APIs |
Enriched
image support for notifications |
UX |
|
New features and APIs |
Immersive
mode improvements for gesture nav |
UX |
|
New features and APIs |
Recents
URL sharing (Pixel only) |
Vendor libraries |
|
Change (apps targeting 12+) |
Vendor-supplied
native shared libraries |
Get Android 12
You can get
Android 12 in any of these ways:
·
Get Android
12 on a Google Pixel device
·
Get a generic
system image (GSI)
·
Get
Android 12 for Android TV
Get Android 12 on a Google
Pixel device
If you have a
supported Google Pixel device, you can check and update
your Android version to receive Android 12 over the air.
In most cases,
you don't need to do a full reset of your data to move to Android 12, but it’s
recommended that you back up data before installing Android 12 on your device.
Android 12 OTAs
and downloads are available for Pixel 5a, Pixel 5, Pixel 4a,
Pixel 4, Pixel 3a, Pixel 3a XL, Pixel 3, and
Pixel 3 XL.
Flash or manually install
a system image
Alternatively,
if you'd rather flash your device, we recommend using the Android Flash Tool.
If you need to
flash your device manually for some other reason, you can get the Android 12
system image for your device on the Pixel downloads page.
Read the general instructions for how to flash a system
image to your device. This approach can be useful when you need more
control over testing, such as for automated testing or regression testing.
Set up an Android emulator
Configuring an
Android emulator to run Android 12 is a great solution for exploring new
features and APIs and testing Android 12 behavior changes. Setting up an
emulator is fast and convenient and allows you to emulate various screen sites
and device characteristics.
You can set up
an emulator from inside Android Studio by doing the following:
1. Install Android Studio Arctic Fox |
2020.3.1 or higher.
2. In Android Studio,
click Tools > SDK
Manager.
3. In the SDK Tools tab,
select the latest version of Android
Emulator, and click OK.
This action installs the latest version if it isn't already installed.
4.
In Android Studio, click Tools > AVD Manager, and follow the
instructions to create a new Android Virtual Device (AVD).
Be
sure to select a Pixel 3, 3a, 4, 4a, 5, or 5a series device definition and a
64-bit Android 12 emulator system image. Note that 32-bit Android emulator
system images are not supported in Android 12. If you don't already have an
Android 12 system image installed that matches your device definition,
click Download next
to the Release Name to
get it.
5. Return to the list of
virtual devices in the AVD Manager, and then double-click your Android 12
virtual device to launch it.
Get a generic system image
(GSI)
Android Generic System
Image (GSI) binaries are available to developers for app testing and
validation purposes on supported Treble-compliant devices. You can use these
images to address any compatibility issues with Android 12 as well as discover
and report OS and framework issues.
See the GSI
documentation for device requirements, flashing instructions, and
information on choosing the right image type for your device. Once you're ready
to download a GSI binary, see the Android
12 GSI section on the GSI releases page.
Get Android 12 for Android
TV
Android 12 for
Android TV is provided through system images for the ADT-3 Developer Kit.
See Android 12 Beta for TV to
get started.
More information
To learn about
which changes might affect you, and to learn how to test these changes in your
app, read the following topics:
·
Behavior
changes that affect all apps
·
Behavior
changes that only affect apps that target Android 12
To learn more
about new APIs and features available in Android 12, read Android 12
features.
0 Comments