Skip to content

Instantly share code, notes, and snippets.

@Systemad
Last active June 13, 2024 01:29
Show Gist options
  • Save Systemad/7dc2710b9699b05e517278f22189801e to your computer and use it in GitHub Desktop.
Save Systemad/7dc2710b9699b05e517278f22189801e to your computer and use it in GitHub Desktop.
FastbootD Rescue
FastbootD Rescue:
All commands: https://source.android.com/devices/bootloader/fastbootd
### Deleted logical partition
In case you "accidentally" delete a logical partition, you won't be able to flash anything on that slot
since the partition don't exist.
In order to restore the slot to be functional you need to manually create a the new deleted logcal parition
inside fastbootd. You can do that by following this command:
`fastboot create-logical-partition <logical_parition_slot> <size>`
for example:
`fastboot create-logical-partition vendor_a $((2*1024*1024*1024))`
Now you can flash the parition with fastbootd. If that doesn't work, switch to the other slot,
boot into TWRP and flash the FULL OOS zip.
### Modified partition, device won't boot.
Format Data in TWRP, then change filesystem to default file format.
Go to bootloader screen, switch to the other slot. Then boot into TWRP again and flash FULL OOS zip.
@cuynu
Copy link

cuynu commented Nov 4, 2023

Thanks, that saved my realme c55

@Tony2k
Copy link

Tony2k commented May 30, 2024

I lost product_a, system_a, system_ext_a and vendor_a partitions. I tried to create them with command "fastboot create-logical-partition system_a 1000" but give error "fastboot: usage: unknown command create-logical-partition". Do you know how to skip this error?

@Dunkindude
Copy link

Thank you for the guide.

...but what's the scale of the size? Mb? Kb? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment