getprop("ro.product.device") == "dandelion" || abort("E3004: This package is for \"dandelion\" devices; this is a \"" + getprop("ro.product.device") + "\".");
ui_print("Source: Redmi/dandelion_ru2/dandelion:11/RP1A.200720.011/V12.5.14.0.RCZRUXM:user/release-keys");
ui_print("Target: Redmi/dandelion_ru2/dandelion:11/RP1A.200720.011/V12.5.16.0.RCZRUXM:user/release-keys");
ui_print("Verifying current system...");
getprop("ro.build.fingerprint") == "Redmi/dandelion_ru2/dandelion:11/RP1A.200720.011/V12.5.14.0.RCZRUXM:user/release-keys" ||
    getprop("ro.build.fingerprint") == "Redmi/dandelion_ru2/dandelion:11/RP1A.200720.011/V12.5.16.0.RCZRUXM:user/release-keys" ||
    abort("E3001: Package expects build fingerprint of Redmi/dandelion_ru2/dandelion:11/RP1A.200720.011/V12.5.14.0.RCZRUXM:user/release-keys or Redmi/dandelion_ru2/dandelion:11/RP1A.200720.011/V12.5.16.0.RCZRUXM:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");
patch_partition_check(concat("EMMC:","/dev/block/platform/bootdevice/by-name/boot",":67108864:913a7450128dcd92eee8f6d910aab08ae7938b84"),
                      concat("EMMC:","/dev/block/platform/bootdevice/by-name/boot",":67108864:d4a9f8fd0fc67e94ac8a659c765e607b48a8bb21")) ||
    abort(concat("E3005: \"",concat("EMMC:","/dev/block/platform/bootdevice/by-name/boot",":67108864:913a7450128dcd92eee8f6d910aab08ae7938b84"),"\" or \"",concat("EMMC:","/dev/block/platform/bootdevice/by-name/boot",":67108864:d4a9f8fd0fc67e94ac8a659c765e607b48a8bb21"),"\" has unexpected contents."));
