src/android/aidl/example-service/service.md
We can now implement the AIDL service:
birthday_service/src/lib.rs:
# // Copyright 2024 Google LLC
# // SPDX-License-Identifier: Apache-2.0
#
//! Implementation of the `IBirthdayService` AIDL interface.
use com_example_birthdayservice::aidl::com::example::birthdayservice::IBirthdayService::IBirthdayService;
use com_example_birthdayservice::binder;
{{#include ../birthday_service/src/lib.rs:IBirthdayService}}
}
birthday_service/Android.bp:
{{#include ../birthday_service/Android.bp:libbirthdayservice}}
IBirthdayService trait, and explain why
each of the segments is necessary.wishHappyBirthday and other AIDL IPC methods take &self (instead
of &mut self).
self.Mutex to allow for safe mutation.binder::Interface trait do? Are there methods to
override? Where is the source?