User:Nmariusp/Android
Appearance
As per https://community.kde.org/Android -> https://develop.kde.org/docs/packaging/android/building_applications :
On the host computer.
mkdir ~/craft-kde-android podman run -ti --rm -v ~/craft-kde-android:/home/user/CraftRoot:Z --userns keep-id invent-registry.kde.org/sysadmin/ci-images/android-qt69 bash
Inside the running Linux container instance.
python3 -c "$(curl https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBootstrap.py)" --prefix ~/CraftRoot
Inside the container instance.
source ~/CraftRoot/craft/craftenv.sh craft kirigami-gallery craft --package kirigami-gallery # Sign the apk file. cd ~/CraftRoot/tmp keytool -genkey -noprompt -keystore key.keystore -keypass 123456 -dname "CN=None, OU=None, O=None, L=None, S=None, C=XY" -alias mykey -keyalg RSA -keysize 2048 -validity 10000 -storepass 123456 /opt/android-sdk/build-tools/$ANDROID_BUILD_TOOLS_REVISION/zipalign -p -f -v 4 kirigami2gallery-x86_64.apk kirigami2gallery-x86_64.signed.apk /opt/android-sdk/build-tools/$ANDROID_BUILD_TOOLS_REVISION/apksigner sign --verbose --ks key.keystore kirigami2gallery-x86_64.signed.apk # The password is 123456
On the host computer. Install Waydroid. As per https://docs.waydro.id/usage/install-on-desktops#ubuntu-debian-and-derivatives
sudo apt update sudo apt install weston sudo apt install curl ca-certificates -y curl -s https://repo.waydro.id | sudo bash sudo apt install waydroid
On the host computer. Start weston.
weston
Inside weston. Resize the weston window as needed. Start the weston terminal, inside it run:
waydroid show-full-ui
On the host computer. Install android apk file built using KDE Craft.
cd ~/craft-kde-android/tmp waydroid app install kirigami2gallery-x86_64.signed.apk
Inside waydroid, allow installation from "Google Play Protect" if needed. Start the app "Kirigami Gallery" from the list with all installed apps.