How to add a system service to the Android Framework

前端 未结 4 688
死守一世寂寞
死守一世寂寞 2020-12-23 17:58

I want to add my own framework code that runs in the Android \"system_server\" (handles all the system level services). My service loads a JNI library that talks to a driver

4条回答
  •  借酒劲吻你
    2020-12-23 18:32

    Texas instruments has provided a nice example:

    http://processors.wiki.ti.com/index.php/Android-Adding_SystemService

    Additionally, the CyanogenMod SystemServer.java has also code for dynamically loading system services as defined in the array "config_vendorServices" in config.xml (see core/res/res/values/config.xml), which I believe can be overwritten in the vendor or device directories using the overlays. This is a CyanogenMod-specific addition, added in this commit:

    https://github.com/CyanogenMod/android_frameworks_base/commit/88fff90131f54d45dc496c45127ac1d16ad257df

提交回复
热议问题