apply_patch_space(67108864) || abort("E3006: Not enough free space on /cache to apply patches.");
if (range_sha1(map_partition("system"), "860,1,32,45,56,32768,32786,52936,52938,53011,53012,53025,53026,53033,53034,53179,53180,53212,53213,53335,56219,60527,60528,60543,60544,60643,60644,63816,63817,64906,64907,64995,64996,65071,65072,65536,65552,68356,68357,68393,68394,68398,68399,68430,68431,69651,69652,72278,72279,73691,73692,73722,73723,73728,73729,74039,74041,74094,74095,74130,74131,74581,74582,75270,75271,75395,75396,80317,80318,81259,81260,86227,86228,93273,93274,95924,95925,98304,98322,104749,104750,106340,106341,131072,131088,134141,134142,136795,136796,139791,139792,140943,140944,141086,141087,147227,147228,148287,148288,155844,155845,157153,157154,157176,157179,160775,160778,163840,163858,165072,165073,165478,165481,166950,166951,168239,168242,170992,170993,173734,173735,178069,178072,180176,180177,180182,180185,183501,183502,183505,183506,183521,183524,185015,185018,185087,185088,185127,185129,186761,186762,186804,186805,187150,187151,188887,188888,189079,189080,189163,189164,189171,189172,189178,189179,190842,190843,193992,193993,194414,194415,194422,194423,194429,194430,194454,194455,196608,196624,198285,198286,198599,198600,200744,200745,200793,200794,201520,201521,203044,203047,205418,205419,205736,205737,208533,208534,208797,208798,209422,209428,209670,209671,212005,212006,214014,214018,214019,214020,214021,214022,214023,214024,214025,214026,214027,214028,214029,214030,214031,214032,214033,214034,214035,214036,214037,214038,214039,214040,214041,214042,214043,214044,214045,214046,214047,214048,214049,214050,214051,214052,214053,214054,214055,214056,214057,214058,214059,214060,214061,214062,214063,214064,214065,214066,214067,214068,214069,214070,214071,214072,214073,214074,214075,214076,214077,214078,214079,214080,214081,214082,214083,214084,214085,214086,214087,214088,214089,214090,214091,214092,214093,214094,214095,214096,214097,214098,214099,214100,214101,214102,214103,214104,214105,214106,214107,214108,214109,214110,214111,214112,214113,214114,214115,214116,214117,214118,214119,214120,214121,214122,214123,214124,214125,214126,214127,214128,214129,214130,214131,214132,214133,214134,214135,214136,214137,214138,214139,214140,214141,214142,214143,214144,214145,214146,214147,214148,214149,214150,214151,214152,214153,214154,214155,214156,214157,214158,214159,214160,214161,214162,214163,214164,214165,214166,214167,214168,214169,214170,214171,214172,214173,214174,214175,214176,214177,214178,214179,214180,214181,214182,214183,214184,214185,214186,214187,214188,214189,214190,214191,214192,214193,214194,214195,214196,214197,214198,214199,214200,214201,214202,214203,214204,214205,214206,214207,214208,214209,214210,214211,214212,214213,214214,214215,214216,214217,214218,214219,214220,214221,214222,214223,214224,214225,214226,214227,214228,214229,214230,214231,214232,214233,214234,214235,214236,214237,214238,214239,214240,214241,214242,214243,214244,214245,214246,214247,214248,214249,214250,214251,214252,214253,214254,214255,214256,214257,214258,214259,214260,214261,214262,214263,214264,214265,214266,214267,214268,214269,214270,214271,214272,214273,214274,214275,214276,214277,214278,214279,214280,214281,214282,214283,214284,214285,214286,214287,214288,214289,214290,214291,214292,214293,214294,214295,214296,214297,214298,214299,214300,214301,214302,214303,214304,214305,214306,214307,214308,214309,214310,214311,214312,214313,214314,214315,214316,214317,214318,214319,214320,214321,214322,214323,214324,214325,214326,214327,214328,214329,214330,214331,214332,214333,214334,214335,214336,214337,214338,214339,214340,214341,214342,214343,214344,214345,214346,214347,214348,214349,214350,214351,214352,214353,214354,214355,214356,214357,214358,214359,214360,214361,214362,214363,214364,214365,214366,214367,214368,214369,214370,214371,214372,214373,214374,214375,214376,214377,214378,214379,214380,214381,214382,214383,214384,214385,214386,214387,214388,214389,214390,214391,214392,214393,214394,214395,214396,214397,214398,214399,214400,214401,214402,214403,214404,214405,214406,214407,214408,214409,214410,214411,214412,214413,214414,214415,214416,214417,214418,214419,214420,214421,214422,214423,214424,214425,214426,214427,214428,214429,214430,214431,214432,214433,214434,214435,214436,214437,214438,214439,214440,214441,214442,214443,214444,214445,214446,214447,214448,214449,214450,214451,214452,214453,214454,214455,214456,214457,214458,214459,214460,214461,214462,214463,214465,218107,218108,218477,218479,218506,218507,218519,218520,218527,218528,218531,218532,218572,218573,218580,218581,218607,218608,218684,218687,218693,218694,218765,218766,218768,218773,218774,218775,218776,218777,218778,218779,219702,219703,219710,219711,220264,220265,220266,220268,220821,220823,220824,220825,220826,220827,220828,220829,220830,220831,220832,220833,220834,220835,220836,220837,220839,220840,220841,220844,222169,222171,222317,222318,222324,222326,229376,229403,232386,232387,240257,240258,262144,262163,269002,269512,269547,269836,294912,294939,295459,295467,296454,296455,302920,302924,304092,304093,312544,312545,327680,327696,337071,337600,337605,337852,337960,337994,360448,360464,393216,393243,393244,393245,425984,426056,443180,443181,458752,458818,460370,460371,491520,491551,492743,492744,492750,492751,492778,492779,509812,509813,509901,509902,509907,509908,510005,510006,510329,510330,510345,510346,511259,511260,511437,511438,511447,511448,511492,511493,512988,512989,513121,513122,513994,513997,514744,514746,514784,514785,515353,515355,515374,515375,515377,515378,515383,515384,515386,515387,515397,515399,515502,515503,515504,515505,524288,524304,525308,525310,526984,526985,527091,527094,527259,527260,527302,527303,528883,528884,539324,539325,539403,539404,548977,548978,557056,557060,571517,571520,573510,573511,574827,574828,574859,574861,575237,575238,575243,575244,575264,575265,575377,575378,575421,575423,575432,575433,575559,575560,576240,576241,576242,576244,577973,587133,587259,587260") == "bc1d3b134a1a9560d7febe5846cf746af1fffe32" || block_image_verify(map_partition("system"), package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat")) then
ui_print("Verified system image...");
else
check_first_block(map_partition("system"));
ifelse (block_image_recover(map_partition("system"), "860,1,32,45,56,32768,32786,52936,52938,53011,53012,53025,53026,53033,53034,53179,53180,53212,53213,53335,56219,60527,60528,60543,60544,60643,60644,63816,63817,64906,64907,64995,64996,65071,65072,65536,65552,68356,68357,68393,68394,68398,68399,68430,68431,69651,69652,72278,72279,73691,73692,73722,73723,73728,73729,74039,74041,74094,74095,74130,74131,74581,74582,75270,75271,75395,75396,80317,80318,81259,81260,86227,86228,93273,93274,95924,95925,98304,98322,104749,104750,106340,106341,131072,131088,134141,134142,136795,136796,139791,139792,140943,140944,141086,141087,147227,147228,148287,148288,155844,155845,157153,157154,157176,157179,160775,160778,163840,163858,165072,165073,165478,165481,166950,166951,168239,168242,170992,170993,173734,173735,178069,178072,180176,180177,180182,180185,183501,183502,183505,183506,183521,183524,185015,185018,185087,185088,185127,185129,186761,186762,186804,186805,187150,187151,188887,188888,189079,189080,189163,189164,189171,189172,189178,189179,190842,190843,193992,193993,194414,194415,194422,194423,194429,194430,194454,194455,196608,196624,198285,198286,198599,198600,200744,200745,200793,200794,201520,201521,203044,203047,205418,205419,205736,205737,208533,208534,208797,208798,209422,209428,209670,209671,212005,212006,214014,214018,214019,214020,214021,214022,214023,214024,214025,214026,214027,214028,214029,214030,214031,214032,214033,214034,214035,214036,214037,214038,214039,214040,214041,214042,214043,214044,214045,214046,214047,214048,214049,214050,214051,214052,214053,214054,214055,214056,214057,214058,214059,214060,214061,214062,214063,214064,214065,214066,214067,214068,214069,214070,214071,214072,214073,214074,214075,214076,214077,214078,214079,214080,214081,214082,214083,214084,214085,214086,214087,214088,214089,214090,214091,214092,214093,214094,214095,214096,214097,214098,214099,214100,214101,214102,214103,214104,214105,214106,214107,214108,214109,214110,214111,214112,214113,214114,214115,214116,214117,214118,214119,214120,214121,214122,214123,214124,214125,214126,214127,214128,214129,214130,214131,214132,214133,214134,214135,214136,214137,214138,214139,214140,214141,214142,214143,214144,214145,214146,214147,214148,214149,214150,214151,214152,214153,214154,214155,214156,214157,214158,214159,214160,214161,214162,214163,214164,214165,214166,214167,214168,214169,214170,214171,214172,214173,214174,214175,214176,214177,214178,214179,214180,214181,214182,214183,214184,214185,214186,214187,214188,214189,214190,214191,214192,214193,214194,214195,214196,214197,214198,214199,214200,214201,214202,214203,214204,214205,214206,214207,214208,214209,214210,214211,214212,214213,214214,214215,214216,214217,214218,214219,214220,214221,214222,214223,214224,214225,214226,214227,214228,214229,214230,214231,214232,214233,214234,214235,214236,214237,214238,214239,214240,214241,214242,214243,214244,214245,214246,214247,214248,214249,214250,214251,214252,214253,214254,214255,214256,214257,214258,214259,214260,214261,214262,214263,214264,214265,214266,214267,214268,214269,214270,214271,214272,214273,214274,214275,214276,214277,214278,214279,214280,214281,214282,214283,214284,214285,214286,214287,214288,214289,214290,214291,214292,214293,214294,214295,214296,214297,214298,214299,214300,214301,214302,214303,214304,214305,214306,214307,214308,214309,214310,214311,214312,214313,214314,214315,214316,214317,214318,214319,214320,214321,214322,214323,214324,214325,214326,214327,214328,214329,214330,214331,214332,214333,214334,214335,214336,214337,214338,214339,214340,214341,214342,214343,214344,214345,214346,214347,214348,214349,214350,214351,214352,214353,214354,214355,214356,214357,214358,214359,214360,214361,214362,214363,214364,214365,214366,214367,214368,214369,214370,214371,214372,214373,214374,214375,214376,214377,214378,214379,214380,214381,214382,214383,214384,214385,214386,214387,214388,214389,214390,214391,214392,214393,214394,214395,214396,214397,214398,214399,214400,214401,214402,214403,214404,214405,214406,214407,214408,214409,214410,214411,214412,214413,214414,214415,214416,214417,214418,214419,214420,214421,214422,214423,214424,214425,214426,214427,214428,214429,214430,214431,214432,214433,214434,214435,214436,214437,214438,214439,214440,214441,214442,214443,214444,214445,214446,214447,214448,214449,214450,214451,214452,214453,214454,214455,214456,214457,214458,214459,214460,214461,214462,214463,214465,218107,218108,218477,218479,218506,218507,218519,218520,218527,218528,218531,218532,218572,218573,218580,218581,218607,218608,218684,218687,218693,218694,218765,218766,218768,218773,218774,218775,218776,218777,218778,218779,219702,219703,219710,219711,220264,220265,220266,220268,220821,220823,220824,220825,220826,220827,220828,220829,220830,220831,220832,220833,220834,220835,220836,220837,220839,220840,220841,220844,222169,222171,222317,222318,222324,222326,229376,229403,232386,232387,240257,240258,262144,262163,269002,269512,269547,269836,294912,294939,295459,295467,296454,296455,302920,302924,304092,304093,312544,312545,327680,327696,337071,337600,337605,337852,337960,337994,360448,360464,393216,393243,393244,393245,425984,426056,443180,443181,458752,458818,460370,460371,491520,491551,492743,492744,492750,492751,492778,492779,509812,509813,509901,509902,509907,509908,510005,510006,510329,510330,510345,510346,511259,511260,511437,511438,511447,511448,511492,511493,512988,512989,513121,513122,513994,513997,514744,514746,514784,514785,515353,515355,515374,515375,515377,515378,515383,515384,515386,515387,515397,515399,515502,515503,515504,515505,524288,524304,525308,525310,526984,526985,527091,527094,527259,527260,527302,527303,528883,528884,539324,539325,539403,539404,548977,548978,557056,557060,571517,571520,573510,573511,574827,574828,574859,574861,575237,575238,575243,575244,575264,575265,575377,575378,575421,575423,575432,575433,575559,575560,576240,576241,576242,576244,577973,587133,587259,587260") && block_image_verify(map_partition("system"), package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat"), ui_print("system recovered successfully."), abort("E1004: system partition fails to recover"));
endif;
if (range_sha1(map_partition("vendor"), "126,1,41,44,45,48,49,52,53,56,60,63,64,67,68,71,72,75,76,767,768,1731,1732,2586,2587,3715,3721,3727,3729,11542,11543,12661,12663,12711,12762,12775,12776,23014,23015,25812,25813,26134,26135,26465,26466,26795,26796,27102,27103,27411,27412,27719,27720,28025,28026,28357,28358,28689,28690,30538,30539,30867,30868,31194,31195,31531,31532,31866,31867,32208,32209,32547,32548,32768,32827,32927,32928,33283,33284,33616,33617,33947,33948,34252,34253,34557,34558,34862,34863,35167,35168,35472,35473,35775,35776,36082,36083,36389,36390,36698,36699,45000,45001,56350,56654,59304,59305,62319,63184,65536,65580,73540,73541,76736,77045,77851,77852,78661,78787,81398,81399,96250,114374,114722,116545,116581,116582") == "535f1e73ff23e51ef80c72abb4a5e91065c6703b" || block_image_verify(map_partition("vendor"), package_extract_file("vendor.transfer.list"), "vendor.new.dat", "vendor.patch.dat")) then
ui_print("Verified vendor image...");
else
check_first_block(map_partition("vendor"));
ifelse (block_image_recover(map_partition("vendor"), "126,1,41,44,45,48,49,52,53,56,60,63,64,67,68,71,72,75,76,767,768,1731,1732,2586,2587,3715,3721,3727,3729,11542,11543,12661,12663,12711,12762,12775,12776,23014,23015,25812,25813,26134,26135,26465,26466,26795,26796,27102,27103,27411,27412,27719,27720,28025,28026,28357,28358,28689,28690,30538,30539,30867,30868,31194,31195,31531,31532,31866,31867,32208,32209,32547,32548,32768,32827,32927,32928,33283,33284,33616,33617,33947,33948,34252,34253,34557,34558,34862,34863,35167,35168,35472,35473,35775,35776,36082,36083,36389,36390,36698,36699,45000,45001,56350,56654,59304,59305,62319,63184,65536,65580,73540,73541,76736,77045,77851,77852,78661,78787,81398,81399,96250,114374,114722,116545,116581,116582") && block_image_verify(map_partition("vendor"), package_extract_file("vendor.transfer.list"), "vendor.new.dat", "vendor.patch.dat"), ui_print("vendor recovered successfully."), abort("E2004: vendor partition fails to recover"));
endif;
if (range_sha1(map_partition("product"), "102,1,15,8700,8701,23315,23316,26419,26420,27095,27096,30396,30397,30759,30760,30772,30773,32768,32776,42362,42363,45171,45172,64669,64670,65536,65542,85919,85920,85927,85928,93277,93278,98304,98312,110931,110932,110986,110987,113405,113406,126984,126985,128480,128481,128504,128505,128527,128528,131072,131078,134832,134833,134841,134843,134846,134847,134848,134849,134851,134852,134865,134866,134869,134871,134872,134873,134874,134875,134886,134887,134888,134891,135340,135341,135712,135713,137198,137199,163840,163876,163877,163878,196608,196637,198520,198521,199183,199184,200677,200678,229376,229384,229385,229386,234723,234724,238561,238564,249092,253043,253106,253107") == "7ae9f204840fdc4da25adc6ed2ca2e1973946081" || block_image_verify(map_partition("product"), package_extract_file("product.transfer.list"), "product.new.dat", "product.patch.dat")) then
ui_print("Verified product image...");
else
ifelse (block_image_recover(map_partition("product"), "102,1,15,8700,8701,23315,23316,26419,26420,27095,27096,30396,30397,30759,30760,30772,30773,32768,32776,42362,42363,45171,45172,64669,64670,65536,65542,85919,85920,85927,85928,93277,93278,98304,98312,110931,110932,110986,110987,113405,113406,126984,126985,128480,128481,128504,128505,128527,128528,131072,131078,134832,134833,134841,134843,134846,134847,134848,134849,134851,134852,134865,134866,134869,134871,134872,134873,134874,134875,134886,134887,134888,134891,135340,135341,135712,135713,137198,137199,163840,163876,163877,163878,196608,196637,198520,198521,199183,199184,200677,200678,229376,229384,229385,229386,234723,234724,238561,238564,249092,253043,253106,253107") && block_image_verify(map_partition("product"), package_extract_file("product.transfer.list"), "product.new.dat", "product.patch.dat"), ui_print("product recovered successfully."), abort("E2004: product partition fails to recover"));
endif;

# ---- start making changes here ----


# --- Start patching dynamic partitions ---


# Patch partition vendor

ui_print("Patching vendor image after verification.");
show_progress(0.100000, 0);
block_image_update(map_partition("vendor"), package_extract_file("vendor.transfer.list"), "vendor.new.dat", "vendor.patch.dat") ||
  abort("E2001: Failed to update vendor image.");

# Update dynamic partition metadata

assert(update_dynamic_partitions(package_extract_file("dynamic_partitions_op_list")));

# Patch partition system

ui_print("Patching system image after verification.");
show_progress(0.700000, 0);
block_image_update(map_partition("system"), package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
  abort("E1001: Failed to update system image.");

# Patch partition product

ui_print("Patching product image after verification.");
show_progress(0.100000, 0);
block_image_update(map_partition("product"), package_extract_file("product.transfer.list"), "product.new.dat", "product.patch.dat") ||
  abort("E2001: Failed to update product image.");

# --- End patching dynamic partitions ---

ui_print("Patching boot image...");
show_progress(0.100000, 10);
patch_partition(concat("EMMC:","/dev/block/platform/bootdevice/by-name/boot",":67108864:913a7450128dcd92eee8f6d910aab08ae7938b84"),
                concat("EMMC:","/dev/block/platform/bootdevice/by-name/boot",":67108864:d4a9f8fd0fc67e94ac8a659c765e607b48a8bb21"),
                package_extract_file("boot.img.p")) ||
    abort(concat(        "E3008: Failed to apply patch to ",concat("EMMC:","/dev/block/platform/bootdevice/by-name/boot",":67108864:d4a9f8fd0fc67e94ac8a659c765e607b48a8bb21")));
show_mtupdate_stage("/cache/recovery/last_mtupdate_stage");
ifelse (
less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "1") ,
(
ui_print("start to update general image");
package_extract_file("dtbo.img", "/dev/block/platform/bootdevice/by-name/dtbo");
package_extract_file("logo.bin", "/dev/block/platform/bootdevice/by-name/logo");
package_extract_file("md1img.img", "/dev/block/platform/bootdevice/by-name/md1img");
package_extract_file("spmfw.img", "/dev/block/platform/bootdevice/by-name/spmfw");
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "1");
),
ui_print("general images are already updated");
);
ifelse (
less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "3") ,
(
if less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "2") then

ui_print("start to update alt loader image");
package_extract_file("sspm.img", "/dev/block/platform/bootdevice/by-name/sspm_2");
package_extract_file("tee.img", "/dev/block/platform/bootdevice/by-name/tee2");
package_extract_file("lk.img", "/dev/block/platform/bootdevice/by-name/lk2");
package_extract_file("scp.img", "/dev/block/platform/bootdevice/by-name/scp2");
if get_storage_type() then 
 assert(package_extract_file("preloader_ufs.img", "/dev/block/mmcblk0boot1"));
else 
 assert(set_emmc_writable("/sys/block/mmcblk0boot1/force_ro"),
        package_extract_file("preloader_emmc.img", "/dev/block/mmcblk0boot1"));
endif;
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "2");
endif;

switch_active("sspm_1", "sspm_2");
switch_active("tee1", "tee2");
switch_active("lk", "lk2");
switch_active("scp1", "scp2");
switch_active("preloader", "preloader2");
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "3");
),
ui_print("alt loder images are already updated");
);
ifelse (
less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "5") ,
(
if less_than_int(get_mtupdate_stage("/cache/recovery/last_mtupdate_stage"), "4") then

ui_print("start to update main loader image");
package_extract_file("sspm.img", "/dev/block/platform/bootdevice/by-name/sspm_1");
package_extract_file("tee.img", "/dev/block/platform/bootdevice/by-name/tee1");
package_extract_file("lk.img", "/dev/block/platform/bootdevice/by-name/lk");
package_extract_file("scp.img", "/dev/block/platform/bootdevice/by-name/scp1");
if get_storage_type() then 
 assert(package_extract_file("preloader_ufs.img", "/dev/block/mmcblk0boot0"));
else 
 assert(set_emmc_writable("/sys/block/mmcblk0boot0/force_ro"),
        package_extract_file("preloader_emmc.img", "/dev/block/mmcblk0boot0"));
endif;
set_mtupdate_stage("/cache/recovery/last_mtupdate_stage", "4");
endif;

switch_active("sspm_2", "sspm_1");
switch_active("tee2", "tee1");
switch_active("lk2", "lk");
switch_active("scp2", "scp1");
switch_active("preloader2", "preloader");
),
ui_print("main loader images are already updated");
);
delete("/cache/recovery/last_mtupdate_stage");
package_extract_file("vbmeta_vendor.img", "/dev/block/platform/bootdevice/by-name/vbmeta_vendor");
package_extract_file("vbmeta_system.img", "/dev/block/platform/bootdevice/by-name/vbmeta_system");
package_extract_file("vbmeta.img", "/dev/block/platform/bootdevice/by-name/vbmeta");
post_ota_action();
set_progress(1.000000);
