FORUMS
Remove All Ads from XDA

[Z2_plus]Treble Roms 'Flashing/Reverting' Guide & Treble-TWRP (factory2vendor)

810 posts
Thanks Meter: 3,279
 
By kubersharma, Senior Member on 16th April 2018, 08:48 AM
Post Reply Email Thread

A GUIDE TO FLASH LATEST TREBLE RoMS, NON TREBLE RoMS and to REVERT BACK TO OLDER TREBLE ROMS
for Lenovo Zuk Z2 Plus


What i mean by these:
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 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 stuffs 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:

1. Flash New Treble RoMs where /factory is renamed to /vendor


Instructions:

* Flash "Factory2Vendor_plus.zip",
*Flash Latest TWRP,
*Reboot To latest TWRP,
*Flash ROM,
+ GApps / + Magisk etc
* Reboot.
*Enjoy


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


2. Flash 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 TWRP will work for Non Treble and No patches need to be flashed*

*Flash ROM,
+ GApps / + Magisk etc
*Reboot.
*Enjoy



3. Flash a Partial/Full Treble RoM which mounts /factory as /vendor

Instructions:

*Flash "Vendor 2Factory_plus.zip",
*Flash Old TWRP,

*Reboot TWRP,
*Flash ROM,
+ GApps / + Magisk etc
*Reboot.
*Enjoy


Downloads:
Vendor2Factory_plus: https://androidfilehost.com/?fid=962187416754475514
OLD TWRP: https://www.androidfilehost.com/?fid=746010030569960709


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

All the work on Treble has been done by Zuk-devs ( Cosmedd, DavideVinavil and DD3Boh) and their work can be found here:
https://github.com/zuk-devs

CREDITS
@davidevinavil & @cosmedd for doing the work on this and making it possible
@Fedor917 for giving the idea
And all others who have contributed in any manner!

Quote:

IMPORTANT:
In about a month or so, I hope all the Developers, Compilers will move to the latest Treble changes and after that you don't have to revert back to old partial/full treble builds mounting /factory as /vendor and to the older TWRP.
This New TWRP will flash newer Treble Builds and Non Treble builds!

The Following 58 Users Say Thank You to kubersharma For This Useful Post: [ View ] Gift kubersharma Ad-Free
 
 
16th April 2018, 08:49 AM |#2  
kubersharma's Avatar
OP Senior Member
Flag New Delhi , India
Thanks Meter: 3,279
 
More
Team win recovery project - 3.2.2 - treble [unofficial]
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!


Device: https://github.com/kubersharma001/tw...ce_zuk_z2_plus
Kernel : https://github.com/cosmedd/android_k...8996/tree/twrp
The Following 20 Users Say Thank You to kubersharma For This Useful Post: [ View ] Gift kubersharma Ad-Free
16th April 2018, 08:50 AM |#3  
kubersharma's Avatar
OP Senior Member
Flag New Delhi , India
Thanks Meter: 3,279
 
More
Reserved
The Following 6 Users Say Thank You to kubersharma For This Useful Post: [ View ] Gift kubersharma Ad-Free
16th April 2018, 08:58 AM |#4  
Senior Member
Thanks Meter: 263
 
More
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?
The Following User Says Thank You to pipyakas For This Useful Post: [ View ] Gift pipyakas Ad-Free
16th April 2018, 09:05 AM |#5  
kubersharma's Avatar
OP Senior Member
Flag New Delhi , India
Thanks Meter: 3,279
 
More
Quote:
Originally Posted by pipyakas

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
The Following User Says Thank You to kubersharma For This Useful Post: [ View ] Gift kubersharma Ad-Free
16th April 2018, 10:27 PM |#6  
vuckovic_stefan's Avatar
Senior Member
Flag Niš
Thanks Meter: 879
 
Donate to Me
More
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
17th April 2018, 01:55 AM |#7  
TH3J@$'s Avatar
Junior Member
Thanks Meter: 1
 
More
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
17th April 2018, 03:07 AM |#8  
kubersharma's Avatar
OP Senior Member
Flag New Delhi , India
Thanks Meter: 3,279
 
More
The steps mentioned above applies for the new builds that are going to come.
The Following User Says Thank You to kubersharma For This Useful Post: [ View ] Gift kubersharma Ad-Free
17th April 2018, 04:11 AM |#9  
frozenfirevr's Avatar
Senior Member
Flag Chennai
Thanks Meter: 59
 
More
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
17th April 2018, 04:20 AM |#10  
kubersharma's Avatar
OP Senior Member
Flag New Delhi , India
Thanks Meter: 3,279
 
More
Quote:
Originally Posted by frozenfirevr

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

Yes
The Following 4 Users Say Thank You to kubersharma For This Useful Post: [ View ] Gift kubersharma Ad-Free
17th April 2018, 06:10 AM |#11  
Dhinesh1999's Avatar
Senior Member
Flag vellore
Thanks Meter: 135
 
More
Does New Twrp (#1) can Be used for Non Treble ROMs.?
Post Reply Subscribe to Thread

Tags
factory2vendor, treble zuk z2, vendor2factory

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes