RRO Example
Here are steps to create an RRO app:
Setting up the Android project: First, create a new Android project in Android Studio. Name it something like "MySystemUIOverlay".
Configuring the manifest file:
<!-- AndroidManifest.xml -->
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mysystemuioverlay">
<application
android:hasCode="false"
android:icon="@android:drawable/ic_menu_compass"
android:label="My SystemUI Overlay">
<overlay
android:targetPackage="com.android.systemui"
android:isStatic="true"
android:priority="1" />
</application>
</manifest>
<!-- Explanation:
- package: Unique identifier for your overlay
- android:hasCode="false": Indicates this app has no Java code
- android:targetPackage: Specifies which app this overlay is for
- android:isStatic="true": Overlay is compiled into the system
- android:priority: Determines order if multiple overlays target the same resource -->Creating resource files: Let's create a few example resource files to demonstrate different types of overlays.
Building the RRO APK: Use Android Studio to build your project. This will generate an APK file.
Installing the RRO APK: You can install the APK using adb:
To see the changes, you may need to restart SystemUI or reboot your device:
Or
Last updated