源码位置:vim -R frameworks/base/services/core/java/com/android/server/SystemService.java

核心方法

  • publishBinderService (缓存服务)
    225     /**
    226      * Publish the service so it is accessible to other services and apps.
    227      *
    228      * @param name the name of the new service
    229      * @param service the service object
    230      * @param allowIsolated set to true to allow isolated sandboxed processes
    231      * to access this service
    232      * @param dumpPriority supported dump priority levels as a bitmask
    233      */
    234     protected final void publishBinderService(String name, IBinder service,
    235             boolean allowIsolated, int dumpPriority) {
    236         ServiceManager.addService(name, service, allowIsolated, dumpPriority);
    237     }

0 条评论

发表回复

您的电子邮箱地址不会被公开。