Install TWRP Without Tripping Knox on Samsung
In this article
Installing TWRP (Team Win Recovery Project) on a Samsung Galaxy device typically trips Knox, permanently voiding your warranty and disabling features like Samsung Pay and Secure Folder. However, with the right approach, you can install TWRP without tripping Knox on certain devices and firmware versions. This guide covers the method that works when the bootloader is already unlocked (or when you use a special exploit), but note that on most modern Samsung devices, unlocking the bootloader itself trips Knox. If your device has a locked bootloader, you cannot install TWRP without tripping Knox. This guide assumes you have a device where the bootloader can be unlocked without tripping Knox (e.g., some older models or devices with a separate Knox fuse that can be preserved). If you are unsure, check your device model and firmware before proceeding. You will need a PC, a USB cable, and the correct files for your exact model.
What You'll Need
- A Samsung Galaxy device with an unlockable bootloader that does not trip Knox (check forums for your specific model).
- A Windows PC (or a virtual machine with Windows) to run Odin.
- Odin3 (the latest version, from a trusted source like XDA-Developers).
- The TWRP image file (.img or .tar) specifically for your device model and firmware version.
- The stock recovery image for your device (as a backup).
- USB debugging enabled on your device (Settings > Developer Options > USB Debugging).
- Samsung USB drivers installed on your PC.
- A full backup of your device data (in case something goes wrong).
Step-by-Step
- Back up everything. Use Samsung Smart Switch or a third-party app to back up your photos, contacts, and app data. Also, copy any important files from internal storage to your PC.
- Enable Developer Options. Go to Settings > About Phone and tap “Build Number” seven times. Then go to Settings > Developer Options and enable “OEM Unlocking” (if present) and “USB Debugging”. Note: On some devices, enabling OEM Unlocking may trip Knox immediately. If you see a warning about this, stop and research your specific model.
- Download the correct TWRP. Go to the official TWRP website (twrp.me) and find your device. Download the .img or .tar file that matches your exact model number (e.g., SM-G955F) and firmware version (Android version). If you cannot find it, check XDA-Developers forums for a TWRP build that preserves Knox.
- Download Odin and Samsung USB drivers. Get the latest Odin from a reputable source (like XDA). Install the Samsung USB drivers on your PC.
- Prepare the TWRP file. If you downloaded a .img file, you may need to convert it to a .tar file for Odin. Use a tool like 7-Zip to create a tar archive containing the .img file. Name the .tar file exactly “recovery.tar”.
- Boot your device into Download Mode. Turn off your device. Press and hold Volume Down + Home + Power (for devices with a home button) or Volume Down + Power (for newer models) until the download mode screen appears. Press Volume Up to continue.
- Connect your device to the PC. Use a USB cable and wait for the driver to install. Odin should show a blue or yellow COM port indicator.
- Open Odin. Right-click Odin and select “Run as Administrator”.
- Add the TWRP file to Odin. In Odin, click the “AP” button (or “Recovery” button, depending on your Odin version) and select the recovery.tar file you prepared. Do not touch any other options. Ensure “Re-Partition” is unchecked.
- Start the flash. Click the “Start” button in Odin. The process will take a few seconds. When it finishes, you will see a green “PASS!” message.
- Reboot directly into recovery. Immediately after the flash, unplug the USB cable and press and hold Volume Up + Home + Power (or Volume Up + Power for newer models) to boot into recovery. If you let the device boot normally, it may overwrite TWRP.
- Verify TWRP is installed. You should see the TWRP interface. If you see the stock recovery, the flash failed or Knox was tripped.
Common Mistakes
- Using the wrong TWRP file. A file for a different model or firmware version can cause a bootloop or brick.
- Enabling OEM Unlocking on a device that trips Knox. On many Samsung devices, toggling “OEM Unlocking” immediately trips Knox. Research your model first.
- Letting the device boot normally after flashing. Samsung devices may replace TWRP with stock recovery on first boot. You must boot directly into recovery.
- Not using the correct Odin version. Older Odin versions may not work with newer devices.
- Flashing a .img file directly in Odin. Odin requires a .tar file for recovery.
Tips
- Always download TWRP from official sources or trusted XDA threads. Unofficial builds may contain malware or be incompatible.
- Keep a copy of the stock recovery image. You can flash it back with Odin to restore the original recovery if needed.
- After installing TWRP, make a full Nandroid backup before making any changes.
- If your device has a locked bootloader, do not attempt this. Unlocking the bootloader will trip Knox, and there is no workaround.
- Check XDA forums for your exact device to see if a Knox-preserving method exists. Some devices have exploits that allow TWRP without tripping Knox, but these are rare and often patched in newer firmware.
Troubleshooting
If the flash fails or Odin shows an error: Re-download the TWRP file and ensure it matches your model and firmware. Try a different USB port or cable. Reinstall Samsung USB drivers. If you get a “SW REV CHECK FAIL” error, your firmware is too new and the TWRP build is not compatible.
If your device boots into a bootloop: Do not panic. Boot into Download Mode (Volume Down + Power) and flash the stock recovery or stock firmware using Odin. This will restore your device, but it may trip Knox if the bootloader was unlocked.
If TWRP does not appear after flashing: You may have let the device boot normally. Try booting into recovery manually again. If it still shows stock recovery, reflash TWRP and ensure you boot directly into recovery.
If you see a “Knox Warranty Void” message: This means Knox has been tripped. This is irreversible. If you wanted to avoid this, you cannot proceed further. Restore stock firmware and accept the warranty loss.
Frequently Asked Questions
Can I install TWRP on any Samsung device without tripping Knox?
No. Most modern Samsung devices trip Knox when the bootloader is unlocked. Only a few older models or devices with specific firmware versions have exploits that preserve Knox. Check XDA for your exact model.
What does tripping Knox mean?
It permanently sets a fuse in the device’s hardware, voiding the warranty and disabling Samsung Knox security features like Samsung Pay, Secure Folder, and Samsung Pass.
Will installing TWRP void my warranty even if Knox isn't tripped?
Yes, installing TWRP is a modification of the system software, which typically voids the warranty regardless of Knox status. However, if Knox is not tripped, you may be able to restore stock firmware and hide the modification in some cases.
Can I unroot or remove TWRP later?
Yes, you can flash the stock recovery and firmware using Odin. But if Knox is tripped, it cannot be reversed.
Is it safe to use Odin?
Odin is a trusted tool used by the Android community, but using it incorrectly can brick your device. Always follow instructions carefully and use the correct files.
What if my device has a locked bootloader?
If your device is carrier-locked or has a locked bootloader, you cannot install TWRP without tripping Knox. There is no official way to unlock the bootloader without tripping Knox on most devices.