{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/vi/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Hướng dẫn kết nối ADB","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"hướng-dẫn-kết-nối-adb","__idx":0},"children":["Hướng dẫn kết nối ADB"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Hướng dẫn này cung cấp hướng dẫn chi tiết về cách kết nối với các thiết bị điện thoại đám mây thông qua ADB, hỗ trợ các phiên bản ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Android 12/15"]}," và ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Android 13/14"]},"."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"1-kết-nối-adb-cho-điện-thoại-đám-mây-android-12--android-15","__idx":1},"children":["1. Kết nối ADB cho điện thoại đám mây Android 12 / Android 15"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"bước-1-kết-nối-với-ip-và-cổng-cloud-phone","__idx":2},"children":["Bước 1: Kết nối với IP và cổng Cloud Phone"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sử dụng lệnh ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb connect"]}," để kết nối trực tiếp với cổng và địa chỉ IP của điện thoại đám mây."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb connect 172.168.10.1:123456\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Thay thế ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["172.168.10.1:123456"]}," bằng cổng và IP điện thoại đám mây thực tế của bạn."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"bước-2-xác-thực-bằng-mã-kết-nối","__idx":3},"children":["Bước 2: Xác thực bằng mã kết nối"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sau khi kết nối thành công, xác thực bằng mã kết nối."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb shell 123456\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sau khi xác thực thành công, bạn sẽ được mặc định truy cập vào điện thoại đám mây và bạn có thể sử dụng \"exit\" để đăng xuất"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"exit\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Hoặc chỉ định địa chỉ thiết bị:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb -s 172.168.10.1:123456 shell 123456\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Lưu ý: Mã kết nối thường được cung cấp bởi nền tảng điện thoại đám mây. Đảm bảo nó được nhập chính xác."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"2-kết-nối-adb-cho-điện-thoại-đám-mây-android-13--android-14--android-15a--android-16","__idx":4},"children":["2. Kết nối ADB cho điện thoại đám mây Android 13 / Android 14 / Android 15A / Android 16"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Đối với các phiên bản này, đường hầm SSH phải được thiết lập để chuyển tiếp cổng ADB. Điều này đòi hỏi hai bước."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"bước-1-thiết-lập-đường-hầm-ssh-mở-cửa-sổ-cmd-đầu-tiên","__idx":5},"children":["Bước 1: Thiết lập đường hầm SSH (Mở cửa sổ CMD đầu tiên)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Chạy lệnh SSH sau để ánh xạ cổng ADB từ xa tới máy cục bộ của bạn:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ssh -oHostKeyAlgorithms=+ssh-rsa 10.2.179.250_1763627294587@107.151.131.2 -p 1824 -L 9897:adb-proxy:14566 -Nf\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ghi chú:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Thay thế tên người dùng, IP và cổng trong lệnh bằng cấu hình thực tế của bạn."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Khi được nhắc nhập mật khẩu, hãy dán mật khẩu SSH và nhấn Enter."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Lệnh sẽ không tạo ra bất kỳ đầu ra nào nếu thành công, cho biết đường hầm đang chạy ở chế độ nền."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"bước-2-kết-nối-với-cổng-adb-cục-bộ-mở-cửa-sổ-cmd-thứ-hai","__idx":6},"children":["Bước 2: Kết nối với Cổng ADB cục bộ (Mở cửa sổ CMD thứ hai)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Trong cửa sổ mới, thực hiện lệnh kết nối ADB:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb connect localhost:9897\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ví dụ đầu ra thành công:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"connected to localhost:9897\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ví-dụ-về-quy-trình-làm-việc-hoàn-chỉnh","__idx":7},"children":["Ví dụ về quy trình làm việc hoàn chỉnh"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"1-cửa-sổ-cmd-đầu-tiên-đường-hầm-ssh","__idx":8},"children":["1. Cửa sổ CMD đầu tiên (Đường hầm SSH):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ssh -oHostKeyAlgorithms=+ssh-rsa 10.2.179.250_1763627294587@107.151.131.2 -p 1824 -L 9897:adb-proxy:14566 -Nf\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tiếp theo nhập mật khẩu kết nối SSH"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"2-cửa-sổ-cmd-thứ-hai-kết-nối-adb","__idx":9},"children":["2. Cửa sổ CMD thứ hai (Kết nối ADB):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb connect localhost:9897\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"xác-minh-trạng-thái-kết-nối","__idx":10},"children":["Xác minh trạng thái kết nối"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Chạy lệnh sau để kiểm tra xem thiết bị đã được kết nối chưa:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb devices\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sản lượng dự kiến:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"List of devices attached\nlocalhost:9897     Device\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tham-chiếu-các-lệnh-adb-phổ-biến","__idx":11},"children":["Tham chiếu các lệnh ADB phổ biến"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Lệnh"},"children":["Lệnh"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Mô tả"},"children":["Mô tả"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb devices"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Liệt kê các thiết bị được kết nối"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb shell"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Nhập thiết bị đầu cuối vỏ thiết bị"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb shell pm list packages"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Liệt kê các ứng dụng đã cài đặt"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb install app.apk"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cài đặt tệp APK"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb uninstall package.name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Gỡ cài đặt ứng dụng"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb reboot"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Khởi động lại thiết bị"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ghi-chú-quan-trọng","__idx":12},"children":["Ghi chú quan trọng"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Đảm bảo bạn đã cài đặt ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.android.com/studio/releases/platform-tools"},"children":["Công cụ nền tảng SDK Android"]}," và các biến môi trường được định cấu hình."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Phương thức đường hầm SSH dành cho Android 13/14/15A được mã hóa và bảo mật — nên sử dụng."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Nếu kết nối hết thời gian, hãy kiểm tra cài đặt mạng, quy tắc tường lửa và cấu hình cổng."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Luôn xác nhận rằng điện thoại đám mây đã được bật và quyền truy cập ADB được bật trước khi kết nối."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Hãy làm theo các bước sau để kết nối thành công điện thoại đám mây của bạn cho các tác vụ tự động hóa và gỡ lỗi của ADB."]}]},"headings":[{"value":"Hướng dẫn kết nối ADB","id":"hướng-dẫn-kết-nối-adb","depth":1},{"value":"1. Kết nối ADB cho điện thoại đám mây Android 12 / Android 15","id":"1-kết-nối-adb-cho-điện-thoại-đám-mây-android-12--android-15","depth":2},{"value":"Bước 1: Kết nối với IP và cổng Cloud Phone","id":"bước-1-kết-nối-với-ip-và-cổng-cloud-phone","depth":3},{"value":"Bước 2: Xác thực bằng mã kết nối","id":"bước-2-xác-thực-bằng-mã-kết-nối","depth":3},{"value":"2. Kết nối ADB cho điện thoại đám mây Android 13 / Android 14 / Android 15A / Android 16","id":"2-kết-nối-adb-cho-điện-thoại-đám-mây-android-13--android-14--android-15a--android-16","depth":2},{"value":"Bước 1: Thiết lập đường hầm SSH (Mở cửa sổ CMD đầu tiên)","id":"bước-1-thiết-lập-đường-hầm-ssh-mở-cửa-sổ-cmd-đầu-tiên","depth":3},{"value":"Bước 2: Kết nối với Cổng ADB cục bộ (Mở cửa sổ CMD thứ hai)","id":"bước-2-kết-nối-với-cổng-adb-cục-bộ-mở-cửa-sổ-cmd-thứ-hai","depth":3},{"value":"Ví dụ về quy trình làm việc hoàn chỉnh","id":"ví-dụ-về-quy-trình-làm-việc-hoàn-chỉnh","depth":2},{"value":"1. Cửa sổ CMD đầu tiên (Đường hầm SSH):","id":"1-cửa-sổ-cmd-đầu-tiên-đường-hầm-ssh","depth":3},{"value":"2. Cửa sổ CMD thứ hai (Kết nối ADB):","id":"2-cửa-sổ-cmd-thứ-hai-kết-nối-adb","depth":3},{"value":"Xác minh trạng thái kết nối","id":"xác-minh-trạng-thái-kết-nối","depth":2},{"value":"Tham chiếu các lệnh ADB phổ biến","id":"tham-chiếu-các-lệnh-adb-phổ-biến","depth":2},{"value":"Ghi chú quan trọng","id":"ghi-chú-quan-trọng","depth":2}],"frontmatter":{"seo":{"title":"Hướng dẫn kết nối ADB"}},"lastModified":"2026-06-10T11:47:34.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/vi/api-reference/cloud-phone/adb","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}