yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] PAulyhoffman:
There are a couple other ways posted for folks who have forgotten lockscreen password or pattern, but this methods REMOVES the PIN. for pattern and password follow other methods

This method requires root access and debugging enabled.

*if debugging is not enabled it can be done from any custom recovery

-reboot recovery and follow code

PIN

adb shell
# sqlite3 /data/data/com.android.providers.settings/databases/settings.db
sqlite> update secure set value=65536 where name='lockscreen.password_type';
sqlite> .exit
# exit
adb reboot

step one

adb shell

make sure you have # in the command prompt/terminal (if not type su)

step two

sqlite3 /data/data/com.android.providers.settings/databases/settings.db

you will now see sqlite>in command prompt/terminal

step 4

update secure set value=65536 where name='lockscreen.password_type';

still sqlite>

step 5

.exit

you will see the # again

step 6

exit

you will now be in the path/to/adb command prompt/terminal again

step 7

adb reboot

Enjoy full access to the device

Now lets say you think your wife is cheating on you (which she probably is) and you want to check her sext messages but return the PIN back when you are done.

adb shell
# sqlite3 /data/data/com.android.providers.settings/databases/settings.db
sqlite> update secure set value=131072 where name='lockscreen.password_type';
sqlite> .exit
# exit
adb reboot
[Android Software/Hacking General [Developers Only]] BrotherG:
I find this a bit scary, how would you normally prevent ADB or Recovery hacking like this if your device gets stolen?
[Android Software/Hacking General [Developers Only]] mDroidd:
I recommend Avast Anti Theft.

When your device gets stolen, the new owner will take the sim card out and put his in huh?

Well, anti theft sends a pre-entered number a warning that an other SIM is in it. Via sms commands, you can turn GPS on, send the location, block root and stuff.

It wont be deleted as it is a system app :D

I use it.

Thanks for the job, needed this for hacking my bros phone xD

Greets!
[Android Software/Hacking General [Developers Only]] brownmc77:
hahaha. .... these Feds could of used this method. They couldnt get past the lockscreen. Great read here.

How a Pimp’s Android Pattern Lock Foiled the Feds

http://gizmodo.com/5893410/how-a-pimps-android-pattern-lock-foiled-the-feds
[Android Software/Hacking General [Developers Only]] BrotherG:
Looks like CyanogenMod is working on securing ADB

Source: http://www.cyanogenmod.com/blog/security-and-you
[Android Software/Hacking General [Developers Only]] jaibar:
All true, if speaking of a casual thief- maybe you left the phone on the bar and someone couldn't resist the temptation. A couple of months ago my wife's phone was recovered in such an occasion- got an sms from Avast Theft Aware with the new number, contacted the rather surprised "honest finder" and he decided to return it back to us.

Anyway, two weeks ago went scubadiving and when returning to the car found the window broken and sure, among other stuff (wallets, scuba gear etc) also both our phones were stolen. However, this time it looks like the thieves were not quick to put their own sim card. Actually, it looks like they've removed the batteries, thrown the sim cards away (the're useless anyway as the carrier blocks the sim).

Since then, no signs whatsoever that the phones have been turned on, sims replaced or that someone has tried to type wrong security pin or whatever- no sms notifications, no emails, no webtracking, nothing.

My guess- the thieves sell them for a small fee (20% of street price?) to some lab or someone who knows "how to deal with it"- do a good wipe (not just factory reset) and remove whatever stuff was installed- system app or not- then put them on market for sale as second hand. Or maybe they just wait with patience a few weeks until you stop looking for it?

So, sometimes these apps like Avast, Cerberus and the such work, sometimes not. Better to keep the phone safe and not rely on it being stolen by a stup!d thief... :rolleyes:

On the bright side, one can consider it as an opportunity for upgrade :D
[Android Software/Hacking General [Developers Only]] Mr.Oug:
irst I typed in :

sqlite3 /data/data/com.android.providers.settings/databases/settings.db

However, in spite of what he stated, sqlite>in command prompt doesn't appear.

Instead, I get

/system/bin/sh: sqlite3: not found

how do i set sqlite working?

I'm unable to launch sqlite3 from adb shell

I can manually launch sqlite from the folder but not in cmd
[Android Software/Hacking General [Developers Only]] Chi Ahrens:
You have to install sqlite3 - https://play.google.com/store/apps/details?id=ptSoft.util.sqlite3forroot&hl=en
[Android Software/Hacking General [Developers Only]] EpicLPer:
Is there a tutorial for a password locked screen too?
[Android Software/Hacking General [Developers Only]] holm94:
Is there another way to bypass the pin code lockscreen? Cus´ I´m always stucking on:

" /sbin/sh: sqlite3: not found "

I have installed sqlite from market
[Android Software/Hacking General [Developers Only]] holm94:
any idea?
[Android Software/Hacking General [Developers Only]] microMXL:
whoa, you guys are amazing, this worked like a charm on a password locked tablet

polaroid pmid70c
[Android Software/Hacking General [Developers Only]] ltdanno360:
this is a scary concept if you value your android device consider installing a paid service like dyndns and install the paid version of real vnc onto the device and have ssh setup as well this would help to recover your phone in the event it becomes stolen you could ssh into it launch apps view and control the phone remotely via vnc hell even take pictures ,, turn on gps all sorts of cool things
[Android Software/Hacking General [Developers Only]] petesimon:
your phone is root enabled? Superuser or SuperSU app installed? Connect USB and run "adb root" and that works?

Try this installer app again https://play.google.com/store/apps/details?id=ptSoft.util.sqlite3forroot&hl=en

I flashed the root feature with SuperSU update zip file in recovery mode, and rebooted.

I grabbed a 'sqlite3' binary made for ARM cpu from the 'net and manually pushed it to my phone's /system/xbin/ directory.

1. unzip this sqlite3 file

2. power on device in custom recovery mode, ('factory mode' also may work, such as in some chinese phones, including my Jiayu)

3. connect USB cable, and in recovery mode, mount the /system directory and any other directorys you will use (see screenshot)

4. open a command prompt (terminal) on computer and run these commands

[I]adb root[/I]
[I]adb remount[/I]
[I]adb push sqlite3 /system/xbin/sqlite3[/I]
[I]adb shell[/I]
[I]chmod 755 /system/xbin/sqlite3[/I]
[I]sqlite3 -h[/I]
...
exit
adb reboot

* alternate method: if #4 'adb root' does not work, then turn on phone to normal running mode and do:

adb push sqlite3 /data/local/tmp/sqlite3
adb shell
su
mount -o rw,remount /system
cp /data/local/tmp/sqlite3 /system/xbin/
rm /data/local/tmp/sqlite3
chmod 755 /system/xbin/sqlite3
sqlite3 -h
...
exit
exit
adb reboot

"exit" twice for alternate method.

All this can be done over Wifi instead of USB via a SSH server app.

^_^

I can run all the commands fine, but the PIN lock is still there on my phone after reboot. Android 4.2.1, Jiayu Chinese ROM. So method does not work.
[Android Software/Hacking General [Developers Only]] ehl.ey14:
help me, im stuck at " error: device unauthorized. Please check the confirmation dialog on your device."
[Android Software/Hacking General [Developers Only]] saf4xdadev:
I know this is super old thread but I used this method and combination with other commands I found on internet to bypass my lockscreen on att samsung galaxy s7 phone I had forgotten pin code on.

I was using fingerprint for a couple of months and rebooted phone for an update and it requires pin code first time before using fingerprint again and I had flat out forgot it. When it got to 1 hour wait between input retrys I searched and found this and other methods. I read no methods work unless rooted.

Luckily and thank God I'm rooted and usb debugging turned on and I have adb installed configured and have used with phone before....thank God. Because pretty much every and anything else on the phone is turned off on phone so I keep off the grid.

I know I'm dragging this out but I want to document and reiterate the value of xda. I will try and remember exactly what I did and may just redo it to be sure and list my exact steps.

One thing, I don't have sqlite3 curser when connecting with adb....I have hero2qltatt or something like that .....I'll get corrected with an edit when I go thru again to make sure.

Also, once I got past lockscreen, when I went into setting/lockscreen&security/ on the phone it still showed pin,fingerprint as security but somehow which still baffles me there was a pick for 'swipe' available....but I still don't know how that happened or how it appeared but I kept trying different pin codes to try to reset that which now there were no limits or time delays but still couldn't remember and then I saw a pick for 'swipe' and that solved it all. I rebooted again to be sure and perfect. Then I went in to recovery and wiped cache and now my phone is back exactly as before.

I wrote down the pin code this time.

Eventually soon I will rerun my steps and document exactly and maybe there is already a more recent account but I found this one first and it pretty much worked....thanks.

OK this is what I used:

adb shell

cd data/system

su

rm *.key

reboot
[Samsung Galaxy Nexus] Abufinzio:
Is still not compatible with ICS.

I put my hotmail accounts on the stock email client.

But, what is better for battery and quickly?

Better the stock for battery and the official client for quickly reception?
[Samsung Galaxy Nexus] zeke1988:
the stock email client has timed syncing option which can help to improve battery life. i also found it much more organized with all my email account in 1 app.

the choice is yours, you can test it out to find a suitable solution for yourself.
[Samsung Galaxy Nexus] Ibanez33:
If you setup you hotmail with stock app but as an exchange account it has far more options like toggling folder sync.

It also saves having an extra app for it :)

http://www.iphonehacks.com/2010/08/...d-touch-for-push-email-calendar-contacts.html

I know it says it for the iphone but the settings are the same.. ( this is in reference to link I posted that isnt currently showing..
[HTC Flyer, EVO View 4G] globatron:
Downgrade to Gingerbread

Preamble

This is the S-OFF downgrade from HoneyComb to S-OFF GingerBread if you are not S-OFF and have a HTC (not revolutionary) hboot then do not do this it will not work.

The full versions of these files will give you a fully functional Gingerbread installation with S-OFF, CWM recovery and boot image with the secure flag turned off.

Windows Instructions

Download this file MD5=f5afc4b457a17f88cc611b40e6c7cdc8

Download the superuser zip file MD5=69f81ca292f14f71b081bb45a556a3e3

Copy the superuser zip file to the root of your SDCARD

Extract the large zip file downloaded in step 1

Navigate to the Express_Downgrade directory

Double-click ARUWizard.exe and proceed like any other RUU, ticking the boxes and pressing next the screen as required.

Postinstall

Reboot to recovery

Flash the SU zip file copied in instruction 3 if using the full version.

Linux/MacOS Instructions (Also works on windows, use if ARUWizard.exe crashes for you)

Download this file MD5=7cfbaf099d80d899b13848a3ed3fd66a

Download the superuser zip file MD5=69f81ca292f14f71b081bb45a556a3e3

Copy the superuser zip file to the root of your SDCARD

Boot your view to fastboot mode.

Run the following commands:

fastboot erase cache
fastboot oem rebootRUU
fastboot flash zip Express_dg.zip [colour=blue](or Express_dg_lite.zip as appropriate)[/blue]
[COLOR="Red"][I]***This will fail first time with error 90, repeat the command[/I][/COLOR]
fastboot flash zip Express_dg.zip [colour=blue](or Express_dg_lite.zip as appropriate)[/blue]
[COLOR="Red"][I]***Ignore the on-screen progress bar, the flash is complete when fastboot completes[/I][/COLOR]
fastboot reboot

Postinstall

Reboot to recovery

Flash the SU zip file copied in instruction 3 if using the full version.

Alternative Installation Instruction (Any OS)

Download this file MD5=7cfbaf099d80d899b13848a3ed3fd66a

Download the superuser zip file MD5=69f81ca292f14f71b081bb45a556a3e3

Rename the file downloaded in step1 to PG41IMG.zip and place on the root of your (external) sdcard

Copy the superuser zip file to the root of your SDCARD

Boot your view bootloader, it will detect the PG41IMG.zip file and ask you to confirm update, confirm the update

***This will fail after completing part of the update, don't worry it's expected***

Boot your view bootloader a second time, it will detect the PG41IMG.zip file and ask you to confirm update, confirm the update again.

Postinstall

Reboot to recovery

Flash the SU zip file copied in instruction 3 if using the full version.

Do not mirror files from this post.
[HTC Flyer, EVO View 4G] CHRISTOPHERg:
wow you are really fast, excellent men.

One for me please
[HTC Flyer, EVO View 4G] globatron:
reserved 2
[HTC Flyer, EVO View 4G] vancraft:
Great response time!

For us newbs, I'd like to clarify... This isn't an alternative HoneyComb, yet. Just an attempt to make the OTA honeycomb "unlockable", right?
[HTC Flyer, EVO View 4G] spartan1987:
This is an attempt to make downgrading easier for us.
[HTC Flyer, EVO View 4G] vancraft:
Right. That's the "recovery" part.

But its also described as "root, and all". I'm wondering if this allows the installer to root the OTA Honeycomb? Or will more work be required before the install can be further changed (i.e. s-off, eventually upgraded to ICS, etc.)?
[HTC Flyer, EVO View 4G] risb577:
It works

I can confirm this works with root flashed and all. I now have a rooted HC. tyvm globatron
[HTC Flyer, EVO View 4G] spartan1987:
so, does that mean you could, in theory, flash a custom HC rom once we get one?

Throw up some screenshots or a video would you?

edit: oh and test rom manager and titanium backup if you don't mind.
[HTC Flyer, EVO View 4G] Maine_Coon:
I have a rooted CWM backup of the stock.

Do I need to restore and then unroot before proceeding with HC?
[HTC Flyer, EVO View 4G] myowin:
stuck on soft brick..

Hey Guys

how do you do the step 6?

I am in cmd and kept telling me command not recornized or something...

I guess I need to know how to flash that RUU-mini zip...

thanks for all your help...
[HTC Flyer, EVO View 4G] spartan1987:
No, as it says in the OP, You MUST be s-off and THEN run an RUU. Accept all updates to include the HC update and the view will be soft bricked. THEN use fastboot to push the mini ruu.

---------- Post added at 10:09 PM ---------- Previous post was at 10:07 PM ----------

If it says it's an unrecognized command, then either you do not have fastboot installed, or you haven't gone into environment variables (assuming it's a windows box) and added those commands to the path. try that first (google is your friend and you can google in XDA). Good luck.
[HTC Flyer, EVO View 4G] ElAguila:
A quick question here. Once it is the soft brick mode, I hold down power and volume down to get back to fastboot mode. Is this correct? And I know the ruu will wipe my data but nothing here should wipe the internal sd, correct?
[HTC Flyer, EVO View 4G] myowin:
thank you so much for quick respond..

I think I found it here how to do that.. (for someone like me... :) )

http://xdaforums.com/showthread.php?t=532719
[HTC Flyer, EVO View 4G] risb577:
root

Im not sure what this method of rooting will do for us, but I am under the impression that this will help if we need to go back to GB, or flash another custom HC rom when someone else cooks one up. I have not tested downgrading.

I can report that clockwork is installed with the option to flash from zip, mounts, etc just like the old clockwork. And I still have S-OFF. I installed ROM manager, but it gave me the "you don't have clockwork installed" message. I'm not sure if that is normal, because I don't use ROM Manager. Titanium did see root. Check out the screens.
[HTC Flyer, EVO View 4G] spartan1987:
I haven't done this yet, but I'm dling the RUU right now to do it and help people troubleshoot.

To answer your question, if you hold down the power button long enough, the view will power off, then you can hold power + vol down to get back into the bootloader and select fastboot mode, then open cmd, type fastboot devices and check to make sure yours shows up, then proceed with pushing the mini-ruu. If I'm wrong guys, correct me. Hope it works out for you.
[HTC Flyer, EVO View 4G] risb577:
Im not sure if this matters, but when I was in soft brick, I rebooted a few times and could not get into the bootloader. It just seemed to ignore the vol down keypress. I then unplugged the usb, powered off from soft brick, and held the vol. down button down even before I hit the power button as I was turning it on. Once I was in bootloader, I just plugged the usb back in.

EDIT: More tips:

1.After I flashed the initial stock ruu, and before I accepted any updates, I turned off fastboot in the power options and enabled usb debugging.

2. I did this from a Windows 7 laptop. When I initially tried to perform the softbrick steps, I got an access denied error message. The files were sent ok, but errored on saving. I closed the command prompt, and re-lauched the command prompt as administrator. The commands sent successfully.

3. Also, once you send the mini ruu over, the Tablet sat in the the oem loader with a 70% full progress bar after I successfully sent the mini ruu. I waited about 10 minutes because I was unsure how to proceed. I finally issued:

fastboot reboot-bootloader

Once back into bootloader, I mounted usb storage, copied SU to the card, and flashed from zip
[HTC Flyer, EVO View 4G] spartan1987:
Yeah, rom manager won't work bc we don't have official support from Koush for CWM recovery so that's no issue, I was just curious is all lol. I'm glad to hear titanium detects root, as that was an issue initially for the view. Try to backup your apps, test radios (3g, 4g, wifi, bluetooth, GPS, ETC), run quadrant. I don't know how familiar you are with honeycomb to test out all of it's functions, but we are going to need a few people to test this out for globatron so he can make fixes and/or adjustments as necessary, which is why he specifically asked for devs and people familiar with troubleshooting to do this first. That's the beauty of open source, we're all guinea pigs. :p
[HTC Flyer, EVO View 4G] ElAguila:
I forgot to ask this earlier. What does the soft brick state look like? Is it just the white screen the the green HTC on it? I want to make sure I don't power it off while it is still flashing HC.
[HTC Flyer, EVO View 4G] risb577:
soft brick screen

It looks like this pic. Plus another clue you are soft bricked is it stays here longer than 10 minutes if you care to wait lol
[HTC Flyer, EVO View 4G] hanzohittori:
I just checked and my HBOOT is now 6.13.1002. Could this be causing my issue? Is that the proper HBOOT after running revolutionary?
[HTC Flyer, EVO View 4G] globatron:
Yes, that is the Revolutionary gingerbread hboot. No that is not causing your problems.

Run the Gingerbread RUU again and hold there for a bit, I should have something more reliable up in the next couple of hours.
[HTC Flyer, EVO View 4G] hanzohittori:
Any idea on why the HC OTA is failing?
[HTC Flyer, EVO View 4G] globatron:
Reread the (updated) previous post.
[HTC Flyer, EVO View 4G] abhaxus:
One mistake I made during this process was when I went S-OFF with revolutionary on GB I stupidly told it to flash CWM. When I tried to OTA to HC, instead of being soft bricked at the white/green HTC screen, I got stuck at the blue droid and triangle, and then it would reboot back into GB. Did a full RUU back to GB, and then restarted the process just fine.

(edit: I know I could have just found a stock recovery somewhere, but it was easier to just download an RUU and flash that rather than asking questions)

I got the View on Christmas morning and had this up and going by 6pm, and this was my first experience with HTC products and fastboot, and not even on my own PC. Rather than coming here and asking globatron questions, you can find literally everything you need to know on other threads using google search. Quite frankly, coming from the Epic and Epic Touch community, someone like globatron is a HUGE asset, and I'm shocked that he takes the time to remotely fix people's problems. I'd rather have talent like that doing actual development than tech support.
[HTC Flyer, EVO View 4G] globatron:
abhaxus,

Your approach is actually the correct one in that situation. There is no way to know what is in the cache so a clean RUUs is the most reliable thing to do.

As to your other point, when I release, I usually initially release something that is sufficient for an experienced user or developer but is as unlikely as I can make it to brick a device. I do this knowing that novices will also try. If they break it then I know what needs to be fixed and if I have to recover their systems I can tell how and where they went wrong, this is very useful for me since I cannot rely on people to remember exactly every step they performed (that's just not something humans are very good at).

This is also a more complex situation than the normal one, because the hboot changes there is a greater than normal risk. Usually hboot updates are just bug-fixes or adding the htc unlock but in this case booting to the OS or recovery depends on the changed hboot.
[HTC Flyer, EVO View 4G] jonesychris:
Not trying to be pushy globatron, but any idea when this will be ready for general public? I've only had my device for a few days and successfully s-offed it and rooted it. But i don't want to try this and mess it up and have you waste time fixing mine.
[HTC Flyer, EVO View 4G] globatron:
Go all the way back to post 1 jonesychris :D
[HTC Flyer, EVO View 4G] pdiggity123:
Thanks for all the hard work globatron. I'm sort of lost in the thread now - am I to presume that you have just updated page 1 for those who have s-off and want to upgrade to HC without soft-brick. Is it still not possible to revert to gingerbread if one has done a stock OTA update to HC. Thanks in advance.
[HTC Flyer, EVO View 4G] globatron:
Yes, completely changed post 1.

It's possible, procedure tomorrow.
[HTC Flyer, EVO View 4G] RedWingsFan:
I see in the first post one of the pre requisites is to be Revolutionary s-off. I followed the link and see there is an s-off procedure and then a "to root:" process at the end of the same post. Do we follow both procedures or just the s-off?
[HTC Flyer, EVO View 4G] Renegade360:
Just when I'm downloading the update file to do the old precedure, Here comes the new easy procedure. Great timing. Thanks for the great work you are doing.
[HTC Flyer, EVO View 4G] raed81:
hey guys ...never ran ruu before ...so when u say run ruu.exe does it mean just connect the tablet to my computer and then start the ruu.exe from the computer ? like doeble click it or i have to use commands ? can someone explain please ? thanks
[HTC Flyer, EVO View 4G] jonesychris:
What do you mean by this step: Flash the SU zip file copied in instruction 3?
[HTC Flyer, EVO View 4G] raed81:
i think it means boot into recovery and flash as u flash any zip file
[HTC Flyer, EVO View 4G] jonesychris:
So the same as when installing the root, boot it into CWM and install .zip from sd card?
[HTC Flyer, EVO View 4G] Maine_Coon:
SU zip file IS giving you root.
[HTC Flyer, EVO View 4G] turbooutlaw:
For Mac / Linux Users?

For users that can't run the wizard.exe....what is the process? Just asking because I know there are many Mac users out there. Thanks for being so patient with us.
[HTC Flyer, EVO View 4G] globatron:
:rolleyes: Are you blind?

Hint: find text "MacOS"
[HTC Flyer, EVO View 4G] Renegade360:
YES,

Just Did this and boy was it easy. No Soft bricks, just strait RUU.exe and load super user through CWM.

This is awesome.