Enum values |
IDeviceFlasher.UserDataFlashOption |
FLASH
flash the given userdata image on device
|
IDeviceFlasher.UserDataFlashOption |
FLASH_IMG_ZIP
flash the userdata image included in device image zip
|
IDeviceFlasher.UserDataFlashOption |
FORCE_WIPE
wipe the device's userdata partition using fastboot erase, even if it's unadvised
|
IDeviceFlasher.UserDataFlashOption |
RETAIN
leave the userdata partition as is
|
IDeviceFlasher.UserDataFlashOption |
TESTS_ZIP
push the contents of the tests zip file onto the device's userdata partition
|
IDeviceFlasher.UserDataFlashOption |
WIPE
wipe the device's userdata partition using fastboot erase, if supported by device
|
IDeviceFlasher.UserDataFlashOption |
WIPE_RM
delete content from the device's /data partition using adb shell rm
|
Enum values
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-04-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-28 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 |"]]