動作の変更点: すべてのアプリ

Android 15 プラットフォームには、アプリに影響する可能性がある動作変更が含まれています。以下の動作変更は、targetSdkVersion に関係なく、Android 15 上で稼働するすべてのアプリに適用されます。該当する場合は、アプリをテストし、必要に応じて修正して、適切に対応する必要があります。

Android 15 をターゲットとするアプリにのみ影響する動作変更のリストも必ずご確認ください。

コア機能

Android 15 では、Android システムのさまざまなコア機能を変更または拡張しています。

パッケージ停止状態の変更

The intention of the package FLAG_STOPPED state (which users can engage in AOSP builds by long-pressing an app icon and selecting "Force Stop") has always been to keep apps in this state until the user explicitly removes the app from this state by directly launching the app or indirectly interacting with the app (through the sharesheet or a widget, selecting the app as live wallpaper, etc.). In Android 15, we are updating the behavior of the system to be aligned with this intended behavior. Apps should only be removed from the stopped state through direct or indirect user action.

To support the intended behavior, in addition to the existing restrictions, the system will also cancel all pending intents when the app enters the stopped state on Android 15. When the user's actions remove the app from the stopped state, the ACTION_BOOT_COMPLETED broadcast will be delivered to the app providing an opportunity to re-register any pending intents.

You can call the new ApplicationStartInfo.wasForceStopped() method to confirm whether the app was put into the stopped state.

カメラとメディア

Android 15 では、すべてのアプリについてカメラとメディアの動作が次のように変更されています。

ダイレクト オーディオ再生とオフロード オーディオ再生で、リソースの上限に達すると、以前開いたダイレクト トラックまたはオフロード オーディオ トラックが無効になりました

Before Android 15, if an app requested direct or offload audio playback while another app was playing audio and the resource limits were reached, the app would fail to open a new AudioTrack.

Beginning with Android 15, when an app requests direct or offload playback and the resource limits are reached, the system invalidates any currently open AudioTrack objects which prevent fulfilling the new track request.

(Direct and offload audio tracks are typically opened for playback of compressed audio formats. Common use-cases for playing direct audio include streaming encoded audio over HDMI to a TV. Offload tracks are typically used to play compressed audio on a mobile device with hardware DSP acceleration.)

サポートの終了

リリースのたびに、特定の Android API が廃止されたり、デベロッパー エクスペリエンスの向上や新しいプラットフォーム機能のサポートのためにリファクタリングされたりすることがあります。このような場合、古い API のサポートを正式に終了し、代わりに使用する代替 API をデベロッパーにご案内します。

サポート終了とは、API の公式サポートが終了したことを意味しますが、デベロッパーは引き続き利用できます。Android のこのリリースにおける主な非推奨については、非推奨に関するページをご覧ください。