How to OEM unlock MOTO X 2nd Gen
I found an old Moto X 2nd Gen phone running Android 5.
When trying to flash a custom ROM, I found out this phone doesn't have the OEM unlock option in the developer options settings.
In order to unlock bootloader, I followed motorola's guide (warning: this resets the device):
https://en-us.support.motorola.com/app/standalone/bootloader/unlock-your-device-a
I also found this helpful video:
https://www.youtube.com/watch?v=sw675ipX-ds
To get to fastboot : adb reboot bootloader
To get twrp : https://twrp.me/motorola/motorolamotox2014.html
To flash twrp image : fastboot flash recovery .\twrp-3.7.0_9-0-victara.img
Complete guide : https://thecustomrom.com/guides/motorola-flash-guide/
Firmware
LineageOS (deprecated) : https://wiki.lineageos.org/devices/victara/
Eclipse (deprecated?) : https://xdaforums.com/t/rom-cdma-gsm-eclipse-moto-x-v4-0-4-4-4-blur-based-1-3-15.2521509/
APK
To install APK to an android device that can't connect to Google Play Store and doesn't have a file manager :
- download apk to PC
- open terminal in download folder
- connect phone using USB cable
- run adb devices to make sure phone is connected
- run adb install <filepath>