This project demonstrates Inter-Process Communication (IPC) in Android using AIDL (Android Interface Definition Language) between an app and an isolated SDK running in a separate process.
RemoteService
: AService
defined in a separate process/module that implementsIRemoteService.aidl
.IRemoteService.aidl
: Defines the AIDL interface used for IPC communication.MainActivity
: The app component that binds to theRemoteService
, invokes the remotegetMessage()
method, and displays the returned string in aTextView
.
io.matin.isolatedipc/ # Client app
└── MainActivity.kt # Binds to the remote service
com.example.isolatedsdk/ # Isolated SDK
├── RemoteService.kt # Implements the remote AIDL interface
└── IRemoteService.aidl # AIDL file for IPC contract
- Clone this repository into Android Studio.
- Build and install the app.
- Launch the app.
- Click the "Bind Service" button to establish a connection with the isolated SDK and receive the message.
For detailed setup and configuration instructions, refer to configurations.md.
This project is provided for educational purposes. You are free to modify and use it as per your needs.