You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.7 KiB
1.7 KiB
Kivy GUI
The Kivy GUI is used with Electrum on Android devices. To generate an APK file, follow these instructions.
Android binary with Docker
This assumes an Ubuntu host, but it should not be too hard to adapt to another similar system. The docker commands should be executed in the project's root folder.
-
Install Docker
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" $ sudo apt-get update $ sudo apt-get install -y docker-ce -
Build image
$ sudo docker build -t electrum-android-builder-img electrum/gui/kivy/tools -
Prepare pure python dependencies
$ sudo ./contrib/make_packages -
Build binaries
$ sudo docker run -it --rm \ --name electrum-android-builder-cont \ -v $PWD:/home/user/wspace/electrum \ -v ~/.keystore:/home/user/.keystore \ --workdir /home/user/wspace/electrum \ electrum-android-builder-img \ ./contrib/make_apkThis mounts the project dir inside the container, and so the modifications will affect it, e.g.
.buildozerfolder will be created. -
The generated binary is in
./bin.
FAQ
I changed something but I don't see any differences on the phone. What did I do wrong?
You probably need to clear the cache: rm -rf .buildozer/android/platform/build/{build,dists}
How do I get an interactive shell inside docker?
$ sudo docker run -it --rm \
-v $PWD:/home/user/wspace/electrum \
--workdir /home/user/wspace/electrum \
electrum-android-builder-img