Skip to content

Commit

Permalink
add waydroid-x11.sh and compile-waydroid-lineageOS-image.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanvir1337x committed Nov 25, 2024
1 parent 6381679 commit a6b97c2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
24 changes: 24 additions & 0 deletions shell/bash/android/compile-waydroid-lineageOS-image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh
# shellcheck source=/dev/null

# Based on: <https://docs.waydro.id/development/compile-waydroid-lineage-os-based-images>

repo init -u https://github.com/LineageOS/android.git -b lineage-18.1 --git-lfs
repo sync build/make

wget -O - https://raw.githubusercontent.com/waydroid/android_vendor_waydroid/lineage-18.1/manifest_scripts/generate-manifest.sh | bash

repo sync
. build/envsetup.sh

apply-waydroid-patches

. build/envsetup.sh
lunch lineage_waydroid_arm64-userdebug
make systemimage -j"$(nproc --all)"
make vendorimage -j"$(nproc --all)"

simg2img "$OUT"/system.img ~/system.img
simg2img "$OUT"/vendor.img ~/vendor.img

# waydroid-generate-manifest
13 changes: 13 additions & 0 deletions shell/bash/android/waydroid-x11.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

# <https://wiki.nixos.org/wiki/Waydroid>
# <https://www.luisquintanilla.me/wiki/waydroid-nixos-x11>
# <https://docs.waydro.id/faq/google-play-certification>

# sudo systemctl start waydroid-container
waydroid session start &
weston
# waydroid show-full-ui

# ~/.local/share/waydroid
# /var/lib/waydroid/

0 comments on commit a6b97c2

Please sign in to comment.