user57290: I have some bitcoin stored in the bitcoin wallet android app
I want to transfer my inherited Bitcoin Cash (BCC) to an exchange.
The android app doesn't care about BCC.
I tried to decode a backup of my wallet to use the private key in Bitcoin ABC desktop app. 

openssl enc -d -aes-256-cbc -a -in wallet_backup_file

But gibberish comes out.
Update looks like the decryption worked because I see the first text as org.bitcoin.production. The problem is that it is encoded in a protobuf format: Problems decrypting my bitcoin-wallet on android
Importing the same backup file on the bitcoin app works , and after some time I can see my funds.
How can I claim my bitcoin cash and transfer them to an exchange ?

user57342: Knowing your private key you can transfer/sweep your Bitcoin Cash funds into a offline wallet like Coinomi and then transfer them to an exchange.
More on the process of sweeping your funds is at How to sweep private extended key from mycellium into coinomi for bitcoin cash coins?

user51723: I have the same issue. I used OpenSSL to decrypt the file, gave the correct password and got org.bitcoin.production followed by a load of protobuf-serialized gibberish.
I then processed the output using the tool mentioned here : https://github.com/lloeki/bitcoinj-wallet-dump, which appears to have worked successfully.
It gave me 271 public keys that my wallet used, that looked like normal bitcoin public keys, and 271 private keys - that were all the same and 7 characters.
So in answer to your question this tool github.com/lloeki/bitcoinj-wallet-dump works - but I'm not sure how to make sense of the output.
The output looked something like this (all values have been changed):
0 Publ: 1V5h7k
0 Priv: FYhAv34
1 Publ: 16wZac2mEc9jEtbdyGsUBeGR8YCVnJMLk4r2SXZ5k6v2HoCaoKY
1 Priv: FYhAv34
2 Publ: 16PBXd5r563xSA8m5bgRQgDGmn7wJBUoA4mfsfike2a66jzdjZU
2 Priv: FYhAv34
3 Publ: 16faRCW3znVawJis7DFnFNZTJ32F4ry5y7HEtnzPF9dKlXt6gVr
3 Priv: FYhAv34
4 Publ: 18CmUT8CTfbwLzD9PmhDlukA5s1KqJK7PTP9NxYYP5wMkeP36PJ
4 Priv: FYhAv34
.....

Anyone know how to make sense of the output? Is that format expected? I was expecting full public and private key pairs.. unless the 7 character constant is a special wallet key? I'm not familiar with wallet details.. 

user12987: The Bitcoin Wallet project recently included detailed instructions on how to extract your key pairs for exactly this purpose. In the section Recovering from protobuf wallet format, skip to the paragraph beginning with

You can also get a list of the private keys...

(Here is a historic version of that guide*, should it ever disappear)
I have now completed the process myself. Here's a summary. Note this works for backups made after 2014 (newer protobuf format). See the article above if your backup is older than this.
# pre-reqs
sudo apt install openjdk-8-jdk openjfx android-tools-adb openssl git maven

# use known version of bitcoinj - HEAD of branch release-0.14 at time of writing
git clone https://github.com/bitcoinj/bitcoinj.git 
(cd bitcoinj && git reset --hard 0e30a3011c42cedfd83f2109d54dd192730dcc45) 

# decrypt the wallet backup (substitute for <BACKUP>)
openssl enc -d -aes-256-cbc -md md5 -a -in <BACKUP> > /tmp/dec

# reset & sync wallet (may take some time, but was necessary in my case)
(cd bitcoinj/tools && \
   ./wallet-tool reset --wallet=/tmp/dec && \
   ./wallet-tool sync --wallet=/tmp/dec --debuglog)

# dump keys You will need to add `--password=<PIN>` if your wallet is pin protected.
(cd bitcoinj/tools && ./wallet-tool dump --wallet=/tmp/dec --dump-privkeys)

# delete your decrypted wallet
rm /tmp/dec


57290: <p>I have some bitcoin stored in the <a href="https://play.google.com/store/apps/details?id=de.schildbach.wallet&amp;hl=en" rel="noreferrer">bitcoin wallet android app</a></p>

<p>I want to transfer my inherited Bitcoin Cash (BCC) to an exchange.
The android app doesn't care about BCC.</p>

<p>I tried to decode a backup of my wallet to use the private key in <a href="https://www.bitcoinabc.org/" rel="noreferrer">Bitcoin ABC</a> desktop app. 
<code>
openssl enc -d -aes-256-cbc -a -in wallet_backup_file
</code>
But gibberish comes out.
<strong>Update</strong> looks like the decryption worked because I see the first text as <code>org.bitcoin.production</code>. The problem is that it is encoded in a protobuf format: <a href="https://bitcoin.stackexchange.com/questions/29518/problems-decrypting-my-bitcoin-wallet-on-android">Problems decrypting my bitcoin-wallet on android</a></p>

