Problem with wireless controller

I have this evofox elite x wireless controller which has a windows mode and an android mode. When plugged into linux it gets stuck in android mode which disables rumble and misconfigures a bunch of the buttons. The controller uses ShanWan firmware similar to lot of third party controllers so I tried following the steps provided in the ShanWan section of the arch wiki for gamepads since the issues mentioned in the article match one to one with what is happening to my controller.

This still did not fix the problem and the controller doesn’t exactly connect the same way mentioned in the article. It doesn’t seem to fall back to any Nintendo mode or anything. I am fairly new to linux and have very little experience in these things so if someone with some more knowledge could help it would be greatly appreciated. Thanks

did you add SDL_HIDAPI_DISABLE_LIBUSB=1 to /etc/environment like it suggested

yes I added this and I tried the usb quirks mentioned in the article but nothing worked.