@NonNull
    public SharedPreferences getRemotePreferences(@NonNull String group) {
        return mRemotePrefs.computeIfAbsent(group, k -> {
            try {
                var instance = RemotePreferences.newInstance(this, k);
                if (instance == null) {
                    throw new ServiceException("Framework returns null");
                }
                return instance;
            } catch (RemoteException e) {
                throw new ServiceException(e);
            }
        });
    }
Get remote preferences from Xposed framework. If the group does not exist, it will be created.

@param group Group name
@return The preferences
@throws ServiceException              If the service is dead or an error occurred
@throws UnsupportedOperationException If the framework is embedded
android/third_party/libxposed/service/src/main/java/io/github/libxposed/service/XposedService.java