Skip to content

Commit c246b94

Browse files
committed
fix(HONOR): retrive 'ro.build.product' from 'product_h'
Change-Id: Idc748e86ee86a0165f41d34c0703fb497dbf10ec
1 parent 833042e commit c246b94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

extract_and_push.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ fingerprint=$(rg -m1 -INoP --no-messages "(?<=^ro.odm.build.fingerprint=).*" odm
683683
fingerprint=$(echo "$fingerprint" | head -1)
684684

685685
codename=$(rg -m1 -INoP --no-messages "(?<=^ro.product.odm.device=).*" odm/etc/build*.prop | head -1)
686+
[[ -z ${codename} ]] && codename=$(rg -m1 -INoP --no-messages "(?<=^ro.build.product=).*" product_h/etc/prop/local*.prop | head -1)
686687
[[ -z ${codename} ]] && codename=$(rg -m1 -INoP --no-messages "(?<=^ro.product.odm.device=).*" system/system/build_default.prop)
687688
[[ -z ${codename} ]] && codename=$(rg -m1 -INoP --no-messages "(?<=^ro.product.device=).*" odm/etc/fingerprint/build.default.prop)
688689
[[ -z ${codename} ]] && codename=$(rg -m1 -INoP --no-messages "(?<=^ro.product.device=).*" my_manifest/build*.prop)

0 commit comments

Comments
 (0)