[SCRIPT] Remove Screen Lock - Galaxy Y GT-S5360 Android Development

Hey Guys
I just made this script to remove Pattern/Gesture Locks without reseting phone or going through adb commands
simply flash this zip to remove pattern,pin,password locks.
Will work with all GB phones
EDIT: Use cwm, won't work with stock recovery as zip isn't signed

should work
an alternative to using aroma file manager to delete the gesture and password keys

Good job :thumbup::thumbup:
Sent from my GT-S5360 using Tapatalk 2

dranzer006 said:
Hey Guys
I just made this script to remove Pattern/Gesture Locks without reseting phone or going through adb commands
simply flash this zip to remove pattern,pin,password locks.
Will work with all GB phones
Click to expand...
Click to collapse
Will this work for password lock not the pattern lock? I've tried it on password lock and its not working. It still ask for password on lockscreen. I entered wrong password but still cannot unlock the phone and it said i have to enter my email for recovery password.

IzArsha said:
Will this work for password lock not the pattern lock? I've tried it on password lock and its not working. It still ask for password on lockscreen. I entered wrong password but still cannot unlock the phone and it said i have to enter my email for recovery password.
Click to expand...
Click to collapse
Wipe data if you didn't find any other way to reset your lock.
After you have solved your problem, keep Gmail app installed and sync the email atleast once for making the resetting with Google account working.
Sent from my GT-S5300 using Tapatalk 0.01a
1. Love doesn't need any reason.
2. Wanna speed up 3G (not 4G LTE)?
Here it is:
http://forum.xda-developers.com/showthread.php?t=2586876

yes it works with pin locks, just use cwm, as stock recovery won't work

nice
sent from terminal emulator

dranzer006 said:
Hey Guys
I just made this script to remove Pattern/Gesture Locks without reseting phone or going through adb commands
simply flash this zip to remove pattern,pin,password locks.
Will work with all GB phones
EDIT: Use cwm, won't work with stock recovery as zip isn't signed
Click to expand...
Click to collapse
I Dont Think you are the real dev of this script...
check it here
the real script is already released a month ago...
I dont know who the real dev but my friend does...
i have sent him a message regarding this..
it seems like you are copying it...
Doubts Cleared
Thanks For Replying...

InfectedDarkDroids said:
I Dont Think you are the real dev of this script...
check it here Real Script
the real script is already released a month ago...
I dont know who the real dev but my friend does...
i have sent him a message regarding this..
it seems like you are copying it...
Click to expand...
Click to collapse
In regards to your post
1 - this isnt realy development
2 - its a basic script which just says to delete two files
3 - anyone could type script in 2 mins
4 - as regards to copying - well every script that wants to acheive this has to have the same commands to delete the two files
5 - did the op write this? who knows but themself but its so basic anyone could write that with a little knowledge of what they want to do
6- you have broken xda rules by posting to another forum that requires registration and could be for commercial gain
7- there are lots of this type of script on xda with dates before that posting -including this one!

InfectedDarkDroids said:
I Dont Think you are the real dev of this script...
check it here Real Script
the real script is already released a month ago...
I dont know who the real dev but my friend does...
i have sent him a message regarding this..
it seems like you are copying it...
Click to expand...
Click to collapse
This script does nothing but deleting two ".key" files located in system/data, anyone can write it,
I don't know about that guy on the other forum but I did a lot of research on removing screen lock as I had this problem,
since my phone wasn't hard rooted (can't delete files via adb commands), I had to make a script to remove lock on my phone,
So I just felt like sharing this script here with everyone.
PS: i used this tutorial, if you want you can also give it a try
http://www.addictivetips.com/androi...e-pattern-unlock-on-android-via-adb-commands/

dranzer006 said:
Hey Guys
I just made this script to remove Pattern/Gesture Locks without reseting phone or going through adb commands
simply flash this zip to remove pattern,pin,password locks.
Will work with all GB phones
EDIT: Use cwm, won't work with stock recovery as zip isn't signed
Click to expand...
Click to collapse
does this method need a rooted device or will it work with the in-built recovery in samsung devices. the next question is not related to this but i am going to ask anyway. does the warranty get void if i install a custom recovery on to my samsung galaxy note 5??

naz33h23 said:
does this method need a rooted device or will it work with the in-built recovery in samsung devices. the next question is not related to this but i am going to ask anyway. does the warranty get void if i install a custom recovery on to my samsung galaxy note 5??
Click to expand...
Click to collapse

Remove Lock Zip work fine on my GT-S5300
IT Remove any pin password and pattern and unlock to slide.It working nice i use CUTE-CWM Or custom cwm working and then install zip from sdcard > Choose zip from sdcard then remove lock.zip and work finally.:good::good:
This not bricked anything but work excellent i tested.

Related

Micromax Funbook Infinity (P275) Discussion And Hacking

Official Thread for the Funbook Infinity​
We Have a ROM, That Too a CM10! Check it out here ​Credits for modifying the CM10 for A13 ROM for our device goes to Kgarg
Now i dont deny it takes a little bit more than a running brain to perform the steps without any casualties, but wherever you get stuck just ping us, we shall solve it.​
Breath a totally awesome new life right now.​
Post anything here.
Want to know the best apps for anything, ANYTHING. (Just please dont ask for the APKs)
Have a homescreen to show-off?
Things you are using it for...
...And anything you want to share with the whole wide world (Well, at least XDA)
Lets make this thread the almighty storage box for everything P275 cummunity,The Cummunity Infinite
This thread is also meant for those out there who our new to our lovely Tablet and don't know where to start.
Anything worth noting will be put in the second post (With due credits).
Lets Join Hands, lets come together.
Here is the Video That igyaan guy made while reviewing it
http://www.youtube.com/watch?v=nIXGFTmiECY
creagrox said:
Reserved
Click to expand...
Click to collapse
bought. can't root it, impossible i think.
As someone on Dexter said last night - nothing's impossible in technology.
We will find a solution, that's for sure.
The quadrant Scores Are out
Total:2331
CPU:1446
MEM:3929
I/O:3718
2D:990
3D:1570
Just a notch low than optimus2x.
Not Bad for 6.5k($120), is it?
U guys should first check if its already unrooted . Cause the funbook come pre unrooted.
If not u can try a software called unroot me. It worked for my Funbook alpha.
Shankermk said:
U guys should first check if its already unrooted . Cause the funbook come pre unrooted.
If not u can try a software called unroot me. It worked for my Funbook alpha.
Click to expand...
Click to collapse
do u mean 'UNLOCK ROOT' ? i can't find any software named 'unroot me'.
btw i've checked 'unlock root' , it didn't worked.
3G dongle
Can anybody tell me how to use 3G dongle with funbook infinity?
I have Idea Net setter (Huwai) with Idea card.
there is indeed no software named unrootme (troll alert, @shankermk?)
arun, anything worth sharing?
hey, a big welcome shivam. you will love the people around here.
congrats on buying your first tablet.
i've heard that huawei cards do work on this one(mine is d-link so no cake for me).
but somehow, if we gain root. then most of the things will work in it.(things like bluetooth, gamepads)
all is not lost people, keep your hopes,and smiles up.
hey, a big welcome shivam. you will love the people around here.
congrats on buying your first tablet.
i've heard that huawei cards do work on this one(mine is d-link so no cake for me).
but somehow, if we gain root. then most of the things will work in it.(things like bluetooth, gamepads)
all is not lost people, keep your hopes,and smiles up.
Hi ,
Can the developers please mention which all methods have been tried and resulted in failure or bricking of the device. This may help other people to avoid those chances. Also has any one tried installing sparkyroot.apk . infinity has the same config as xtab.
Rooting
Here is the description of different methods i tried on it.
unlockroot: recognizes the device, flashes its name. but after "trying to get shell root permissions", it just returns to normal.
superoneclick: freezes on step 4 "failed to set prot mask"
Sparkyroot: doesnt even starts its process "SU binary not installed"
maybe the long way (the one used to get root permissions on pre-froyo era) through ADB may work here after some modifications, of course, but have no experience using adb ))
did you guys try any other?
First i would like to say,i dont own this fun book tab...Im a proud owner of galaxy note...
Ok that being said,to gain root all you must need to do is push susperuser.apk to/system/app and its binary "su" to /system/bin to gain root...now you guys need to find a way to do this...if anybody knows to use adb you can try any exploit...sorry if you guys already know it
Sent from my GT-N7000 using xda app-developers app
I havn't tried any yet. Just bought the device yesterday evening and searching the net fo any hit.
Or if you device runs android 4(ICS) you can try to put a cwm zip containing the required files in your external sd,boot ibto recovery and select apply update from external sdcard and select the zip.It might work in a easy way....Because afaik ics allows to install zips from external sd which are test signed...
Note1:The zip must be named update.zip to work.create the zip then sign it and pls dont edit anything after signing as it may break the signature
Note2:if you dono to enter recovery you can try "adb reboot recovery" command in adb(without quotes)
Sent from my GT-N7000 using xda app-developers app
creagrox said:
hey, a big welcome shivam. you will love the people around here.
congrats on buying your first tablet.
i've heard that huawei cards do work on this one(mine is d-link so no cake for me).
but somehow, if we gain root. then most of the things will work in it.(things like bluetooth, gamepads)
all is not lost people, keep your hopes,and smiles up.
Click to expand...
Click to collapse
@ creagrox, thanks for welcome note,
If I can use 3G dongle, definitely, I am interested in rooting.
I think there is no bluetooth in this funbook.
vijai2011 said:
Or if you device runs android 4(ICS) you can try to put a cwm zip containing the required files in your external sd,boot ibto recovery and select apply update from external sdcard and select the zip.It might work in a easy way....Because afaik ics allows to install zips from external sd which are test signed...
Note1:The zip must be named update.zip to work.create the zip then sign it and pls dont edit anything after signing as it may break the signature
Note2:if you dono to enter recovery you can try "adb reboot recovery" command in adb(without quotes)
Sent from my GT-N7000 using xda app-developers app
Click to expand...
Click to collapse
all is done except u can't navigate into recovery as there r no volume keys.
secondly when i enter the command 'adb boot recoverey', it just restarted and not in recovery mode. same happens with the command 'adb boot download'.
Sent from my Micromax P275 using xda app-developers app
arunrawat2112 said:
all is done except u can't navigate into recovery as there r no volume keys.
secondly when i enter the command 'adb boot recoverey', it just restarted and not in recovery mode. same happens with the command 'adb boot download'.
Sent from my Micromax P275 using xda app-developers app
Click to expand...
Click to collapse
I dono how this tabs recovery looks or how to enter recovery in this tab...but usually that command should take you to recovery...maybe their is something like s-off???but their is 90% chance that the above method will work once you are in recovery...
Sent from my GT-N7000 using xda app-developers app
Does anyone tried HD games in this tab, gangstar mv not working I tried that
Sent from my Micromax P275 using xda app-developers app

