[VENDOR] [surya/karna] Unified - All Custom ROMS [10] & [11]

Status
Not open for further replies.
Search This thread

janhammer504

Senior Member
Feb 16, 2020
158
147

PHP:
/*
* I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
* Please do some research if you have any concerns about features included in the products you find here before flashing it!
* YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
* Your warranty will be void if you tamper with any part of your device / software.
* Same statement for XDA.
*/



FEATURES

.
The first, the one and the only custom vendor for dynamic partition in the world : I challenge you all to show me who did it before !
. If you find any custom rom with similar work since the first release of this one : it is just a copied and a stolen work [fake Google roms +++] !!!
. Compatible with all regions / basebands / firmwares / device variants
. Works with All AOSP/CAF based ROMs [10] & [11], Experimental, Official & Unofficial [TESTED]
. May works on fake Google roms but i don't take any responsibility
. Mount RO/RW available with no bootloop after reboot ! [Magisk/SU required]
. SafetyNet passed
. Full test passed : audio, ril, wifi, bt, fm radio, camera, sensors, fp scanner, nfc, ...
. All known hardware issues on custom roms are fixed : camera, wifi, bt, hdr playback, chrome ... and overheating !
. Custom Kernel with stock zImage [untouched +++]



IMPORTANT !
.
NO firmware change is needed from the user side, so don't repeat this question many times ... just read up again !
. Formatting /data is required when you flash this vendor the first time +++
. Never go back to the previous versions due to the possible build.fingerprint change [Old releases are automatically removed] +++
. Dirty Update : always delete with file/root explorer or in TWRP this folder :
/data/property and reboot


You must delete these files & folders in /product partition from your custom rom
[File/Root explorer needed] :

/product/vendor_overlay/29/etc/audio
/product/vendor_overlay/29/etc/audio_policy_configuration.xml

/product/vendor_overlay/29/etc/audio_policy_engine_configuration.xml
/product/vendor_overlay/29/lib/soundfx
/product/vendor_overlay/29/lib64/soundfx


&

/product/vendor_overlay/29/etc/wifi

/product/vendor_overlay/29/overlay


& finally

/product/vendor_overlay/29/etc/qdcm_calib_data_nt36672c_huaxing_fhd_video_mode_dsi_panel.xml
/product/vendor_overlay/29/etc/qdcm_calib_data_nt36672c_tianma_fhd_video_mode_dsi_panel.xml


Already included in this vendor ... and since i'm the original author !




[ OPTIONAL ]
If you have the madness and the paranoia with security like Google, you can still relock /vendor again to the stock RO state ... But you will not be able to mount /vendor RW again even with root until you reflash the provided vendor.zip again !

How to [terminal or adb shell] :
su
tune2fs -O verity /dev/block/dm-1




*******



!!!

MIUI Users : sorry for you, but this is for custom ROMS " ONLY "

TROLLS & NOOBS, stay away ... Please !
!!!



Prerequisite:

POCO X3 NFC = surya
POCO X3 [no NFC] = karna

No matter where you live : india, china, russia, europe, usa or africa ... !


Kernel Source [Prebuilt] : Here


Created : 2021-02-27
Latest Update : 2021-03-21



DOWNLOAD
 

Attachments

  • RO.png
    RO.png
    103.7 KB · Views: 901
  • RW.png
    RW.png
    103.1 KB · Views: 908
  • Screenshot_20090101-000000_Settings_WiFi_2.4GHz.png
    Screenshot_20090101-000000_Settings_WiFi_2.4GHz.png
    157.9 KB · Views: 603
  • Screenshot_20090101-000000_Settings_WiFi_5GHz.png
    Screenshot_20090101-000000_Settings_WiFi_5GHz.png
    158.3 KB · Views: 616
  • Screenshot_20090101-000000_CPU-Z.png
    Screenshot_20090101-000000_CPU-Z.png
    229.2 KB · Views: 650
Last edited:

janhammer504

Senior Member
Feb 16, 2020
158
147
RESERVED for "Changelog"

Update : [2021-03-21] Highly Recommended !

- overlay folder [/vendor] : secure & total remove ... R.I.P forever ! :sneaky:

You can now remove it from here too ... with no issue :
/product/vendor_overlay/29/overlay

[As always : no /data formatting is required if done in the previous builds !]


Update : [2021-03-20]
fix compatibility with all custom roms [10] & [11] +++ :
- build : preserve AVB structure [R/W still available in root mode] :sneaky:
- tune2fs : restore some stock feature flags [dir_index, huge_file, extra_isize]
- fstab [kernel & vendor] : small update
- vendor selinux : property_contexts fix
- build.prop : clean-up


Update : [2021-03-18]
clean-up & rework from scratch :
. all audio config [over 20 files +++]
. all media_codecs config
. new mixer_paths

[=> Exclusive]
- true resampling fix : r.i.p audio crackling and all audio issues in UX, Dialer, emulators ... etc [forever]
- improve audio & camera recording
- audio/video playback [Speaker, Headphones & BT] : Hi-Fi quality, loud & noiseless

[but first, you must delete these files with your File/Root Explorer:
/product/vendor_overlay/29/etc/audio
/product/vendor_overlay/29/etc/audio_policy_configuration.xml

/product/vendor_overlay/29/etc/audio_policy_engine_configuration.xml
/product/vendor_overlay/29/lib/soundfx
/product/vendor_overlay/29/lib64/soundfx
]


Update : [2021-03-12]
- move to global 12.0.8.0 as firmware base [boot & vendor]
- ramdisk :
. disable mi_thermald and re-enable again thermal-engine
[on all custom roms : mi_thermald breaks the proximity sensor & suspend service in deepsleep => avoid hand wave gesture & AOD to work properly !]
. clean up & update

- vendor_selinux : add more camera permissions in property_contexts

- media_codecs : remove unused .xml
- ueventd.rc : rework from scratch


Update : [2021-03-07]
- ramdisk :
. update cpuset & schedtune settings
. improve memory multitasking
. make that "damn" fingerprint truly responsive (y)
. enable UFS powersaving
. some clean-up & disable MIUI audio service

- media_profiles :
. rework from scratch
. add slow motion profile support : up to 1080p/120 fps & 720p/960 fps
. front video camera : add 4K support

- build.prop :
=> update parameters for : camera, ril, performance, playback ... and more


Update : [2021-03-05]
- rework from scratch : init.qcom.sh & init.qcom.post_boot.sh
- ramdisk : clean-up and add init.qcom.power.rc
. fix CPU instability : set 300 mHz as CPU minimum frequency for all cores / update schedutil governor parameters
. cpu_boost : improve touch responsiveness
. add built-in display power saving [for both huaxing & tianma panels]

- vendor permissions : rebuild from scratch / fix wronlgy settled paths (by Xiaomi) in some qti.xml

- camera : rework from scratch ISO/lowlight config

- remove dummy hbtp folder ... since there is no binary to load or device specific config
- targetconfig : update CoreCtlCpu to [0,6]
- build.prop : clean up and move NFC parameters to build_surya.prop
- [Bonus] : Wi-Fi signal improved (x2) !!! :)
. 2.4 Ghz : 144 => 300
. 5 GHz : 433 => 866

[but first, you must delete this folder, with your File/Root Explorer :
/product/vendor_overlay/29/etc/wifi ]


Update : [2021-03-01]
- update msm_irqbalance.conf
- update audio_effects.conf & remove audio_effects.xml
- universal vbmeta & vbmeta_system added


Update : [2021-02-27]
- initial release
- rework all build.prop (vendor & odm) from scratch
- debloated from unused MIUI folders, files & configs
- Kernel :
. enforcing selinux by default
. workqueue enabled in cmdline => better dynamic refresh rate handling by the CPU & stellar deep-sleep
. fstab reworked from scratch
 
Last edited:

jeryll

