Skip to content

Commit 80f637c

Browse files
committed
Udpate: Add update_engine_config.txt
1 parent 639d66b commit 80f637c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

port.sh

+6
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,7 @@ if [[ $pack_method == "aosp" ]];then
12081208
fi
12091209
fi
12101210
rm -rf out/target/product/${base_rom_code}/META/ab_partitions.txt
1211+
rm -rf out/target/product/${base_rom_code}/META/update_engine_config.txt
12111212
rm -rf out/target/product/${base_rom_code}/target-file.zip
12121213
for part in out/target/product/${base_rom_code}/IMAGES/*.img; do
12131214
partname=$(basename "$part" .img)
@@ -1235,6 +1236,11 @@ if [[ $pack_method == "aosp" ]];then
12351236
echo "ab_update=true"
12361237
} >> out/target/product/${base_rom_code}/META/misc_info.txt
12371238

1239+
{
1240+
echo "PAYLOAD_MAJOR_VERSION=2"
1241+
echo "PAYLOAD_MINOR_VERSION=8"
1242+
} >> out/target/product/${base_rom_code}/META/update_engine_config.txt
1243+
12381244
if [[ "$is_ab_device" == false ]];then
12391245
sed -i "/ab_update=true/d" out/target/product/${base_rom_code}/META/misc_info.txt
12401246
{

0 commit comments

Comments
 (0)