Class ShadowServiceManager

    • Constructor Detail

      • ShadowServiceManager

        public ShadowServiceManager()
    • Method Detail

      • addBinderService

        protected static void addBinderService​(String name,
                                               Class<? extends IInterface> clazz)
      • addBinderService

        protected static void addBinderService​(String name,
                                               Class<? extends IInterface> clazz,
                                               boolean useDeepBinder)
      • addBinderService

        protected static void addBinderService​(String name,
                                               String className)
      • addBinderService

        protected static void addBinderService​(String name,
                                               Class<? extends IInterface> clazz,
                                               String className,
                                               boolean useDeepBinder)
      • addService

        @Implementation
        protected static void addService​(String name,
                                         IBinder service)
      • checkService

        @Implementation
        protected static IBinder checkService​(String name)
      • initServiceCache

        @Implementation
        protected static void initServiceCache​(Map<String,​IBinder> cache)
      • setServiceAvailability

        public static void setServiceAvailability​(String service,
                                                  boolean available)
        Sets the availability of the given system service. If the service is set as unavailable, subsequent calls to Context.getSystemService(java.lang.String) for that service will return null.
      • reset

        @Resetter
        public static void reset()