Bitcoin Forum

Bitcoin => Electrum => Topic started by: tianxie on August 09, 2020, 06:36:42 AM



Title: Electrum on Android file structure
Post by: tianxie on August 09, 2020, 06:36:42 AM
Where does electrum sore the appdata on Android phones?


Title: Re: Electrum on Android file structure
Post by: HCP on August 09, 2020, 07:57:45 AM
Generally "app data" on Android goes into a /data/data/"app.name.space" folder structure... so for Electrum it should be in: /data/data/org.electrum.electrum

This is the top directory and the structure will also includes a bunch of stuff like the APK and cache etc etc...

The Electrum data like "blockchain_headers" file and the "wallets" directory will be stored in: /data/data/org.electrum.electrum/files/data

NOTE: /data/data requires root privileges, so you won't be able to see any files/folders below /data/data without root.


Title: Re: Electrum on Android file structure
Post by: nc50lc on August 09, 2020, 08:38:50 AM
Where does electrum sore the appdata on Android phones?
For what purpose, may I ask?

Because if it's to access the wallet files and you don't have root access, you can use the "backup" feature of v4.0+.
The wallet file backup will be saved inside "org.electrum.electrum" folder in the root of your phone/external storage.

How to Backup: Click the wallet name above, then Click "Save Backup"


Title: Re: Electrum on Android file structure
Post by: BitMaxz on August 09, 2020, 08:22:48 PM
Are you going to backup your wallet from Electrum Android?

There's another way to backup them if you don't want to root your phone. Just click the 3 dots on the upper right on the screen and tap addresses. Choose the address you want to backup then under the private key touch the "tap to show" it will show up the private key of that address you choose.

This is the sample image below.
https://i.imgur.com/4KOJt1s.jpg


Title: Re: Electrum on Android file structure
Post by: khaled0111 on August 09, 2020, 08:50:20 PM
There's another way to backup them if you don't want to root your phone. Just click the 3 dots on the upper right on the screen and tap addresses. Choose the address you want to backup then under the private key touch the "tap to show" it will show up the private key of that address you choose.

I wouldn't really recommend doing this especially if it is an HD wallet.
The wallet will keep generating new addresses each time he makes a new transaction and then there will be no way to restore those addresses.
The proper way to back up a wallet is what nc50lc suggested or simply copying down the seed words.


Title: Re: Electrum on Android file structure
Post by: BitMaxz on August 09, 2020, 10:23:06 PM
I wouldn't really recommend doing this especially if it is an HD wallet.
The wallet will keep generating new addresses each time he makes a new transaction and then there will be no way to restore those addresses.
The proper way to back up a wallet is what nc50lc suggested or simply copying down the seed words.

But the problem you can only write down the seedphrase at the beginning(Wallet creation) there's no option on the Electrum android to backup seedphrase or to click the "Save Backup" when choosing a wallet, you only have two option either "New" or "Open".

Maybe you can do that on old version of Electrum but not on the latest version of Electrum 4.0.2.


Title: Re: Electrum on Android file structure
Post by: khaled0111 on August 09, 2020, 11:08:14 PM
Maybe you can do that on old version of Electrum but not on the latest version of Electrum 4.0.2.

It's exactly the opposite. This wasn't possible on older version of Electrum, but the latest one lets you save a copy of your wallet file and it displays the seed.
Click the wallet name on the top left and you will see a "Save Backup" button or you can tap on the seed field to display it.


Title: Re: Electrum on Android file structure
Post by: HCP on August 09, 2020, 11:49:48 PM
But the problem you can only write down the seedphrase at the beginning(Wallet creation) there's no option on the Electrum android to backup seedphrase or to click the "Save Backup" when choosing a wallet, you only have two option either "New" or "Open".
Yeah... there is... it's right there when you tap on the wallet name at the top of the screen after you have opened the wallet file...
https://talkimg.com/images/2023/11/15/zyBUD.png?1


You can see the "Seed" option says: "tap to show"... tapping on it gives you the warning and asks to confirm...
https://talkimg.com/images/2023/11/15/zygTf.png?1


And then your seed is displayed back on the wallet info screen:
https://talkimg.com/images/2023/11/15/zyiLZ.png?1


The "Save Backup" button gives you the option to save a copy of the wallet file to the "normal" storage of your device (ie. not /data/data)... Note that you have to enable the "Backups" option in "Settings" for this to function.