Android 15 での非 SDK インターフェースの制限の更新
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Android 15 では、Android デベロッパーの協力と直近の内部テストに基づいて、制限を受ける非 SDK インターフェースのリストが更新されています。Google は、非 SDK インターフェースを制限する前に、可能な限り、その代わりとなる公開インターフェースを利用可能にしています。
Android 15 をターゲットとしないアプリでは、この変更の一部はすぐには影響しない可能性があります。ただし、アプリのターゲット API レベルに応じて、アプリが一部の非 SDK インターフェースにアクセスできる場合もありますが、非 SDK のメソッドまたはフィールドを使用すると、アプリが機能しなくなるリスクが高くなります。
アプリが非 SDK インターフェースを使用しているかどうか不明な場合は、アプリをテストして確認できます。アプリが非 SDK インターフェースに依存している場合は、SDK の代替インターフェースへの移行を計画してください。ただし Google も、一部のアプリには非 SDK インターフェースを使用する正当なユースケースがあると承知しています。アプリの機能に使用している非 SDK インターフェースの代わりが見つからない場合は、新しい公開 API をリクエストしてください。
Android 15 のすべての非 SDK インターフェースの完全なリストを入手するには、次のファイルをダウンロードします。
ファイル: hiddenapi-flags.csv
SHA-256 チェックサム: 40134e205e58922a708c453726b279a296e6a1f34a988abd90cec0f3432ea5a9
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-08-21 UTC。
[null,null,["最終更新日 2025-08-21 UTC。"],[],[],null,["# Updates to non-SDK interface restrictions in Android 15\n\nAndroid 15 includes updated lists of restricted non-SDK\ninterfaces based on collaboration with Android developers and the latest\ninternal testing. Whenever possible, we make sure that public alternatives are\navailable before we restrict non-SDK interfaces.\n\nIf your app does not target Android 15, some of these changes\nmight not immediately affect you. However, while it's possible for your app to\naccess some non-SDK interfaces\n[depending on your app's target API level](/guide/app-compatibility/restrictions-non-sdk-interfaces#list-names)), using any non-SDK\nmethod or field always carries a high risk of breaking your app.\n\nIf you are unsure if your app uses non-SDK interfaces, you can\n[test your app](/guide/app-compatibility/restrictions-non-sdk-interfaces#test-for-non-sdk) to find out. If your app relies on non-SDK\ninterfaces, you should begin planning a migration to SDK alternatives.\nNevertheless, we understand that some apps have valid use cases for using\nnon-SDK interfaces. If you can't find an alternative to using a non-SDK\ninterface for a feature in your app, you should\n[request a new public API](/guide/app-compatibility/restrictions-non-sdk-interfaces#feature-request).\n\nFor a complete list of all non-SDK interfaces for Android 15, download the\nfollowing file:\n\nFile: [`hiddenapi-flags.csv`](https://dl.google.com/developers/android/vic/non-sdk/hiddenapi-flags.csv)\n\nSHA-256 checksum: `40134e205e58922a708c453726b279a296e6a1f34a988abd90cec0f3432ea5a9`"]]