I have read about a solution somewhere 2 days ago
Unofficial Pi/e/ Community Build - s4mini Value Edition SM-i9195i "serranovelte" - #14 by piero
So, We have to modify the content of some files in the /e/.zip
to make the build that matching klteactivexx include klteactive codename
1) extract the e-0.18-p-20210815130098-dev-klteactivexx.zip,
2) Open /META-INF/com/android/metadata
we will add klteactive in the last line
pre-device=klteactivexx,klte
will become
pre-device=klteactivexx,klteactive,klte
clic here to compare with /e/ stock metadata for my serranoltexx
ota-property-files=metadata:69:359
ota-required-cache=0
ota-type=BLOCK
post-build=samsung/serranoltexx/serranolte:4.4.2/KOT49H/I9195XXUCQL2:user/release-keys
post-build-incremental=eng.root.20210814.095355
post-sdk-level=30
post-security-patch-level=2021-08-05
post-timestamp=1628934731
pre-device=serranolte,serranoltebmc,serranoltektt,serranoltexx
3) save it in the e-0.18-p-20210815130098-dev-klteactivexx folder,
OR replace the existing metadata by this new metadata,
4) open /META-INF/com/google/android/updater-script
we will insert a line betwenn the fist one and the seconde one
assert(getprop("ro.product.device") == "klteactivexx" || getprop("ro.build.product") == "klteactivexx" ||
getprop("ro.product.device") == "klte" || getprop("ro.build.product") == "klte" || abort("E3004: This package is for device: klteactivexx,klte; this device is " + getprop("ro.product.device") + "."););
will become
assert(getprop("ro.product.device") == "klteactivexx" || getprop("ro.build.product") == "klteactivexx" ||
getprop("ro.product.device") == "klteactive" || getprop("ro.build.product") == "klteactive" ||
getprop("ro.product.device") == "klte" || getprop("ro.build.product") == "klte" || abort("E3004: This package is for device: klteactivexx,klte; this device is " + getprop("ro.product.device") + "."););
clic here to compare with /e/ stock metadata for my serranoltexx
assert(getprop("ro.product.device") == "serranolte" || getprop("ro.build.product") == "serranolte" ||
getprop("ro.product.device") == "serranoltebmc" || getprop("ro.build.product") == "serranoltebmc" ||
getprop("ro.product.device") == "serranoltektt" || getprop("ro.build.product") == "serranoltektt" ||
getprop("ro.product.device") == "serranoltexx" || getprop("ro.build.product") == "serranoltexx" || abort("E3004: This package is for device: serranolte,serranoltebmc,serranoltektt,serranoltexx; this device is " + getprop("ro.product.device") + "."););
5) save it in the e-0.18-p-20210815130098-dev-klteactivexx folder,
OR replace the existing updater-script by this new updater-script,
6) make a .ZIP from the e-0.18-p-20210815130098-dev-klteactivexx folder.
7) rename the new .ZIP
OR download the modified Build to test e-0.18-p-20210815-modified-for-klteactive
8) try to install it with TWRP for the klte familly
.
please share your feedback…
.
https://forum.xda-developers.com/t/tutorial-the-updater-script-completely-explained.2377695/
.