Base: Xiaomi.eu OS3.0.318.0.WPCCNXM for Xiaomi 17 / pudding
This is a modified Xiaomi.eu build addressing region-dependent camera tuning behavior on the Xiaomi 17.
What this mod does
Fixes the camera tuning behavior on the Xiaomi 17 CN model when using affected regional configurations.
The camera is no longer forced onto the CN tuning path simply because of the selected system region.
AVB and dm-verity remain enabled
Root Cause
The functional root cause is relatively small: the ODM CamX configuration redirects a defined list of regions to the CN tuning path through
The important part is how that modification is integrated.
The configuration resides inside the verified ODM logical partition, so modifying it changes the ODM filesystem digest and invalidates the original dm-verity / AVB metadata.
Implementation
Instead of bypassing verification, I rebuilt the integrity chain around the modified ODM:
Result
This is not a from-scratch custom ROM.
It is a modified Xiaomi.eu package. Full credit for the base ROM goes to the Xiaomi.eu Team.
No
Credits
SHA256:
21d697cac30caa766a9d726ffb6fbe27467a616c30c64db44f3a4eb1095bcafd
This is a modified Xiaomi.eu build addressing region-dependent camera tuning behavior on the Xiaomi 17.
What this mod does
Fixes the camera tuning behavior on the Xiaomi 17 CN model when using affected regional configurations.
The camera is no longer forced onto the CN tuning path simply because of the selected system region.
AVB and dm-verity remain enabled
Root Cause
The functional root cause is relatively small: the ODM CamX configuration redirects a defined list of regions to the CN tuning path through
NeedCNTuningDataRegion.The important part is how that modification is integrated.
The configuration resides inside the verified ODM logical partition, so modifying it changes the ODM filesystem digest and invalidates the original dm-verity / AVB metadata.
Implementation
Instead of bypassing verification, I rebuilt the integrity chain around the modified ODM:
- Rebuilt ODM dm-verity hashtree + FEC
- Generated a new ODM AVB root digest / descriptor
- Adjusted the logical
odm_apartition layout - Rebuilt LP / super metadata
- Regenerated the top-level VBMeta with
Flags=0 - Preserved all unrelated AVB descriptors
- Repacked super into Xiaomi.eu-compatible
super.img.0-12
Result
- Region-dependent CN camera tuning override removed
- AVB remains enabled
- VBMeta
Flags=0 - dm-verity remains
enforcing - Camera tested working
- SIM / calls / mobile data tested working
- Reboot tested successfully
This is not a from-scratch custom ROM.
It is a modified Xiaomi.eu package. Full credit for the base ROM goes to the Xiaomi.eu Team.
No
HASHTREE_DISABLED workaround is used in this build.Credits
- Xiaomi.eu Team — Base ROM
- Xiaomi / Qualcomm — Original platform components
- AOSP AVB / liblp tools
xiaomi.eu_PUDDING_OS3.0.318.0.WPCCNXM_16_CAMERA_FIX_HC12.zip
drive.google.com
SHA256:xiaomi.eu_PUDDING_OS3.0.318.0.WPCCNXM_16_CAMERA_FIX_HC12.zip
21d697cac30caa766a9d726ffb6fbe27467a616c30c64db44f3a4eb1095bcafd
Last edited: