public static void registerListener(OnServiceListener listener) {
        synchronized (mCache) {
            mListener = listener;
            if (!mCache.isEmpty()) {
                for (var it = mCache.iterator(); it.hasNext(); ) {
                    try {
                        var service = it.next();
                        service.getRaw().asBinder().linkToDeath(() -> mListener.onServiceDied(service), 0);
                        mListener.onServiceBind(service);
                    } catch (Throwable t) {
                        Log.e(TAG, "registerListener", t);
                        it.remove();
                    }
                }
                mCache.clear();
            }
        }
    }
Register a ServiceListener to receive service binders from Xposed frameworks.<br/>
This method should only be called once.

@param listener Listener to register
android/third_party/libxposed/service/src/main/java/io/github/libxposed/service/XposedServiceHelper.java