How to recover "data/data" folder from HTC Desire before rooting

Android Enthusiasts Asked by manicphase on December 8, 2021

I’ve got an old HTC Desire with a bitcoin stuck on it. Trying to access “/data/data/de.schildbach.wallet/files” through ADB shell predictably gives me permission denied.

I tried using unrevoked but it says my firmware version is too new.

I’ve been following the guide to use revolution at “” and have successfully got S-OFF, but I still can’t access files in “data/data/…” through shell. Now HBOOT screen, although being tagged -Revolutionary- and having S-OFF doesn’t have the recovery option.

The phone’s current details are
Android version 2.2.2
Kernal version…

The fastboot screen says

Aug 10 2010,17:52:18


<VOL UP> to previous item
<VOL DOWN> to next item
<POWER> to select item


I’ve followed the guide all the way up to point 6, Adding custom recovery.
That seemed to go well with the command prompt telling me

C:UsersDaveDownloads>fastboot flash recovery recovery-RA_2.0.1.img
  sending 'recovery' (3936 KB)... OKAY [  1.089s]
            writing 'recovery'... OKAY [  1.146s]
finished. total time: 2.235s

I couldn’t find the “recovery” option before but have just found it by accidentally selecting bootloader.

What is the safest way now to fully root the phone without risking deleting that “data/data” folder?

From the point I reached in this post I proceeded to create a nandroid backup from BOOTLOADER and copied the *.img to a folder on my PC, then used unyaffs to extract the data from data.img. This worked a treat and I didn’t have to fully root my phone to find what I was after.

One minor problem I encountered was that the first attempt at a backup said it was successful, yet gave me 0 byte files. I just had to free up space on my SD card to fix this.

One Answer

You can backup data in an app's /data/data/<packagename> folder by using Android's backup function.

adb backup -noapk

You will now be prompted to 'unlock your device and confirm the backup operation'. The resulting 'backup.ab' file on your computer contains all the app's data in android backup format. Use

adb restore backup.db 

to restore the backup.

Answered by THelper on December 8, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP