Making deb must on the same machine with the compiling linux programs.

Download the script

1git clone https://github.com/openfde/make_deb


一、Obtain the AOSP image

There are two way to obtain the aosp images, one is copy from the compiling , the other is extract from the distributioned deb

a、extract from the distributioned deb

1cd make_deb && ./download_image.sh

b、copy from the compiling

1sudo apt install openssh-server && sudo systemctl start ssh && sudo systemctl enable ssh 2 3cp system.img vendor.img make_deb/ 4./packapk.sh #will pack via.apk, browse app, into images;minimize the capacity of images 5 6#will waitting for you choice to detemine whether coping images to make the deb later. 7copy images to /usr/share/waydroid-extra/images y/n[n]?

二、making deb

1./mkdeb.sh 1.3.2 #1.3.2 is a version number。 2 3Step 2: want to repack android images from /usr/share/waydroid-extra/images? y/n[n] 4#it depends on where did your get the images. input y if your images is compiled by now. 5and input n if your images is extracted from distributioned debs. 6 7 8At the end, you will be prompted that the .deb package creation is complete, 9 stored in the debian directory.