How to add a system service to the Android Framework

前端 未结 4 698
死守一世寂寞
死守一世寂寞 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:48

    There are multiply way (or 6 ways, just to be explicit) of adding a system service.

    What you tried (Android App -> System Service -> JNI (native) library -> Device Driver) is one of them. You might want check out this article for an in-depth explanation regarding system service implementation patterns.

    enter image description here

提交回复
热议问题