Today after a successful(Booted, worked fine all day) OTA manual upgrade(downloaded latest zip and flashed) I decided to reinstall TWRP in order to reroot. However, after running first "fastboot flash recovery twrp.img" then "fastboot boot twrp.img", I am no longer prompted to enter my passcode(which I know) to decrypt the device, and the /system partition is empty in the TWRP file manager. The sdcard partition is filled with my encrypted files(assuming by their base64 names). I dont think any of my actions in TWRP were significant, except possibly when I flashed the twrp.img to have the recovery be persistent. (When I launched TWRP for the first time, I wasn't prompted for my password to decrypt then either, so I assume the damage was already done) I have tried "twrp decrypt [password]" in the twrp terminal but I get "Failed to decrypt data". When I try boot into system, I either bootloop or TWRP launches instead.

A. Is there a way to reflash my system(e.g Can I just flash the same update.zip) and be back to normal Or B. Can I retrieve and decrypt my data, given that I know my lockscreen passcode which is normally used to decrypt it.

Here is everything I wrote in my command prompt

Here is ls -la /

  • this devices does not have a recovery partition. therefore you probably need to flash back stock boot.img, then boot into twrp and install twrp from twrp
    – alecxs
    Aug 12, 2019 at 21:20
  • @alecxs Just to be sure, I flash the same whole stock image(oneplus.com/uk/support/softwareupgrade/details?code=9) as it was before, or flash only a stock recovery image from someplace online?
    – jones44
    Aug 12, 2019 at 21:20
  • extract the boot.img from stock rom and download twrp-3.2.3-2-fajita.img. flash boot.img to boot and boot twrp.img from fastboot. then install twrp-installer-fajita-3.2.3-2.zip from twrp. please read the instructions twrp.me/oneplus/oneplus6t.html
    – alecxs
    Aug 12, 2019 at 21:26
  • @alecxs I cant thank you enough! Almost had to write a new CV
    – jones44
    Aug 12, 2019 at 21:45

1 Answer 1


Full credit to alecxs for this answer. Posting incase anybody else has the same problem in the future.

  1. Download stock image(Mine was oneplus.com/uk/support/softwareupgrade/details?code=9)
  2. Use extract_android_ota_payload-master to split the payload.bin inside the zip (Method for step 2 https://pastebin.com/RfEHuvu7 , I did this on linux because my linux machine has python2 installed, no other reason)
  3. Flash the boot.img and boot with twrp (Step 3 https://pastebin.com/Gp9aJq36)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .