Digging into Android System Services
summary
Step-by-step recipe for a working custom Android system service: create AIDL in android.os that defines methods (example: add(a,b) and getServiceName), implement the generated Stub under com.android.server in the framework sources, add the AIDL to Android.mk, call addService via ServiceManager from SystemServer.java to publish an instance, add a unique name constant to Context.java and register the service/manager link so apps call getSystemService to obtain a manager that delegates over Binder. Requires rebuilding and flashing the system or using an AOSP-compatible device/emulator; example implementations return the expected results.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:16System Service Overview
- 4:01Architecture and Process
- 10:15Creating a Custom Service
- 17:01Implementing the Manager
- 20:15Application Usage
- 23:11Q&A and Conclusion
related talks
10mThellë brenda Android me System Services
41mExploring Android internals with ADB
01h 03mIPC: AIDL Is Not a Bad Word
44mEmbedded Android #4 - Using and Customizing the Android Framework
25mWays of using hidden Android APIs in system and vendor development
35mDeveloping system apps without AOSP
01h 01mWays of Using Hidden System APIs
38mGuide to Foreground Services on Android
