Skip to content

Instantly share code, notes, and snippets.

@Systemad
Last active November 4, 2023 21:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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

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