Encryption Issues/TWRP/password

GitManMatt

Member
Jun 30, 2018
42
8
0
Bishop Auckland
Morning

I have an issue with an OP5 I'm trying to get working again. I got this phone secondhand, it was advertised as having freezing/reboot issues. I used the phone for a while and confirmed this was the case, broadly speaking it did the following (I never wholly nailed it down):

  • it froze at charging so would need to be booted into bootloader and started from there
  • it went into a weird vegetative state sometimes after charging (black screen, LED glowing whitish), which only a reboot in the manner above would fix
  • it would occasionally freeze after a normal reboot (about 5-10 seconds in) if I immediately started using it
  • it did not execute random reboots often, mainly just freezes
  • there was on-screen weirdness, sometimes flickering along edges of screen, sometimes whole screen freak outs with colour inversion or whatever...rebooting the phone fixed it

The phone was on stock ROM (latest 9.0.9) so I thought I might fix it by flashing Lineage Pie onto it, which I did yesterday; I also flashed TWRP codeworx onto it too....so far so good.

The phone immediately was working much better, it was not having boot issues, it seemed to be running great, I thought it must be something on the stock ROM which was causing the issues so was happy. I got busy rooting it (Magisk) and getting gapps back on - happy days. Plugged it in last night to charge, phone was left on.

This morning, vegetative phone again. Turned it on (normal way) and got to lockscreen - entered pin, back to lockscreen, did this several times, still got to lockscreen. I now realise it wasn't recognising the pin.

Rebooted the phone. Straight to TWRP, and the 'decrypt data' screen - entering the pin here showed the 'password not recognised'. So can't now enter TWRP or decrypt. Nor can I start phone normally. It just defaults back to TWRP.

I can get to the fastboot screen. The phone is recognised by my PC, shows device number and 'fastboot' in powershell window. Works with ADB also (shows device, can switch between recovery and bootloader no problem)....so....

I tried reflashing the stock recovery....figuring I could do a factory reset...'could not load [filename]'....

So, it looks like I'm a bit stuck. Any help very gratefully accepted :good:
 

vdbhb59

Senior Member
Feb 15, 2016
1,316
495
93
First wipe from bootloader, and then format from bootloader.
You will lose all you data and files, but unless your data is decrypted, you cannot enter TWRP.

Otherwise, you can try the CodeworkX Force Decrypt TWRP and then try that. That would be the only option.
 
  • Like
Reactions: GitManMatt

optimumpro

Senior Member
Jan 18, 2013
6,267
13,597
253
Rebooted the phone. Straight to TWRP, and the 'decrypt data' screen - entering the pin here showed the 'password not recognised'. So can't now enter TWRP or decrypt. Nor can I start phone normally. It just defaults back to TWRP.
So, it looks like I'm a bit stuck. Any help very gratefully accepted :good:
This is probably not related to hardware. Instead, one or more of your firmware partitions got messed up. You need to install a full stock rom and boot once. After that, you should be able to do whatever you want. Before installing stock, load TWRP. At a password prompt press cancel button and you will get to TWRP's usual screen. Swipe to allow modifications. Then go to wipe and try to format data (where you get the 'confirm' prompt). If that worked, then format system/vendor/data. Reboot to TWRP, load stock rom and flash it.

If format data doesn't work, then do the same in fastboot.
 
  • Like
Reactions: GitManMatt

Oswald Boelcke

Forum Moderator / Recognized Translator
Staff member
Apr 13, 2016
9,832
13,046
243
64
Preserving Air Supremacy over XDA
en.wikipedia.org
meant to post this in questions and answers...my bad...please feel free to move this :D
No problem, and it's great that you noticed it yourself. I've found your thread just by accident and moved it to Q&A.
To get moderator's attention best is to simply use the report functionality.
 
  • Like
Reactions: GitManMatt

GitManMatt

Member
Jun 30, 2018
42
8
0
Bishop Auckland
Thanks guys, a few questions....

First wipe from bootloader, and then format from bootloader.
You will lose all you data and files, but unless your data is decrypted, you cannot enter TWRP.

Otherwise, you can try the CodeworkX Force Decrypt TWRP and then try that. That would be the only option.
Thanks for this really appreciate it; I think that this is what I need to do - wipe and format from bootloader, clean flash of full stock ROM - I'm not worried about the data/files as having nothing on it at the moment - what commands do I need to execute to do this?

If you could point me towards the Force Decrypt TWRP would appreciate it also, though I'm guessing this might not work as I can't flash a new recovery? :confused:


