Sample Header Ad - 728x90

How to correctly build runtime resource overlay package including .bp and .xml files

0 votes
0 answers
10 views
On Github, I've found a work where someone creates different Overlays for Android phones. [Github Overlay Folder](https://github.com/LineageOS/android_frameworks_base/tree/389031749dcf106c1e35950b36df2d8fb2222759/packages/overlays) When I go to the first subfolder [Subfolder](https://github.com/LineageOS/android_frameworks_base/tree/389031749dcf106c1e35950b36df2d8fb2222759/packages/overlays/AvoidAppsInCutoutOverlay) the AndroidManifest.xml for example looks like: and the Android.bp package { default_applicable_licenses: ["frameworks_base_license"], } runtime_resource_overlay { name: "AvoidAppsInCutoutOverlay", theme: "DisplayCutoutAvoidAppsInCutout", product_specific: true, } Furthermore, there is a res folder with multiple sub-folders, strings.xml and config.xml files. It is said that a RRO package has to be created and moved to /vendor/overlay/ using e.g. Magisk. Now how can this package including those files be created? And do I have to create an .apk containing every subfolder, or just the files and folders located in a subfolder? Beside all subfolders, there are also "Android.bp", "CleanSpec.mk" and "OWNERS" files in the upper "Overlays" folder
Asked by Chestal (1 rep)
Jul 24, 2025, 10:57 PM
Last activity: Jul 24, 2025, 11:30 PM