2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
付録 A、RRO の使用
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ランタイム リソース オーバーレイ(RRO)は、/vendor/overlays
フォルダ(起動時に自動的に読み取られる)にプッシュするか、adb install
を実行してインストールできます。後者の場合、より高速な反復処理が可能です。ただし、これによって同じ RRO が 2 つの場所(/vendor/overlays
と /data/app
)に存在することになる可能性があります。
プッシュして再起動する場合は、次のコマンドを実行します。
$ adb root
$ adb remount
$ adb shell mkdir /vendor/overlay/<overlay-name>
$ adb push <path-to-overlay.apk-file> /vendor/overlay/<overlay-name>
$ adb reboot
インストールする場合は、次のコマンドを実行します。
$ adb install <path-to-overlay.apk-file>
RRO が使用可能であることを確認するには、次のコマンドを実行します。
$ adb shell cmd overlay list --user current
android
[ ] com.android.sample_rro
com.android.sample.targetapp
[ ] com.android.sample.targetapp_rro
新しくインストールされた RRO の横に ---
が表示されている場合、ターゲット APK が見つからない(AndroidManifest.xml
の targetPackage
宣言で再確認可能)か、RRO で定義されたリソースの一部が、ターゲット内のどのリソースとも一致していないことを示しています。
RRO を有効または無効にする
RRO を有効または無効にするには、次のように目的のコマンドを実行します。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# Appendix A, work with RROs\n\nRuntime resource overlays (RROs) can either be pushed to the `/vendor/overlays`\nfolder (which is automatically read during boot) or can be installed by running\n`adb install`.\nThe latter allows faster iteration. However, this can cause the same RRO to reside in two\nlocations (`/vendor/overlays` and `/data/app`).\n\nFor pushing and rebooting, run: \n\n```bash\n$ adb root\n$ adb remount\n$ adb shell mkdir /vendor/overlay/\u003coverlay-name\u003e\n$ adb push \u003cpath-to-overlay.apk-file\u003e /vendor/overlay/\u003coverlay-name\u003e\n$ adb reboot\n```\n\n\nFor installation, run: \n\n```bash\n$ adb install \u003cpath-to-overlay.apk-file\u003e\n```\n\n\nTo confirm the RRO is available, run: \n\n```bash\n$ adb shell cmd overlay list --user current\n android\n [ ] com.android.sample_rro\n com.android.sample.targetapp\n [ ] com.android.sample.targetapp_rro\n```\n\n\nWhen `---` is displayed next to the newly installed RRO, this indicates that the\ntarget APK was either not found (double-check the `targetPackage` declaration on your\n`AndroidManifest.xml`) or some of the resources defined in the RRO don't match any\nresources in the target.\n\nEnable and disable RROs\n-----------------------\n\n\nTo enable or disable a RRO, respectively, run the desired command:\n\n- Enable: \n\n `adb shell cmd overlay enable --user current \u003crro-package-name\u003e`\n\n- Disable: \n\n `adb shell cmd overlay disable --user current \u003crro-package-name\u003e`"]]