Stuck at PIN Screen after restoring backup - LG V20 Questions & Answers

When restoring a backup it ask for a pin # which I don't have since I didn't use one in the first place. Can anyone help with restoring backups. Thanks in advance.
Edit: wiped dalvik,cahe,data and system in advanced wipe did the trick.

naimsiddiq said:
When restoring a backup it ask for a pin # which I don't have since I didn't use one in the first place. Can anyone help with restoring backups. Thanks in advance.
Edit: wiped dalvik,cahe,data and system in advanced wipe did the trick.
Click to expand...
Click to collapse
I restored mine to a old back up and I use fingerprint and pin and neither is working I can't even use ADB to reboot recovery do you know know how to get into recovery?
Sent from my Nexus 6P using Tapatalk

Go into twrp file manager and go to data/system and delete these files.
Locksettings.db
Locksettings.db-shm
Locksettings.db-wal
If you have fingerprints you'll need to delete these two as well
Go to data/system/users/0/fp data and delete
User.db
Then go to data/system/users and delete
settings_fingerprint.xml
Then reboot system.

Related

Can't select entire Nandroid backup?

Anyone else have an issue where they can't select the entire nandroid backup?
I go into recovery, and try to select a backup, and it opens the folder instead of running it. In other words, I select the backup (i.e. "backup-1" or whatever I've got it named), and I get the option to select boot, cache, data, misc, recovery, and system.
I've never had that issue before, and it's just recently popped up. What's going on?
tatonka_hero said:
Anyone else have an issue where they can't select the entire nandroid backup?
I go into recovery, and try to select a backup, and it opens the folder instead of running it. In other words, I select the backup (i.e. "backup-1" or whatever I've got it named), and I get the option to select boot, cache, data, misc, recovery, and system.
I've never had that issue before, and it's just recently popped up. What's going on?
Click to expand...
Click to collapse
I have a theory you may have changes the name of the subdirectory before your nandroid backup should with your nandroid backup. if thats the case, mount your sdcard, the cd into nandroid on your sdcard, then mkdir nandroid-backup, then mv "backup-1" to nandroid-backup.
then try to restore your backup
darchstar said:
I have a theory you may have changes the name of the subdirectory before your nandroid backup should with your nandroid backup. if thats the case, mount your sdcard, the cd into nandroid on your sdcard, then mkdir nandroid-backup, then mv "backup-1" to nandroid-backup.
then try to restore your backup
Click to expand...
Click to collapse
wow, sorry, that just confused the hell out of my tired brain. Mind elaborating? lol
EDIT: And please remember, I'm not terribly experienced with entering commands...but can do basic **** lol
EDIT EDIT: I'm a complete idiot. I was putting my backups directly into the nandroid folder instead of into the phone's name folder inside the nandroid folder. Probably what you were trying to tell me
However, now the damn thing hangs on the HTC screen when I restore a backup like it did the last time I tried...wtf?
tatonka_hero said:
wow, sorry, that just confused the hell out of my tired brain. Mind elaborating? lol
EDIT: And please remember, I'm not terribly experienced with entering commands...but can do basic **** lol
EDIT EDIT: I'm a complete idiot. I was putting my backups directly into the nandroid folder instead of into the phone's name folder inside the nandroid folder. Probably what you were trying to tell me
Click to expand...
Click to collapse
lol, thats exactly what i was trying to tell you. sorry i didn't respond earlier
Any idea why a backup would hang at the first HTC screen?
darchstar said:
lol, thats exactly what i was trying to tell you. sorry i didn't respond earlier
Click to expand...
Click to collapse
That's what I figured.
Now any idea why my backups hang at the HTC screen? I'd rather not have to go about re-customizing everything if I can help it

android 5 and titanium backup problem!

I backed up everything with titanium backup in kitkat and then wiped and flashed lollipop !
I used newest version that is compatible with android 5.0!
then tried to restore my apps but ...
after restore, all of the restored apps crashing! aaaalllll....!!!!!
also tried clear cash and data but crashing anyway!
anybody else tried that?
any idea what should I do?
hrh_fourtyseven said:
I backed up everything with titanium backup in kitkat and then wiped and flashed lollipop !
I used newest version that is compatible with android 5.0!
then tried to restore my apps but ...
after restore, all of the restored apps crashing! aaaalllll....!!!!!
also tried clear cash and data but crashing anyway!
anybody else tried that?
any idea what should I do?
Click to expand...
Click to collapse
not trying things without assuming would be my first suggestion
oh and asking in only one place on forums (Q&A)
instead of two different threads in general section
How did you guys attain root?
hrh_fourtyseven said:
I backed up everything with titanium backup in kitkat and then wiped and flashed lollipop !
I used newest version that is compatible with android 5.0!
then tried to restore my apps but ...
after restore, all of the restored apps crashing! aaaalllll....!!!!!
also tried clear cash and data but crashing anyway!
anybody else tried that?
any idea what should I do?
Click to expand...
Click to collapse
Chainfire talked about this problem in his thread for CF AUTO ROOT, try wiping everything, do not restore the backup yet, and wait till the new SUPERSU update is released, probably by tomorrow, then restore and report back.
hunter2k said:
How did you guys attain root?
Click to expand...
Click to collapse
CF Auto root
aguarello said:
Chainfire talked about this problem in his thread for CF AUTO ROOT, try wiping everything, do not restore the backup yet, and wait till the new SUPERSU update is released, probably by tomorrow, then restore and report back.
Click to expand...
Click to collapse
really?! supersu?! im talking about titanium backup!
chainfire:
"There's a race condition between SELinux policy reloads between SuperSU and Samsung's security service.
That is why on one reboot you'll have root while you won't on another.
This was an expected case during development, but there was no way to test it. There is now. SuperSU will be updated ASAP with a fix."
tnx anyway
hrh_fourtyseven said:
CF Auto root
really?! supersu?! im talking about titanium backup!
chainfire:
"There's a race condition between SELinux policy reloads between SuperSU and Samsung's security service.
That is why on one reboot you'll have root while you won't on another.
This was an expected case during development, but there was no way to test it. There is now. SuperSU will be updated ASAP with a fix."
tnx anyway
Click to expand...
Click to collapse
Soo you're not rooted?
Restore WITHOUT DATA restoring with app data causes crashes on a few KK roms and ALL 5.0 ROM's I've tried CM12, fusion ETC
hunter2k said:
How did you guys attain root?
Click to expand...
Click to collapse
Try this
http://forum.xda-developers.com/showpost.php?p=57151905&postcount=248
Could this be to do with Art runtime which is default in lollipop (not sure if s5 lollipop is)
http://forum.xda-developers.com/showthread.php?t=2463116
aguarello said:
Soo you're not rooted?
Click to expand...
Click to collapse
sure I am!
but chainfire never said that!
paintball23456 said:
Restore WITHOUT DATA restoring with app data causes crashes on a few KK roms and ALL 5.0 ROM's I've tried CM12, fusion ETC
Click to expand...
Click to collapse
yea working without data but I use titanium just for data! apps can be reinstalled but data is important
anyway should be a way to convert data to new format!
silentattack said:
Try this
http://forum.xda-developers.com/showpost.php?p=57151905&postcount=248
Click to expand...
Click to collapse
so what is this?!!!
danieljamie said:
This fix solves force close issues with restoring apps with data in Titanium Backup.
This operation recursively fixes all SElinux file markers in /data/data, which are spoiled by titanium during data restore. (Quote from vodkinagdan)
User vodkinagdan found this solution:
Simply execute this from the terminal emulator:
su
restorecon -R -v /data/data
This has to be done after every restore (or batch of restores).
I take no credit for this but it works!
vodkinagdan has sent fix to Titanium Track.
Click to expand...
Click to collapse
stevendeb25 said:
http://forum.xda-developers.com/showthread.php?t=2463116
Click to expand...
Click to collapse
restorecon -R -v /data/data command does not work!
stevendeb25 said:
danieljamie said:
This fix solves force close issues with restoring apps with data in Titanium Backup.
This operation recursively fixes all SElinux file markers in /data/data, which are spoiled by titanium during data restore. (Quote from vodkinagdan)
User vodkinagdan found this solution:
Simply execute this from the terminal emulator:
su
restorecon -R -v /data/data
This has to be done after every restore (or batch of restores).
I take no credit for this but it works!
vodkinagdan has sent fix to Titanium Track.
Click to expand...
Click to collapse
I even tried this:
su
mount -o rw,remount /system/ /system/
restorecon -R -v /data/data
restorecon -R -v /system
mounting and the last line work but restorecon of data does not work!!
Click to expand...
Click to collapse
I cant find any option for switching to dalvik !
is it possible at all?
I want dalvik to test titanium again
hrh_fourtyseven said:
I cant find any option for switching to dalvik !
is it possible at all?
I want dalvik to test titanium again
Click to expand...
Click to collapse
since 5.0 runs on ART there is no way to switch back
This is a problem with SELinux context on restored apps data. TB won't set it right so apps with restored data are force closed. Se context is set to "u: object_r:system_data_file:s0", but needs to be "u: object_r:app_data_file:s0".
This happening not only with android 5.0, but with android 4.3 and above, where SELinux was introduced. Normally this should be fixed by running this command from root shell on the phone: "restorecon -v -R /data/data"/
But on SM-G900F Polish rom I tnink restorecon is broken (it is crashed - segfaults), so I have to set security context instead of reset.
This can be done either by chcon command in shell, or by using Root Explorer's "change SE context" (+ option "also set on all sub-folders and files") on all folders of restored apps data. You should choose "select context from list" and then select "u: object_r:app_data_file:s0". Do not set context to this value for the whole folder "data", some subfolders needs to have a different security context!
xxakep said:
This is a problem with SELinux context on restored apps data. TB won't set it right so apps with restored data are force closed. Se context is set to "u: object_r:system_data_file:s0", but needs to be "u: object_r:app_data_file:s0".
This happening not only with android 5.0, but with android 4.3 and above, where SELinux was introduced. Normally this should be fixed by running this command from root shell on the phone: "restorecon -v -R /data/data"/
But on SM-G900F Polish rom I tnink restorecon is broken (it is crashed - segfaults), so I have to set security context instead of reset.
This can be done either by chcon command in shell, or by using Root Explorer's "change SE context" (+ option "also set on all sub-folders and files") on all folders of restored apps data. You should choose "select context from list" and then select "u: object_r:app_data_file:s0". Do not set context to this value for the whole folder "data", some subfolders needs to have a different security context!
Click to expand...
Click to collapse
I dont know why,but when I go to android/data , most of the folders are empty(just files and cache folders and both are empty)!
I tried to restore some apps+data and tried to change Se contexts of them(empty folders and non empty folders!) and force close again!
maybe I should change another thing! any Idea?
The only thing that works on Titanium is uninstall, nor backup, nor freeze, nor restore work
Other than I am very happy with Lollipop :good:
hrh_fourtyseven said:
I dont know why,but when I go to android/data , most of the folders are empty(just files and cache folders and both are empty)!
I tried to restore some apps+data and tried to change Se contexts of them(empty folders and non empty folders!) and force close again!
maybe I should change another thing! any Idea?
Click to expand...
Click to collapse
What do you mean by "android/data"? Applications have their data in /data/data (you should go in Root Explorer to root folder, then select folder "data" and in folder "data" select subfolder "data" again), each in their subfolder. On each folder that relate to your restored apps (you could check it by app name - like com.amazon.kindle etc) you should change SE context to what I have told in previous post.
I have already restored over 300 applications from 4.4.2 with TB and after this action all of them are worked without a force close.
I used Helium works much better than ****ty TB

How do I decrypt my 6p

I flashed CM when it first arrived and encrypted my phone. How do I unencrypt it again? Thanks in advance.
jdub251 said:
I flashed CM when it first arrived and encrypted my phone. How do I unencrypt it again? Thanks in advance.
Click to expand...
Click to collapse
I don't think you can decrypt without formatting the area.
jdub251 said:
I flashed CM when it first arrived and encrypted my phone. How do I unencrypt it again? Thanks in advance.
Click to expand...
Click to collapse
You need a kernel that does not force encryption. I believe ex kernel is an option. I run benzo rom which does not force encryption. Make sure yo backup any data you want to keep. The process should go as follows:
Flash rom
Flash gapps
Flash kernel
Select wipe
Format data
Reboot Recovery
Reboot system
n.halepat said:
You need a kernel that does not force encryption. I believe ex kernel is an option. I run benzo rom which does not force encryption. Make sure yo backup any data you want to keep. The process should go as follows:
Flash rom
Flash gapps
Flash kernel
Select wipe
Format data
Reboot Recovery
Reboot system
Click to expand...
Click to collapse
Ok! Will try this! Thanks! I believe this will work!
Sent from my Nexus 6P using Tapatalk
jdub251 said:
Ok! Will try this! Thanks! I believe this will work!
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Just make sure you format data, not wipe.
n.halepat said:
You need a kernel that does not force encryption. I believe ex kernel is an option. I run benzo rom which does not force encryption. Make sure yo backup any data you want to keep. The process should go as follows:
Flash rom
Flash gapps
Flash kernel
Select wipe
Format data
Reboot Recovery
Reboot system
Click to expand...
Click to collapse
Heisenberg said:
Just make sure you format data, not wipe.
Click to expand...
Click to collapse
Have you noticed any speed difference after decrypting?
Also is it possible to decrypt using a kernel that doesn't force encryption and then switch to a kernel that may not have that? I would still have to turn encryption on via Settings -> Encrypt is what I'm thinking.
exSD said:
Have you noticed any speed difference after decrypting?
Also is it possible to decrypt using a kernel that doesn't force encryption and then switch to a kernel that may not have that? I would still have to turn encryption on via Settings -> Encrypt is what I'm thinking.
Click to expand...
Click to collapse
I've seen some testing regarding encrypted vs decrypted, the performance gain is so small it's negligible. If you switch to a kernel that forces encryption, it'll encrypt automatically on boot.
Heisenberg said:
I've seen some testing regarding encrypted vs decrypted, the performance gain is so small it's negligible. If you switch to a kernel that forces encryption, it'll encrypt automatically on boot.
Click to expand...
Click to collapse
Have you read http://www.anandtech.com/show/9820/the-google-nexus-6p-review ?
The difference in storage speeds is drastic.
Encrypted: 75.7MB/s seq read, 40.6MB/s seq write, 7.4MB/s rand read, 1.0MB/s rand write.
Unencrypted: 179.7MB/s seq read, 52MB/s seq write, 14.73MB/s rand read, 6.3MB/s rand write.
exSD said:
Have you read http://www.anandtech.com/show/9820/the-google-nexus-6p-review ?
The difference in storage speeds is drastic.
Encrypted: 75.7MB/s seq read, 40.6MB/s seq write, 7.4MB/s rand read, 1.0MB/s rand write.
Unencrypted: 179.7MB/s seq read, 52MB/s seq write, 14.73MB/s rand read, 6.3MB/s rand write.
Click to expand...
Click to collapse
No I hadn't seen that particular article. I guess the results must vary, the results I saw showed performance gains in the order of less than a percent.
Heisenberg said:
No I hadn't seen that particular article. I guess the results must vary, the results I saw showed performance gains in the order of less than a percent.
Click to expand...
Click to collapse
In terms of power consumption, the CPU is processing an extra step for every instruction it has passed to it. I would think that with the inefficient chip the 810 already is that this would impact battery life more than real world opening apps type speed.
I think I'll decrypt to see if I can notice any power differences.
so if i copy all my files to my PC before following these steps, I would still be able to use them afterwards? ie pictures, sounds, images, and titanium backup files? i'm wanting to try benzorom and it sounds like it doesn't get along with encryption very well.
glhelinski said:
so if i copy all my files to my PC before following these steps, I would still be able to use them afterwards? ie pictures, sounds, images, and titanium backup files? i'm wanting to try benzorom and it sounds like it doesn't get along with encryption very well.
Click to expand...
Click to collapse
Yeah, as long as you back up everything to your PC you can just transfer them all back to your phone after you do this.
if i do a nandroid backup (from TWRP) of an encrypted system then create backup of /sdcard, wipe userdata than restore /sdcard and restore backup with a non forcing kernel will i get a decrypted device with all data restored?
answering my own question:
- twrp backup data
- copy /sdcard to pc
- fastboot format userdata
- copy from pc to /sdcard
- restore data in twrp
are the needed steps to decrypt without losing any data.
A bit of a necro, so I apologize for that.
@ratson: I am attempting to do exactly what you have mentioned here, although I am not an experienced user. Can I get some clarification on the following:
TWRP backup: Done. It keeps wanting to restrict my permissions on this folder, but I was able to get it off the device (Nexus6p Huawei) and backed up onto my PC.
copy the /sdcard to the PC. Man, what a problem I am having with this. First off, when it gets to a folder called /kick it fails because it says it's not a directory. It does this on some long hex named file that actually isn't a directory, but it seems to want to recognize it as one anyway, and then fail the pull because of this.
So, I cut the entire /kick folder through ES Explorer, and temporarily pasted it into my dropbox. Restarted the adb pull through my shell. It seemed to be working ok, until it got to the TWRP folder. While backing that up (I already did this, but it is still on the device as I only copied it. Should I be deleting this before backing up the rest of the /sdcard?) it fails because it says permission denied when it tries to pull some of the backup files.
At this point I've restarted the pull, and tried different things for several hours. Before I continue to bang my head against the wall, I'd like to get some advice.
How do you pull the /sdcard to your pc? what method? what commands? do you do it from TWRP recovery mode, from the system? Pretend I'm an android toddler (I kind of am). Is there anyway to not start from scratch every time the pull fails? Is there ways to pre-empt the failures?
Once this is complete, when you restore the data, can you please also list the commands for that?
I greatly appreciate your, or anyone elses help to reads this.
Thanks,
For the record:
Make sure battery is charged!
On PC: adb reboot recovery
In TWRP: select BACKUP, select DATA, swipe
When finished
On PC:
mkdir DATA-BACKUP
adb pull /data/media/0/TWRP/BACKUPS
fastboot reboot bootloader
fastboot format userdata
On Phone:
arrow down to select recovery, power to enter
cd DATA-BACKUP
adb push * /data/media/TWRP/BACKUPS
When finished
In TWRP: Restore, select the backup, swipe
rchtk said:
For the record:
Make sure battery is charged!
On PC: adb reboot recovery
In TWRP: select BACKUP, select DATA, swipe
When finished
On PC:
mkdir DATA-BACKUP
adb pull /data/media/0/TWRP/BACKUPS
fastboot reboot bootloader
fastboot format userdata
On Phone:
arrow down to select recovery, power to enter
cd DATA-BACKUP
adb push * /data/media/TWRP/BACKUPS
When finished
In TWRP: Restore, select the backup, swipe
Click to expand...
Click to collapse
This will backup and restore the nandroid backup, but not the sdcard, correct? Or am i getting it wrong?
Kalamos said:
This will backup and restore the nandroid backup, but not the sdcard, correct? Or am i getting it wrong?
Click to expand...
Click to collapse
It will restore what you backed up: the complete data partition: app settings, contacts, media,.. All your datas..
rchtk said:
It will restore what you backed up: the complete data partition: app settings, contacts, media,.. All your datas..
Click to expand...
Click to collapse
I was under the impression that a nandroid backup didnnot include apps, user settings, etc. Otherwise, what is the use of Titanium Backup? Perhaps I'm jist confused.
I'm curious if 7.1 still has a huge performance hit with encrypted partitions.
Anyone know of a good app for checking performance of the data partition? All I've seen is internal/external storage.
Thanks.

[Discussion] Complete decryption for having better flexibilty in changing ROMs

One of the biggest enemies for people who frequently switch ROMs is the encryption system, many times we end up wiping the entire device.
OnePlus 5 and 5T had a method to decrypt the device and not having to worry about accidental wipes ( NO-Verify.zip)
Has anyone tried the same method on our 6T?
Well i tried it on my 6T and it worked, but with one problem.
After decrypting permanently when i locked device with any password or pattern, it didn't accepted the password i set it up with.
So moved back to encryption
You should not have to do that. I recommend you read this thread all the way through; I think your answer is here, under the How to create a Nandroid Backup.
https://forum.xda-developers.com/oneplus-6t/how-to/guide-oneplus-6t-unlock-bootloader-t3851789
"Boot into TWRP
Use the TWRP File Manager and Navigate to /data/sytem/ and delete the following files:
locksettings.db
locksettings.db-shm
locksettings.db-wal.
gatekeeper.password.key
gatekeeper.pattern.key
You may or may not have all the above files so delete the ones you have.
Reboot the phone and (if you've set a PIN) enter it to decrypt the storage one more time. After that you can simply unlock your phone with a swipe."
hithekillswitch said:
You should not have to do that. I recommend you read this thread all the way through; I think your answer is here, under the How to create a Nandroid Backup.
https://forum.xda-developers.com/oneplus-6t/how-to/guide-oneplus-6t-unlock-bootloader-t3851789
"Boot into TWRP
Use the TWRP File Manager and Navigate to /data/sytem/ and delete the following files:
locksettings.db
locksettings.db-shm
locksettings.db-wal.
gatekeeper.password.key
gatekeeper.pattern.key
You may or may not have all the above files so delete the ones you have.
Reboot the phone and (if you've set a PIN) enter it to decrypt the storage one more time. After that you can simply unlock your phone with a swipe."
Click to expand...
Click to collapse
In case I delete these files do I need to set a pin or if I reboot to TWRP next time it will not ask me for it ? I am asking because I have lost my internal storage thrice before trying to only install OOS.
My understanding is this will only remove your password. I would read the whole thread above, and always make a backup with TWRP and titanium or the like, and save those backups to a PC as well as the phone storage. Encryption is tricky, but you know that already. Good luck!
hithekillswitch said:
You should not have to do that. I recommend you read this thread all the way through; I think your answer is here, under the How to create a Nandroid Backup.
https://forum.xda-developers.com/oneplus-6t/how-to/guide-oneplus-6t-unlock-bootloader-t3851789
"Boot into TWRP
Use the TWRP File Manager and Navigate to /data/sytem/ and delete the following files:
locksettings.db
locksettings.db-shm
locksettings.db-wal.
gatekeeper.password.key
gatekeeper.pattern.key
You may or may not have all the above files so delete the ones you have.
Reboot the phone and (if you've set a PIN) enter it to decrypt the storage one more time. After that you can simply unlock your phone with a swipe."
Click to expand...
Click to collapse
This doesn't work any longer starting with pie. At least both times I tried it. Last i got it to go was with Oreo on my shamu and essential. Also, no verity and anything disabling encryption, disables any phone security until u restore with msm.

Forgotten pattern - how to unlock phone without loosing data

Don't ask me how, but I somehow set pattern and forgot it in one hour. I use face rec. as well but after reboot I need to unlock with pattern.
For last 10h I tried all methods how to unlock phone, but no success.
I'm using original, ROM, my G6 model is H870, running Pie, unlocked bootloader, so I can use TWRP. I spent most of my time and knowledge to unlock phone with adb/twrp. Best option I found is to delete gesture.key file which is located under /data/system.
Problem is, that /data is encrypted ...
Is there anyone who managed to remove pattern/lock without loosing data?
Thank you for your time!
akulp said:
Don't ask me how, but I somehow set pattern and forgot it in one hour. I use face rec. as well but after reboot I need to unlock with pattern.
For last 10h I tried all methods how to unlock phone, but no success.
I'm using original, ROM, my G6 model is H870, running Pie, unlocked bootloader, so I can use TWRP. I spent most of my time and knowledge to unlock phone with adb/twrp. Best option I found is to delete gesture.key file which is located under /data/system.
Problem is, that /data is encrypted ...
Is there anyone who managed to remove pattern/lock without loosing data?
Thank you for your time!
Click to expand...
Click to collapse
Maybe this will work: https://************/delete-android-security-pin/
Edit: link gets truncated... Just search 'Remove pin twrp' on Google and click the first result.
krilok said:
Maybe this will work: https://************/delete-android-security-pin/
Edit: link gets truncated... Just search 'Remove pin twrp' on Google and click the first result.
Click to expand...
Click to collapse
Non of this solutions work.
This is pretty the same as I said. My problem is that /data is encrypted and I can't find/see any .key files.
Also I can't do "su" command inside adb shell because of "insuff. privileges" ...
I tried all this solutions:
https://forum.xda-developers.com/showthread.php?p=49666433#post49666433
For method 1 -5 there is a problem with .key files which are not seen to my TWRP/Aroma browser. I don't know If I'm doing anything wrong in method 7, but also after mount I can't access /data/system (/data is empty).
In method 6 I'm stucked on
"Run pull settings.db.cmd inside By-pass security Hacks folder to pull out the setting file out of your phone." step.
I get "insuff. privileges" error.
akulp said:
Non of this solutions work.
This is pretty the same as I said. My problem is that /data is encrypted and I can't find/see any .key files.
Also I can't do "su" command inside adb shell because of "insuff. privileges" ...
I tried all this solutions:
https://forum.xda-developers.com/showthread.php?p=49666433#post49666433
For method 1 -5 there is a problem with .key files which are not seen to my TWRP/Aroma browser. I don't know If I'm doing anything wrong in method 7, but also after mount I can't access /data/system (/data is empty).
In method 6 I'm stucked on
"Run pull settings.db.cmd inside By-pass security Hacks folder to pull out the setting file out of your phone." step.
I get "insuff. privileges" error.
Click to expand...
Click to collapse
Have you tried this?
https://forum.xda-developers.com/android/software-hacking/remove-lockscreen-recovery-t3530008
Basically, the files you have to delete in the /data/system folder in TWRP are:
password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal
It happened to me a while ago and I didn't have any '.key' files either; I just deleted the rest and when I booted up, I had no lock screen security PIN nor registered fingerprints but could re-set them again through security settings. I didn't need to flash any files nor fiddle around with adb commands, and all my data remained untouched...
If you can't find all those five files or the '.key' files, just delete the ones you can find and it should work. Otherwise, you'll probably have to do a full reset and reinstall...
krilok said:
Have you tried this?
https://forum.xda-developers.com/android/software-hacking/remove-lockscreen-recovery-t3530008
Basically, the files you have to delete in the /data/system folder in TWRP are:
password.key
pattern.key
locksettings.db
locksettings.db-shm
locksettings.db-wal
It happened to me a while ago and I didn't have any '.key' files either; I just deleted the rest and when I booted up, I had no lock screen security PIN nor registered fingerprints but could re-set them again through security settings. I didn't need to flash any files nor fiddle around with adb commands, and all my data remained untouched...
If you can't find all those five files or the '.key' files, just delete the ones you can find and it should work. Otherwise, you'll probably have to do a full reset and reinstall...
Click to expand...
Click to collapse
Problem is, that I don't have any files/folders at all in my /data. I even don't see system folder inside data.
akulp said:
Problem is, that I don't have any files/folders at all in my /data. I even don't see system folder inside data.
Click to expand...
Click to collapse
Sounds like your data folder is not mounted when you boot to TWRP... Have you checked? Reboot to TWRP, select the Mount option; data should be ticked by default. It it isn't, select it, go back to TWRP file manager, and see if you can now browse folders and files...
krilok said:
Sounds like your data folder is not mounted when you boot to TWRP... Have you checked? Reboot to TWRP, select the Mount option; data should be ticked by default. It it isn't, select it, go back to TWRP file manager, and see if you can now browse folders and files...
Click to expand...
Click to collapse
Unfortunately it's checked ... It's seems from this post:
https://forum.xda-developers.com/android/software-hacking/remove-lockscreen-recovery-t3530008/page12
nobody managed to get to (encrypted) /data on Pie.
akulp said:
Unfortunately it's checked ... It's seems from this post:
https://forum.xda-developers.com/android/software-hacking/remove-lockscreen-recovery-t3530008/page12
nobody managed to get to (encrypted) /data on Pie.
Click to expand...
Click to collapse
Last comment on that thread says the solution also works on Havoc Os 2.9, which is based on Pie... Maybe that person wasn't encrypted to begin with, but, if it doesn't work for you, I guess then the only way to go is a full reset... Good luck!
krilok said:
Last comment on that thread says the solution also works on Havoc Os 2.9, which is based on Pie... Maybe that person wasn't encrypted to begin with, but, if it doesn't work for you, I guess then the only way to go is a full reset... Good luck!
Click to expand...
Click to collapse
Yep, I saw that post ... I relly don't have any more ideas. Should be inside "mount modul" in TWRP /data listed?
I only have System, Cache and SD ... and i can check System only if i check bottom "mount system partition read-only" option.
But that's nothing to do with /data.
akulp said:
Yep, I saw that post ... I relly don't have any more ideas. Should be inside "mount modul" in TWRP /data listed?
I only have System, Cache and SD ... and i can check System only if i check bottom "mount system partition read-only" option.
But that's nothing to do with /data.
Click to expand...
Click to collapse
Data option should show. At least it does on mine... You can maybe try updating Twrp version?
I'm on last TWRP.... Meantime I already made full reset ....
If you have encrypted data partition, you're pretty much banned from messing with it, unless you manage to exploit your way through the adb, which requires you to have it enabled and in trust relation with your PC to begin with.
The way I'd go around this is to place an "always yes su" binary and perform pattern removal process through init.d or similar solution. In case if su commands are restricted, kernel with permissive SELinux needs to be flashed.
On a side note, isn't this Q&A?
I also had a problem with data folder not being mounted when booting to TWRP. I tried a full reset and immediately i have access to the Data folder (but theres nothing left inside so this is kinda useless). Then later when i did a reboot into the TWRP it happened again, couldnt access to anything even when the "mount Data" option is ticked, only until i did the full reset again that it could finally work.
It turned out the problem is with the TWRP itself, i flashed another custom recovery (OrangeFox-R10-Stable-h870, which is btw a better recovery than TWRP in my opinion) and the problem never occurred again.
So either try out that new Recovery or a different version of TWRP and see if it solves the problem. And always, ALWAYS, make a full backup of all your data before messing with anything (i had to learn that the hard way so trust me).
Do this,
- you should know that I am using "orange fox recovery" not "twrp",and stock "pie"
- reboot to recovery and go to system/data
- delete this files:
gatekeeper.password.key
gatekeeper.pattern.key
locksettings.db
-reboot the phone and that's it.

Categories

Resources