Hello,
I have a question about force encryption and how to disable it.
I want to use encryption, but I want to setup with a specific Password and not with pattern lock. Do I need to remove the forced encryption to do so?
I already tried flashing Disable-Force-Encryption-Treble.zip, but under phone settings on Havoc it still says "Encrypted and therefore there is no option to enable encryption since it already is. I already tried different TWRPs and many times reinstalling Havoc, wiping partitions and formatting the Data Partition, but somehow nothing seems to remove this encryption.
Maybe I just missed something...
Many thanks in advance
Related
Hi,
I installed a recent nightly and everything is fine, however, when restoring my TWRP backup (CM10.2), my encryption password is no longer recognised and system won't boot.
The password is accepted by TWRP and also by restoring the OMNI password, but when I restore the CM10.2 image, the password is not accepted.
Has anything major changed in dm-crypt?
Thanks.
Yes, 4.4 changed the encryption algorithm to use scrypt. It was converted when you upgraded, so you won't be able to switch between without removing the encryption
Sent from my Nexus 5
Mevordel said:
Yes, 4.4 changed the encryption algorithm to use scrypt. It was converted when you upgraded, so you won't be able to switch between without removing the encryption
Click to expand...
Click to collapse
Thanks, I had to remove encryption, restore and encrypt it again.
Looks like I have to wait a while until all features are added into omnirom (quiet hours, battery percentage (!) etc).
Hi folks,
I am currently run CM12 12-20150204 nightly, everything seems to work fine I just have an issue with the lock screen.
I enabled patterm lock an that works ok and it will let me switch between pattern, pin or password lock.
But it wont let me switch to None or Swipe.
Both None and Swipe options are greyed out with "Disabled by administrator, encryption policy, or credential storage"
Could some one please advise me of a fix or point me to a link.
I did read some where to edit the build.prop but the line to be edited wasn't in my build.prop
Regards
Torr
Try adding the line manually. But make a backup before that. Just in case
Hi thanks,
Been a bit busy yesterday , do think I could find that thread again to edit the build.prop
So no fix yet , just have to live with it for now I guess.
Using TWRP 2.8.4.0 I tried advanced wiping of System , davlikcache and cache then re-installing 07/02 nighly but the pattern lock screen still persisted.
What finally worked , I deleted locksettings.db, locksettings.db-shm and locksettings.db-wal from the root data/system folder.
when I rebooted the security lockscreen is now back to swipe :good:
Only issue if i go into "choose a lock screen" None and Swipe are still greyed out , so if I select pattern , PIN or password , I cant go back to None or Swipe.
Hope this is of some help, thanks everyone who took the time to read my query.
If theres a better solution please reply.
Regards
Torr
The only other solution I see is to either install another version of CM12, or go with a completely different rom altogether
The lock screen data seems to be stored in the data partition, so unless I fully wiped that I'm not sure a different version of CM12 would of fixed my problem. I did have 05/02 nightly with the issue an it was still present when I went to 07/02 nightly.
I take it that you usually don't do a wipe before flashing an update to the rom you're using?
Wiping data, cache and dalvik cache is recommended to prevent bugs. Even if it's just an update to your current rom.
You are correct , I don't delete data, But I always delete cache and dalvik cache .
If I have issues I delete system as well.
If the previous doesn't sort my issues, as a last resort I delete data as well as the above or I restore to a previous working state.
Regards
Torr
Well, I guess that might have caused your issue. Try doing a clean flash next time you update or change roms.
I have a nexus 6P running rooted stock rom and I wanted to try out a new rom. Before flashing the new rom, I made a nandroid backup via TWRP. Now, the rom that I was backing up had fingerprint security setup with backup passcode for unlocking the phone.
So I tried new rom and it didn't work (read-too many issues and too many crashes). Decided to revert back to my original setup. Went back into TWRP and restored the backup.
After booting the phone up, I can't log in to my phone anymore. As you know after every reboot, fingerprint sensor doesn't work unless you enter the backup passcode. So I am entering my passcode and its not accepted. I have tried entering passcode many times but to no avail. I know my passcode so possibility of me forgetting it is not valid.
Has anybody else seen or ran into this issue yet?
The step folks are missing is Prior to installing a backup you Must Change security to None before you even start a backup This clears password, pin and saved finger prints. I believe once security is changed it is safe to backup and then install backup. You will need to reenter Pin and Fingerprints.
Born<ICs said:
The step folks ...
... is changed it is safe to install backup.
Click to expand...
Click to collapse
You mean clear the security before making a backup ... right?
if not, how would I change security on a backup file of rom that had security enabled.
I have never used lock screen security before so never ran into this issue.
No, dig through this forum for tech details. But my understanding is anytime you make/install a backup or reflash rom or go back to stock you must reset you Security options in settings to None. You have security now, probably Fingerprints, and the required Lockscreen Pin.
If you try to install backup or Rom or whatever without doing so you get what you experienced. There is a path out of it if you read further.
Pin or Pattern on boot after restoring Nandroid
Born<ICs said:
No, dig through this forum for tech details. But my understanding is anytime you make/install a backup or reflash rom or go back to stock you must reset you Security options in settings to None. You have security now, probably Fingerprints, and the required Lockscreen Pin.
If you try to install backup or Rom or whatever without doing so you get what you experienced. There is a path out of it if you read further.
Click to expand...
Click to collapse
The interesting thing is, I intentionally chose to enter pattern/pin on rebooting. The strange (actually may not be strange .....but strange to me) thing is that even when I move on to different Roms, that initial choice is remembered and embedded since even after choosing not to require pin/pattern when rebooting, I get prompted. Also the pin/pattern works during recovery, it also works on the initial startup after restoring a backup but then fails after successful fingerprint use (it will actually say "wrong pin" or "wrong pattern") at the end of the booting process. The thing is, I have only used one pin and at other times one password ever with this device. Eventually I had to do a factory reset to solve this issue (thank goodness I was able to back up my internal storage to my computer in TWRP recovery mode).
Hey there. While I was installing a Custom ROM, I did something incredibly stupid by factory resetting my phone whilst it was encrypted, thus effectively erasing the encryption keys. I am unable to access my data from things such as TWRP because no password is accepted.
Is there a way to re-encrypt my device with new encryption keys? I understand that I will not be recovering the keys I wiped so I figured if I started with an entirely new encryption, I would be able to create working keys again.
I am completely fine with losing personal data on this device.
Thank you.
JC_6a63 said:
Hey there. While I was installing a Custom ROM, I did something incredibly stupid by factory resetting my phone whilst it was encrypted, thus effectively erasing the encryption keys. I am unable to access my data from things such as TWRP because no password is accepted.
Is there a way to re-encrypt my device with new encryption keys? I understand that I will not be recovering the keys I wiped so I figured if I started with an entirely new encryption, I would be able to create working keys again.
I am completely fine with losing personal data on this device.
Thank you.
Click to expand...
Click to collapse
Pretty much anytime you find yourself in a pinch like this, the MSM Download Tool here on XDA is the best way to go. Have you tried that?
You can also try an OTG with pen drive. It's not encrypted so TWRP can read and flash files from it. Then clean flash a ROM.
Thank you both for your help. I will try these out later.
JC_6a63 said:
Hey there. While I was installing a Custom ROM, I did something incredibly stupid by factory resetting my phone whilst it was encrypted, thus effectively erasing the encryption keys. I am unable to access my data from things such as TWRP because no password is accepted.
Is there a way to re-encrypt my device with new encryption keys? I understand that I will not be recovering the keys I wiped so I figured if I started with an entirely new encryption, I would be able to create working keys again.
I am completely fine with losing personal data on this device.
Thank you.
Click to expand...
Click to collapse
Try simply to format data
Can I resurrect this thread, because I just did the same, stupid thing?
After a long time on the OB releases, when jumping to tresk I had forgotten the proper procedure so, of course, I ended up not able to access the FS from TWRP. I can see everything fine after I've booted, of course.
@VampireHeart I *had* formatted Data (actually, System, Data, Cache) before flashing so I'm not sure this will help?
@devilrulz4ever the OTG is a nice idea, but what is the proper 'clean' process? I must be getting old...
Thanks!
krakout said:
Can I resurrect this thread, because I just did the same, stupid thing?
After a long time on the OB releases, when jumping to tresk I had forgotten the proper procedure so, of course, I ended up not able to access the FS from TWRP. I can see everything fine after I've booted, of course.
@VampireHeart I *had* formatted Data (actually, System, Data, Cache) before flashing so I'm not sure this will help?
@devilrulz4ever the OTG is a nice idea, but what is the proper 'clean' process? I must be getting old...
Thanks!
Click to expand...
Click to collapse
Format data isn't wipe data, you find it at bottom of the screen into clean section, when you tap on that you may enter yes and confirm to make it, are two different thing.
Hi to everyone! Even if I don't know how (I really wish to understand and to know how things works there) I found out that, flashing magisk, Prevent the error "TO START ANDROID, PLEASE ENTER PASSWORD" to appear... Lot of yours knows that problem... No password will be accepted. Tried:
- Mi Password
- Google Password
- LockScreen Password
- "default_password"
but none of those works...
In the recovery, and in the O.S., No password will be accepted, causing all your data to be LOST!
For example, after flashing the custom recovery for the first time, (I don't know how it is possible but, even just flashing the custom recovery without booting to it) will trigger this error, and you will be FORCED TO FORMAT /DATA, because data will be unrecoverable because of this bug/error.
But.... Magisk...
I don't know how it does/how things works, I really would like to understand... But the fact is, if you flash magisk after any mod/any flashing, then, that error, will NOT APPEAR. Don't ask me why, I ask it to you.
I hope to be useful. Just flash magisk after any mod, and you will be safe!