Need Testers for Unlocker App

Hi,
I'm looking for a few testers, preferably people who I have interacted in the past via IRC/forums. I finally have my app at a point where I think it's ready for Google Play, but I need to make sure that it works in a variety of roms and environments and that have a non-tmobile sim ready for testing for successful locks/unlocks.
Note that this can potentially leave your phone with a borked efs partition, which is why I want to test the efs backup/restore functionality first. If you are on ICS/JB you will be safer since the bml3 partition is still untouched. If anything goes severely wrong you can use a one-click back to GB which will also restore the untouched /efs partition after which you can flash back to ICS/JB to have a working /efs partition again.
I need people who can test the app using different GB/ICS/JB roms and give me feedback on whether the following works for them:
Does backup and restore work properly? (check /sdcard/efs_backup.tar for the backup, make sure by copying the file to your computer and opening it in an archive program such as 7-zip)
Try wiping /efs, verifying that the /efs partition is borked. After restoring a backup made with the Unlocker app and a reboot, does voice/data/text work again?
Do you get more than one superuser request while using the app in a single app launch (Ex: You launch the app, while using the app does a superuser request pop up more than once while using the app?)
Do you get an unlock code when you press the Get Unlock Code button?
Does the unlock code get saved to /sdcard/unlockcode.txt?
Does hex unlock work properly? (please test with a non-tmobile sim card)
Does hex lock work properly? (please test with a non-tmobile sim card, after re-locking your phone you should no longer be able to use data/voice/text while you have the non-tmobile sim card inserted)
Can you successfully use your phone on the non-tmobile card after unlock, lock, and unlock again?
Again, I'm looking for people who already know their way around the phone for testing. If you've never used adb shell before please don't bother replying.
Thank you in advance for your time.
Hello FB.
I'd be interested.
I don't have an different sim right now, but I could still check whether the lock/unlock function is actually working..
Thanks
airfluip1 said:
Hello FB.
I'd be interested.
I don't have an different sim right now, but I could still check whether the lock/unlock function is actually working..
Thanks
Click to expand...
Click to collapse
Is there any way you can get a non-tmobile sim to test with? I'd really like to be able to see if users can use the phone on another network which is the purpose of the app.
FBis251 said:
Is there any way you can get a non-tmobile sim to test with? I'd really like to be able to see if users can use the phone on another network which is the purpose of the app.
Click to expand...
Click to collapse
Back when you first released this (if it is the same app) i used this to test on my phone. I believe i was using and GB rom and it worked perfectly. I can't vouch for any other roms or test right now, as i dont have another sim, but if i get one, I could probably test a few roms for you.
Please don't kill this thread with maybe's,coulds,ifs,and woulds...please show some respect and reply only if you "can" and "will" test.
Sorry FB if I'm stepping on your toes but its not right if your quest for testers gets filled with unheplful replies.
It's OK then. I won't have access to another sim until I go abroad in August.
Fb if you still need help tester pm me
Sent from my SGH-T959V using Tapatalk 2
turtlepa said:
Fb if you still need help tester pm me
Sent from my SGH-T959V using Tapatalk 2
Click to expand...
Click to collapse
PM sent
FBis251 said:
Hi,
I'm looking for a few testers, preferably people who I have interacted in the past via IRC/forums. I finally have my app at a point where I think it's ready for Google Play, but I need to make sure that it works in a variety of roms and environments and that have a non-tmobile sim ready for testing for successful locks/unlocks.
Note that this can potentially leave your phone with a borked efs partition, which is why I want to test the efs backup/restore functionality first. If you are on ICS/JB you will be safer since the bml3 partition is still untouched. If anything goes severely wrong you can use a one-click back to GB which will also restore the untouched /efs partition after which you can flash back to ICS/JB to have a working /efs partition again.
I need people who can test the app using different GB/ICS/JB roms and give me feedback on whether the following works for them:
Does backup and restore work properly? (check /sdcard/efs_backup.tar for the backup, make sure by copying the file to your computer and opening it in an archive program such as 7-zip)
Try wiping /efs, verifying that the /efs partition is borked. After restoring a backup made with the Unlocker app and a reboot, does voice/data/text work again?
Do you get more than one superuser request while using the app in a single app launch (Ex: You launch the app, while using the app does a superuser request pop up more than once while using the app?)
Do you get an unlock code when you press the Get Unlock Code button?
Does the unlock code get saved to /sdcard/unlockcode.txt?
Does hex unlock work properly? (please test with a non-tmobile sim card)
Does hex lock work properly? (please test with a non-tmobile sim card, after re-locking your phone you should no longer be able to use data/voice/text while you have the non-tmobile sim card inserted)
Can you successfully use your phone on the non-tmobile card after unlock, lock, and unlock again?
Again, I'm looking for people who already know their way around the phone for testing. If you've never used adb shell before please don't bother replying.
Thank you in advance for your time.
Click to expand...
Click to collapse
Does backup and restore work properly? yes it did
1. Try wiping /efs, verifying that the /efs partition is borked. After restoring a backup made with the Unlocker app and a reboot, does voice/data/text work again? i never tested this function.
2. Do you get more than one superuser request while using the app in a single app launch? no i only got one request which was granted.
3. Do you get an unlock code when you press the Get Unlock Code button? yes but this unlock code wasn't unlocking my device, it seemed to be a issue with my device because i check and confirmed the code in hex editor so this should work with everyone else.
4. Does the unlock code get saved to /sdcard/unlockcode.txt? yes this indeed worked and i checked the file to make sure the code was there.
5. Does hex unlock work properly? this was the STUNNING PART! the hex editor was the only feature that unlocked my device! it saved my life because i only had 2 tries left and all i did was click "hex unlock" but the network never came up instantly i had to do an restart.
6.Does hex lock work properly? yes i relocked the device and placed Digicel sim in and it did not register
NB: i got an force close i think from the phone app not sure at which point in time but i dont think it was regarding to the unlocking app because it is perfect !
anything i left out please alert me.
Good job fb! :highfive: it was a pleasure testing your app.
@express21 thanks for testing!
FBis251 said:
@express21 thanks for testing!
Click to expand...
Click to collapse
any chance i can also test it out? but if you're not able to get back, it okay.
Ziken said:
any chance i can also test it out? but if you're not able to get back, it okay.
Click to expand...
Click to collapse
Testing is over. You can now find the unlocking app in the Playstore and support this great Dev by paying the small fee.
https://play.google.com/store/apps/details?id=com.fernandobarillas.SGS4GCarrierUnlocker
lumin30 said:
Testing is over. You can now find the unlocking app in the Playstore and support this great Dev by paying the small fee.
https://play.google.com/store/apps/details?id=com.fernandobarillas.SGS4GCarrierUnlocker
Click to expand...
Click to collapse
gotcha.
Ziken said:
any chance i can also test it out? but if you're not able to get back, it okay.
Click to expand...
Click to collapse
lumin30 said:
Testing is over. You can now find the unlocking app in the Playstore and support this great Dev by paying the small fee.
https://play.google.com/store/apps/details?id=com.fernandobarillas.SGS4GCarrierUnlocker
Click to expand...
Click to collapse
Lumin is correct, I have released a stable version of the app. I also have two free unlock methods that aren't as straightforward to use, but still easier than editing the hex file by hand
Hey fb, I noticed Google play says the app was updated on the 14th. Did anything change?
Sent from my SGH-T959V using xda premium
johnadelic said:
Hey fb, I noticed Google play says the app was updated on the 14th. Did anything change?
Sent from my SGH-T959V using xda premium
Click to expand...
Click to collapse
It seems that every time I log into the developer console and check the stats it says the app gets updated :/.
I AM working on an update though, mostly UI stuff to make it more usable, but I've been having trouble getting my source code to compile. :/. Hopefully before the end of the summer
Still need testers?
Sent from my SGH-T959V using Tapatalk 2

