What the baseline app reaches

The baseline app is a Kotlin and Jetpack Compose app with Room and WorkManager. Its DEX code references 387 framework classes, 1873 of their methods and 222 fields. 722 of the methods are in android.view, 366 in android.graphics, 184 in android.content, 144 in android.os, 131 in android.app and 114 in android.text. Many are behind checks of Build.VERSION.SDK_INT for older Android versions and never run on API 36, and the JVM resolves a member only when code first runs it, so the framework grows from what a run reaches, not from the list.

A run now reaches the main loop: the Application, WorkManager and its database, the app's own worker, and Compose's first frames, which the runtime records and counts when it runs without a window (--headless, --trace-frames).

The app subclasses 34 framework classes (among them Activity, View, ViewGroup, ContentProvider, BroadcastReceiver, Service, SQLiteOpenHelper, Canvas, RippleDrawable and text spans) and implements 37 framework interfaces. Each of those must exist with the methods the app overrides before the app's class can load.


Made from docs/platforms/android-apps/interfaces.md at 69237645142c. GPL-3.0-or-later.