
Preview the original CarLauncher, the spacing change and the outside-temperature extension. Learn the AOSP 17 source-to-build-to-verification workflow and locate the downloadable materials.
Follow the source-to-emulator workflow, prepare your environment using the Android 17 download guidance in the bonus section, use the lesson downloads, and practise each change before restoring the baseline.
Explain automotive HOME resolution, media and navigation surfaces, app discovery and recents. Distinguish Android Automotive OS from Android Auto.
Identify the boundaries between CarLauncher, CarSystemUI, CarService, WindowManager Shell and provider apps. Recognize product-dependent features.
Resolve the foreground user's HOME component, inspect effective layout and card modules, return from Settings, and save a baseline screenshot.
Open the matching AOSP 17 Launcher source in ASFP and find the launcher entry point with its project hierarchy visible.
Navigate app, shared libraries, dock modules, resources, tests and build definitions in the Launcher repository.
Distinguish platform build modules from the Gradle app-grid test application and inspect the real build definitions.
Follow declarations and usages, inspect resources and merged manifests, locate generated classes, and prepare logcat filters. Explain platform indexing and missing dependency troubleshooting.
Package identity, activity intent filters, `singleTask`, configuration handling, privileged permissions, services, provider, and merged app-grid declarations.
Trace UI entry points to presentation logic, state holders, repositories, services, and platform APIs. Explain that home cards use presenter interfaces while other areas use ViewModels and repositories.
Trace the configured home-card modules and their creation in CarLauncher.java. Compare the base and landscape layouts, locate the default card-spacing dimension, and follow the media-session flag and declarative-launcher startup branch.
Follow `CarLauncher.java` into `car_launcher.xml`, card containers, configured modules, and the embedded map surface. Identify the layout actually selected on the emulator.
Walk through `CarLauncher`, `CarLauncher-core`, `CarAppGrid-lib`, generated stats logging, aconfig, platform signing, privilege allowlisting, and test modules.
Trace HOME launch, `onCreate`, display and user decisions, card initialization, map setup, observers, resume, and new-intent handling. Separate inherited lifecycle callbacks from callbacks explicitly implemented here.
Trace `CarLauncherViewModel`, CarActivityManager, controller connection, controlled remote task creation, asynchronous callbacks, LiveData observation, and host visibility. Explain why resume alone must not force the map task to the front.
Explain retained ViewModel state, reparenting the embedded view, activity destruction, observer and listener removal, disconnection, and ViewModel cleanup. Distinguish activity destruction from process death.
Add temporary focused logs where needed. Exercise HOME reentry, opening another app, return to HOME, supported recreation, and restart. Match logs to a lifecycle sequence diagram.
Explain `CarLauncher.java`, `CarLauncherUtils.java`, `CarLauncherViewModel.java`, task-stack listeners, map intent configuration, terms-of-service observation, and passenger-display branches.
Explain `HomeCardModule`, `HomeCardInterface`, `HomeCardFragment`, `CardPresenter`, card content classes, and configuration-driven module creation. Trace attach, update, and cleanup.
Explain `AudioCardModule`, `AudioCardPresenter`, `AudioCardModel`, `MediaViewModel`, media presenter/controller, dialer presenter/model, `InCallServiceImpl`, and intent routing. Trace a media state update and call-card selection.
Explain `AssistiveCardModule`, `AssistiveCardPresenter`, `AssistiveModel`, `ProjectionModel`, and `FakeWeatherModel`. Explicitly identify fake weather data as demonstration data.
Trace `AppGridActivity`, `AppGridFragment`, `AppGridViewModel`, `AppGridRepository`, installed-app and UX-restriction data sources, launch providers, adapter, pagination, ordering, and persistence.
Explain `CarRecentsActivity`, `RecentTasksViewModel`, task providers, adapter and holders, task selection and dismissal, driving restrictions, and `CarQuickStepService`.
Explain activity, fragment, temperature and navigation ViewModels, data classes, QC provider, feature configuration, and service-backed updates.
Explain dock controller, ViewModel, persistence, receivers, event sender, permissions, and shared shortcuts. Locate the actual product host: the dock library README places the reference dock in SystemUI and specifies a single dock host.
Navigate launcher, ViewModel, app-grid, and dock tests. Explain generated stats and flag classes, test dependencies, and which regression tests fit each exercise.
Explain source/image compatibility, product inclusion, signing, privileged permissions, active users, image partitions, and writable versus read-only emulator setups.
From the AOSP root, load `build/envsetup.sh`, lunch the verified automotive target, and run `m CarLauncher`. Locate the actual APK through build outputs and preserve the build log.
Select the appropriate deployment method for the image: compatible signed APK update, writable partition sync, or rebuilt image. Explain restart and reboot requirements, verify installed code location, and resolve HOME explicitly.
Work through missing modules, generated sources, signing mismatch, permission failures, stale installs, wrong users, and unavailable map or media providers.
Inspect layout usages and effective overlays or resource qualifiers. Capture the baseline and explain the expected spacing change before editing.
Build `CarLauncher`, deploy through the verified method, and confirm the running package uses the changed artifact.
Compare screenshots at the same resolution and configuration; test HOME reentry, cards, and map interaction; inspect crash logs; restore `16dp`, rebuild, and confirm restoration.
Define module, fragment, presenter, data model, loading state, unavailable state, temperature units, and ownership of the Car connection and subscriptions. Check supported properties and permissions.
Add a new module following `HomeCardModule` and `HomeCardInterface`, create its resources, and register its class in `config_homeCardModuleClasses`. Replace one configured card slot deliberately.
Read and subscribe to outside temperature using APIs present in this checkout. Handle unsupported properties, property status, service disconnects, unit conversion, and cleanup. Verify the relevant privileged permission configuration.
Build and deploy. Use supported emulator vehicle-property controls or the branch’s verified VHAL tooling to change temperature and show the card responding. Keep control and display units consistent.
Check initial value, repeated updates, HOME return, recreation, unavailable data, and subscription cleanup. Add focused tests for meaningful model behavior and conversion logic.
Provide source patch, architecture diagram, file walkthrough, build/deployment instructions, tests, and emulator evidence.
“This course contains the use of artificial intelligence.”
Understand the automotive home screen by following the real platform application from source to visible behaviour. This practical course explores CarLauncher in an AOSP 17 Android Automotive OS environment. You will inspect the original launcher, find the active HOME component, trace the important source files, build the platform app, and verify focused changes in the emulator. The course begins with CarLauncher's purpose and its boundaries with CarSystemUI, CarService, media applications and navigation providers. You will open the existing source in Android Studio for Platform, inspect the manifest, follow effective resources and configured card modules, and connect the visible screen to its implementation. The walkthrough covers startup and HOME reentry, embedded task callbacks, lifecycle cleanup, home card contracts, media and telephone cards, app discovery, recents, Calm Mode and dock integration. The practical work follows a controlled development workflow. First, inspect the product target, build the unchanged platform launcher, check package and signing compatibility, and keep a rollback path. Then make a small resource change from 16 dp to 24 dp, rebuild, compare the result and restore the original value. The larger extension adds a live outside-temperature home card using CarPropertyManager through CarService. You will examine explicit units, invalid-reading handling and subscription cleanup, alongside genuine recorded emulator checks. The course includes 42 focused lessons, downloadable source and patch bundles, an important-file index, lifecycle references, direct runtime commands, and build, verification and restoration instructions. The reference environment is AOSP 17. Product configuration and installed providers affect the visible features; the reference navigation area is a placeholder, not a live navigation demonstration. The cover artwork is conceptual; practical footage shows the actual course application. This course is designed for Android developers familiar with activities, fragments, Java, basic Kotlin, XML resources and adb. You should already have a matching AOSP automotive source tree, ASFP, a working build environment and a compatible emulator. Downloading AOSP and setting up the entire platform are prerequisites rather than course lessons. This is a platform-app course, not Android Auto phone projection or a standalone SDK application tutorial. By the end, you will have a repeatable way to identify the owner of a launcher behaviour, make a bounded change, inspect the real result and restore the baseline when needed. The home-screen redesign project is excluded; the included development projects are the spacing change and outside-temperature extension.