android源码添加service

frameworks/base 目录下添加对应的文件清单如下
frameworks/base/core/java/android/app/HelloWorldManager.java
frameworks/base/core/java/android/app/IHelloWorldManager.aidl
frameworks/base/services/core/java/com/android/server/HelloWorldService.java
frameworks/base/core/java/android/app/SystemServiceRegistry.java
frameworks/base/core/java/android/content/Context.java
frameworks/base/services/java/com/android/server/SystemServer.java

注意修改完成后执行make update-api
frameworks/base/Android.mk
frameworks/base/api/current.txt
frameworks/base/api/system-current.txt
frameworks/base/api/test-current.txt

system/sepolicy/prebuilts/api/26.0/nonplat_sepolicy.cil
system/sepolicy/prebuilts/api/26.0/private/service_contexts
system/sepolicy/prebuilts/api/26.0/public/service.te
system/sepolicy/private/compat/26.0/26.0.cil

system/sepolicy/prebuilts/api/28.0/private/compat/26.0/26.0.ignore.cil
system/sepolicy/prebuilts/api/28.0/private/compat/27.0/27.0.ignore.cil
system/sepolicy/prebuilts/api/28.0/private/service_contexts
system/sepolicy/prebuilts/api/28.0/public/service.te
system/sepolicy/private/compat/26.0/26.0.ignore.cil
system/sepolicy/private/compat/27.0/27.0.ignore.cil
system/sepolicy/private/service_contexts
system/sepolicy/public/service.te

你可能感兴趣的:(android源码添加service)