[Q] Unlock problem

earlier today I found out my little sister knew my pattern so I changed it. But when I changing the pattern I didn't pay attention a lot and know I forgot the pattern.My data and WiFi are disabled.I can't sign in to my google account with the phone now.
My question: I can't sign in because data/wifi is off? If yes is there a way to turn on wifi or data without unlocking phone?
I'll be thankful if someone help me because I can't loose my apps and setting
I'm using Galaxy mini CM 7.2 official
Hi, you can go into recovery mode and make a data wipe, but you will loose all apps and configurations.
On CM10.2 is it possible to activate wifi or data from lock screen but i don't kow cm 7, sorry
ayadgalaxymini said:
earlier today I found out my little sister knew my pattern so I changed it. But when I changing the pattern I didn't pay attention a lot and know I forgot the pattern.My data and WiFi are disabled.I can't sign in to my google account with the phone now.
My question: I can't sign in because data/wifi is off? If yes is there a way to turn on wifi or data without unlocking phone?
I'll be thankful if someone help me because I can't loose my apps and setting
I'm using Galaxy mini CM 7.2 official
Click to expand...
Click to collapse
Right go into recovery mode and do a factory data reset like they said above might delete your internal memory but hey you get your phone back!
☆☆DeMeNtEd_ChAmP☆☆
I know I can do factroty reset but I'm looking for a way to unlock phone without loosing my data
ayadgalaxymini said:
I know I can do factroty reset but I'm looking for a way to unlock phone without loosing my data
Click to expand...
Click to collapse
if you have usb debugging enabled you can break it with adb by using adb shell commands
follow this guide in my blog http://www.blog-android.com/general/break-pattern-lock/ for more details and dont use that aroma method it is only for mediatek devices
you can try the other methods given there
ayadgalaxymini said:
earlier today I found out my little sister knew my pattern so I changed it. But when I changing the pattern I didn't pay attention a lot and know I forgot the pattern.My data and WiFi are disabled.I can't sign in to my google account with the phone now.
My question: I can't sign in because data/wifi is off? If yes is there a way to turn on wifi or data without unlocking phone?
I'll be thankful if someone help me because I can't loose my apps and setting
I'm using Galaxy mini CM 7.2 official
Click to expand...
Click to collapse
I don't know why you facing this! if I forget my password/pin my phone gives me a option to enter my gmail id and password and then directs me to change the password/pin! this occurs even If I remove my SIM card also!
anyway a probable solution for you - http://forum.xda-developers.com/showthread.php?t=2225695
I am just sharing my experience
I had locked gionee m2 without root and without debugging enabled I was able to disable lock with out wiping data
What I did was
1)flashed carliv touch recovery using special flash tool
Use PC to Flash*recovery.img*using sp-flash tools. (Please be aware of how to install required drivers etc..)
Select original scatter file of your version of ROM. If You are using stock ROM, Make sure that you have not altered the phone partitioning earlier.*
Be careful and Remember to select/tick only 'recovery' in the list. You can also check preloader if you like. and select ONly 'download' button. (NOT firmware upgrade!). Connect your switched off phone to your PC. Wait till your task is complete. Shows you a green circle.
2)backup of data was made using carliv touch recovery (ofcourse with locked phone data)just in case anything goes wrong.
At this moment carliv touch recovery was working but boot and power options were not functioning
3)now flashed rooting file this time by carliv touch recovery
4)carliv touch recovery has aroma file manager too. But I was not able to open lock by this method as
Aroma File Manager, Click on menu option and go to settings*
Select Mount All Partitions*
Now, exit from Aroma File Manager and reflash it.*
Now, you will see each partition is mounted
5. Now, go to /data/system
Note : If you have sd-ext mod to increase internal storage, go to /sd-ext/system/
6. Now, If you have to remove pattern lock, long press and delete gesture.key
If you want to remove password, delete password.key
7. Exit the Aroma File Manager
8. Reboot*
9. Enjoy*
Didn't enjoyed this method somehow I don't know but it didn't worked for me as this folders didn't showed above said files.
5)now I flashed pattern password disable. Zip file using carliv recovery
And on booting phone screen asking for google id and password was gone link http://forum.xda-developers.com/attachment.php?attachmentid=1900741&d=1366570627
This was my method to unlock pattern locked gionee m2 phone but this can help you out too
Sent from my HM NOTE 1LTE using Tapatalk

