Invalid Xiaomi Redmi Note 12 4G codename: sweetk6a (Install Zip Failed)


Status
Not open for further replies.

zheayy_

Members
Dec 27, 2021
9
13
I can't install the rom.
I using Xiaomi Redmi Note 12 4G and I download the right rom.
TWRP also right.
All source file that I download is from this website.

Can someone help me, I cant flash any rom right now.
 

Attachments

  • WhatsApp Image 2023-09-16 at 23.27.36.jpg
    WhatsApp Image 2023-09-16 at 23.27.36.jpg
    474.4 KB · Views: 129
I can't install the rom.
I using Xiaomi Redmi Note 12 4G and I download the right rom.
TWRP also right.
All source file that I download is from this website.

Can someone help me, I cant flash any rom right now.
You need to edit the script in the zip file to include sweet_k6a instead of sweet.
Then it will work for u.
After u edit the script, make sure to update the zip file with updated script.
And then copy new zip to phone and flash.

All this, is assuming u have actually downloaded the correct ROM.
If not, the above will brick your phone...

Sent from my Xiaomi 12 using Tapatalk
 
You need to edit the script in the zip file to include sweet_k6a instead of sweet.
Then it will work for u.
After u edit the script, make sure to update the zip file with updated script.
And then copy new zip to phone and flash.

All this, is assuming u have actually downloaded the correct ROM.
If not, the above will brick your phone...

Sent from my Xiaomi 12 using Tapatalk

Thank you for solutionI will try later...
I want to let you know that its work if I install using fastboot method"


Sent from my iPhone using Tapatalk
 
Another option would be to delete the line that checks the phone model...
But again, if the rom doesn't fit, you will be bricked

Sent from my Xiaomi 12 using Tapatalk
 
Thank you for solutionI will try later...
I want to let you know that its work if I install using fastboot method"


Sent from my iPhone using Tapatalk
Fastboot uses a different way of installing, makes sense.
When u use TWRP, it uses an installation script.
But if u installed with fastboot, then u're good

Sent from my Xiaomi 12 using Tapatalk
 
  • Like
Reactions: zheayy_
Fastboot uses a different way of installing, makes sense.
When u use TWRP, it uses an installation script.
But if u installed with fastboot, then u're good

Sent from my Xiaomi 12 using Tapatalk

Thank you man for explanation
I really appreciate it.


Sent from my iPhone using Tapatalk
 
Looks like that TWRP's developer thought that an actual ro.product.device value of "sweet_k4a" exists, which is a mistake.
You can solve it like mentioned above, or report to the TWRP's developer to fix his code, or use another TWRP.
 
  • Like
Reactions: zheayy_
Looks like that TWRP's developer thought that an actual ro.product.device value of "sweet_k4a" exists, which is a mistake.
You can solve it like mentioned above, or report to the TWRP's developer to fix his code, or use another TWRP.

Okay but I cant find other TWRP for this device...
How can I change ro.product.device value ?


Sent from my iPhone using Tapatalk
 
You need to edit the script in the zip file to include sweet_k6a instead of sweet.
Then it will work for u.
After u edit the script, make sure to update the zip file with updated script.
And then copy new zip to phone and flash.

All this, is assuming u have actually downloaded the correct ROM.
If not, the above will brick your phone...

Sent from my Xiaomi 12 using Tapatalk

Hello again, Where can I find the script...
I already extact the zip file but I cant find script file'


Sent from my iPhone using Tapatalk
 
Inside the folders, I can't remember by heart but it is under Android, maybe under meta, look inside the folders and u will find the script, there are 2 files, one is a binary one (do not change it) and the other is the script.

Sent from my Xiaomi 12 using Tapatalk
 
  • Like
Reactions: zheayy_
Inside the ROM's ZIP: META-INF/com/google/android/updater-script
On first line, change:
Code:
getprop("ro.product.device") == "sweet"
To:
Code:
getprop("ro.product.device") == "sweet_k6a"
 
  • Like
Reactions: zheayy_
Inside the ROM's ZIP: META-INF/com/google/android/updater-script
On first line, change:
Code:
getprop("ro.product.device") == "sweet"
To:
Code:
getprop("ro.product.device") == "sweet_k6a"

Alright, thank you


Sent from my iPhone using Tapatalk
 
Status
Not open for further replies.