I noticed a lot of people are asking how to export or extract the seed and private keys from their Bitcoin Wallet for Android. You probably need them to use your BTC in another wallet, or to use your BCC coins. This how-to will show you how to retrieve your seed and private keys from the Bitcoin Wallet for Android. If you are on Windows, I recommend using VMware Workstation Player with Debian or Ubuntu.
1. Make a backup of your wallet in Bitcoin Wallet for Android:## Menu > Safety > Back up wallet
## Enter a password and transfer the backup file to your pc
2. Install OpenSSL, Maven and Javasudo apt-get install openssl maven default-jre default-jdk openjfx
3. Decrypt your walletDon't forget to change the path to your backup file!
mkdir ~/AndroidWallet
cd ~/AndroidWallet
openssl enc -d -aes-256-cbc -a -in /PATH/TO/YOUR/BACKUP-FILE -out decrypted-wallet
## Enter the password of your backup
4. Install Bitcoinjwget https://github.com/bitcoinj/bitcoinj/archive/master.zip
unzip master.zip
cd bitcoinj-master
sudo mvn clean install -DskipTests
5. Convert the protobuf wallet with the Bitcoinj wallet toolcd tools
./wallet-tool dump --dump-privkeys --wallet=decrypted-wallet > wallet.txt
6. Extract the seed and private keysThe seed will be stored in seed.txt and the private keys in private-keys.txt
grep "Seed as" wallet.txt > seed.txt
grep -o -E "WIF=([a-zA-Z0-9]+)" wallet.txt > private-keys.txt
sed -i 's/WIF=//g' private-keys.txt
7. You now have the seed and a list of your private keys!You can import/sweep the seed or private keys in another BTC or BCC wallet. In case you will use the seed/private keys for a BCC wallet, I recommend to transfer your BTC to a new wallet first!
Send me a beer if this how-to was helpful to you, or if you just want to test your new BCC wallet:
Bitcoin Cash:
124KDK76iS51ccJ7dYYtGzDg8kEmhAL4aC
Bitcoin:
1JpNrUkbsw1sZVynSLeNMS6qQDcrmjxh3e
Ethereum:
0x18204402a9203F8ABe0CaD97C656049be1577a29
----
This how-to was written exclusively for Bitcointalk. I do not allow publication of this article on any other website. However, feel free to link to this topic if you find it helpful.