HELP Forgot Pattern in Android 6.0

Thats the problem...Android Device Manager is useless cuz there is already a pattern...I tried almost 100 times and there is no "forgot your password?" option...I need at least do a copy of my pictures.
Is there any solution to this? I feel like a real idiot...I was trying a different pattern and I forgot It...I cant believe it...
I think there's a file not sure if it is directly under /data/system or one of it's sub directories, but basically what I did was to boot to TWRP , use the built it file manager and delete that file. I could then access my phone. I will search maybe I kept the file name somewhere.
EDIT:
Just remove this file /data/system/gesture.key
and reboot.
wizardwiz said:
I think there's a file not sure if it is directly under /data/system or one of it's sub directories, but basically what I did was to boot to TWRP , use the built it file manager and delete that file. I could then access my phone. I will search maybe I kept the file name somewhere.
EDIT:
Just remove this file /data/system/gesture.key
and reboot.
Click to expand...
Click to collapse
How I do that? my phone is not rooted, the bootloader is locked and debugging mode is off :S
Jerber said:
How I do that? my phone is not rooted, the bootloader is locked and debugging mode is off :S
Click to expand...
Click to collapse
That could be a problem. I think that it might be done using adb but not sure if it can be done without root/bootloader secured
If cracking an Android device were as easy as deleting a file then I doubt that there's much value in any security on a device at all, no?
Surely this has to be a reinstall of the ROM...? Maybe with no-wipe to preserve the data?
Genuine question - I don't know for sure.
dahawthorne said:
If cracking an Android device were as easy as deleting a file then I doubt that there's much value in any security on a device at all, no?
Surely this has to be a reinstall of the ROM...? Maybe with no-wipe to preserve the data?
Genuine question - I don't know for sure.
Click to expand...
Click to collapse
Testing it would be really easy. just set a pattern and then delete that file.
Lets us know is it is that easy to hack it or not.
Since obviously you know better, share your findings with us.
dahawthorne said:
If cracking an Android device were as easy as deleting a file then I doubt that there's much value in any security on a device at all, no?
Surely this has to be a reinstall of the ROM...? Maybe with no-wipe to preserve the data?
Genuine question - I don't know for sure.
Click to expand...
Click to collapse
The phone has to have an unlocked bootloader and twrp installed, so you already compromised its security yourself. You could relock the bootloader, flash a stock recovery and encrypt the phone, that would solve the issue.
"Since obviously you know better, share your findings with us."
Look, guy, just because you're a senior member there's no need to be offensively sarcastic.
Maybe you didn't get as far as my last comment: "Genuine question - I don't know for sure."
dahawthorne said:
"Since obviously you know better, share your findings with us."
Look, guy, just because you're a senior member there's no need to be offensively sarcastic.
Maybe you didn't get as far as my last comment: "Genuine question - I don't know for sure."
Click to expand...
Click to collapse
Not being Sarcastic at all. Making a point. If you got offended, sorry about that.
I posted what I have , after testing it myself. Had the same issue on Lollipop.
Further more, I will share another piece of Info in here.
When You are able to access any Solaris/Linux server using a console , and boot it from DVD, you can simply edit the /etc/shadow file and reset even the root password. Does that mean Unix/Linux aren't secure OS's ?
When you have access to OS level files you can practically hack every OS.
Same goes here. When you have unlock bootloader and modified recovery you can access system files that otherwise would be inaccessible. if he can have access to that file and remove it, he will gain access to his system.
Well, I tried everything that I could because my phone is no rooted, and the bootloader is locked, plus, the debugging mode is off too... so I was close to give up, BUT finally I remembered that my phone was connected to Airdroid!; if Airdroid is connected to the phone It can bypass the lockscreen and you can access to the internal memory anyways with the Airdroid website!, so I did a full backup of all my pictures and then I did a factory reset!, the copy was a kinda slow but I didn't care of course!. What a relief!!!
So, I really recommend use Airdroid (and have the app connected of course), it saved my life!, I was really frustrated about this, I cant believe Google doesnt provide the old way the restore the pattern like in Kitkat and Jelly Bean.
wizardwiz said:
I think there's a file not sure if it is directly under /data/system or one of it's sub directories, but basically what I did was to boot to TWRP , use the built it file manager and delete that file. I could then access my phone. I will search maybe I kept the file name somewhere.
EDIT:
Just remove this file /data/system/gesture.key
and reboot.
Click to expand...
Click to collapse
It worked like a charm!
I have a fingerprint enabled phone. forgot my pattern, followed your suggestion and presented in my phone are data/system/gesture.password.key and gesture.pattern.key so I deleted the pattern.key (guided by forgotten pattern) I rebooted and my apps were optimized and voila the phone is unlocked.
However, I tried accessing the fingerprint menu on my phone but refused access. I then used root explorer, browse to aforementioned location, copied and renamed gesture.password.key to gesture.pattern.key as it was before deletion.
went back to the security setting of my phone, setup pin option (scared of forgetting the pattern again) and phone screen locked. I try using my fingerprint to unlock (which I am accustomed to) and voila! it says pin required for additional security. entered Pin and the fingerprint menu became functional again and all previously stored fingerprints remained unaltered....QED

[HOW-TO] [GUIDE] Encrypt device with custom rom, knox 1, twrp installed, rooted

This Guide will work on S7 and S7 Edge Variants, probably also on other Samsung Phones. It doesn't matter if you have xposed and/or supersu installed
I did lately try to encrypt my device after installing my rom. So I tried to search on xda but I couldn't find anything useful until now.
After quit some time I finally managed it to get a working encryption, even with custom rom installed (which contains root and xposed). I will present the following steps here to help you folks to get an encrypted device.
Root will work as always after encryption :highfive:
Attention, TWRP can't read /data partition after this guide, that's because twrp doesn't support samsungs encryption at all
Pre requests:
- A working pc with adb installed
- Enough battery (at least 80%)
- Charger in your near field
- Working internet connection
Steps:
1. Go to SuperSU application on your device
2. Head over to the settings Tab
3. Scroll down and hit Full unroot
4. Click continue, when it asks you to install stock boot.img say NO, also NO on restoring stock recovery
5. SuperSU app should disappear
6. Make one full reboot
7. Head over to settings, lock screen and security, set a password
8. Plug in your charger and start encryption
9. Wait until your phone has fully encrypted (this can take quit some time)
10. After your device has successfully encrypted, we want to gain root access again
11. Boot into TWRP recovery
12. You now need a pc with working adb connection
13. Click adb sideload on twrp
14. Download latest super su to your PC, you can get that from here: Beta Thread
15. Open a terminal on your PC
16. Put the supersu.zip in the same direction as your terminal is opened (example: user/home)
17. Type into terminal: adb sideload *supersu_name*.zip
18. Reboot your phone and you have a working, encrypted phone with root installed!
If this guide helped you, please share it and hit thanks as well! :good:
@Tkkg1994
I don't think it could protect your data.
Here is a simple way to steal data from a encrypted phone with unlocked FRP.
Just add this script to ramdisk of kernel.
Code:
#!/system/bin/sh
rm -rf /data/system/lock*
rm -rf /data/system/gatekeep*
And this script will automaticlly remove any screen locks after the data partition is already unlocked by the system after boot.
You may ask:
Could I prevent unauthorized kernel from booting? (by re-enable FRP lock)
No, you can't because systemless install of SuperSU already modify the kernel and you can't boot modified kernel with FRP on.
Could I restore to stock kernel after finish this and then enable FRP?
You will lose your root.
And this way cannot prevent theft from reset your phone and then use it.
So, in a word, any tries to keep your phone safely after root are stupid.
It could only stop those low-IQ theft but it could not stop someone who really concern your data.
Jesse Chan said:
@Tkkg1994
I don't think it could protect your data.
Here is a simple way to steal data from a encrypted phone with unlocked FRP.
Just add this script to ramdisk of kernel.
Code:
#!/system/bin/sh
rm -rf /data/system/lock*
rm -rf /data/system/gatekeep*
And this script will automaticlly remove any screen locks after the data partition is already unlocked by the system after boot.
You may ask:
Could I prevent unauthorized kernel from booting? (by re-enable FRP lock)
No, you can't because systemless install of SuperSU already modify the kernel and you can't boot modified kernel with FRP on.
Could I restore to stock kernel after finish this and then enable FRP?
You will lose your root.
And this way cannot prevent theft from reset your phone and then use it.
So, in a word, any tries to keep your phone safely after root are stupid.
It could only stop those low-IQ theft but it could not stop someone who really concern your data.
Click to expand...
Click to collapse
Some guys need encrypted phones for their work (as some exchange server or email clients only work on encrypted devices)
I know that it is pretty much useless (since we have root access and can pretty much do anything with it)
So basically it brings you some more security but mainly gives those guys who need an encrypted phone for work a chance to have root and encryption together
Sent with my SM-G930F powered by SuperMan
Maybe my remark is stupid but with lollipop the user had to enter the decryption key just before loading the system... So even if the system was rooted, without the key it was impossible to recover the data...
You are saying me that now, in marshmallow Android is storing the key directly in the device ? And if one day there is a small flaw in the kernel all the data could be decrypt...
Thanks for you answer, i'am not an expert in security but i'am really interested in.
Hi,
I installed SuperMan rom without root/xposed and I can't get it to encrypt. It just restart the phone.
is there something else I need to do?
jesec said:
@Tkkg1994
I don't think it could protect your data.
Here is a simple way to steal data from a encrypted phone with unlocked FRP.
Just add this script to ramdisk of kernel.
Code:
#!/system/bin/sh
rm -rf /data/system/lock*
rm -rf /data/system/gatekeep*
And this script will automaticlly remove any screen locks after the data partition is already unlocked by the system after boot.
You may ask:
Could I prevent unauthorized kernel from booting? (by re-enable FRP lock)
No, you can't because systemless install of SuperSU already modify the kernel and you can't boot modified kernel with FRP on.
Could I restore to stock kernel after finish this and then enable FRP?
You will lose your root.
And this way cannot prevent theft from reset your phone and then use it.
So, in a word, any tries to keep your phone safely after root are stupid.
It could only stop those low-IQ theft but it could not stop someone who really concern your data.
Click to expand...
Click to collapse
Even with a locked FRP=1 I have been able to defeat it and gain access to the phone to USE, but never the data. Your script will only remove the locks once the data partition has beenunlocked, you still have not successfully recovered the data.
remixtech said:
Maybe my remark is stupid but with lollipop the user had to enter the decryption key just before loading the system... So even if the system was rooted, without the key it was impossible to recover the data...
You are saying me that now, in marshmallow Android is storing the key directly in the device ? And if one day there is a small flaw in the kernel all the data could be decrypt...
Thanks for you answer, i'am not an expert in security but i'am really interested in.
Click to expand...
Click to collapse
The key is ofc stored on the device, but it is in an encrypted state. ofc if there is a flaw in the kernel, unreported, this can be exploited to remove encryption somehow. Also you could remove the system rom chips and virtual simulate them and try to unlock thousands/millions of times defeating any format on bad password, etc. IF someone wants to access your data, they will. Just like the FBI iphones were opened. Its only a matter of money and time, no encryption is safe forever.
cridtohs said:
Even with a locked FRP=1 I have been able to defeat it and gain access to the phone to USE, but never the data. Your script will only remove the locks once the data partition has beenunlocked, you still have not successfully recovered the data.
The key is ofc stored on the device, but it is in an encrypted state. ofc if there is a flaw in the kernel, unreported, this can be exploited to remove encryption somehow. Also you could remove the system rom chips and virtual simulate them and try to unlock thousands/millions of times defeating any format on bad password, etc. IF someone wants to access your data, they will. Just like the FBI iphones were opened. Its only a matter of money and time, no encryption is safe forever.
Click to expand...
Click to collapse
Admittedly, yes.
It could only remove screen lock AFTER data partition is unlocked.
But in most situations, it could recover data because most people didn't set password as startup password.(What means data partition is already unlocked automatically before UI appear)
jesec said:
Admittedly, yes.
It could only remove screen lock AFTER data partition is unlocked.
But in most situations, it could recover data because most people didn't set password as startup password.(What means data partition is already unlocked automatically before UI appear)
Click to expand...
Click to collapse
how do we make sure that we set a "start up" password then? Is it the same if you use a long pin instead of a password?
|mickey said:
how do we make sure that we set a "start up" password then? Is it the same if you use a long pin instead of a password?
Click to expand...
Click to collapse
in security Lock screen and security there is an option for set pin on startup.
Also as an update to this method, if you had Xposed and magisk root, or if you had supersu and suhide, they need to all be reinstalled. This is the same method as flashing a stock bootloader then re-rooting afterwards. With new TWRP though you do not need to sideload because it has password to decrypt /data and allow flashing of the ramdisk, so you dont HAVE to sideload the supersu, but I suggest following TKK's tutorial exactly for sucess
cridtohs said:
in security Lock screen and security there is an option for set pin on startup.
Also as an update to this method, if you had Xposed and magisk root, or if you had supersu and suhide, they need to all be reinstalled. This is the same method as flashing a stock bootloader then re-rooting afterwards. With new TWRP though you do not need to sideload because it has password to decrypt /data and allow flashing of the ramdisk, so you dont HAVE to sideload the supersu, but I suggest following TKK's tutorial exactly for sucess
Click to expand...
Click to collapse
When you press encrypt you have to set such a password anyway so I don't see your point... You have to set a password, that is requested whenever you start your device... Is that not the same thing your describing?
Can't get encryption to work. The process starts and after a few seconds my phone just reboots.
Tested on several ROMs and Kernels, same result.
Anybody got an idea? I'm clueless...
unique730 said:
Can't get encryption to work. The process starts and after a few seconds my phone just reboots.
Tested on several ROMs and Kernels, same result.
Anybody got an idea? I'm clueless...
Click to expand...
Click to collapse
Same problem here - one more scream for HELP
unique730 said:
Can't get encryption to work. The process starts and after a few seconds my phone just reboots.
Tested on several ROMs and Kernels, same result.
Anybody got an idea? I'm clueless...
Click to expand...
Click to collapse
darkman088 said:
Same problem here - one more scream for HELP
Click to expand...
Click to collapse
When I tested this I had similar issues due to root. You made both a full unroot and followed all steps?
Sent from my SuperMan powered SM-G930F
Tkkg1994 said:
When I tested this I had similar issues due to root. You made both a full unroot and followed all steps?
Sent from my SuperMan powered SM-G930F
Click to expand...
Click to collapse
Hello and thanks for replying.
No, I didn't do a full unroot, because when I was testing this, I hadn't come across this thread And now I am not willing to invest that much time again, just to find out, that it's not working, once again
But I've tried many other strategies, which are very similar, but didn't work:
1) Disable SuperSU from the Application manager
2) Disable SuperSU from the settings of the app
3) Install busybox, boot in safe mode, connect the phone to my laptop, launche adb and enter there pkill -KILL daemonsu - this must be equivalent, as ps | grep daemonsu was not showing anything...
4) Tilting my phone in landscape mode
5) Repeating the attempt to encrypt several times after eachother
6) Many many more useless tips, which I found on the internet
Please kindly advise. Many thanks!
P. S.: HOW COME only the ROM of artas182x has encryption working PERFECTLY and I couldn't manage to encrypt my phone with no other ROM ? For example, I tried Slim ROM, which (if I'm not wrong) is not rooted and again - encryption didn't work, it hung somewhere along the process This is really terrible. Please excuse my total frustration
darkman088 said:
Hello and thanks for replying.
No, I didn't do a full unroot, because when I was testing this, I hadn't come across this thread And now I am not willing to invest that much time again, just to find out, that it's not working, once again
But I've tried many other strategies, which are very similar, but didn't work:
1) Disable SuperSU from the Application manager
2) Disable SuperSU from the settings of the app
3) Install busybox, boot in safe mode, connect the phone to my laptop, launche adb and enter there pkill -KILL daemonsu - this must be equivalent, as ps | grep daemonsu was not showing anything...
4) Tilting my phone in landscape mode
5) Repeating the attempt to encrypt several times after eachother
6) Many many more useless tips, which I found on the internet
Please kindly advise. Many thanks!
P. S.: HOW COME only the ROM of artas182x has encryption working PERFECTLY and I couldn't manage to encrypt my phone with no other ROM ? For example, I tried Slim ROM, which (if I'm not wrong) is not rooted and again - encryption didn't work, it hung somewhere along the process This is really terrible. Please excuse my total frustration
Click to expand...
Click to collapse
Ehm what is artas182x rom? or slim rom? we don't have that on our s7 as far as I know.
This guide may needs some adaptions to work on other devices
Tkkg1994 said:
Ehm what is artas182x rom? or slim rom? we don't have that on our s7 as far as I know.
This guide may needs some adaptions to work on other devices
Click to expand...
Click to collapse
It's a Marshmallow port from Galaxy S5 made by artas182x. I didn't like Slim ROM - it doesn't even have a file maanger
installed with it and when I tried encryption with it, it didn't work
Thank you!
We need someone xposed module to emulate knox 0x0 so that we can use knox again.
Tried with King Nougat V5 custom tom
After encryption finish and boot it keep showing "system ui has closed" error
I cannot type my password
Now doing full wipe
jimmod said:
Tried with King Nougat V5 custom tom
After encryption finish and boot it keep showing "system ui has closed" error
I cannot type my password
Now doing full wipe
Click to expand...
Click to collapse
I assume you have a modded systemUI. Try it with a stock one
Sent from my SuperMan powered SM-G930F
data encryption and root and TWRP toegether - is that working in android nougat ?
I really, really want encyption on my rooted S7 (930FD) incl. TWRP - but before I try this method here I have two questions:
- you are using the "terminal" - means you are using Linux? Or can I do this with windows powershell as well?
- encryption and root incl. TWRP works with Marshmallow MM only or will this work in Nougat as well?

Categories

Resources