Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create wallet on certain android devices. #56

Open
crux25 opened this issue Aug 21, 2019 · 0 comments
Open

Cannot create wallet on certain android devices. #56

crux25 opened this issue Aug 21, 2019 · 0 comments
Labels
bug Something isn't working cant-reproduce

Comments

@crux25
Copy link
Contributor

crux25 commented Aug 21, 2019

Wallet creation fails on android devices that has no support for unix flock system call with the following error: loader.CreateNewWallet:: wallet.CreateDB: Cannot acquire directory lock on "/data/user/0/com.decred.dcrandroid.testnet/files/wallet/testnet3/wallet.db". Another process is using this Badger database.: permission denied. See: planetdecred/dcrandroid#352

Additional Information
Issue seems to occur on devices running Android 6 only.
Error was reproduced on Infinix hot 4 running Android 6.0 and Samsung Galaxy s5 running 6.0.1

Logs from Adb shell logcat:
08-21 10:26:26.738 2819 2819 E audit : type=1400 msg=audit(1566379586.728:1930): avc: denied { lock } for pid=14095 comm="Thread-21419" path="/data/data/com.decred.dcrandroid.testnet/files/wallet/testnet3/wallet.db" dev="mmcblk0p26" ino=360557 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0

Log suggest that SELinux is blocking the flock call, and issue seems to be a known bug in android 6. See this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cant-reproduce
Projects
None yet
Development

No branches or pull requests

2 participants