# Set up  & Kết nối Phone

### Cấu hình  <a href="#cau-hinh-toi-thieu" id="cau-hinh-toi-thieu"></a>

**Máy tính:**

* **Máy tính:** dùng cấu hình Win 10, 64bit

**Điện thoại:**

* **Hệ điều hành**: Android 9 hoặc cao hơn.

### Kết nối điện thoại  <a href="#ket-noi-dien-thoai-bat-che-do-nha-phat-trien" id="ket-noi-dien-thoai-bat-che-do-nha-phat-trien"></a>

* **Bước 1:** Cắm dây dẫn USB điện thoại vào máy tính
* **Bước 2:** Bật USB Debuging trên điện thoại

Chú ý: Điện thoại cần bật chế độ nhà phát triển

## Hướng dẫn bật USB Debugging

Chế độ nhà phát triển (Developer Options) mở khóa nhiều tính năng ẩn dành cho người dùng nâng cao, đặc biệt là lập trình viên. Một trong những tính năng quan trọng nhất là **USB Debugging (Gỡ lỗi USB)**, cần thiết để:

✔️ **Kết nối & điều khiển điện thoại từ máy tính** qua ADB\
✔️ **Cài đặt ứng dụng không qua Google Play**\
✔️ **Ghi lại màn hình hoặc debug ứng dụng**\
✔️ **Tối ưu hiệu suất, giả lập tốc độ mạng, chỉnh DPI màn hình**

Cách bật chế độ nhà phát triển:&#x20;

1️⃣ **Mở Cài đặt (Settings)**\
2️⃣ **Vào "Giới thiệu điện thoại" (About Phone)**\
3️⃣ **Nhấn 7 lần vào "Số phiên bản" (Build Number)** để kích hoạt chế độ nhà phát triển\
4️⃣ **Quay lại Cài đặt**, tìm **"Tùy chọn nhà phát triển" (Developer Options)**\
5️⃣ **Bật "Gỡ lỗi USB" (USB Debugging)**

<figure><img src="/files/pG2qQxUV21uR0k9mhq3G" alt=""><figcaption></figcaption></figure>

Tuỳ dòng máy mà có cách bật USB Debugging sẽ khác nhau

**Video hướng dẫn bật Samsung:** [**https://youtu.be/AwYqeVqnyZw?si=gH9pD5pXQmLTQ58l**](https://youtu.be/AwYqeVqnyZw?si=gH9pD5pXQmLTQ58l)

**Video hướng dẫn bật Xiaomi:** [**https://youtu.be/LFZo5ziby3k?si=d-zGYJ57Ua5WmYjy**](https://youtu.be/LFZo5ziby3k?si=d-zGYJ57Ua5WmYjy)

**Video hướng dẫn bật Oppo:** [**https://youtu.be/SUxJo06247E?si=RPJ2E1aUlON8Pi-P**](https://youtu.be/SUxJo06247E?si=RPJ2E1aUlON8Pi-P)

**Video hướng dẫn bật Google Pixel:** [**https://youtu.be/d2OTrHpuq7o?si=EiGb0\_WMQYNGMTXH**](https://youtu.be/d2OTrHpuq7o?si=EiGb0_WMQYNGMTXH)

**Video hướng dẫn bật Huawei:** [**https://youtu.be/udC\_RCaI0pU?si=BXIt98UxlMs1ayhK**](https://youtu.be/udC_RCaI0pU?si=BXIt98UxlMs1ayhK)

**Video hướng dẫn bật Sony:** [**https://youtu.be/sj\_KxMnj6tw?si=EsrCTHj8f2fAD0DW**](https://youtu.be/sj_KxMnj6tw?si=EsrCTHj8f2fAD0DW)

**Video hướng dẫn bật Redmi:** [**https://youtu.be/M7mEqXHxzv0?si=sPruepKFb\_25if7\_**](https://youtu.be/M7mEqXHxzv0?si=sPruepKFb_25if7_)


---

# Agent Instructions: 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://gemphonefarm.gitbook.io/gemphonefarm-book-1/set-up-and-ket-noi-phone.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.
