Warning: Not every Android device has a lockable and unlockable bootloader. Many manufacturers and mobile carriers don’t allow you to unlock or lock your bootloader. Warning: Locking your bootloader will most likely wipe your entire Android device. Make sure you backup your device before attempting to lock it or flash it.

Samsung LG HTC Sony Huawei

On Samsung Galaxy devices, press and hold the Power’ or “Bixby button and Volume Up to boot into Recovery Mode. [1] X Research source

On Samsung Galaxy devices, press and hold the Power’ or “Bixby button and Volume Up to boot into Recovery Mode. [1] X Research source

On Samsung Galaxy devices, press and hold the Power’ or “Bixby button and Volume Up to boot into Recovery Mode. [1] X Research source

On Samsung Galaxy devices, press and hold the Power’ or “Bixby button and Volume Up to boot into Recovery Mode. [1] X Research source

On Samsung Galaxy devices, press and hold the Power’ or “Bixby button and Volume Up to boot into Recovery Mode. [1] X Research source

On Samsung Galaxy devices, press and hold the Power’ or “Bixby button and Volume Up to boot into Recovery Mode. [1] X Research source

Windows: Click the Windows Start menu and type “CMD. " Right-click the Command Prompt icon and click Run as Administrator. Then click Yes. Mac: Click the magnifying glass icon in the upper-right corner. Type “Terminal” in the search bar. Click the Terminal to launch it. Linux: Press “Ctrl + Alt + T’ to open the Terminal.

To find the path for the platform-tools folder on Windows, open the platform-tools folder in File Explorer. Then right-click the path in the address bar at the top and click Copy address as text. You can press Ctrl + V to paste the address into Command Prompt. To find the path for the platform-tools folder on Mac, right-click the platform-tools folder, and click Get Info. Highlight and copy the address next to “Where. " You can press Command + V to paste the address into Terminal. If you saved the platform-tools folder to another folder, such as a D: drive, you will need to switch to that drive before you can navigate to the path. To switch to a different drive, type the drive letter followed by a colon in Command Prompt or Terminal (i. e. “D:”) and press Enter or Return.

To find the path for the platform-tools folder on Windows, open the platform-tools folder in File Explorer. Then right-click the path in the address bar at the top and click Copy address as text. You can press Ctrl + V to paste the address into Command Prompt. To find the path for the platform-tools folder on Mac, right-click the platform-tools folder, and click Get Info. Highlight and copy the address next to “Where. " You can press Command + V to paste the address into Terminal. If you saved the platform-tools folder to another folder, such as a D: drive, you will need to switch to that drive before you can navigate to the path. To switch to a different drive, type the drive letter followed by a colon in Command Prompt or Terminal (i. e. “D:”) and press Enter or Return.

If it does recognize your device, make sure your Android device is in recover/fastboot mode. If it is not, you can type “adb reboot bootloader” and press Enter to boot your phone into Fastboot mode.

fastboot oem lock oem relock

Warning: Do not disconnect your device until this process is complete. Any interruptions during this process may permanently damage your Android device. [2] X Research source

Warning: Do not disconnect your device until this process is complete. Any interruptions during this process may permanently damage your Android device. [2] X Research source

Warning: Do not disconnect your device until this process is complete. Any interruptions during this process may permanently damage your Android device. [2] X Research source

Warning: Do not disconnect your device until this process is complete. Any interruptions during this process may permanently damage your Android device. [2] X Research source