Step 1: On your computer, download the APK file you need to install from your OTG. link here. Step 2: Plug your flash drive to your computer and copy the file to the root directory (don’t place it inside a folder so you can easily find it). Step 3: Plug the OTG cable to your phone and plug the flash drive to the other end of the cable.
Step 6: A system dialog box will pop up warning you that sideloading of apps is blocked by default. Touch Settings to continue. Step 7: Tap Unknown Sources, then OK. You can proceed to the installation of the APK file. Step 8: After the installation, tap Open. You can now access the Settings menu. Step 9: Unplug the OTG cable from your phone.
Step 10: Scroll down to Backup and reset and proceed with the Factory Reset.
So, basically, all you need to do after following all those steps is the Factory Reset so you can have full access to your phone. It’s easy, right? The most difficult part is accessing Settings when you’re locked out.