I had a HTC Sensation with broken digitizer.
I had to S-OFF to get superCID and get the screen calibration program to work (PG58DIAG.NBH).
Of course, the bootloader was giving errors (Security failed and CID not matching). I had to get SuperCID! And for that, first S-OFF.
But juopunutbear required to be in normal mode and ADB enabled. Damn!:silly:
I dind't find any howto to achieve this, just people complaining the same situations as me. So, I must say that this "simple" guide is the result of a lot of work and testing for me!
Because I don't care to be three nights without sleeping and testing, searching all over internet and drinking tons of coffee, I eventually got it working by installing CWM recovery, which has ADB, and then enable the adb debugging in the system.:good::highfive:
If you are not HTCDEV unlocked, first do it!
You will need ADB and Fastboot: http://rubenalamina.mx/custom-installers/downloads
Also the download the drivers: http://d-h.st/RvD
Install everything.
Get CWM Recovery after that: www.mediafire.com/download/4ogtlxxxl5dth24/PG58IMG-cwm-6.0.0.3-pyramid.zip
Extract recovery.img.
Then start the phone in bootloader and select fastboot, connect to PC. Wait for it to be recognized.
Then do:
Now I did this:
IMPORTANT: To change the filesystem through CWM's adb, you must always do the "mount-a" command first after a fresh boot!
If the sqlite3 command shows error (command not found) then your phone doesn't have sqlite3 installed.
Still, you can do it!
First extract settings.db:
Now you need linux. It's ok to use a live Ubuntu DVD, but you need to be connected to internet.
http://www.ubuntu.com/download/desktop
I recommend to use the 32bit version for compatibility.
Usually sqlite3 is not installed by default.
In ubuntu:
Now we can edit the settings.db:
Copy that settings.db again to a pen drive or whatever, go back to windows or keep in linux if you already have a working ADB.
I had to use "mass_storage,adb" because "mtp,adb" or just "adb" didn't work. Thought, the phone was not working in mass storage, but who cares! ADB was!
Now The rest is well documented, Start Controlbear, do the jumper trick...etc.
Thought it was hard to get exactly the needed timing of the wire trick to sucess!
I had to S-OFF to get superCID and get the screen calibration program to work (PG58DIAG.NBH).
Of course, the bootloader was giving errors (Security failed and CID not matching). I had to get SuperCID! And for that, first S-OFF.
But juopunutbear required to be in normal mode and ADB enabled. Damn!:silly:
I dind't find any howto to achieve this, just people complaining the same situations as me. So, I must say that this "simple" guide is the result of a lot of work and testing for me!
Because I don't care to be three nights without sleeping and testing, searching all over internet and drinking tons of coffee, I eventually got it working by installing CWM recovery, which has ADB, and then enable the adb debugging in the system.:good::highfive:
If you are not HTCDEV unlocked, first do it!
You will need ADB and Fastboot: http://rubenalamina.mx/custom-installers/downloads
Also the download the drivers: http://d-h.st/RvD
Install everything.
Get CWM Recovery after that: www.mediafire.com/download/4ogtlxxxl5dth24/PG58IMG-cwm-6.0.0.3-pyramid.zip
Extract recovery.img.
Then start the phone in bootloader and select fastboot, connect to PC. Wait for it to be recognized.
Then do:
After that reboot again into bootloader and select RECOVERY. Now you will be in CWM and get a nice ADB to start working!fastboot flash recovery recovery.img
Now I did this:
Now the phone should be starting OK from 100% clean and tested rom. Let's carry on:auggie2k said:link: http://forum.xda-developers.com/showthread.php?t=1614617]
(...)
As I said at the start, it's based on my own experience and I always prefer to start fresh with a new ROM unless upgrading. Just flash this in Recovery as you would any normal ROM.(...)
Here's the download - http://files.virtuousrom.com/pyramid/misc/rmk-pyramid-stock_ics_3.32.401.3-v1.zip
Flash boot.img from Stock 3.32 Rooted ROM in Fastboot
As you know, if you flash a ROM with a HTC Unlocked bootloader, it has to be based on the 3.32 firmware and some ROM's you flash won't boot because of this so extract it from the above ZIP and flash it in fastboot (ROM should still boot but pays to be safe).
(extract the boot.img from the file you've just downloaded)
Start the phone in bootloader mode, select fastboot and connect to PC.
fastboot flash boot /path/to/boot.img
fastboot reboot
IMPORTANT: To change the filesystem through CWM's adb, you must always do the "mount-a" command first after a fresh boot!
Done! Reboot and you'll can FAP when you see the ADB working:laugh::laugh:adb shell
mount -a
(if the following two commands show error "file doesn't exist", don't worry, it's ok!)
rm /data/property/persist.service.adb.enable
rm /data/property/persist.sys.usb.config
echo "persist.service.adb.enable=1" >>/system/build.prop
echo "persist.service.debuggable=1" >>/system/build.prop
echo "persist.sys.usb.config=mass_storage,adb" >>/system/build.prop"
/system/xbin/sqlite3 /data/data/com.android.providers.settings/databases/settings.db "update global set value='1' where name='adb_enabled'";
/system/xbin/sqlite3 /data/data/com.android.providers.settings/databases/settings.db "update global set value='1' where name='development_settings_enabled'";
sync
reboot
If the sqlite3 command shows error (command not found) then your phone doesn't have sqlite3 installed.
Still, you can do it!
First extract settings.db:
Copy that file to a usb drive or whatever.adb pull /data/data/com.android.providers.settings/databases/settings.db
Now you need linux. It's ok to use a live Ubuntu DVD, but you need to be connected to internet.
http://www.ubuntu.com/download/desktop
I recommend to use the 32bit version for compatibility.
Usually sqlite3 is not installed by default.
In ubuntu:
You will be asked for the root password!sudo apt-get install sqlite3
Now we can edit the settings.db:
Now we have the settings.db changed and ready!sudo sqlite3 /path_to_your_folder/settings.db
update global set value='1' where name='adb_enabled';
update global set value='1' where name='development_settings_enabled';
.exit
Copy that settings.db again to a pen drive or whatever, go back to windows or keep in linux if you already have a working ADB.
Done! ADB should work when in starts.adb push settings.db /data/data/com.android.providers.settings/databases/
adb shell "chown system.system /data/data/com.android.providers.settings/databases/settings.db"
adb shell "chmod 644 /data/data/com.android.providers.settings/databases/settings.db"
sync
reboot
I had to use "mass_storage,adb" because "mtp,adb" or just "adb" didn't work. Thought, the phone was not working in mass storage, but who cares! ADB was!
Now The rest is well documented, Start Controlbear, do the jumper trick...etc.
Thought it was hard to get exactly the needed timing of the wire trick to sucess!
Last edited:
