Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AOSP System Apps with Jetpack Compose

Does AOSP support Jetpack Compose for System Applications?

If so what changes have to be done in Android.bp file?

like image 908
franks Avatar asked Sep 05 '25 21:09

franks


1 Answers

Yes, it does. You can check the SystemUI code here and here.

The main dependencies that you'll need to add to your .bp file are:

 android_library/android_app {

     .........
     static_libs: [
        "PlatformComposeCore",
        "androidx.compose.runtime_runtime",
        "androidx.compose.material3_material3",
        "androidx.activity_activity-compose",
     ]
}
like image 89
Miruna Radu Avatar answered Sep 08 '25 12:09

Miruna Radu