@@ -92,6 +92,10 @@ Also used [aosp_build](https://github.com/opengapps/aosp_build) for lineage 18.1
92
92
93
93
8. Apply custom patches
94
94
95
+ * Enable squashfs images
96
+ ```
97
+ curl https://raw.githubusercontent.com/YogSottot/waydroid_stuff/refs/heads/master/kernel_build/lineage-20.0/0001-Build-squashfs-images.patch | git -C device/waydroid/waydroid/ apply -v
98
+ ```
95
99
* ** [Don' t use the patch is broken on lineage-20!]** Add force_mouse_as_touch option. [PR](https://github.com/waydroid/android_vendor_waydroid/pull/33)
96
100
If PR is already merged, this patch is no longer needed
97
101
@@ -108,13 +112,13 @@ Also used [aosp_build](https://github.com/opengapps/aosp_build) for lineage 18.1
108
112
curl https://raw.githubusercontent.com/YogSottot/waydroid_stuff/master/kernel_build/lineage-18.1/0001-patch-30-Enable-xmlconfig-on-Android-02.patch | git -C device/waydroid/waydroid/ apply -v
109
113
```
110
114
111
- 9 . Install docker
115
+ 10 . Install docker
112
116
[Documentation](https://docs.docker.com/desktop/install/linux-install/)
113
117
114
118
Of course you can build images without a docker. The [Dockerfile](../Dockerfile) has a list of required dependencies.
115
119
116
120
117
- 10 . Copy Dockerfile
121
+ 11 . Copy Dockerfile
118
122
119
123
```bash
120
124
wget https://raw.githubusercontent.com/YogSottot/waydroid_stuff/master/kernel_build/Dockerfile
@@ -124,7 +128,7 @@ Also used [aosp_build](https://github.com/opengapps/aosp_build) for lineage 18.1
124
128
125
129
126
130
127
- 11 . Build Docker imagekernel
131
+ 12 . Build Docker imagekernel
128
132
129
133
```bash
130
134
docker build -t waydroid-build-24.04 .
@@ -147,7 +151,7 @@ Also used [aosp_build](https://github.com/opengapps/aosp_build) for lineage 18.1
147
151
docker create -v /mnt/ccache/lineage-20.0:/ccache --name ccache-20.0 waydroid-build-24.04
148
152
```
149
153
150
- 12 . Build system images
154
+ 13 . Build system images
151
155
152
156
```bash
153
157
docker run -e CCACHE_DIR=/ccache --volumes-from ccache-20.0 -v $(pwd):/mnt/lineage -it waydroid-build-24.04 bash -c ' cd /mnt/lineage && ccache -M 50G && . build/envsetup.sh && lunch lineage_waydroid_x86_64-userdebug && make systemimage -j$( nproc --all) '
@@ -157,7 +161,7 @@ Also used [aosp_build](https://github.com/opengapps/aosp_build) for lineage 18.1
157
161
A full list of options is available at command ```lunch```.
158
162
NOTE: If your locale is tr_TR.UTF-8, set it to en_US.UTF-8 in /etc/locale.conf. Otherwise you will encounter compilation errors due to [Turkish I/İ problem](https://en.wikipedia.org/wiki/Dotted_and_dotless_I_in_computing).
159
163
160
- 13 . Build vendor image
164
+ 14 . Build vendor image
161
165
162
166
```bash
163
167
docker run -e CCACHE_DIR=/ccache --volumes-from ccache-20.0 -v $(pwd):/mnt/lineage -it waydroid-build-24.04 bash -c ' cd /mnt/lineage && ccache -M 50G && . build/envsetup.sh && lunch lineage_waydroid_x86_64-userdebug && make vendorimage -j$( nproc --all) '
@@ -195,7 +199,7 @@ Also used [aosp_build](https://github.com/opengapps/aosp_build) for lineage 18.1
195
199
docker run -e CCACHE_DIR=/ccache --volumes-from ccache-20.0 -v $(pwd):/mnt/lineage -it waydroid-build-24.04 bash -c ' cd /mnt/lineage && ccache -M 50G && . build/envsetup.sh && lunch lineage_waydroid_x86_64-userdebug && make systemimage -j$( nproc --all) && make vendorimage -j$( nproc --all) '
196
200
```
197
201
198
- 14 . Convert images
202
+ 15 . Convert images
199
203
200
204
```bash
201
205
simg2img out/target/product/waydroid_x86_64/system.img ./system.img
@@ -208,7 +212,7 @@ Also used [aosp_build](https://github.com/opengapps/aosp_build) for lineage 18.1
208
212
docker run -v $(pwd):/mnt/lineage -it waydroid-build-24.04 bash -c ' cd /mnt/lineage && simg2img out/target/product/waydroid_x86_64/system.img ./system.img && simg2img out/target/product/waydroid_x86_64/vendor.img ./vendor.img'
209
213
```
210
214
211
- 15 . Use images
215
+ 16 . Use images
212
216
213
217
Make a backup of old images beforehand
214
218
0 commit comments