> For the complete documentation index, see [llms.txt](https://faultx.gitbook.io/rn10p-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://faultx.gitbook.io/rn10p-docs/bootloader/relock-bootloader.md).

# Relock Bootloader

{% hint style="warning" %}

### Warning

Relock hanya boleh dilakukan jika HP memakai ROM resmi (MIUI Official / Stock ROM) yang tidak dimodifikasi, non-root, dan partisi lengkap.&#x20;

Jika kamu relock saat memakai Custom ROM → 100% brick (bootloop / hardbrick).
{% endhint %}

## Risiko Relock Bootloader  <a href="#risiko-relock-bootloader" id="risiko-relock-bootloader"></a>

* HP akan factory reset
* Jika ROM bukan ROM resmi → bootloop / brick
* Semua data di storage akan dihapus

## Syarat Wajib Sebelum Relock  <a href="#syarat-wajib-sebelum-relock" id="syarat-wajib-sebelum-relock"></a>

1. **Harus memakai ROM Resmi / Stock ROM**\
   Boleh:\
   MIUI Global / EEA / Indonesia resmi Fastboot ROM resmi (diinstall via MiFlash)\
   Tidak boleh:\
   Custom ROM (PixelOS, LineageOS, dll.) ROM yang sudah di-root ROM modifikasi/patched.
2. **Tidak boleh ada Magisk / Root / Modifikasi**\
   Pastikan:&#x20;
   * Tidak ada Magisk
   * Tidak ada TWRP (bisa tapi tidak disarankan)
   * Boot image tidak dipatch
3. **Disarankan install ulang menggunakan Fastboot ROM**\
   Gunakan MiFlash dengan opsi:\
   **clean all** (aman)\
   atau\
   **clean all and lock** (langsung relock secara otomatis)

## Relock Bootloader via MiFlash  <a href="#relock-bootloader-via-miflash" id="relock-bootloader-via-miflash"></a>

Ini adalah cara paling aman untuk relock bootloader di Redmi Note 10 Pro.

{% hint style="danger" %}

### Caution

Jika kamu saat ini atau sebelumnya menggunakan ROM/Custom ROM (AOSP) dan ingin kembali ke ROM bawaan MIUI 14/13/12, saya sarankan untuk melakukan hal  [<mark style="color:$danger;">**ini**</mark>](/rn10p-docs/troubleshooting/find-device-storage-corrupt.md).\
Tujuannya adalah untuk memastikan bahwa saat kamu menggunakan MIUI, kamu tidak akan menemui pesan seperti ini: ***“Find Device storage corrupt. Your device is unsafe now.”*** atau ***“Penyimpanan perangkat rusak. Perangkat Anda sekarang tidak aman.*****”**
{% endhint %}

***

{% stepper %}
{% step %}

### Download Fastboot ROM

Cari ROM model:\
sweet (Global / EEA / Indonesia) → [**Download**](/rn10p-docs/miui/download-miui-rom.md) `.tgz`

Ekstrak file `.tgz`
{% endstep %}

{% step %}

### Masuk mode Fastboot

* Matikan HP
* Tekan **Volume Down + Power**
* Akan muncul logo fastboot
  {% endstep %}

{% step %}

### Download dan jalankan MiFlash

Download: [MiFlash](/rn10p-docs/tools/xiaomi-tools.md#miflash-tools)

* Buka aplikasi **Xiaomi MiFlash Tool**
* Klik **Select** → arahkan ke folder Fastboot ROM (folder yang berisi images)
* Pastikan tipe flash di bawah pilih: **Clean All and Lock**

| Opsi                   | Status Bootlaoder              | Kondisi Data         |
| ---------------------- | ------------------------------ | -------------------- |
| Clean All              | Tetap Terbuka (Unlocked)       | Terhapus Total       |
| Save User Data         | Tetap Terbuka (Unlocked)       | Aman (Tidak Dihapus) |
| **Clean All and Lock** | **Dikunci Kembali (Relocked)** | **Terhapus Total**   |

* Click **Flash** dan tunggu hingga proses flasing selesai hingga akan muncul: \ <i class="fa-circle-check" style="color:$primary;">:circle-check:</i> <mark style="color:$primary;">**Flash Done!**</mark>
* Device akan otomatis Reboot.
  {% endstep %}
  {% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://faultx.gitbook.io/rn10p-docs/bootloader/relock-bootloader.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
