Song : Maroon 5 - One More Night

Hotel - F : [★Hotel★™ FAMILY Says Welcome To My Blog.]

Friday, April 24, 2020

6 How to Port Xiaomi Redmi 4X (santoni) Treble and non-Treble ROM to Xiaomi Redmi Note 5A Prime (ugg)

----------------------------------------------------------------------------
Ingredients :

----------------------------------------------------------------------------
Tools :

  • PC.
  • TWRP Recovery or anything similar.
----------------------------------------------------------------------------
Major bugs :

  • Goodix fingerprint not work (but FPC fingerprint work).
Minor bugs :

  • Front camera 4 MP only instead of 16 MP (non-Treble only).
----------------------------------------------------------------------------
Steps to do :

  1. # How to make santoni ROM zip be flashable to ugg device :
    • Prepare santoni ROM in your PC then go to \META-INF\com\google\android in that ROM zip. 
    • Next, extract updater-script and modify that by delete assert line text (leave the empty space) with notepad++. 
    • Then, drag modified updater-script to that ROM \META-INF\com\google\android directory and update zip. 
  2. # How to trebelized ugg device partition table :
    • Boot to TWRP Recovery then flash OrangeFox Treble Recovery.
    • In OrangeFox Recovery, select Wipe > tick Dalvik/ART Cache, System, Data, Cache, and Vendor > slide the slider. 
    • Still in OrangeFox Recovery, select Menu > Manage Partitions > Data > Format Data.
    • Go back to Menu > Reboot > Reboot Recovery.
  3. # How to apply ugg kernel and vendor patch to ported santoni ROM:
    • In OrangeFox Recovery > select Wipe > tick Dalvik/ART Cache, System, Data, Cache, and Vendor > slide the slider. 
    • Copy ported santoni ROM, kernel, and Vendor Patch (Treble or non-Treble ROM) to Internal Storage. 
    • In OrangeFox Recovery, flash that santoni ROM > Kernel > Vendor Patch (Treble or non-Treble ROM). 
    • Extra step for non-Treble ROM if you want to flash Magisk : 
      • Boot to OrangeFox Recovery then flash Vendor Patch (for non-Treble ROM after Flashing Magisk). 
  4. # Finalizing :
    • Reboot System.
  5. # How to change device identity from Xiaomi Redmi 4X to Xiaomi Redmi Note 5A Prime :
    • Modify build.prop in /system to :
      ro.system.build.fingerprint=xiaomi/ugg/ugg:7.1.2/N2G47H/V9.5.8.0.NDKMIFA:user/release-keys
      ro.product.system.model=Redmi Note 5A Prime
      ro.product.system.device=ugg
      ro.product.model=Redmi Note 5A Prime
      ro.product.device=ugg
      ro.build.product=ugg
      ro.build.description=ugg-user 7.1.2 N2G47H V9.5.8.0.NDKMIFA release-keys
      ro.build.fingerprint=xiaomi/ugg/ugg:7.1.2/N2G47H/V9.5.8.0.NDKMIFA:user/release-keys
    • Modify build.prop in /vendor to :
      ro.vendor.build.fingerprint=xiaomi/ugg/ugg:7.1.2/N2G47H/V9.5.8.0.NDKMIFA:user/release-keys
      ro.product.vendor.device=ugg
      ro.product.vendor.model=Redmi Note 5A Prime
      ro.bootimage.build.fingerprint=xiaomi/ugg/ugg:7.1.2/N2G47H/V9.5.8.0.NDKMIFA:user/release-keys
    • Modify build.prop in /vendor/odm/etc to :
      ro.odm.build.fingerprint=xiaomi/ugg/ugg:7.1.2/N2G47H/V9.5.8.0.NDKMIFA:user/release-keys
      ro.product.odm.device=ugg
      ro.product.odm.model=Redmi Note 5A Prime
----------------------------------------------------------------------------
FAQ : 

  • MI logo bootloop even after kernel flash? flash Magisk.
  • Facing offline charging bug? calibrate your battery with Easy Battery Calibration. Still not work? use another ROM.
----------------------------------------------------------------------------
Thanks to
@adislice (for the initial Android 10/Q kernel and recovery build),
@ghiffaryr (for camera, fingerprint, sensor, and sound vendor patch; reboot recovery; DT2W Goodix-TS and FT5435-TS),
@zqm64 (for 16 mp front camera on treble ROM and front flashlight),
and santoni devs that making much great ROM.
----------------------------------------------------------------------------
Changelog :

  • Initial patch build 20/04/2020 at 11:24 WIB.
    • Manually fixing steps.
  • Updated 01/05/2020 at 22:00 WIB.
    • More efficient way to port non-Treble ROM.
  • Updated 02/05/2020 at 11:25 WIB.
    • ctsProfile: false fixed.
  • Updated 07/05/2020 at 21:56 WIB
    • Added flashable zip vendor patch for Treble ROM.
    • Included recent apps button fix to vendor patch.
  • Updated 09/05/2020 at 01:03 WIB
    • Optimized vendor patch.
  • Updated 10/05/2020 at 21:09 WIB
    • Added missing Goodix fingerprint driver (maybe Goodix fingerprint still not fixed anyway).
  • Updated 10/05/2020 at 22:05 WIB
    • Detailed tutorial.
  • Updated 11/05/2020 at 17:14 WIB
    • Green camera fixed - Thanks to @ghiffaryr.
  • Updated 11/05/2020 at 20:38 WIB
    • Auto mount added to vendor patch updater-script.
  • Updated 07/06/2020 at 09:19 WIB
    • 16 MP front camera fixed for Treble ROM - Thanks to @zqm64.
  • Updated 28/06/2020 at 01:54 WIB
    • DT2W enabled by default in kernel for Goodix-TS and FT5435-TS  - Thanks to @ghiffaryr.
    • Reboot recovery fixed - Thanks to @ghiffaryr.
    • Front flashlight enabled by fixing kernel configuration - Thanks to @zqm64.
----------------------------------------------------------------------------

{ 6 komentar... read them below or add one }

  1. Replies
    1. There is a translation function in this blog, i suggest you to use it

      Delete
  2. I suggest making a video tutorial

    ReplyDelete
    Replies
    1. Да, это будет здорово если вы сделаете видео урок

      Delete
    2. Detailed tutorial on 10/05/2020 at 22:05 WIB update

      Delete
  3. I installed the ROM Miui EU pie, but the camera bug and fingerprint still haven't been fixed, I need an update soon, because I like the ROM

    ReplyDelete