# Export and Import android wallet

1. ## Export and import Android wallet

   If you've been using the Android Pandacoin wallet and want to bring those keys onto the desktop client — for staking, mining, or just long-term storage — here's the full flow.

   <div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>This guide involves <strong>decrypting your wallet keys to plaintext on your computer</strong> for a short time. Do it on a machine you trust, and delete the decrypted file the moment you're done.</p></div>

   ### Overview

   1. **Back up** your keys from the Android wallet.
   2. **Transfer** the backup file to your desktop.
   3. **Install OpenSSL** on the desktop.
   4. **Decrypt** the backup with OpenSSL.
   5. **Import** the decrypted file into the desktop client.
   6. **Delete** the decrypted file.

   ### Step 1 — back up keys on the Android wallet

   From the Android app, export your wallet keys. You'll end up with a file like `pandacoin-wallet-keys-2021-04-02` — an AES-encrypted text file.

   📺 Video walkthrough: [Backup PandaWallet keys on YouTube](https://www.youtube.com/watch?v=msfXugpNc5g).

   ### Step 2 — transfer the backup to your desktop

   Move the backup file from your phone to your computer — USB cable, cloud drive, whatever you prefer. You'll refer to its path later, so put it somewhere you can find.

   ### Step 3 — install OpenSSL

   You need the `openssl` command-line tool to decrypt the backup.

   ### Step 4 — decrypt the backup

   Run the right command for your OS, replacing the paths with where your backup actually lives and where you want the decrypted file to go:

   Enter your Android wallet password when prompted.

   <figure><img src="https://3195711364-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ma1DXKIiUS1a49GvEno%2F-Man-WJwssXYUBvHRlPP%2F-Man-hfbWOaP1ShPZ7E4%2Fimage.png?alt=media&#x26;token=790ae94a-d191-43cb-9675-686645f7a07c" alt=""><figcaption><p>OpenSSL decrypting the Android backup.</p></figcaption></figure>

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>You may see a warning like <strong>"deprecated key derivation used. Using -iter or -pbkdf2 would be better."</strong> — ignore it. The Android wallet used the older scheme, and the command above matches what it produced.</p></div>

   ### Step 5 — import into the desktop client

   1. Install and launch the desktop client if you haven't already, and let it fully sync.
   2. Go to **Help → Debug Window**.
   3. Click the **Console** tab.
   4. Run the import command:

   The client will scan the blockchain for transactions on your imported addresses. This can take several minutes.

   <figure><img src="https://3195711364-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ma1DXKIiUS1a49GvEno%2F-Man-50_UgowI5cBJN-1%2F-Man-DUW7Wsj8ZTeQ9je%2Fimage%20(1).png?alt=media&#x26;token=10189b7e-0956-45f7-88ca-3b4058accdd3" alt=""><figcaption><p>Running <code>importwallet</code> in the debug console.</p></figcaption></figure>

   <div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p><strong>If your desktop wallet is encrypted,</strong> unlock it first:<br><code>walletpassphrase "yourpassword" 600</code><br>Then run <code>importwallet</code>. Lock it again when you're done.</p></div>

   ### Step 6 — delete the decrypted file

   <div data-gb-custom-block data-tag="hint" data-style="danger" class="hint hint-danger"><p><strong>The decrypted file is plaintext.</strong> Anyone with access to your computer can read your private keys from it. <strong>Delete it now</strong> that your keys are imported. Empty the Recycle Bin / Trash too.</p></div>

   ### After importing

   * **Verify the balance** in the desktop wallet. If it's still rescanning, give it time.
   * **Back up your desktop wallet** — it now holds the imported keys as well. See Backup Pandacoin wallet.
   * **Stop using the Android wallet** for those addresses. Sending from both sides could confuse things.

   ### Troubleshooting

   ### Need help?

   Ask in [Telegram](https://t.me/pandacoin) — the community has done this migration many times and can walk you through it.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.pandacoin.tech/support/support-guide/androidwalletimport.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
