summaryrefslogtreecommitdiff
path: root/fastboot/Fastboot.cpp
AgeCommit message (Collapse)Author
2022-09-01attempt to wipe digital car keys when clearing userdata from fastbootdJeffrey Carlyle
A WipeKeys function is optionally compiled into the recovery UI on Pixels where digital car keys are supported. This change looks for that function and, if found, uses it to clear the keys during a userdata wipe. Includes are reordered based on repohook requirements. (cherry picked from commit 6e7361b7f72c0de51757ec061c8a0fb016c6070d) Bug: 203234558 Test: data wipe in Android recovery mode on raven Test: data wipe in Android recovery mode on c10 Test: data wipe in user mode fastbootd mode on raven Test: data wipe in user mode fastbootd mode on c10 Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com> Change-Id: I5854110bcb291389db62d2dce0623d74e6715d97
2022-08-26Revert "attempt to wipe digital car keys when clearing userdata from fastbootd"Jeffrey Carlyle
This reverts commit 6e7361b7f72c0de51757ec061c8a0fb016c6070d. Reason for revert: see b/243864778 Change-Id: Iff77acb996008c21fc7d5e731d5852b1b240ac86
2022-08-11attempt to wipe digital car keys when clearing userdata from fastbootdJeffrey Carlyle
A WipeKeys function is optionally compiled into the recovery UI on Pixels where digital car keys are supported. This change looks for that function and, if found, uses it to clear the keys during a userdata wipe. Includes are reordered based on repohook requirements. Bug: 203234558 Test: adb reboot fastboot && fastboot -w; then check for key after reboot Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com> Change-Id: I46a58f7d521fdefd0675be0b4180bbefdee2e660 Merged-In: I46a58f7d521fdefd0675be0b4180bbefdee2e660
2021-11-03fastbootd: erase "metadata" partition along with "erase userdata" commandTommy Chiu
On erasing userdata partition, all the related partitions (ex, metadata) need to be erased respectively. Otherwise vold will get an error while trying to decrypt the leftover materials on the next bootup. Bug: 201533761 Test: fastboot erase userdata and reboot device Change-Id: If299d43f6d8fc9e092d2229022abc29383698320
2020-11-03Revert "Revert "fastboot: Use doOemSpecificErase() to erase Tita..."Jing-yan, Jang
Revert^2 "Organize citadel's setting" 0ed91028402fc1e0bdc179cbd01f2745cc92fa7c Change-Id: I2a81135b84be24133b7947d68ccdfa5bc2db16f8
2020-10-30Revert "fastboot: Use doOemSpecificErase() to erase Titan M userdata"Lokesh Gidra
Revert "Organize citadel's setting" Revert "Organize citadel's setting and fastboot lib" Revert "Organize citadel's setting" Revert "Organize citadel's setting" Revert "Organize citadel's setting" Revert "Organize citadel's setting and fastboot lib" Revert "iOrganize citadel's setting" Revert submission 12945656-ORGANIZE_CITADEL_LIB_AND_FASTBOOTD Reason for revert: Device boot tests failing. Reverted Changes: Ieb1cf8cb6:Organize citadel's setting I8c965ff88:Organize citadel's setting and fastboot lib Ia472d7812:Organize citadel's setting Id922447dd:iOrganize citadel's setting I4e05236c0:Organize citadel's setting I8fea8a68c:Organize citadel's setting and fastboot lib I63c732ead:fastbootd: allow fastbootd to access citadel I379e9a717:fastboot: Include fastbootd and lib in pixel-commo... I46a30449a:fastboot: Use doOemSpecificErase() to erase Titan ... I6cded2df5:Organize citadel's setting and fastboot lib I388675440:Organize citadel's setting and fastboot lib Iec10ebc27:Organize citadel's setting I51d6db226:Organize citadel's setting I44c4a232e:Organize citadel's setting I8ef83954e:Organize citadel's setting I72ae3f968:Organize citadel's setting Ia3dbac300:Organize citadel's setting I2c9ff026a:Organize citadel's setting I50a6764e1:Organize citadel's setting Bug: 172063886 Change-Id: I3e6b39dd9dcd4bdb8aafb3556362e1d15b710f37
2020-10-28fastboot: Use doOemSpecificErase() to erase Titan M userdataJoseph Jang
Since fastbootd 1.1 add new API doOemSpecificErase() for oem to erase vendor specific data. Try to implement doOemSpecificErase() to notify Tian M to erase userdata when user input 'fastboot erase userdata' in fastbootd. Bug: 169173873 Change-Id: I46a30449aa47031cded182d3290dea4e25dfa013
2020-09-18fastboot: Add oem command to wipe Titan M userdatajosephjang
Because fastbootd just wipe Android userdata partition when user input "fastboot erase userdata" command. We add a new oem command for fastbootd to notify Titan M to wipe userdata after Android userdata has been erased. Bug: 150929955 Change-Id: Ife9d49580c35c184ac2feecb70844785b42a0591
2018-10-17Add generic fastboot HAL implementation for pixelHridya Valsaraju
Test: mmm, verify implementation present in recovery Bug: 117837210 Change-Id: I5a983f4916de63d0d91e6a8addfb7fce80c1f843