Od 27 marca 2025 r. zalecamy używanie android-latest-release
zamiast aosp-main
do kompilowania i wspołtworzenia AOSP. Więcej informacji znajdziesz w artykule o zmianach w AOSP.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
IDeviceFlasher.UserDataFlashOption
public
static
final
enum
IDeviceFlasher.UserDataFlashOption
extends Enum<IDeviceFlasher.UserDataFlashOption>
Enum z opcjami obsługi obrazu userdata
Podsumowanie
Wartości typu wyliczeniowego
FORCE_WIPE
public static final IDeviceFlasher.UserDataFlashOption FORCE_WIPE
wyczyść partycję danych użytkownika na urządzeniu za pomocą szybkiego kasowania, nawet jeśli nie jest to zalecane.
WIPE
public static final IDeviceFlasher.UserDataFlashOption WIPE
wymazanie partycji userdata na urządzeniu za pomocą szybkiego kasowania, jeśli jest obsługiwane przez urządzenie;
Metody publiczne
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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 |"]]