[Galaxy Note GT-N7000 Themes and Apps] majdinj:
This tutorial is inspired by [MENTION=4244201]m.sabra[/MENTION] thread here.

All credits are for [MENTION=4244201]m.sabra[/MENTION] and [MENTION=1273478]hanaheeno[/MENTION] for pointing out the files responsible for LockScreen Security :good:.

If you find this tutorial helpful, please go to the main thread above and thanks those people.

​

As shown in picture above, you can now rescue your LockScreen security in case you forgot your personal pattern, password, pin, signature or even face.!!

There are different ways to do this that we are going to describe.. So, without any further words, lets start our tutorial :cowboy:

Tutorial toolbox:

1) ADB engine from android SDK | Here - 400+ mb | or extracted one | View attachment 2234090 - 0.4 mb |.

2) Notepad++ for editing in windows machine | Here |.

3) Flashable zip template | Here |.

4) 7-zip archiver | Here | or WinRAR | Here |.

5) Samsung USB driver to be installed. | Here for 32-bit or Here for 64-bit |.

6) Aroma file manager | Here |.

7) Any custom recovery.

The methods (choose the one you like):

Method #1 - ADB through android OS:

- Plug your device to USB and start adb session:

adb shell
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
rm /data/system/gesture.key
rm /data/system/password.key
rm /data/system/signature.key
rm /data/system/sparepassword.key
exit
adb reboot

In between each line, don't forget to hit Enter Key

The following video is showing how is this done (credits to [MENTION=3066461]melvinchng[/MENTION])

[youtube]tVJ7T2oC_Zs[/youtube]

If you run into some access denied messages, use su binary to elevate your permission level as following:

adb shell
su
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
rm /data/system/gesture.key
rm /data/system/password.key
rm /data/system/signature.key
rm /data/system/sparepassword.key
exit
exit
adb reboot

The following video is showing how is this done using su binary (again credits to [MENTION=3066461]melvinchng[/MENTION])

[youtube]deVEYhDdoHA[/youtube]

Method #2 - ADB through recovery:

- Reboot into recovery.

- Plug your device to USB and start adb session:

adb shell
mount /data
rm /data/system/locksettings.db
rm /data/system/locksettings.db-wal
rm /data/system/locksettings.db-shm
rm /data/system/gesture.key
rm /data/system/password.key
rm /data/system/signature.key
rm /data/system/sparepassword.key
umount /data
reboot

In between each line, don't forget to hit Enter Key

Method #3 - updater-script flashable zip file through recovery:

- Grasp my flashable zip template (you can download it from here) and navigate to /META-INF/com/google/android folder and extract updater-script, open it by Notepad++ and change the whole script to:

ui_print(" ");
package_extract_file("busybox", "/tmp/busybox");
set_perm(0, 0, 0777, "/tmp/busybox");
run_program("/tmp/busybox");
run_program("/tmp/busybox", "mount", "/data");
delete("/data/system/locksettings.db");
delete("/data/system/locksettings.db-wal");
delete("/data/system/locksettings.db-shm");
delete("/data/system/gesture.key");
delete("/data/system/password.key");
delete("/data/system/signature.key");
delete("/data/system/sparepassword.key");
run_program("/tmp/busybox", "umount", "/data");
delete("/tmp/busybox");

Don't forget to leave one empty line at the end.

- Save changes, and drag/drop the updater-script inside the flashable template inside /META-INF/com/google/android folder.

- Put the flashable file on your sdcard and flash it through recovery.

Check attachment for the pre-made flashable file.

Method #4 - sh script in flashable zip file through recovery:

- Open Notepad++ new page, and paste the following code inside it:

#!/sbin/sh
#
###############################################################
# Auto Clear LockScreen Security Script for Android Devices #
# By majdinj xda-developers.com #
# #
# Thanks To: m.sabra & hanaheeno for the primary method #
###############################################################
#
if [ -e /data/system/locksettings.db ]
then
rm /data/system/locksettings.db
fi
if [ -e /data/system/locksettings.db-wal ]
then
rm /data/system/locksettings.db-wal
fi
if [ -e /data/system/locksettings.db-shm ]
then
rm /data/system/locksettings.db-shm
fi
if [ -e /data/system/gesture.key ]
then
rm /data/system/gesture.key
fi
if [ -e /data/system/password.key ]
then
rm /data/system/password.key
fi
if [ -e /data/system/signature.key ]
then
rm /data/system/signature.key
fi
if [ -e /data/system/sparepassword.key ]
then
rm /data/system/sparepassword.key
fi

Also don't forget to leave one empty line at the end.

- Save the file as "rescue_lockscreen_security.sh" (it could be anything, but for the sake of tutorial.!!).

- Now open the flashable zip template (download it from here) and navigate to /META-INF/com/google/android folder and extract updater-script, open it by Notepad++ and change the whole script to:

ui_print(" ");
package_extract_file("busybox", "/tmp/busybox");
set_perm(0, 0, 0777, "/tmp/busybox");
run_program("/tmp/busybox");
run_program("/tmp/busybox", "mount", "/data");
package_extract_file("rescue_lockscreen_security.sh", "/tmp/rescue_lockscreen_security.sh");
set_perm(0, 0, 0777, "/tmp/rescue_lockscreen_security.sh");
run_program("/tmp/rescue_lockscreen_security.sh");
run_program("/tmp/busybox", "umount", "/data");
delete("/tmp/busybox");
delete("/tmp/rescue_lockscreen_security.sh");

Also here don't forget to leave one empty line at the end.

- Save changes, and drag/drop the updater-script inside the flashable template inside /META-INF/com/google/android folder.

- Drag/drop rescue_lockscreen_security.sh in the root of flashable zip template.

​

- Put the flashable file on your sdcard and flash it through recovery.

Check attachment for the pre-made flashable file.

Method #5 - Aroma File Manager through recovery:

Special thanks to [MENTION=402300]amarullz[/MENTION] for this amazing tool.

Go to the main thread here and download Aroma File Manager.

- As described by the developer, copy the aromafm-xx.zip into your sdcard, then reboot your device into recovery mode. Choose install from sdcard, then select the aromafm-xx.zip. The file manager will start, and you are ready to manage your system files (copy, cut, delete, make new folder, etc) while you are in recovery.

- Now in Aroma File Manager, navigate to /data/system folder and delete the following files if exist:

gesture.key
locksettings.db
locksettings.db-shm
locksettings.db-wal
password.key
signature.key
sparepassword.key

- Exit Aroma File Manager and reboot the phone.

​

Pre-made flashable files

You will see bellow in the attachment pre-made flashable files made from method #3 and method #4. Download the one you want, put it on sdcard and reboot to recovery and flash it.

Please stay safe,,