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

[EXPLAINED] z2_plus | /factory to /vendor | revert to /factory - TREBLE

Search This thread

kubersharma

Recognized Developer
Dec 30, 2015
1,179
5,651
New Delhi , India

A GUIDE TO FLASH LATEST TREBLE ROMS, OLDER TREBLE ROMS OR NON-TREBLE ROMS ROMS
UPDATE: A guide to rename our /factory partition as /vendor so that you can flash OLDER Android Oreo treble builds! We do not need this guide on Android Pie custom ROMs or for Stock ZUI WE ONLY NEED THIS FOR ANDROID OREO TREBLE BUILDS REQUIRING /factory renamed as /vendor
for Lenovo Zuk Z2 Plus


Latest Treble : /factory renamed i.e switched to /vendor
Older Treble:/factory mounted as /vendor
Non-Treble: Nothing to do with Vendor, Factory stuff lol


INTRO

As you all know that we now have TREBLE, and Zuk-devs are working hard to improve it further so that when the time comes we can move to GSI builds of future Android versions.
Recently, Zuk-devs have renamed the /factory partition into /vendor partition previously we were mounting /factory as /vendor but now it has been converted(renamed) to /vendor partition with this you'll be able to use a Proper Magisk zip, and you don't need a modded/edited Magisk, etc and lotta other kinds of stuff that we will discuss and come to know in the future.


rootdir: fstab: Use the right label for our vendor partition.


TUTORIAL:

What you want to do:

** Flash OLD TREBLE ROMS /factory is renamed to /vendor - NOTE NOT NEEDED FOR NEWER ROMS! **


Instructions:

* Flash "Factory2Vendor_plus.zip",
*Flash below linkedTWRP,
*Reboot To TWRP,
*Flash ROM,
+ GApps / + Magisk etc
* Reboot.
*Enjoy :fingers-crossed:


Downloads:
Factory2Vendor_plus: https://androidfilehost.com/?fid=962187416754475515
treble-TWRP 3.2.2 v2: https://www.androidfilehost.com/?fid=5862345805528044154



** REVERTING BACK to NORMAL aka renaming /vendor back to/factory **

Instructions:

*Flash "Vendor 2Factory_plus.zip",
*Flash LATEST OFFICIAL TWRP,

*Reboot TWRP,
*Flash ROM,
(+ GApps)
*Reboot.
*Enjoy :fingers-crossed:

Downloads:
Vendor2Factory_plus: https://androidfilehost.com/?fid=962187416754475514
https://twrp.me/zuk/zukz2.html


3. Flashing a Non-Treble RoM which has nothing to do with /factory /vendor partition etc.

Instructions:
*Coming from the above procedure, no need to do anything! the new OFFICIAL TWRP will work for Non Treble roms as well and No patches need to be flashed*

*Flash ROM,
+ GApps / + Magisk etc
*Reboot.
*Enjoy :fingers-crossed:



Notes:
  • This 'New TWRP' will work for both Latest Treble and Non-Treble ROMs
  • For ZUI also no need to flash any patch, New TWRP shall work (Needs to be tested)
  • You can flash Non-Treble ROMs and Nougat Builds or other builds with the new TWRP and no patches need to be flashed
  • Once you flash "factory2vendor" or "vendor2factory" you do not need to flash again unless mentioned in the build
    or if you want to revert back to Old Treble ROMs where /factory was mounted as /vendor

CREDITS
Zuk-devs - Davidevinavil, DD3Boh and Cosmedd (https://github.com/zuk-devs)
@Fedor917 for giving the idea
And all others who have contributed in any manner! :highfive:
 
Last edited:

kubersharma

Recognized Developer
Dec 30, 2015
1,179
5,651
New Delhi , India
Team win recovery project - 3.2.2 - treble [unofficial]

Treble supported TWRP 3.2.2 ONLY FOR ROMS with /factory renamed as /vendor

CHANGELOGS:
V1-
Device Specific:-
- Persist option
- Download Mode (edl)
- Fixed Partition Size
- Update the kernel image to get the latest commits for ext4, f2fs etc (cosmedd)
- Default brightness to 40%
General:
- adb backup fixes
- OTA style update zips will now install automatically without prompting for decrypt
- minor tweaks to handling date/time on Qualcomm devices
- updates to some language translations
V2-
- Vendor Wiping option
- Persist Backup/Restore
- Splash backup/restore and now can be flashed via img


DOWNLOAD:
https://androidfilehost.com/?fid=5862345805528044154

Source Code:

SPECIAL THANKS TO
Alvaro
DD3Boh
Cosmedd
DavideVinavil
Pavan & Starman for testing!


FOR ANYTHING ELSE OR NORMAL TREBLE BUILDS (aka just using /factory) or NON TREBLE BUILDS USE ONLY FROM:
https://forum.xda-developers.com/le...-official-teamwin-recovery-project-3-t3899166
 
Last edited:

kubersharma

Recognized Developer
Dec 30, 2015
1,179
5,651
New Delhi , India
So we'll have an updated TWRP for this full treble now? Is it still backward compatible with non treble rom like the partial one?

New TWRP is for New Treble ROMs where /factory partition has been renamed to /vendor partition and It is for all the Non Treble Builds

Old TWRP is for Partial/Full Treble ROMs where /factory partition is mounted as /vendor partition
 
Last edited:
  • Like
Reactions: Vishwanath01

vuckovic_stefan

Senior Member
Apr 15, 2015
1,655
1,070
Niš
Thanks for the detailed instructions!

I was before on non treble builds and as instructed on AEX thread (Davide recommendation) I flashed Zuk stock ZUI rom (Oreo)

Than I flashed partial treble rom with new TWRP he instructed, and also future full treble roms.

Now I'm on latest 5.4

I once did revert to 5.2 but before that I wiped everything and installed old TWRP and made come back to 5.2

But as new build came out fast with fixes I flashed again TWRP with treble support and flashed 5.4 rom

My question is do I need to do any step here explained or not?

Everything working fine here, TWRP saw and flashed vendor partition.

Thanks for answer in advance
 
May 16, 2015
8
1
I couldn't understand completely
Im on latest AEX With developers twrp

Should i flash New Twrp first and then the factory package
Or its the opposite

And which factory zip should i flash
To be on the next AEX version
 

frozenfirevr

Senior Member
Mar 15, 2013
221
79
Chennai
Now I'm on AEX 5.4 with the treble TWRP from #2...

So with the next build I should flash the Factory2Vendor.zip then a new (official?) TWRP img and then (after a recovery reboot) clean install the new build as usual? @kubersharma
 

anjath

Senior Member
Dec 15, 2011
618
108
Does New Twrp (#1) can Be used for Non Treble ROMs.?

Yes you may. Already mention by Kuber somewhere in the first page.

---------- Post added at 01:37 PM ---------- Previous post was at 01:29 PM ----------

Thanks for the detailed instructions!

I was before on non treble builds and as instructed on AEX thread (Davide recommendation) I flashed Zuk stock ZUI rom (Oreo)

Than I flashed partial treble rom with new TWRP he instructed, and also future full treble roms.

Now I'm on latest 5.4

I once did revert to 5.2 but before that I wiped everything and installed old TWRP and made come back to 5.2

But as new build came out fast with fixes I flashed again TWRP with treble support and flashed 5.4 rom

My question is do I need to do any step here explained or not?

Everything working fine here, TWRP saw and flashed vendor partition.

Thanks for answer in advance

I suggest you follow steps in part 1 again so that you can clean flash AEX 5.4 04/16 build.

Further can you advice best way to flash Oreo zui and revert back to latest AEX? I assume bootloader gets locked when you flash back to Oreo zui? Do advice.
 

lokendra17

Senior Member
Mar 8, 2017
95
21
need to do full wipe before flash rom?
No need to full wipe...you can dirty flash aex rom over 11/04 built

---------- Post added at 09:50 AM ---------- Previous post was at 09:44 AM ----------

Will flashing the mentioned zips on AEX 5.4 do any harm ? It's official one and treble TWRP only.
No...it will not do any harm....it only rename /factory partition to /vendor partition..By factory2vendor.zip
 

Top Liked Posts

  • There are no posts matching your filters.
  • 58

    A GUIDE TO FLASH LATEST TREBLE ROMS, OLDER TREBLE ROMS OR NON-TREBLE ROMS ROMS
    UPDATE: A guide to rename our /factory partition as /vendor so that you can flash OLDER Android Oreo treble builds! We do not need this guide on Android Pie custom ROMs or for Stock ZUI WE ONLY NEED THIS FOR ANDROID OREO TREBLE BUILDS REQUIRING /factory renamed as /vendor
    for Lenovo Zuk Z2 Plus


    Latest Treble : /factory renamed i.e switched to /vendor
    Older Treble:/factory mounted as /vendor
    Non-Treble: Nothing to do with Vendor, Factory stuff lol


    INTRO

    As you all know that we now have TREBLE, and Zuk-devs are working hard to improve it further so that when the time comes we can move to GSI builds of future Android versions.
    Recently, Zuk-devs have renamed the /factory partition into /vendor partition previously we were mounting /factory as /vendor but now it has been converted(renamed) to /vendor partition with this you'll be able to use a Proper Magisk zip, and you don't need a modded/edited Magisk, etc and lotta other kinds of stuff that we will discuss and come to know in the future.


    rootdir: fstab: Use the right label for our vendor partition.


    TUTORIAL:

    What you want to do:

    ** Flash OLD TREBLE ROMS /factory is renamed to /vendor - NOTE NOT NEEDED FOR NEWER ROMS! **


    Instructions:

    * Flash "Factory2Vendor_plus.zip",
    *Flash below linkedTWRP,
    *Reboot To TWRP,
    *Flash ROM,
    + GApps / + Magisk etc
    * Reboot.
    *Enjoy :fingers-crossed:


    Downloads:
    Factory2Vendor_plus: https://androidfilehost.com/?fid=962187416754475515
    treble-TWRP 3.2.2 v2: https://www.androidfilehost.com/?fid=5862345805528044154



    ** REVERTING BACK to NORMAL aka renaming /vendor back to/factory **

    Instructions:

    *Flash "Vendor 2Factory_plus.zip",
    *Flash LATEST OFFICIAL TWRP,

    *Reboot TWRP,
    *Flash ROM,
    (+ GApps)
    *Reboot.
    *Enjoy :fingers-crossed:

    Downloads:
    Vendor2Factory_plus: https://androidfilehost.com/?fid=962187416754475514
    https://twrp.me/zuk/zukz2.html


    3. Flashing a Non-Treble RoM which has nothing to do with /factory /vendor partition etc.

    Instructions:
    *Coming from the above procedure, no need to do anything! the new OFFICIAL TWRP will work for Non Treble roms as well and No patches need to be flashed*

    *Flash ROM,
    + GApps / + Magisk etc
    *Reboot.
    *Enjoy :fingers-crossed:



    Notes:
    • This 'New TWRP' will work for both Latest Treble and Non-Treble ROMs
    • For ZUI also no need to flash any patch, New TWRP shall work (Needs to be tested)
    • You can flash Non-Treble ROMs and Nougat Builds or other builds with the new TWRP and no patches need to be flashed
    • Once you flash "factory2vendor" or "vendor2factory" you do not need to flash again unless mentioned in the build
      or if you want to revert back to Old Treble ROMs where /factory was mounted as /vendor

    CREDITS
    Zuk-devs - Davidevinavil, DD3Boh and Cosmedd (https://github.com/zuk-devs)
    @Fedor917 for giving the idea
    And all others who have contributed in any manner! :highfive:
    20
    Team win recovery project - 3.2.2 - treble [unofficial]

    Treble supported TWRP 3.2.2 ONLY FOR ROMS with /factory renamed as /vendor

    CHANGELOGS:
    V1-
    Device Specific:-
    - Persist option
    - Download Mode (edl)
    - Fixed Partition Size
    - Update the kernel image to get the latest commits for ext4, f2fs etc (cosmedd)
    - Default brightness to 40%
    General:
    - adb backup fixes
    - OTA style update zips will now install automatically without prompting for decrypt
    - minor tweaks to handling date/time on Qualcomm devices
    - updates to some language translations
    V2-
    - Vendor Wiping option
    - Persist Backup/Restore
    - Splash backup/restore and now can be flashed via img


    DOWNLOAD:
    https://androidfilehost.com/?fid=5862345805528044154

    Source Code:

    SPECIAL THANKS TO
    Alvaro
    DD3Boh
    Cosmedd
    DavideVinavil
    Pavan & Starman for testing!


    FOR ANYTHING ELSE OR NORMAL TREBLE BUILDS (aka just using /factory) or NON TREBLE BUILDS USE ONLY FROM:
    https://forum.xda-developers.com/le...-official-teamwin-recovery-project-3-t3899166
    12
    Treble TWRP 3.2.2 (UnOfficial)

    Changelogs-
    V1-
    Specific:-
    - Persist option
    - Download Mode (edl)
    - Fixed Partition Size
    - Update the kernel image to get the latest commits for ext4, f2fs etc (cosmedd)
    - Default brightness to 40%

    General:
    - adb backup fixes
    - OTA style update zips will now install automatically without prompting for decrypt
    - minor tweaks to handling date/time on Qualcomm devices
    - updates to some language translations

    V2-
    - Vendor Wiping option
    - Persist Backup/Restore
    - Splash backup/restore and now can be flashed via img


    Download-
    (Latest treble-TWRP-3.2.2 - V2):
    https://androidfilehost.com/?fid=5862345805528044154

    Credits & Special thanks-
    Alvaro
    DD3Boh
    Cosmedd
    DavideVinavil
    Pavan & Starman for testing!
    8
    Found the /vendor solution

    I have asked about a solution for the various /vendor issues and haven't received any answer from anyone.
    Finally I found out by myself how to fix it, and i'm here to share it with everyone.
    If you're having problems when installing magisk, when trying to wipe (factory reset), if everything you try gives the /vendor failure and if you're trying to get rid of this new treble **** and want to go back to AEX 5.3 for now, here's what you should do:

    1 - Format data (the option where you must type "yes" to confirm) on twrp, reboot your phone to recovery again.

    2 - Now download the 4 files available in the original post (vendor2factory.zip; factory2vendor.zip; z2_plus_twrp_3.2.1-0_dmd.img and twrp-treble-1.img) and transfer them to your device.

    3 - Now on your phone go to install and select install image. z2_plus_twrp_3.2.1-0_dmd.img and twrp-treble-1.img will show up. Install z2_plus_twrp_3.2.1-0_dmd.img. Reboot to recovery again.

    4 - Try to flash vendor2factory. If it's successful, install twrp-treble-1.img and you're ready to go, explanation ends here.

    5 - If it's Unsuccessful, install twrp-treble-1.img anyways and reboot to recovery again. Now try to flash Factory2Vendor_plus.zip and repeat steps 3 and 4. It should work. Even if it doesn't work, install z2_plus_twrp_3.2.1-0_dmd.img again and repeat steps 3 and 4.

    Now you can get back to aex 5.3 and customize your device as before without any /vendor problems.