• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Convert Redmi K20 to Mi 9T (ONLY Xiaomi.eu BETA 20.3.26 & STABLE 11.0.2)

Search This thread
Apr 12, 2019
29
26
22
Pederneiras
The purpose of this topic is to teach you how to turn Redmi K20 to Mi 9T on xiaomi.eu by changing bootanimation, bootlogo, device name, camera watermark. Remember that this tested in Xiaomi.eu Beta 20.3.26 and Stable 11.0.2, if you use another version may occur bugs. Sorry for my english, I used google translator to make this post. I'm a Brazilian and I'm just trying to help.
NOTE: ROOT MAGISK AND TWRP WILL BE REQUIRED TO MAKE THE CHANGES.

***** FLASH FILES - UPDATED: March 26, 2020 - NEEDED: MAGISK & TWRP (ONLY XIAOMI.EU)*****
FLASH FILE TO APPLY ALL MODIFICATIONS (UPDATED TO XIAOMI.EU BETA 20.3.26): https://drive.google.com/file/d/1UPeTmX09lzuDhZWEwCP-wmWqa69y7VU2
FLASH FILE TO APPLY ALL MODIFICATIONS (UPDATED TO XIAOMI.EU STABLE 11.0.2): [url]https://drive.google.com/file/d/1uVdz72FAvDpc384VA10BT4wl6ABQRmoX[/URL]
NOTE: CLEAN ALL CAMERA DATA TO WORK. The camera application used on this one is from Xiaomi.eu 20.3.26 and 11.0.2, use in another ROM may occur BUGS.


*** TUTORIAL TO APPLY MANUAL MODIFICATIONS (FOR OTHER ROMs) ***
BootLogo Mi (FLASH TWRP): View attachment 4915397

BootAnimation Mi: View attachment 4915401
Use the ROOT file explorer to replace the bootanimation in the "system/media" folder and give the necessary permissions, as in the following image: [url]https://i.imgur.com/1bFwjPL.jpg[/URL]
Restart your phone to take effect.

To rename the device you will need to change the build.prop which is in the "system" folder:
Step 1: Edit this line: ro.product.system.model=Mi 9T
Step 2: Create this line: ro.product.model=Mi 9T
Restart your phone to take effect.

Camera Watermark (SHOT ON MI 9T) (FOR BETA 20.3.26): https://drive.google.com/file/d/1_NHECFPmKrzmrn7RWTuvri1ZhNFhsetm
Camera Watermark (SHOT ON MI 9T) (FOR STABLE 11.0.2): [url]https://drive.google.com/file/d/1BxyNI5akVGZPRM5lfQXiJEvdU-ngQAfQ[/URL]
Use the ROOT file explorer to replace the MiuiCamera in the "system/priv-app/MiuiCamera" folder and give the necessary permissions, as in the following image: [url]https://i.imgur.com/3eizb1t.jpg[/URL]
NOTE: Restart phone to take effect and clear camera app data.
 
Last edited:

Micdu70

Senior Member
Feb 22, 2018
555
232
France
Last edited:

MrTheMake

Member
Jun 4, 2019
10
4
I created my own version (should work for any MIUI 11 Android 10 beta version, and maybe stable), check it => ....

:)

EDIT: v2 => Modify media volume steps to stock version and edit "build.prop" inside /vendor partition.

I applied this to Xiaomi.eu Stable v11.0.2 (Android 10) and now my camera app isn't launching anymore. It just keeps crashing. The boot animation and the model changed to Mi 9T, though.
 

Micdu70

Senior Member
Feb 22, 2018
555
232
France
I applied this to Xiaomi.eu Stable v11.0.2 (Android 10) and now my camera app isn't launching anymore. It just keeps crashing. The boot animation and the model changed to Mi 9T, though.

So I will create a zip package without Camera mod for Stable users. Thanks for testing. :)

On Xiaomi.eu forum => https://xiaomi.eu/community/threads/redmi-k20-to-mi-9t-conversion-patch-miui-11.54074/

---------- Post added at 05:03 PM ---------- Previous post was at 04:42 PM ----------

I applied this to Xiaomi.eu Stable v11.0.2 (Android 10) and now my camera app isn't launching anymore. It just keeps crashing. The boot animation and the model changed to Mi 9T, though.

Did you wipe Dalvik&Cache? If not, do it and test Camera again please. :)

---------- Post added at 05:05 PM ---------- Previous post was at 05:03 PM ----------

Step 2: Create this line: ro.product.model=Mi 9T
Restart your phone to take effect.

Is this really needed to create this new line? :)
 
Last edited:

MrTheMake

Member
Jun 4, 2019
10
4

Here it is:
Code:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.camera/com.android.camera.Camera}: android.view.InflateException: Binary XML file line #5 in com.android.camera:layout/v9_main: Binary XML file line #5 in com.android.camera:layout/v9_main: Error inflating class android.widget.TextView
	at android.app.ActivityThread.performLaunchActivity(Unknown Source:621)
	at android.app.ActivityThread.handleLaunchActivity(Unknown Source:47)
	at android.app.servertransaction.LaunchActivityItem.execute(Unknown Source:63)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(Unknown Source:77)
	at android.app.servertransaction.TransactionExecutor.execute(Unknown Source:73)
	at android.app.ActivityThread$H.handleMessage(Unknown Source:43)
	at android.os.Handler.dispatchMessage(Unknown Source:19)
	at android.os.Looper.loop(Unknown Source:242)
	at android.app.ActivityThread.main(Unknown Source:98)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
	at com.android.internal.os.ZygoteInit.main(Unknown Source:275)
Caused by: android.view.InflateException: Binary XML file line #5 in com.android.camera:layout/v9_main: Binary XML file line #5 in com.android.camera:layout/v9_main: Error inflating class android.widget.TextView
Caused by: android.view.InflateException: Binary XML file line #5 in com.android.camera:layout/v9_main: Error inflating class android.widget.TextView
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Constructor.newInstance0(Native Method)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
	at android.view.LayoutInflater.createView(Unknown Source:210)
	at android.view.LayoutInflater.createView(Unknown Source:11)
	at com.android.internal.policy.PhoneLayoutInflater.onCreateView(Unknown Source:8)
	at android.view.LayoutInflater.onCreateView(Unknown Source:0)
	at android.view.LayoutInflater.onCreateView(Unknown Source:0)
	at android.view.LayoutInflater.createViewFromTag(Unknown Source:65)
	at android.view.LayoutInflater.createViewFromTag(Unknown Source:6)
	at android.view.LayoutInflater.rInflate(Unknown Source:92)
	at android.view.LayoutInflater.rInflateChildren(Unknown Source:9)
	at android.view.LayoutInflater.inflate(Unknown Source:107)
	at android.view.LayoutInflater.inflate(Unknown Source:27)
	at android.view.LayoutInflater.inflate(Unknown Source:5)
	at com.android.internal.policy.PhoneWindow.setContentView(Unknown Source:45)
	at android.app.Activity.setContentView(Unknown Source:4)
	at com.android.camera.Camera.onCreate(Unknown Source:307)
	at android.app.Activity.performCreate(Unknown Source:19)
	at android.app.Activity.performCreate(Unknown Source:1)
	at android.app.Instrumentation.callActivityOnCreate(Unknown Source:3)
	at android.app.ActivityThread.performLaunchActivity(Unknown Source:376)
	at android.app.ActivityThread.handleLaunchActivity(Unknown Source:47)
	at android.app.servertransaction.LaunchActivityItem.execute(Unknown Source:63)
	at android.app.servertransaction.TransactionExecutor.executeCallbacks(Unknown Source:77)
	at android.app.servertransaction.TransactionExecutor.execute(Unknown Source:73)
	at android.app.ActivityThread$H.handleMessage(Unknown Source:43)
	at android.os.Handler.dispatchMessage(Unknown Source:19)
	at android.os.Looper.loop(Unknown Source:242)
	at android.app.ActivityThread.main(Unknown Source:98)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
	at com.android.internal.os.ZygoteInit.main(Unknown Source:275)
Caused by: java.lang.UnsupportedOperationException: Failed to resolve attribute at index 4: TypedValue{t=0x2/d=0x1010099 a=1}
	at android.content.res.TypedArray.getColor(Unknown Source:91)
	at android.widget.TextView.readTextAppearance(Unknown Source:209)
	at android.widget.TextView.<init>(Unknown Source:314)
	at android.widget.TextView.<init>(Unknown Source:1)
	at android.widget.TextView.<init>(Unknown Source:3)
	... 32 more
 
Apr 12, 2019
29
26
22
Pederneiras
So I will create a zip package without Camera mod for Stable users. Thanks for testing. :)

On Xiaomi.eu forum => https://xiaomi.eu/community/threads/redmi-k20-to-mi-9t-conversion-patch-miui-11.54074/

---------- Post added at 05:03 PM ---------- Previous post was at 04:42 PM ----------



Did you wipe Dalvik&Cache? If not, do it and test Camera again please. :)

---------- Post added at 05:05 PM ---------- Previous post was at 05:03 PM ----------



Is this really needed to create this new line? :)
Yes, this line needs to be created.
 

Micdu70

Senior Member
Feb 22, 2018
555
232
France
Apr 12, 2019
29
26
22
Pederneiras
Can you send a picture of "About Phone" too? Thanks. :)

---------- Post added at 05:48 PM ---------- Previous post was at 05:44 PM ----------



Okay. :) Does the modded Camera app only working on 9.12.26? Seems not working on MIUI 11 Android 10 (11.0.2) Stable .EU ROM... :(

About Phone (Print): https://i.imgur.com/HnDUzUZ.jpg

In the case of xiaomi.eu 9.12.26, the camera app shows some differences from stable rom, according to the comments an error happens. If possible, send me the stable rom MiuiCamera.apk and I will make the modification and send you to apply the change.
 

Micdu70

Senior Member
Feb 22, 2018
555
232
France
I am not 100 percent sure which screen you mean but here is a screenshot of the "All specs" screen: https://i.imgur.com/6fWRpNz.jpg

Okay it's "All specs" in english, I didn't know that. :)
Something new in latest weekly Beta ROM is missing on Stable to be able to use the modded Camera app, I really don't know how this "MiuiCamera.apk" file was made. :(

---------- Post added at 06:20 PM ---------- Previous post was at 06:16 PM ----------

About Phone (Print): https://i.imgur.com/HnDUzUZ.jpg

In the case of xiaomi.eu 9.12.26, the camera app shows some differences from stable rom, according to the comments an error happens. If possible, send me the stable rom MiuiCamera.apk and I will make the modification and send you to apply the change.

Oh, okay! Many thanks for your modded "9.12.26" Camera app! :)
 
Last edited:
Apr 12, 2019
29
26
22
Pederneiras
Unfortunately, I don't have the MiuiCamera.apk anymore. I also looked into the ROM image and couldn't find such file. Maybe someone else could provide it from the Xiaomi.eu 11.0.2 Android 10 ROM.

I installed 11.0.2 and modified the camera app for this version.
Camera App (SHOT ON MI 9T)(FOR 11.0.2): https://drive.google.com/file/d/1CfS72nDMyrwBwWz244wqH8T4mIaTRsDj

FLASH FILE TO APPLY ALL MODIFICATIONS (UPDATED TO XIAOMI.EU STABLE 11.0.2): https://drive.google.com/file/d/14G74iPeBq-3VkW6fqZG9SU-_y-vEJN_E

NOTE: CLEAN ALL CAMERA DATA TO WORK
 
Last edited:

Micdu70

Senior Member
Feb 22, 2018
555
232
France
I installed 11.0.2 and modified the camera app for this version.
Camera App (SHOT ON MI 9T)(FOR 11.0.2): https://drive.google.com/file/d/1CfS72nDMyrwBwWz244wqH8T4mIaTRsDj

FLASH FILE TO APPLY ALL MODIFICATIONS (UPDATED TO XIAOMI.EU STABLE 11.0.2): https://drive.google.com/file/d/14G74iPeBq-3VkW6fqZG9SU-_y-vEJN_E

I noticed watermarks are created and stored in "/data/data/com.android.camera/files" directory as ".png" files.
Your modded Camera app only create 2 differents watermarks, but I saw 4 differents with original APK ("No AI" and "No triple cameras" modes are missing I think).
Would be nice if someone can share these ".png" files with "Mi 9T" info from Global ROM.
 
Apr 12, 2019
29
26
22
Pederneiras
I noticed watermarks are created and stored in "/data/data/com.android.camera/files" directory as ".png" files.
Your modded Camera app only create 2 differents watermarks, but I saw 4 differents with original APK ("No AI" and "No triple cameras" modes are missing I think).
Would be nice if someone can share these ".png" files with "Mi 9T" info from Global ROM.

Yes exactly so as not to bug it is necessary to clear the data from the camera. It will recreate the watermark files.

Mi 9T Watermark (.webp): https://drive.google.com/file/d/10SYJKrshZndNDYr9WNANaYpkeIEtg5wO
Mi 9T Watermark (.png): https://drive.google.com/file/d/1q-3LKHSU0OtJG-xOfomqbJb8blFq42OG
 

Top Liked Posts