ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
IDeviceFlasher.UserDataFlashOption
public
static
final
enum
IDeviceFlasher.UserDataFlashOption
extends Enum<IDeviceFlasher.UserDataFlashOption>
Enum ของตัวเลือกสำหรับการจัดการรูปภาพ userdata
สรุป
ค่า enum
เมธอดสาธารณะ
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 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 |"]]