This is probably not related to hardware. Instead, one or more of your firmware partitions got messed up. You need to install a full stock rom and boot once. After that, you should be able to do whatever you want. Before installing stock, load TWRP. At a password prompt press cancel button and you will get to TWRP's usual screen. Swipe to allow modifications. Then go to wipe and try to format data (where you get the 'confirm' prompt). If that worked, then format system/vendor/data. Reboot to TWRP, load stock rom and flash it.

If format data doesn't work, then do the same in fastboot.
OK I'm guessing this might be the Force Decrypt TWRP mentioned above...or...? I guessed it might have something to do with a partition but I'm a bit too much of a noob to know what to do to fix that, though I'm presuming a full wipe then reinstall fixes all evils... :angel:....

I welcome the commands for the wipe if you guys can help me out. Thanks for your time appreciate it
 

vdbhb59

Senior Member
Feb 15, 2016
1,316
495
93
Thanks for this really appreciate it; I think that this is what I need to do - wipe and format from bootloader, clean flash of full stock ROM - I'm not worried about the data/files as having nothing on it at the moment - what commands do I need to execute to do this?
Just flash like this
fastboot flash zip stock.zip
Where stock.zip is your ROM file renamed to make it easier.

Ensure you are running the CMD from the path where your stock.zip is present. Run it as admin if it gives error.
Ideally you will find your adb in c:\adb
Once you are done, boot to system. Then once first setup is done, flash twrp via fastboot by
fastboot flash recovery recovery.img

If you could point me towards the Force Decrypt TWRP would appreciate it also, though I'm guessing this might not work as I can't flash a new recovery? :confused:
Download from here: https://sourceforge.net/projects/ch...signed-forcedecrypt-cheeseburger.img/download
It will work once you have flashed the stock ROM. Also once you have formatted your data.

OK I'm guessing this might be the Force Decrypt TWRP mentioned above...or...? I guessed it might have something to do with a partition but I'm a bit too much of a noob to know what to do to fix that, though I'm presuming a full wipe then reinstall fixes all evils... :angel:....

I welcome the commands for the wipe if you guys can help me out. Thanks for your time appreciate it
Fastboot wipe data command is: fastboot flashall -w
It wipes the /data partition.
 
Last edited:

GitManMatt

Member
Jun 30, 2018
42
8
0
Bishop Auckland
Just flash like this
fastboot flash zip stock.zip
Where stock.zip is your ROM file renamed to make it easier.

Ensure you are running the CMD from the path where your stock.zip is present. Run it as admin if it gives error.
Ideally you will find your adb in c:\adb
Once you are done, boot to system. Then once first setup is done, flash twrp via fastboot by
fastboot flash recovery recovery.img



Download from here: https://sourceforge.net/projects/ch...signed-forcedecrypt-cheeseburger.img/download
It will work once you have flashed the stock ROM. Also once you have formatted your data.


