Author

Topic: Backup on mobile Electrum (Read 284 times)

legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
February 22, 2023, 06:54:08 PM
#21
This bug still hasn't been fixed after android 10 was introduced and you can't do anything by playing with the settings. I read somewhere that this bug is occuring probably due to the "scooped storage" function which was first introduced in android 10.

I don't think this is a bug but it looks like the same as apple devices to secure storage but this time for Android 10 and above they called it scoped storage aka fused.

The only guide that I haven't tried yet is the guide from the XDA forum because it requires OEM enabled and must be rooted but it looks like it would work.

I found the guide here below if someone wants to try it
- https://forum.xda-developers.com/t/closed-module-scoped-storage-disabler-11.4348419/
HCP
legendary
Activity: 2086
Merit: 4363
February 22, 2023, 06:32:41 PM
#20
Should be in your internal storage (not root), inside a folder named "org.electrum.electrum".
There'll be no notification but an in-app message near the center of Electrum saying "Backup saved" followed by the backup directory.
Yeah... I don't get that "toast" message (the in-app popup)... it just drops straight back to the wallet overview screen and there is no org.electrum.electrum folder created anywhere.

I'm running on a Samsung Galaxy S20FE on Android 13, so I assume it's related to the issue that Edwardard referenced regarding storage issues and the way that Electrum is attempting to access the file system. I'd take a dig around the source code, but I haven't done any Android dev work in a looooooooooong time... not even sure I have the ADB installed these days Undecided
hero member
Activity: 1050
Merit: 681
February 21, 2023, 10:57:57 PM
#19
It was working before on Android 9 but after the update it doesn't work anymore and the problem is I can't able to go back to the old Android version.
Tried to change a few settings on developer settings to allow permission to storage but still, it does not work.
This bug still hasn't been fixed after android 10 was introduced and you can't do anything by playing with the settings. I read somewhere that this bug is occuring probably due to the "scooped storage" function which was first introduced in android 10. This stops some apps from accessing the system's external storage directly. But this wasnt the case for older android versions. Thats why users having android 9 and below aren't facing this issue.
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
February 21, 2023, 10:24:48 AM
#18
I have a Samsung phone upgraded to Android 10 but the same thing happened to me can't able to save the wallet file always permission denied.

However, I can able to back up the seed phrase and private key the only that doesn't work is the exporting wallet file.

It was working before on Android 9 but after the update it doesn't work anymore and the problem is I can't able to go back to the old Android version.
Tried to change a few settings on developer settings to allow permission to storage but still, it does not work.
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
February 21, 2023, 03:24:19 AM
#17
-snip-
Out of curiosity... where did Electrum export your wallet backup to? Or were you using a copy of the 'actual' wallet file that you exported from the protected app folder using 'root' permissions?
Should be in your internal storage (not root), inside a folder named "org.electrum.electrum".
There'll be no notification but an in-app message near the center of Electrum saying "Backup saved" followed by the backup directory.
HCP
legendary
Activity: 2086
Merit: 4363
February 21, 2023, 01:01:21 AM
#16
I tried exporting a backup of my electrum wallet on Android and import it into electrum on PC but it didn't work. I assume there is a compatibility issue.
Out of curiosity... where did Electrum export your wallet backup to? Or were you using a copy of the 'actual' wallet file that you exported from the protected app folder using 'root' permissions?

When I select the "Export Backup" option on my phone it doesn't seem to do anything. I get no notification/'toast' message to say it's been exported, but I don't get any error messages either, it just switches back to the default wallet view (with Send/History/Receive tabs etc).
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
February 16, 2023, 11:03:15 PM
#15
The backup file is a complete copy of your wallet file. It should be compatible with PC Electrum and protected with the password that you've set.
I tried exporting a backup of my electrum wallet on Android and import it into electrum on PC but it didn't work. I assume there is a compatibility issue.
Here is the error message I got when I tried to import the wallet backup file:

That's because the wallets' versions don't match, the error is self-explanatory.
You can import an older wallet file to a newer Electrum client but not to an older Electrum client.

You're using either of the versions 4.0.2 up to 4.07 in your Desktop while using the latest in Android.
(based from the "storage version" in the error)
legendary
Activity: 2744
Merit: 3096
Top Crypto Casino
February 16, 2023, 10:15:49 AM
#14
The backup file is a complete copy of your wallet file. It should be compatible with PC Electrum and protected with the password that you've set.
I tried exporting a backup of my electrum wallet on Android and import it into electrum on PC but it didn't work. I assume there is a compatibility issue.
Here is the error message I got when I tried to import the wallet backup file:


Why is this even necessary? All Electrum would need, theoretically, is the user permission to access the user's files in order to make its own directory to store the backups, and restore from them as well. Root access should not be required to access the backup file.
Sorry if my previous reply was not so clear. I was talking about the original wallet file not the backup file. Not sure about others, but on my mobile the whole directory is hidden so a user you can't access it. This is why I said you need root privileges to see it.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
February 14, 2023, 06:14:26 AM
#13
Husires and dkbit are right, you need root privileges to be able to see and access the wallet file. You will have to root your device to be able to copy the wallet file and transfer it to another device. I don't recommend doing this for security reasons.

Why is this even necessary? All Electrum would need, theoretically, is the user permission to access the user's files in order to make its own directory to store the backups, and restore from them as well. Root access should not be required to access the backup file.
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
February 12, 2023, 02:06:48 AM
#12
there is a bug in electrum android that leads to errors like this:

https://github.com/spesmilo/electrum/issues/6774
Thanks for this reply, I was kind of pretty sure the error is not from my side.

@Charles-Tim what is your Android/wallet version?
I read some comments in above link and some of them indicate that the problem is related to Android 10.
I tried it on Android 9 Wallet version 4.3.2 without problems.

Can you tell us more information, what device you are using and what version of Android?

Android 12, running the lastest update. I later tried it on my old device which I remembered I have exported the file before successfully, it did not also work now, but I upgraded the device from Android 9 to android 10 immediately the phone Android 10
OS was released.

Did you mes around with your smartphone, maybe installing some custom android rom, rooting phone and unlocking it?
No
legendary
Activity: 2212
Merit: 7064
February 11, 2023, 05:17:31 PM
#11
The file storage permission is enabled, just like I meant before.
Can you tell us more information, what device you are using and what version of Android?
Did you mes around with your smartphone, maybe installing some custom android rom, rooting phone and unlocking it?
If everything worked fine on different device you can use it again, or maybe try installing Electrum in android emulator for testing.

legendary
Activity: 1596
Merit: 1288
February 11, 2023, 04:31:24 PM
#10
there is a bug in electrum android that leads to errors like this:

https://github.com/spesmilo/electrum/issues/6774
Woow some reports from 2020. Shocked

@Charles-Tim what is your Android/wallet version?
I read some comments in above link and some of them indicate that the problem is related to Android 10.
I tried it on Android 9 Wallet version 4.3.2 without problems.

It is looks like related to Scoped storage in Android 10

Quote
To give users more control over their files and to limit file clutter, apps that target Android 10 (API level 29) and higher are given scoped access into external storage, or scoped storage, by default. Such apps have access only to the app-specific directory on external storage, as well as specific types of media that the app has created.
legendary
Activity: 3710
Merit: 1586
February 11, 2023, 07:33:09 AM
#9
there is a bug in electrum android that leads to errors like this:

https://github.com/spesmilo/electrum/issues/6774
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
February 10, 2023, 11:39:56 PM
#8
This error is certainly related with your device app permission.
The file storage permission is enabled, just like I meant before. I used another device just of recent, there was a request to allow Electrum to allow camera and media, I clicked on 'allow', but the same error occured after I allowed it. Which means it is not by default like I meant before, but I checked the media permission, and it was set on allowed, I allowed it before. When I first saw the error, I checked it and it was set on 'allow'.
For reference, the error will be different if you didn't grant it media storage permission, so the issue must be something else related to your device.
The error would be "Cannot save backup without STORAGE permission".

Third question
How can it be possible to successfully use file backup on mobile Electrum to recover your wallet on mobile phone? I remember I wanted to try it in the past, but I was unable to.
The backup file is a complete copy of your wallet file. It should be compatible with PC Electrum and protected with the password that you've set.
The issue is, there's no option to load it to mobile Electrum.
legendary
Activity: 2744
Merit: 3096
Top Crypto Casino
February 10, 2023, 01:23:03 PM
#7
Husires and dkbit are right, you need root privileges to be able to see and access the wallet file. You will have to root your device to be able to copy the wallet file and transfer it to another device. I don't recommend doing this for security reasons.

I just want to post about how pin on Electrum mobile wallet can be very useful, I have the topic already. If the file backup can still make the pin to be enabled, that will not defeat the purpose of the topic, but if the pin is not backup on the file, that will defeat the purpose of my topic. But everything about wallet are backup on its file, I guess the pin will be among the backup.
I got your point and I believe I understand what you are trying to achieve but I think it's pointless!
In order for the second wallet to know about existence of the pin code, that information needs to be already saved on the wallet file. If you have the password required to decrypt the wallet then you can easily retrieve it, which makes it pointless.
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
February 10, 2023, 11:45:43 AM
#6
Open the files and make sure that you can access this folder. (you may need a rooted phone to navigate it) Anyway it is storage permission problem

This error is certainly related with your device app permission.


     

The file storage permission is enabled, just like I meant before. I used another device just of recent, there was a request to allow Electrum to allow camera and media, I clicked on 'allow', but the same error occured after I allowed it. Which means it is not by default like I meant before, but I checked the media permission, and it was set on allowed, I allowed it before. When I first saw the error, I checked it and it was set on 'allow'.

Don't you already have seed words as offline backup written on paper that was generated when you first started Electrum wallet?
Importing that should work just fine in desktop wallet or any other smartphone, unless you want to backup labels and other data from Electrum.
I just want to post about how pin on Electrum mobile wallet can be very useful, I have the topic already. If the file backup can still make the pin to be enabled, that will not defeat the purpose of the topic, but if the pin is not backup on the file, that will defeat the purpose of my topic. But everything about wallet are backup on its file, I guess the pin will be among the backup.

I am not a big fan of Electrum mobile wallet, their desktop wallet is much better product.
I too prefer desktop Electrum, but some people are using mobile Electrum, which is the reason I want too make the topic because pin is not set on mobile Electrum by default, you have to enable it. Desktop Electrum has more features, clear and undebatable how desktop Electrum is far better. With sincerity, I prefer to use Bluewallet on mobile phone than Electrum because it has more features.
legendary
Activity: 2212
Merit: 7064
February 10, 2023, 09:52:45 AM
#5
I wanted to do a file backup on mobile Electrum but I was unable to. This is the error
Don't you already have seed words as offline backup written on paper that was generated when you first started Electrum wallet?
Importing that should work just fine in desktop wallet or any other smartphone, unless you want to backup labels and other data from Electrum.
I am not a big fan of Electrum mobile wallet, their desktop wallet is much better product.

What is causing the error?
This error is certainly related with your device app permission.
legendary
Activity: 1596
Merit: 1288
February 10, 2023, 08:38:58 AM
#4
File storage permission is enabled by default on the app setting, I even checked this before I posted this topic. Only permission to camera is not enabled, but camera has nothing to do with storage. Although, I enabled the camera's permission also and still the same error. All permissions enabled and yet the same error.
Open the files and make sure that you can access this folder. (you may need a rooted phone to navigate it) Anyway it is storage permission problem
Code:
/data/data/org.electrum.electrum/files/data/wallets
If you can't then you probably deleted it by mistake
if you can access your 12 words, save them, delete your wallet and reinstall it.

legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
February 10, 2023, 08:11:01 AM
#3
I know the function of the password and pin. Just want to know if the pin is backed up with file? To know if it will still be effective after you recover back your wallet from file backup.

It is related to necessary permissions, The solution method will differ according to the version of Android you are using, but go to Settings, Electrum application and give the required permissions (access to phone data.)
File storage permission is enabled by default on the app setting, I even checked this before I posted this topic. Only permission to camera is not enabled, but camera has nothing to do with storage. Although, I enabled the camera's permission also and still the same error. All permissions enabled and yet the same error.

PIN Code is the method that the wallet uses to sign transaction and therefore without it you may not be able to sign a transaction.
You mean after the wallet is recovered from file backup? I just want to be sure. I am also waiting to see the posts of other reputed BTT members to confirm this.

you can cancel PIN Code from the Settings page but if you miss your wallet open, anyone can send from it.
The pin is off by default, you will have to enable it first.
legendary
Activity: 1596
Merit: 1288
February 10, 2023, 07:51:12 AM
#2
I wanted to do a file backup on mobile Electrum but I was unable to. This is the error:

Code:
Cannot save backup: PermissionError (13, 'permission denied')

First question
What is causing the error?
It is related to necessary permissions, The solution method will differ according to the version of Android you are using, but go to Settings, Electrum application and give the required permissions (access to phone data.)

But what about the pin, if you have recovered you Electrum wallet, will the pin still be effective? Or the wallet won't no longer require pin if you want to check your seed phrase, private key and if you want to make transaction?

PIN Code is the method that the wallet uses to sign transaction and therefore without it you may not be able to sign a transaction. The password is the key to decrypting your wallet file without it you need to brute force it to find your private keys.

you can cancel PIN Code from the Settings page but if you miss your wallet open, anyone can send from it.

legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
February 10, 2023, 06:17:58 AM
#1
I wanted to do a file backup on mobile Electrum but I was unable to. This is the error:

Code:
Cannot save backup: PermissionError (13, 'permission denied')

First question
What is causing the error?

I thought I have made an Electrum backup before, but I am not able to remember if true or not, but I think so. The reason I want to experiment the backup is the Electrum pin, not the password. I know already that you need the existing password to use an encrypted file backup as the file is encrypted with the Electrum wallet password, which means if you want to recover a wallet from encrypted file backup, you need the password.

Second question
But what about the pin, if you have recovered you Electrum wallet, will the pin still be effective? Or the wallet won't no longer require pin if you want to check your seed phrase, private key and if you want to make transaction?

Third question
How can it be possible to successfully use file backup on mobile Electrum to recover your wallet on mobile phone? I remember I wanted to try it in the past, but I was unable to.
Jump to: