Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
IDeviceFlasher.UserDataFlashOption
public
static
final
enum
IDeviceFlasher.UserDataFlashOption
extends Enum<IDeviceFlasher.UserDataFlashOption>
Enum của các tuỳ chọn để xử lý hình ảnh userdata
Tóm tắt
Giá trị enum
FORCE_WIPE
public static final IDeviceFlasher.UserDataFlashOption FORCE_WIPE
xoá phân vùng dữ liệu người dùng của thiết bị bằng tính năng xoá khởi động nhanh, ngay cả khi không nên làm như vậy
Phương thức công khai
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["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-27 UTC."],[],[],null,["# IDeviceFlasher.UserDataFlashOption\n==================================\n\n\n`\npublic\nstatic\nfinal\n\nenum\nIDeviceFlasher.UserDataFlashOption\n`\n\n\n`\n\n\n`\n\n`\n\nextends Enum\u003c`[IDeviceFlasher.UserDataFlashOption](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html)`\u003e\n\n\n`\n\n`\n\n\n`\n\n|---|---|--------------------------------------------------------------------|\n| java.lang.Object |||\n| ↳ | java.lang.Enum\\\u003c[com.android.tradefed.targetprep.IDeviceFlasher.UserDataFlashOption](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html)\\\u003e ||\n| | ↳ | com.android.tradefed.targetprep.IDeviceFlasher.UserDataFlashOption |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nEnum of options for handling the userdata image\n\nSummary\n-------\n\n| ### Enum values ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| [IDeviceFlasher.UserDataFlashOption](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html) | `FLASH` flash the given userdata image on device |\n| [IDeviceFlasher.UserDataFlashOption](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html) | `FLASH_IMG_ZIP` flash the userdata image included in device image zip |\n| [IDeviceFlasher.UserDataFlashOption](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html) | `FORCE_WIPE` wipe the device's userdata partition using fastboot erase, even if it's unadvised |\n| [IDeviceFlasher.UserDataFlashOption](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html) | `RETAIN` leave the userdata partition as is |\n| [IDeviceFlasher.UserDataFlashOption](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html) | `TESTS_ZIP` push the contents of the tests zip file onto the device's userdata partition |\n| [IDeviceFlasher.UserDataFlashOption](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html) | `WIPE` wipe the device's userdata partition using fastboot erase, if supported by device |\n| [IDeviceFlasher.UserDataFlashOption](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html) | `WIPE_RM` delete content from the device's /data partition using adb shell rm |\n\n| ### Public methods ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static `[IDeviceFlasher.UserDataFlashOption](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html) | ` `[valueOf](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html#valueOf(java.lang.String))`(String name) ` |\n| ` static final `[UserDataFlashOption[]](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html) | ` `[values](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html#values())`() ` |\n\nEnum values\n-----------\n\n### FLASH\n\n```\npublic static final IDeviceFlasher.UserDataFlashOption FLASH\n```\n\nflash the given userdata image on device\n\n\u003cbr /\u003e\n\n### FLASH_IMG_ZIP\n\n```\npublic static final IDeviceFlasher.UserDataFlashOption FLASH_IMG_ZIP\n```\n\nflash the userdata image included in device image zip\n\n\u003cbr /\u003e\n\n### FORCE_WIPE\n\n```\npublic static final IDeviceFlasher.UserDataFlashOption FORCE_WIPE\n```\n\nwipe the device's userdata partition using fastboot erase, even if it's unadvised\n\n\u003cbr /\u003e\n\n### RETAIN\n\n```\npublic static final IDeviceFlasher.UserDataFlashOption RETAIN\n```\n\nleave the userdata partition as is\n\n\u003cbr /\u003e\n\n### TESTS_ZIP\n\n```\npublic static final IDeviceFlasher.UserDataFlashOption TESTS_ZIP\n```\n\npush the contents of the tests zip file onto the device's userdata partition\n\n\u003cbr /\u003e\n\n### WIPE\n\n```\npublic static final IDeviceFlasher.UserDataFlashOption WIPE\n```\n\nwipe the device's userdata partition using fastboot erase, if supported by device\n\n\u003cbr /\u003e\n\n### WIPE_RM\n\n```\npublic static final IDeviceFlasher.UserDataFlashOption WIPE_RM\n```\n\ndelete content from the device's /data partition using adb shell rm\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### valueOf\n\n```\npublic static IDeviceFlasher.UserDataFlashOption valueOf (String name)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|-----------------|\n| `name` | `String` \u003cbr /\u003e |\n\n| Returns ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [IDeviceFlasher.UserDataFlashOption](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html) | \u003cbr /\u003e |\n\n### values\n\n```\npublic static final UserDataFlashOption[] values ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [UserDataFlashOption[]](../../../../../../reference/tradefed/com/android/tradefed/targetprep/IDeviceFlasher.UserDataFlashOption.html) | \u003cbr /\u003e |"]]