Fastboot wipe data command is: fastboot flashall -w
It wipes the /data partition.
Thanks guys, I sort of got there in the end. Flashing the stock ROM through fastboot did not work as outlined above. It kept saying there was insufficent space (I can't remember the exact wording, but something along those lines). Anyway I ran the 'fastboot erase recovery' line and the same for formatting then flashed the TWRP with the link above. This opened fine and decrypted. I went to the Wipe section and formatted data, got loads of error messages, but when I rebooted into recovery and did it again it went through fine. In doing so, the internal storage was now visible in Windows Explorer. I copied the Stock ROM zip across to the internal storage then flashed it - bam, up and running. Seems to be working fine but will report back if not.
 
  • Like
Reactions: vdbhb59

vdbhb59

Senior Member
Feb 15, 2016
1,316
495
93
Thanks guys, I sort of got there in the end. Flashing the stock ROM through fastboot did not work as outlined above. It kept saying there was insufficent space (I can't remember the exact wording, but something along those lines). Anyway I ran the 'fastboot erase recovery' line and the same for formatting then flashed the TWRP with the link above. This opened fine and decrypted. I went to the Wipe section and formatted data, got loads of error messages, but when I rebooted into recovery and did it again it went through fine. In doing so, the internal storage was now visible in Windows Explorer. I copied the Stock ROM zip across to the internal storage then flashed it - bam, up and running. Seems to be working fine but will report back if not.
Trial and error always works. The first time I had ever rooted, back in 2011, was a nightmare. My phone wont boot into any mode. I got through the night at 5 in the morning. :good:
 

GitManMatt

Member
Jun 30, 2018
42
8
0
Bishop Auckland
https://photos.app.goo.gl/Zi84K4jqQsoKZjZh9

Screen glitch I was on about in the opening post. Not seen it since. Still trialling the phone but seems to be running fine now. One thing... The issue with the freezing and white Led was down to the screen saver being set to on... Disabling it got rid of the unresponsive phone. Seems I was plugging it onto charge, the screen saver was kicking in and causing it to freeze. Same seemed to be happening if just left.

No obvious screen glitch now. Fingers crossed....
 

GitManMatt

Member
Jun 30, 2018
42
8
0
Bishop Auckland
It's back....

https://photos.app.goo.gl/Zi84K4jqQsoKZjZh9

Screen glitch I was on about in the opening post. Not seen it since. Still trialling the phone but seems to be running fine now. One thing... The issue with the freezing and white Led was down to the screen saver being set to on... Disabling it got rid of the unresponsive phone. Seems I was plugging it onto charge, the screen saver was kicking in and causing it to freeze. Same seemed to be happening if just left.

No obvious screen glitch now. Fingers crossed....
update....nope, it's not the screensaver.

Plugged phone in to charge last night and this morning got same issues....videos here (apologies for length and shakiness, just raw footage)

https://photos.app.goo.gl/m22nUMs8LJZzGfcV7

and

https://photos.app.goo.gl/YkuMSSSqMigFQUun8

Basically it's freezing and off, but with the LED glowing whitish, as shown. It took several attempts to get it to respond and reboot as you can see. Once it was up and running it crashed a couple of times - freeze/reboot, and a full screen fuzz-out (badly tuned telly kind of static) followed by a reboot...as always eventually once it gets going it seems to be running fine again. I was using it fairly extensively last night and it seemed OK, as I was going through my apps setting them up again or playing a few games (e.g. Clash which uses a fair bit of processor power and battery).

So it looks like it's something around the boot, though why it occasionally just switches off I don't know. As this is now a full and clean firmware reinstall...what could it be?

:confused:
 

vdbhb59

Senior Member
Feb 15, 2016
1,316
495
93
update....nope, it's not the screensaver.

Plugged phone in to charge last night and this morning got same issues....videos here (apologies for length and shakiness, just raw footage)

https://photos.app.goo.gl/m22nUMs8LJZzGfcV7

and

https://photos.app.goo.gl/YkuMSSSqMigFQUun8

Basically it's freezing and off, but with the LED glowing whitish, as shown. It took several attempts to get it to respond and reboot as you can see. Once it was up and running it crashed a couple of times - freeze/reboot, and a full screen fuzz-out (badly tuned telly kind of static) followed by a reboot...as always eventually once it gets going it seems to be running fine again. I was using it fairly extensively last night and it seemed OK, as I was going through my apps setting them up again or playing a few games (e.g. Clash which uses a fair bit of processor power and battery).

So it looks like it's something around the boot, though why it occasionally just switches off I don't know. As this is now a full and clean firmware reinstall...what could it be?

:confused:
Do something, install the OOS via the MSMTool for 9.0.9 and first boot it, set it up and then make any changes. The MSM Post Link: https://forum.xda-developers.com/oneplus-5/how-to/guide-unbrick-guide-hard-bricked-t3761706
 

GitManMatt

Member
Jun 30, 2018
42
8
0
Bishop Auckland

GitManMatt

Member
Jun 30, 2018
42
8
0
Bishop Auckland
Nope hasn't fixed it....
OK, back to the start again :D

On charge (screen off) pressing the power button to wake the phone gets this fuzzy screen....this occasionally flashes up when actually using the phone.

Otherwise, I tried using it and running screen record to see if I could capture any further moments, but nothing yet.

The phone (before I started recording) did reboot randomly during playback of a youtube video (I was trying to see if it was something to do with overloading of the processors).

It does seem to have something to do with 'active use' i.e. processor heavy use rather than normal passive use....e.g. playing a game can make is crash/soft reboot (cuts out, goes black, button lights still on, comes back and locked after a few seconds) and occasionally fully reboots.

Puzzler this one...can't see how this is a firmware issue now?
 

Attachments

GitManMatt

Member
Jun 30, 2018
42
8
0
Bishop Auckland
OK, back to the start again :D

On charge (screen off) pressing the power button to wake the phone gets this fuzzy screen....this occasionally flashes up when actually using the phone.

Otherwise, I tried using it and running screen record to see if I could capture any further moments, but nothing yet.

The phone (before I started recording) did reboot randomly during playback of a youtube video (I was trying to see if it was something to do with overloading of the processors).

It does seem to have something to do with 'active use' i.e. processor heavy use rather than normal passive use....e.g. playing a game can make is crash/soft reboot (cuts out, goes black, button lights still on, comes back and locked after a few seconds) and occasionally fully reboots.

Puzzler this one...can't see how this is a firmware issue now?
actually one thing it hasn't done lately is completely go vegetative with the white light on.....