EDGE build android 10.0 no ./pack_image.sh

There is no such script when compiling Android 10 (./pack_image.sh)

Package update.img:

$ cd PATH_YOUR_PROJECT
$ source build/envsetup.sh
$ lunch rk3399_Android10-userdebug
$ ./pack_image.sh

I don’t see any initialization code on your company’s GitHub (search pack_image.sh):


And Android 9 is there (search pack_image.sh):

For Android 10
You have to copy the rockdev/Image* folder to RKTools/linux/Linux_Pack_Firmware and rename it to Image.
Then run mkupdate_rk3399.sh.
Use the generated update.img here and not the one in the Image folder.

1 Like

Thanks for the guidance

You can create the following file in the root directory.
vim ./pack_image.sh

#!/bin/bash
PROJECT_PATH=`pwd`
cd RKTools/linux/Linux_Pack_Firmware/rockdev/
./mkupdate_rk3399.sh
cd $PROJECT_PATH
mv RKTools/linux/Linux_Pack_Firmware/rockdev/update.img . 

2 Likes

Thanks for the guidance, i will try

[Solution]
pack_img.sh
#!/bin/bash
PROJECT_PATH=pwd
cp -rf rockdev/Image-rk3399_Android10/* RKTools/linux/Linux_Pack_Firmware/rockdev/Image/
cd RKTools/linux/Linux_Pack_Firmware/rockdev/
./mkupdate_rk3399.sh
cd $PROJECT_PATH
mv RKTools/linux/Linux_Pack_Firmware/rockdev/update.img .