Chỉ bật tính năng ghi nhật ký chi tiết cho các thiết bị thử nghiệm. Nhật ký sau đây bao gồm thông tin nhận dạng cá nhân (PII).
adb shell su root am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e carrier_services_log_level VERBOSE
adb shell su root am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e carrier_services_enable_debug_mode true
adb shell su root am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e bugle_rcs_allow_overrides true
adb shell su root am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e bugle_debugging true
adb shell su root am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e carrier_services_enable_sensitive_logging true
Thiết bị chưa bị can thiệp vào hệ thống
Trên thiết bị chưa bị can thiệp vào hệ thống, hãy dùng lệnh sau để bật tính năng ghi nhật ký chi tiết:
adb shell am broadcast -a 'com.google.android.gms.phenotype.FLAG_OVERRIDE' --es package "com.google.android.apps.messaging#com.google.android.apps.messaging" --es user "\*" --esa flags "bugle_phenotype__enable_verbose_bug_reports" --esa values "true" --esa types "boolean" com.google.android.gms
Tái hiện vấn đề
Trong phần Cài đặt > Hệ thống > Tuỳ chọn cho nhà phát triển > Kích thước bộ đệm của trình ghi nhật ký, hãy tăng tối đa kích thước bộ đệm của trình ghi nhật ký. Sử dụng kích thước lớn nhất cho thiết bị (ví dụ: 16 MB trên thiết bị cao cấp).
Buộc dừng ứng dụng Tin nhắn.
Nếu lỗi liên quan đến việc cấp phép Dịch vụ giao tiếp đa dạng (RCS), hãy hoàn tất các bước sau:
Bật Chế độ trên máy bay.
Xoá bộ nhớ của ứng dụng Tin nhắn và Dịch vụ của nhà mạng trong phần Cài đặt.
Tắt Chế độ trên máy bay.
Bật tính năng nhắn tin qua RCS trong phần Cài đặt.
Hãy đợi ít nhất 5 phút trước khi bắt đầu báo cáo lỗi.
Đối với mỗi lỗi mới, hãy xoá thông báo logcat:
adb logcat -c
Bắt đầu quay video:
Chỉ ghi lại lỗi đã báo cáo.
Giữ cho bản ghi video ngắn nhất có thể. Ví dụ: nếu lỗi xảy ra sau khi thực hiện một lệnh gọi, hãy chỉ ghi lại phần đó của lệnh gọi.
Không ghi lại các bước lặp lại.
Khởi động ứng dụng Tin nhắn và tái hiện lỗi.
Dừng quay video.
Thu thập báo cáo lỗi
Trong báo cáo, hãy ghi lại những thông tin sau:
Dấu thời gian khi lỗi xảy ra.
Các bước kích hoạt lỗi.
Bản thân lỗi (ví dụ: thông báo lỗi).
Bản ghi màn hình trong khi tái hiện lỗi.
Trong phần Tuỳ chọn cho nhà phát triển, hãy nhấn vào Tạo báo cáo lỗi.
Chọn một loại báo cáo lỗi rồi nhấn vào Báo cáo. Một thông báo sẽ cho biết thời điểm báo cáo lỗi đã sẵn sàng.
Đính kèm báo cáo lỗi trong lỗi đã gửi.
Nếu lỗi liên quan đến một hoặc nhiều thư (ví dụ: không gửi được thư), hãy cung cấp Mã thư của các thư bị ảnh hưởng.
Bật trình đơn gỡ lỗi của ứng dụng Tin nhắn:
Mở ứng dụng Tin nhắn.
Nhấn vào thanh tìm kiếm.
Tìm kiếm *xyzzy* Trình đơn Debug Utils (Tiện ích gỡ lỗi) sẽ mở ra hoặc một thông báo ngắn sẽ xuất hiện với thông báo Debug menu option enabled.
Chạm và giữ tin nhắn đó.
Nhấn vào biểu tượng Trình đơn more_vert, rồi nhấn vào Xem chi tiết.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[],[],null,["To help the Support team resolve issues with the Messages app on Android\ndevices, generate a bug report and a video recording.\n\nTo get a bug report directly from your Android device, follow these steps.\n| **Note:** Changes to settings, a device reset, or a device reboot may require you to repeat steps 1 and 2.\n\nEnable developer options and USB debugging\n\nFor information about developer options used to configure system behaviors that\nhelp you profile and debug your app performance, see\n[Configure on-device developer options](https://developer.android.com/studio/debug/dev-options).\n\nEnable verbose logging for Messages \n\nRooted device\n\nOn a rooted device, use the following commands to enable verbose\nlogging: \n\n adb shell setprop log.tag.Bugle VERBOSE\n adb shell setprop log.tag.BugleDataModel VERBOSE\n adb shell setprop log.tag.RcsProvisioning VERBOSE\n adb shell setprop log.tag.CarrierServices VERBOSE\n adb shell setprop log.tag.BugleAction VERBOSE:\n adb shell setprop log.tag.BugleRcsEngine VERBOSE;\n adb shell setprop log.tag.BugleTransport VERBOSE;\n adb shell setprop log.tag.BugleRcsProvisioning VERBOSE;\n adb shell setprop log.tag.RcsClientLib VERBOSE;\n adb shell setprop log.tag.BugleRcs VERBOSE;\n\n**Enable verbose logging only for the testing devices**. The following\nlog includes personally identifiable information (PII). \n\n adb shell su root am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e carrier_services_log_level VERBOSE\n adb shell su root am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e carrier_services_enable_debug_mode true\n adb shell su root am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e bugle_rcs_allow_overrides true\n adb shell su root am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e bugle_debugging true\n adb shell su root am broadcast -a com.google.gservices.intent.action.GSERVICES_OVERRIDE -e carrier_services_enable_sensitive_logging true\n\nUnrooted device\n\nOn an unrooted device, use the following command to enable verbose logging: \n\n adb shell am broadcast -a 'com.google.android.gms.phenotype.FLAG_OVERRIDE' --es package \"com.google.android.apps.messaging#com.google.android.apps.messaging\" --es user \"\\*\" --esa flags \"bugle_phenotype__enable_verbose_bug_reports\" --esa values \"true\" --esa types \"boolean\" com.google.android.gms\n\nReproduce your issue\n\n1. In **Settings \\\u003e System \\\u003e Developer options \\\u003e Logger buffer sizes**, maximize the logger buffer size. Use the largest size for the device (for example, 16 MB on a high-end device).\n2. Force stop the Messages app.\n3. If the bug relates to Rich Communication Services (RCS) provisioning, complete the following steps:\n 1. Enable Airplane mode.\n 2. Clear the Messages and Carrier Services storage from **Settings**.\n 3. Disable Airplane mode.\n 4. Enable RCS chat in **Settings**.\n 5. Wait at least five minutes before starting the bug report.\n4. For each new bug, clear the logcat messages:\n\n adb logcat -c\n\n5. Start the video recording:\n\n - Record only the reported bug.\n - Keep video recordings as short as possible. For example, if the bug occurs after making a single call, record only that section of the call.\n - Don't record repetitive steps.\n6. Start the Messages app and reproduce the bug.\n\n7. Stop the video recording.\n\nCollect the bug report\n\n1. In the report, capture the following:\n 1. The timestamp when the bug occurs.\n 2. The steps that trigger the bug.\n 3. The bug itself (for example, error message).\n 4. A recording of the screen while reproducing the bug.\n2. In **Developer options** , tap **Take bug report**.\n\n | **Tip:** To learn how to generate bug reports using `adb`, see [Capture a bug report using adb](https://developer.android.com/studio/debug/bug-report#bugreportadb).\n3. Select a bug report type and tap **Report**. A notification indicates\n when the bug report is ready.\n\n4. Attach the bug report in a submitted bug.\n\nIf the bug relates to one or more messages (for example, messages couldn't be\nsent), provide the Message IDs of the affected messages.\n\n1. Enable the Messages debug menu:\n 1. Open Messages.\n 2. Tap the search bar.\n 3. Search for `*xyzzy*`. The **Debug Utils** menu opens or a toast appears with the message `Debug menu option enabled`.\n2. Touch \\& hold the message.\n3. Tap more_vert Menu, then tap **View Details**."]]