How to Add our own System Service in Android Framework?

前端 未结 4 921
抹茶落季
抹茶落季 2021-02-05 15:08

I am new to android and i have been analyzing the android source code to understand how the System services are implemented. My Question is am I able to create my own System Se

4条回答
  •  -上瘾入骨i
    2021-02-05 15:56

    You can add your own service but there is no way to add system service, unless you can modify the framework source code.

    System services are running in system_sever with system privilege, which allow those service can access system resource that normal application service can't.

    This article explain in detail how the system service are implemented in Android.

提交回复
热议问题