<p>Importing the same backup file on the bitcoin app works , and after some time I can see my funds.</p>

<p>How can I claim my bitcoin cash and transfer them to an exchange ?</p>
 57342: <p>Knowing your private key you can transfer/sweep your Bitcoin Cash funds into a offline wallet like Coinomi and then transfer them to an exchange.</p>

<p>More on the process of sweeping your funds is at <a href="https://bitcoin.stackexchange.com/questions/57422/how-to-sweep-private-extended-key-from-mycellium-into-coinomi-for-bitcoin-cash-c/">How to sweep private extended key from mycellium into coinomi for bitcoin cash coins?</a></p>
 51723: <p>I have the same issue. I used OpenSSL to decrypt the file, gave the correct password and got <code>org.bitcoin.production</code> followed by a load of protobuf-serialized gibberish.
I then processed the output using the tool mentioned here : <a href="https://github.com/lloeki/bitcoinj-wallet-dump" rel="nofollow noreferrer">https://github.com/lloeki/bitcoinj-wallet-dump</a>, which appears to have worked successfully.</p>

<p>It gave me 271 public keys that my wallet used, that looked like normal bitcoin public keys, and 271 private keys - that were all the same and 7 characters.</p>

<p>So in answer to your question this tool github.com/lloeki/bitcoinj-wallet-dump works - but I'm not sure how to make sense of the output.</p>

<p>The output looked something like this (all values have been changed):</p>

<pre>0 Publ: 1V5h7k
0 Priv: FYhAv34
1 Publ: 16wZac2mEc9jEtbdyGsUBeGR8YCVnJMLk4r2SXZ5k6v2HoCaoKY
1 Priv: FYhAv34
2 Publ: 16PBXd5r563xSA8m5bgRQgDGmn7wJBUoA4mfsfike2a66jzdjZU
2 Priv: FYhAv34
3 Publ: 16faRCW3znVawJis7DFnFNZTJ32F4ry5y7HEtnzPF9dKlXt6gVr
3 Priv: FYhAv34
4 Publ: 18CmUT8CTfbwLzD9PmhDlukA5s1KqJK7PTP9NxYYP5wMkeP36PJ
4 Priv: FYhAv34
.....
</pre>

<p>Anyone know how to make sense of the output? Is that format expected? I was expecting full public and private key pairs.. unless the 7 character constant is a special wallet key? I'm not familiar with wallet details.. </p>
 12987: <p>The Bitcoin Wallet project recently included <a href="https://github.com/bitcoin-wallet/bitcoin-wallet/blob/master/wallet/README.recover.md" rel="nofollow noreferrer">detailed instructions</a> on how to extract your key pairs for exactly this purpose. In the section <em>Recovering from protobuf wallet format</em>, skip to the paragraph beginning with</p>

<blockquote>
  <p>You can also get a list of the private keys...</p>
</blockquote>

<p>(Here is a <a href="https://github.com/bitcoin-wallet/bitcoin-wallet/blob/42be4a1f34ba041f0e50a5dd96a96cbc536763a7/wallet/README.recover.md" rel="nofollow noreferrer">historic version of that guide</a><a href="http://www.betterwritingskills.com/tip-w005.html" rel="nofollow noreferrer">*</a>, should it ever disappear)</p>

<p>I have now completed the process myself. Here's a summary. Note this works for backups made after 2014 (newer protobuf format). See the article above if your backup is older than this.</p>

<pre><code># pre-reqs
sudo apt install openjdk-8-jdk openjfx android-tools-adb openssl git maven

# use known version of bitcoinj - HEAD of branch release-0.14 at time of writing
git clone https://github.com/bitcoinj/bitcoinj.git 
(cd bitcoinj &amp;&amp; git reset --hard 0e30a3011c42cedfd83f2109d54dd192730dcc45) 

# decrypt the wallet backup (substitute for &lt;BACKUP&gt;)
openssl enc -d -aes-256-cbc -md md5 -a -in &lt;BACKUP&gt; &gt; /tmp/dec

# reset &amp; sync wallet (may take some time, but was necessary in my case)
(cd bitcoinj/tools &amp;&amp; \
   ./wallet-tool reset --wallet=/tmp/dec &amp;&amp; \
   ./wallet-tool sync --wallet=/tmp/dec --debuglog)

# dump keys You will need to add `--password=&lt;PIN&gt;` if your wallet is pin protected.
(cd bitcoinj/tools &amp;&amp; ./wallet-tool dump --wallet=/tmp/dec --dump-privkeys)

# delete your decrypted wallet
rm /tmp/dec
</code></pre>
