Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: tumis on February 09, 2018, 01:19:13 PM



Title: Where i can find my wallet.dat
Post by: tumis on February 09, 2018, 01:19:13 PM
Hello

When can i find mi wallet.dat ? I was using bitcoin wallet app on the samsung galaxy s4. Where i can find it?


Title: Re: Where i can find my wallet.dat
Post by: LoyceV on February 09, 2018, 01:55:41 PM
Bitcoin Wallet (https://play.google.com/store/apps/details?id=de.schildbach.wallet&hl=en) for Android doesn't have a wallet.dat. What exactly are you trying to accomplish?


Title: Re: Where i can find my wallet.dat
Post by: rakkhusi on February 09, 2018, 04:01:25 PM
 wallet dat is running windows or mac. not support mobile. 
see https://en.bitcoin.it/wiki/Wallet


Title: Re: Where i can find my wallet.dat
Post by: bob123 on February 09, 2018, 05:46:35 PM
The "Bitcoin wallet" for android doesn't have a wallet.dat

If you want to export your private keys you have to do the following:
  • Click 'Menu' -> 'Safety' -> 'Backup wallet'
  • Move the backup file to your PC
Next steps require linux:
  • Decrypt your wallet with this command: openssl enc -d -aes-256-cbc -a -in /PATH/TO/YOUR/BACKUP-FILE -out decrypted-wallet
  • Install Bitcoinj from https://github.com/bitcoinj/bitcoinj/archive/master.zip
  • Dump your private keys with this command: ./wallet-tool dump --dump-privkeys --wallet=decrypted-wallet > wallet.txt
  • Extract the seed with this command: grep "Seed as" wallet.txt > seed.txt


If you need a more detailed guide / some help, feel free to ask further questions.


Title: Re: Where i can find my wallet.dat
Post by: tumis on February 09, 2018, 09:04:12 PM
The "Bitcoin wallet" for android doesn't have a wallet.dat

If you want to export your private keys you have to do the following:
  • Click 'Menu' -> 'Safety' -> 'Backup wallet'
  • Move the backup file to your PC
Next steps require linux:
  • Decrypt your wallet with this command: openssl enc -d -aes-256-cbc -a -in /PATH/TO/YOUR/BACKUP-FILE -out decrypted-wallet
  • Install Bitcoinj from https://github.com/bitcoinj/bitcoinj/archive/master.zip
  • Dump your private keys with this command: ./wallet-tool dump --dump-privkeys --wallet=decrypted-wallet > wallet.txt
  • Extract the seed with this command: grep "Seed as" wallet.txt > seed.txt


If you need a more detailed guide / some help, feel free to ask further questions.

Im not sure but tell me how this backup name look ?
Im asking becouse i dont have this wallet now becouse i was made a factory reset.. but i did a copy all folder from my phone before factory reset...


Title: Re: Where i can find my wallet.dat
Post by: LoyceV on February 09, 2018, 09:10:19 PM
Im not sure but tell me how this backup name look ?
If you created a backup within the Android Bitcoin Wallet, it's called bitcoin-wallet-backup-2015-05-18 (or any other date).

Quote
Im asking becouse i dont have this wallet now becouse i was made a factory reset.. but i did a copy all folder from my phone before factory reset...
If you didn't create a backup from within the wallet, you should start searching for the wallet directory.
How did you backup all folders?


Title: Re: Where i can find my wallet.dat
Post by: tumis on February 09, 2018, 09:46:12 PM
Im not sure but tell me how this backup name look ?
If you created a backup within the Android Bitcoin Wallet, it's called bitcoin-wallet-backup-2015-05-18 (or any other date).

Quote
Im asking becouse i dont have this wallet now becouse i was made a factory reset.. but i did a copy all folder from my phone before factory reset...
If you didn't create a backup from within the wallet, you should start searching for the wallet directory.
How did you backup all folders?

I just plug in my phone to the pc and ctr+c and ctr+v all folder from my samsung galaxy to the computer. But im afraid i cant find here similar folders/files like "wallet" etc


Title: Re: Where i can find my wallet.dat
Post by: LoyceV on February 09, 2018, 09:51:00 PM
I just plug in my phone to the pc and ctr+c and ctr+v all folder from my samsung galaxy to the computer. But im afraid i cant find here similar folders/files like "wallet" etc
Read this: Bitcoin wallet file location in smartphone (https://bitcoin.stackexchange.com/questions/47878/bitcoin-wallet-file-location-in-smartphone), it explains where to look.


Title: Re: Where i can find my wallet.dat
Post by: tumis on February 09, 2018, 10:29:04 PM
I just plug in my phone to the pc and ctr+c and ctr+v all folder from my samsung galaxy to the computer. But im afraid i cant find here similar folders/files like "wallet" etc
Read this: Bitcoin wallet file location in smartphone (https://bitcoin.stackexchange.com/questions/47878/bitcoin-wallet-file-location-in-smartphone), it explains where to look.

OK thanks for it , every info is good. "The android Bitcoin Wallet application stores data using androids MODE_PRIVATE in the following location: " What does it mean " MODE_PRIVATE" ??

It is possible to make ctr c + ctr v and dont copy this file becouse it was hidden or somethink like that (or chmod permission , whatever) .. ?


Title: Re: Where i can find my wallet.dat
Post by: LoyceV on February 09, 2018, 10:36:07 PM
It is possible to make ctr c + ctr v and dont copy this file becouse it was hidden or somethink like that (or chmod permission , whatever) .. ?
I can't say for sure, but this can be true. You can test this by installing the wallet on your phone again, and trying to repeat what you did before.


Title: Re: Where i can find my wallet.dat
Post by: HCP on February 10, 2018, 10:46:07 PM
You'll probably find that your "wallet file" was stored in the "/data/data" directory tree... If you only did the "ctrl+c/ctrl+v" from within Windows Explorer, then chances are, you did NOT copy your wallet file.

"/data/data" is a protected system folder... and generally only visible if you have rooted your phone and are using a phone/file explorer with root permissions.

The files you see in Windows Explorer when you connect your device to your PC (using "MTP" mode) will generally only be files/folders that are in the "storage" areas like /sdcard or /extsdcard etc.

However, if you created a backup of your wallet file from within the app, the backup file is generally placed on the (internal/external) "/sdcard" which SHOULD show up when you connect your phone to your PC.


Title: Re: Where i can find my wallet.dat
Post by: tumis on February 11, 2018, 12:15:55 PM
You'll probably find that your "wallet file" was stored in the "/data/data" directory tree... If you only did the "ctrl+c/ctrl+v" from within Windows Explorer, then chances are, you did NOT copy your wallet file.

"/data/data" is a protected system folder... and generally only visible if you have rooted your phone and are using a phone/file explorer with root permissions.

The files you see in Windows Explorer when you connect your device to your PC (using "MTP" mode) will generally only be files/folders that are in the "storage" areas like /sdcard or /extsdcard etc.

However, if you created a backup of your wallet file from within the app, the backup file is generally placed on the (internal/external) "/sdcard" which SHOULD show up when you connect your phone to your PC.
Ok. So was coppied only "normal" folder..
Anyway I can use a wondershare andorid recovery. I need to set usb debuggin mode and try to recover all files before factory reset. Unfortunetly i cant find backup wallet file.
Only chance is for using tools like android recovery.
Recuva is ok ? What are You think?


Title: Re: Where i can find my wallet.dat
Post by: bob123 on February 11, 2018, 01:23:46 PM
Only chance is for using tools like android recovery.
Recuva is ok ? What are You think?

Recuva should be fine. But i would highly suggest you create a (forensic) image (better: two) of your phone before you try to recover stuff.
I personally would simply use DD (https://en.wikipedia.org/wiki/Dd_(Unix) (https://en.wikipedia.org/wiki/Dd_(Unix))) to create such an image. Afterwards you can try whatever software you want (on the image).
The other image should be held as an backup, which you can later copy again to try another forensic tool (if you somehow messed up with your first image).



Title: Re: Where i can find my wallet.dat
Post by: tumis on February 11, 2018, 08:30:31 PM
Only chance is for using tools like android recovery.
Recuva is ok ? What are You think?

Recuva should be fine. But i would highly suggest you create a (forensic) image (better: two) of your phone before you try to recover stuff.
I personally would simply use DD (https://en.wikipedia.org/wiki/Dd_(Unix) (https://en.wikipedia.org/wiki/Dd_(Unix))) to create such an image. Afterwards you can try whatever software you want (on the image).
The other image should be held as an backup, which you can later copy again to try another forensic tool (if you somehow messed up with your first image).



Ok thanks for info. So i will repair my lcd and try do it ! First i need to enable USB debuggin mode. I hope i dont crash my storage becouse one week ago i was trying to recover data with wondershare android recovery for samsung (without lcd and withoud usb debugging mode on). I hope i dont Overwrite  anythink..


Title: Re: Where i can find my wallet.dat
Post by: Ciremik on February 12, 2018, 11:48:55 PM
Could you just “export wallet” and specify [wallet.dat] location to desired location? If possible..


Title: Re: Where i can find my wallet.dat
Post by: bob123 on February 13, 2018, 12:14:20 AM
Could you just “export wallet” and specify [wallet.dat] location to desired location? If possible..

Thats not an option for OP currently.

  • His display is broken
  • He has wiped his memory (factory reset)

He made a backup in terms of copying his files from his mobile over to his PC.
His only options seems to be to create an image of his mobile and try to recover those deleted files.


Title: Re: Where i can find my wallet.dat
Post by: tumis on February 13, 2018, 06:53:48 AM
Could you just “export wallet” and specify [wallet.dat] location to desired location? If possible..

Thats not an option for OP currently.

  • His display is broken
  • He has wiped his memory (factory reset)

He made a backup in terms of copying his files from his mobile over to his PC.
His only options seems to be to create an image of his mobile and try to recover those deleted files.


Yes, right. I had wipe my memory. But after that i never use this phone. So i think it is the chance.


Title: Re: Where i can find my wallet.dat
Post by: bob123 on February 13, 2018, 04:06:03 PM
Yes, right. I had wipe my memory. But after that i never use this phone. So i think it is the chance.

There is definetely a chance. Files aren't completely removed from the storage until they are overwritten by new files.
Its just very important that you make a correct image of your phone.
So you can try to recover those files on an image without hurting the storage of your phone.
You should make sure that your mobile won't be auto-updating any applications or whatsoever.
Just turn it on, activae USB-debugging, make an image, copy that image and load this image into your recovery software.
Chances are pretty high you will be successfull.

The wallet/app was stored on your internal storage, right?


Title: Re: Where i can find my wallet.dat
Post by: tumis on February 13, 2018, 09:33:36 PM
Yes, right. I had wipe my memory. But after that i never use this phone. So i think it is the chance.

There is definetely a chance. Files aren't completely removed from the storage until they are overwritten by new files.
Its just very important that you make a correct image of your phone.
So you can try to recover those files on an image without hurting the storage of your phone.
You should make sure that your mobile won't be auto-updating any applications or whatsoever.
Just turn it on, activae USB-debugging, make an image, copy that image and load this image into your recovery software.
Chances are pretty high you will be successfull.

The wallet/app was stored on your internal storage, right?


Ok so i wait for new lcd from shop. I will repair phone and after that turn debugging on.

I hope i dont fucked it when i was trying to use on my pc some applications like android wondershare samsung recovery itp.. ..
But thanks for info man !!


Title: Re: Where i can find my wallet.dat
Post by: tumis on February 15, 2018, 06:51:25 PM

Its just very important that you make a correct image of your phone.



Hello its me again. Can u tell me how to make a correct image of my phone ?