[Android Q&A, Help & Troubleshooting] Eddie_Laster:
Phone = HTC Wildfire S

Rooted = yes

CWM version = v5.0.2.6

Phone Status = screen broken but display working. USB debugging not enabled in fast boot. OTG mouse not supported. Volume buttons and power button working. Screen does not respond to any finger gestures. Pattern lock enabled upon booting.

Need Help = Enable USB debugging to remove lock. Need to extract all data from phone, in particular SMS messages, phone calls, contacts.

Notes = Google accounts do not have the contacts backed up.

ADB working in Recovery Mode only at the moment with Andriod Studio v.1.0.1

Tried to edit default.prop, build.prop and settings.db to enable USB debugging for ADB.

Checked premissions and ownership of those files before and after pulling/editing/pushing.

Unclear if those are the exact files and paths as I mounted all available files.

Copied SD card contents but cannot find contacts, SMS etc. Only recovered photos, videos, music. etc.

----------------------------------------------------------------------------

BEFORE and AFTER mounting in ADB Recovery Mode:

~ # mount | grep a
mount | grep a
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nodev,noatime,nodiratime)

~ # mount -a
mount -a
mount: mounting /dev/block/mmcblk0p2 on /sd-ext failed: No such file or directory

~ # mount | grep a
mount | grep a
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nodev,noatime,nodiratime)
/dev/block/mtdblock5 on /data type yaffs2 (rw,relatime)
/dev/block/mtdblock3 on /system type yaffs2 (rw,relatime)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

----------------------------------------------------------------------------

Already deleted /data/system/gesture.key file.

Droid at screen works in ADB Recovery only.

Android Control works in ADB Recovery only.

Some settings that I have edited (including some persists) have been changed back upon rebooting while others "persist" as they should.

For example in the settings.db file, under the secure group, I have switched:

adb_enabled from 0 to 1

htc_error_report_setting from 1 to 0

Saved it, pushed the file, corrected permissions, but after rebooting:

adb_enabled = 0

htc_error_report_setting = 0

I have tried

persist.service.adb.enable=1
persist.service.debuggable=1

in default.prop and build.prop

So some things can be changed while others are over-written.

I managed to get bluetooth enabled this way, fully shown by the little bluetooth icon on the phone screen upon booting up. I do have a bluetooth dongle plugged into the PC. Can I somehow use this usb dongle on the PC to control the phone screen? Not sure how to pair or even if the wired keyboard and mouse will "use" the bluetooth dongle.

I feel like I am missing one or two things just to get this phone booted up with USB Debugging ON.

PLEASE HELP!