tkivy README: add instructions re accessing internal storage - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 942e03e3ae59d6bd8900d6c63a2c52b19fc5bf04
DIR parent 60ad5e6a52acafbf5522fab9ff3934ac046672de
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Thu, 5 Mar 2020 19:01:55 +0100
kivy README: add instructions re accessing internal storage
Diffstat:
M electrum/gui/kivy/Readme.md | 10 ++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)
---
DIR diff --git a/electrum/gui/kivy/Readme.md b/electrum/gui/kivy/Readme.md
t@@ -115,3 +115,13 @@ keystore, back it up safely, and run `./contrib/make_apk release`.
See e.g. [kivy wiki](https://github.com/kivy/kivy/wiki/Creating-a-Release-APK)
and [android dev docs](https://developer.android.com/studio/build/building-cmdline#sign_cmdline).
+
+### Access datadir on Android from desktop (e.g. to copy wallet file)
+Note that this only works for debug builds! Otherwise the security model
+of Android does not let you access the internal storage of an app without root.
+(See [this](https://stackoverflow.com/q/9017073))
+```
+$ adb shell
+$ run-as org.electrum.electrum ls /data/data/org.electrum.electrum/files/data
+$ run-as org.electrum.electrum cp /data/data/org.electrum.electrum/files/data/wallets/my_wallet /sdcard/some_path/my_wallet
+```