Senior Member
  • Dec 23, 2010
    781
    601
    Xiaomi Poco X3 NFC
    Redmi Note 10 Pro
    PREREQUISITE

    - adb enabled (developer options)
    - root (Magisk/SU)
    - adb for Windows (Minimal ADB and Fastboot, provided)
    - USB cable always connected


    LIVE Flashing :

    adb shell
    su
    dd if=/sdcard/vendor.img of=/dev/block/dm-1


    View attachment 5232189


    Reboot your phone right away ... then use your File/Root Explorer to test the mount RO/RW option and reboot again to check that there is no bootloop !


    (Optional)
    If you have the madness and the paranoia with security like Google, you can still re-enable AVB/Verity again ... But you will not be able to mount /vendor RW again even with root until you reflash the provided vendor.img again !

    tune2fs -O verity /dev/block/dm-1

    Check the full tutorial here to build your own custom vendor ... if you want !



    DOWNLOAD
    ... so, I can confirm that this is indeed working nicely, flashed RW vendor for Surya, just for the sake of the functionality, because I'm not sure about benefits I can get from writeable vendor (forgive my ignorance)...

    ... Thank you very much for your hard work...

    just FYI I did flash it in Ofox recovery in built-in terminal, and also directly from running Android via Termux, so you don't need PC for it, just saying...
     
    • Like
    Reactions: pnin and aallii2

    janhammer504

    Senior Member
    Feb 16, 2020
    158
    147
    ... so, I can confirm that this is indeed working nicely, flashed RW vendor for Surya, just for the sake of the functionality, because I'm not sure about benefits I can get from writeable vendor (forgive my ignorance)...

    ... Thank you very much for your hard work...

    just FYI I did flash it in Ofox recovery in built-in terminal, and also directly from running Android via Termux, so you don't need PC for it, just saying...

    i use adb shell because terminal is too small for me, and for making tutorial.

    the benefit ??? well there are a bunch of fixes to do in /vendor... check here for example

    (the images i provided are clean with no modification, so i let developers or users doing their own modifications)
     
    Last edited:
    • Like
    Reactions: pnin and jeryll

    aallii2

    Member
    Dec 6, 2013
    29
    2
    ... so, I can confirm that this is indeed working nicely, flashed RW vendor for Surya, just for the sake of the functionality, because I'm not sure about benefits I can get from writeable vendor (forgive my ignorance)...

    ... Thank you very much for your hard work...

    just FYI I did flash it in Ofox recovery in built-in terminal, and also directly from running Android via Termux, so you don't need PC for it, just saying...
    hey bro how you flashed in orangefox?
    i tried but this happened:
    sh: adb: command not found
     

    aallii2

    Member
    Dec 6, 2013
    29
    2
    O.M.G

    it looks like you never used terminal

    this is not a flashable file, it's a command line.

    open terminal in your recovery to do that.
    or use adb shell
    in recovery adb not needed, just use
    dd if=/sdcard/vendor.img of=/dev/block/dm-1
    Now this came:
    write error: Operation not permitted
    in recovery adb not needed, just use
    dd if=/sdcard/vendor.img of=/dev/block/dm-1
    Now this came:
    write error: Operation not permitted
     

    janhammer504

    Senior Member
    Feb 16, 2020
    158
    147
    Use Minimal ADB and Fastboot.zip, it's the simplest and the fastest way.

    Unzip and click on Minimal ADB and Fastboot.exe

    type :

    adb shell
    su

    It works like terminal in Windows. You can't go wrong !

    Follow the instructions (1 post) !
     
    • Like
    Reactions: aallii2

    aallii2

    Member
    Dec 6, 2013
    29
    2
    Use Minimal ADB and Fastboot.zip, it's the simplest and the fastest way.

    Unzip and click on Minimal ADB and Fastboot.exe

    type :

    adb shell
    su

    It works like terminal in Windows. You can't go wrong !

    Follow the instructions (1 post) !
    i installed 12.0.7.0 global with magisk 22.0 then flashed vendor.img v12.0.7.0 but when restarted it stucked n i pressed power .phone boot but root explorer can't mount rw n just added shell in magisk
     
    Status
    Not open for further replies.

    Top Liked Posts

    • There are no posts matching your filters.
    • 8

      PHP:
      /*
      * I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
      * Please do some research if you have any concerns about features included in the products you find here before flashing it!
      * YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
      * Your warranty will be void if you tamper with any part of your device / software.
      * Same statement for XDA.
      */



      FEATURES

      .
      The first, the one and the only custom vendor for dynamic partition in the world : I challenge you all to show me who did it before !
      . If you find any custom rom with similar work since the first release of this one : it is just a copied and a stolen work [fake Google roms +++] !!!
      . Compatible with all regions / basebands / firmwares / device variants
      . Works with All AOSP/CAF based ROMs [10] & [11], Experimental, Official & Unofficial [TESTED]
      . May works on fake Google roms but i don't take any responsibility
      . Mount RO/RW available with no bootloop after reboot ! [Magisk/SU required]
      . SafetyNet passed
      . Full test passed : audio, ril, wifi, bt, fm radio, camera, sensors, fp scanner, nfc, ...
      . All known hardware issues on custom roms are fixed : camera, wifi, bt, hdr playback, chrome ... and overheating !
      . Custom Kernel with stock zImage [untouched +++]



      IMPORTANT !
      .
      NO firmware change is needed from the user side, so don't repeat this question many times ... just read up again !
      . Formatting /data is required when you flash this vendor the first time +++
      . Never go back to the previous versions due to the possible build.fingerprint change [Old releases are automatically removed] +++
      . Dirty Update : always delete with file/root explorer or in TWRP this folder :
      /data/property and reboot


      You must delete these files & folders in /product partition from your custom rom
      [File/Root explorer needed] :

      /product/vendor_overlay/29/etc/audio
      /product/vendor_overlay/29/etc/audio_policy_configuration.xml

      /product/vendor_overlay/29/etc/audio_policy_engine_configuration.xml
      /product/vendor_overlay/29/lib/soundfx
      /product/vendor_overlay/29/lib64/soundfx


      &

      /product/vendor_overlay/29/etc/wifi

      /product/vendor_overlay/29/overlay


      & finally

      /product/vendor_overlay/29/etc/qdcm_calib_data_nt36672c_huaxing_fhd_video_mode_dsi_panel.xml
      /product/vendor_overlay/29/etc/qdcm_calib_data_nt36672c_tianma_fhd_video_mode_dsi_panel.xml


      Already included in this vendor ... and since i'm the original author !




      [ OPTIONAL ]
      If you have the madness and the paranoia with security like Google, you can still relock /vendor again to the stock RO state ... But you will not be able to mount /vendor RW again even with root until you reflash the provided vendor.zip again !

      How to [terminal or adb shell] :
      su
      tune2fs -O verity /dev/block/dm-1




      *******



      !!!

      MIUI Users : sorry for you, but this is for custom ROMS " ONLY "

      TROLLS & NOOBS, stay away ... Please !
      !!!



      Prerequisite:

      POCO X3 NFC = surya
      POCO X3 [no NFC] = karna

      No matter where you live : india, china, russia, europe, usa or africa ... !


      Kernel Source [Prebuilt] : Here


      Created : 2021-02-27
      Latest Update : 2021-03-21



      DOWNLOAD
      5
      RESERVED for "Changelog"

      Update : [2021-03-21] Highly Recommended !

      - overlay folder [/vendor] : secure & total remove ... R.I.P forever ! :sneaky:

      You can now remove it from here too ... with no issue :
      /product/vendor_overlay/29/overlay

      [As always : no /data formatting is required if done in the previous builds !]


      Update : [2021-03-20]
      fix compatibility with all custom roms [10] & [11] +++ :
      - build : preserve AVB structure [R/W still available in root mode] :sneaky:
      - tune2fs : restore some stock feature flags [dir_index, huge_file, extra_isize]
      - fstab [kernel & vendor] : small update
      - vendor selinux : property_contexts fix
      - build.prop : clean-up


      Update : [2021-03-18]
      clean-up & rework from scratch :
      . all audio config [over 20 files +++]
      . all media_codecs config
      . new mixer_paths

      [=> Exclusive]
      - true resampling fix : r.i.p audio crackling and all audio issues in UX, Dialer, emulators ... etc [forever]
      - improve audio & camera recording
      - audio/video playback [Speaker, Headphones & BT] : Hi-Fi quality, loud & noiseless

      [but first, you must delete these files with your File/Root Explorer:
      /product/vendor_overlay/29/etc/audio
      /product/vendor_overlay/29/etc/audio_policy_configuration.xml

      /product/vendor_overlay/29/etc/audio_policy_engine_configuration.xml
      /product/vendor_overlay/29/lib/soundfx
      /product/vendor_overlay/29/lib64/soundfx
      ]


      Update : [2021-03-12]
      - move to global 12.0.8.0 as firmware base [boot & vendor]
      - ramdisk :
      . disable mi_thermald and re-enable again thermal-engine
      [on all custom roms : mi_thermald breaks the proximity sensor & suspend service in deepsleep => avoid hand wave gesture & AOD to work properly !]
      . clean up & update

      - vendor_selinux : add more camera permissions in property_contexts

      - media_codecs : remove unused .xml
      - ueventd.rc : rework from scratch


      Update : [2021-03-07]
      - ramdisk :
      . update cpuset & schedtune settings
      . improve memory multitasking
      . make that "damn" fingerprint truly responsive (y)
      . enable UFS powersaving
      . some clean-up & disable MIUI audio service

      - media_profiles :
      . rework from scratch
      . add slow motion profile support : up to 1080p/120 fps & 720p/960 fps
      . front video camera : add 4K support

      - build.prop :
      => update parameters for : camera, ril, performance, playback ... and more


      Update : [2021-03-05]
      - rework from scratch : init.qcom.sh & init.qcom.post_boot.sh
      - ramdisk : clean-up and add init.qcom.power.rc
      . fix CPU instability : set 300 mHz as CPU minimum frequency for all cores / update schedutil governor parameters
      . cpu_boost : improve touch responsiveness
      . add built-in display power saving [for both huaxing & tianma panels]

      - vendor permissions : rebuild from scratch / fix wronlgy settled paths (by Xiaomi) in some qti.xml

      - camera : rework from scratch ISO/lowlight config

      - remove dummy hbtp folder ... since there is no binary to load or device specific config
      - targetconfig : update CoreCtlCpu to [0,6]
      - build.prop : clean up and move NFC parameters to build_surya.prop
      - [Bonus] : Wi-Fi signal improved (x2) !!! :)
      . 2.4 Ghz : 144 => 300
      . 5 GHz : 433 => 866

      [but first, you must delete this folder, with your File/Root Explorer :
      /product/vendor_overlay/29/etc/wifi ]


      Update : [2021-03-01]
      - update msm_irqbalance.conf
      - update audio_effects.conf & remove audio_effects.xml
      - universal vbmeta & vbmeta_system added


      Update : [2021-02-27]
      - initial release
      - rework all build.prop (vendor & odm) from scratch
      - debloated from unused MIUI folders, files & configs
      - Kernel :
      . enforcing selinux by default
      . workqueue enabled in cmdline => better dynamic refresh rate handling by the CPU & stellar deep-sleep
      . fstab reworked from scratch
      4
      Update : Unified vendor (surya/karna) uploaded.

      Check OP for more informations !

      (y)
      3
      Update 2021-03-21

      Read the changelog [OP]

      Spring Gift :)
      2
      i'm sure i will never be able to write here again... so i anticipate and ask a good moderator to take care or close this thread.

      There was few people who deserve my respect : gardiol, SkaboXD and jeryll and others i forgot to mention.

      Thank You all and good luck in the real life. Don't waste too much time here in the virtual life !

      Cheers
    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone