Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Disable Write Protection on HTC One M9 After S-OFF

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

After achieving S-OFF on your HTC One M9, the system partition is still write-protected by default. Disabling write protection lets you modify system files, remove bloatware, or flash custom mods without restrictions. This guide shows you the safe, standard method using a PC and official tools. You must already have S-OFF (via Sunshine or similar) and a working USB connection to your phone.

What You'll Need

  • HTC One M9 with S-OFF already achieved
  • A Windows PC (the official HTC tool is Windows-only)
  • USB cable that supports data transfer
  • HTC Sync Manager or HTC USB drivers installed on your PC
  • ADB and Fastboot tools (available from the Android developer site)
  • Backup of your important data (optional but recommended)

Step-by-Step

  1. Enable Developer Options and USB Debugging – On your phone, go to Settings > About and tap Build number seven times until you see “You are now a developer.” Then go to Settings > Developer options and turn on USB debugging.
  2. Connect your phone to your PC – Use a good quality USB cable. When prompted on your phone, allow USB debugging by tapping “OK” on the RSA key prompt.
  3. Verify ADB connection – Open a Command Prompt (or PowerShell) window on your PC in the folder where ADB is installed. Type adb devices and press Enter. Your device should appear with “device” status. If it shows “unauthorized,” re-check the prompt on your phone.
  4. Boot into Download Mode – Reboot your phone into Download Mode by typing adb reboot download and pressing Enter. The phone will restart into a black screen with white text (Download Mode).
  5. Verify Fastboot connection – In the same Command Prompt, type fastboot devices and press Enter. You should see your device serial number followed by “fastboot.” If not, install the correct HTC drivers and try again.
  6. Disable write protection – Type the following command and press Enter:
    fastboot oem write_protect 0
    Wait for the command to complete. You should see “OKAY” in the output.
  7. Reboot your phone – Type fastboot reboot and press Enter. Your phone will restart normally.
  8. Verify write protection is off – After reboot, open a command prompt and type adb shell then mount | grep system. If the system partition shows as “rw” (read-write), write protection is disabled. If it still shows “ro” (read-only), you may need to remount it (see Troubleshooting).

Common Mistakes

  • Using the wrong command – Some guides suggest fastboot oem write_protect disable, which is not recognized on the M9. The correct command is fastboot oem write_protect 0.
  • Not having S-OFF – If you are only S-ON, the command will fail with “FAILED (remote: not allowed).” Double-check your S-OFF status by booting into Download Mode and looking at the top line – it should say “S-OFF.”
  • Incorrect drivers – If fastboot doesn’t see your device, you likely have the wrong USB driver. Uninstall old HTC drivers and install the latest HTC Sync Manager, which includes the proper drivers.
  • Skipping the USB debugging authorization – If you don’t tap “Allow” on the phone when prompted, ADB will not work.
  • Using a USB hub or poor cable – This can cause intermittent disconnections. Use a port directly on your PC and a high-quality cable.

Tips

  • Make a full backup of your system before making any changes. Use TWRP recovery to create a Nandroid backup – this can save you if something goes wrong.
  • After disabling write protection, you can remove system apps using a root file manager or use ADB commands. Be careful not to delete critical system files.
  • If you ever want to re-enable write protection (for example, to take an OTA update), use the command fastboot oem write_protect 1.
  • Keep your bootloader unlocked. Relocking it may cause issues with S-OFF and write protection.
  • Use the latest version of ADB and Fastboot from the official Android developer website to avoid compatibility issues.

Troubleshooting

If the command fails with “FAILED (remote: not allowed)” – This usually means S-OFF is not active. Verify S-OFF in Download Mode. If you are S-ON, you cannot disable write protection this way; you would need to achieve S-OFF first (which may require paid tools like Sunshine).

If fastboot doesn’t recognize your device – Try re-installing HTC Sync Manager, then restart your PC and phone. Also ensure USB debugging is enabled and you have authorized the computer in the RSA prompt.

If the phone boots but system is still read-only – After disabling write protection, you may need to remount the system partition. In ADB shell, type su (if you have root) then mount -o rw,remount /system. If you don’t have root, you may need to flash a rooted kernel or use TWRP to remount.

If you get a “device not found” error during fastboot – Make sure your phone is actually in Download Mode (black screen with white text). If it’s in the bootloader menu, select “Download Mode” using the volume keys and power button.

If the phone becomes stuck or bootloops after disabling write protection – Do not panic. Boot into recovery (TWRP) and restore your Nandroid backup. If you don’t have a backup, you can flash a stock ROM from HTC’s website or a trusted XDA thread.

Frequently Asked Questions

Do I need root to disable write protection?

No. The fastboot oem write_protect 0 command works on a stock HTC One M9 with S-OFF, even without root. However, you will need root to actually modify system files after disabling write protection.

Will disabling write protection affect OTA updates?

Yes, it can. OTA updates often require a read-only system partition. If you have modified system files, OTA updates may fail. You can re-enable write protection with fastboot oem write_protect 1 before taking an update, but if you’ve made changes, the update may still fail.

Can I disable write protection on a Mac or Linux?

No. The official HTC fastboot command is only supported on Windows. You can try using a virtual machine with Windows, but the USB passthrough may be tricky. It’s easier to use a Windows PC.

Is it safe to disable write protection?

It is safe as long as you follow the steps correctly. The risk comes from modifying system files afterward – if you delete or alter a critical file, your phone may not boot. Always have a backup.

How do I check if S-OFF is active?

Power off your phone, then press and hold Volume Down + Power to enter the bootloader. Look at the top of the screen – it will show “S-OFF” or “S-ON.” If it says S-ON, this guide won’t work.

What does the command actually do?

The command fastboot oem write_protect 0 tells the bootloader to remove the write-protection flag on the system and other critical partitions. This allows you to write to them, which is necessary for custom ROMs, mods, or debloating.