[VENDOR] Treble support for ZUK Z2 Pro

Search This thread
G

GuestD0097

Guest
Android-Oreo-8-Easter-Egg-Feature-Image-2-Brown-810x298_c.png


Hello everyone!

So... since 2018/03/31 we have a treble compatible vendor image without any problems so far.

To test a Generic System Image (GSI), you need the following:

  1. Flash the last TWRP recovery build: https://twrp.me/zuk/zukz2row.html
  2. Flash a recent baseband. As a rule, the last one is always the best: https://xdaforums.com/zuk-z2-pro/development/radio-modem-basebands-zuk-z2-pro-t3715835
  3. Flash a boot.img image with support for early mounting of the system and vendor partitions: https://github.com/cosmedd/android_kernel_zuk_msm8996/releases
  4. Flash the vendor image for our device (z2_row): https://github.com/zuk-devs/android_vendor_zuk/releases
  5. Flash the GSI of your choice: https://xdaforums.com/project-treble (Note: ours is an A-only device)

Keep in mind that, as the name implies, generic images will have fewer functions than dedicated ROMs, since they are designed to support as many devices as possible. On the other hand, they are lighter and closer to pure AOSP.

But the basic functions like camera, audio, radio, gps, hardware acceleration, fingerprint, gyroscope, etc... should work out of the box.

If you still do not understand what this means and simplifying a lot... think of boot + baseband + vendor images as the drivers for our device and the Generic System Images (GSI) as the operating system.

20171124T115704.jpg


In theory, this vendor image will also allows us to get Android 9, 10, 11, etc... with few or no changes. :eek:

Now you no longer depend on the developers of Z2 Pro, as anyone from any device can build a GSI. This means more people who can provide an updated system for our device.

Even if you are not going to use GSI now, I still recommend that you download it and keep it in a safe place in case you need it someday.

Thanks to: DD3Boh, davidevinavil and the xiaomi/msm8996 devs, you make life easier for the rest of us! ;)

XDA:DevDB Information
[VENDOR] Treble support for ZUK Z2 Pro, ROM for the Lenovo Zuk Z2 Pro

Contributors
cosmedd
Source Code: https://github.com/zuk-devs

ROM OS Version: 8.x Oreo

Version Information
Status: Testing

Created 2018-04-01
Last Updated 2018-04-03
 
Last edited:
  • Like
Reactions: biker_boys

xino22

Senior Member
Mar 9, 2011
181
20
thank you very much for your work, this is very good news. I have to assess if it's worth losing the customization of the current custom ROM

Enviado desde mi Z2 Pro mediante Tapatalk
 

mar.ur

Senior Member
Oct 30, 2016
988
352
Sosnowiec
Everything works good . Awesome job :good: . LOS 15.1 installed and seems to be good . Thank you
 
Last edited:

xino22

Senior Member
Mar 9, 2011
181
20
Everything works good . Awesome job :good: . LOS 15.1 installed and seems to be good . Thank you
Can you tell me if it takes some personalization? allows you to disable one of the SIM cards like AEX? some photos are appreciated. thx.

Enviado desde mi Z2 Pro mediante Tapatalk
 

almmpt

Senior Member
May 19, 2005
408
66
Where do you download LOS 15.1 for flash with treble?
Isso possible tonput gere the link of LOS 15.1?
I use AEX but I can test LOS 15.1.
Thanks.
 

mar.ur

Senior Member
Oct 30, 2016
988
352
Sosnowiec
Can you tell me if it takes some personalization? allows you to disable one of the SIM cards like AEX? some photos are appreciated. thx.

Enviado desde mi Z2 Pro mediante Tapatalk
I don't use two sim cards . The personalization is very low . I think you should use xposed to increase the personalization . Unfortunately Los 15.1 is without gapps .
Edit
install los15.1 , factory reset / install (optional for root ) addonsu arm64 14.1 from extras Los download ( there are not exist for 15.1 yet ) / install pico open gaps / factory reset / restart . Now it seems be good .
 
Last edited:
  • Like
Reactions: VanoSM and xino22

mar.ur

Senior Member
Oct 30, 2016
988
352
Sosnowiec
Screenshot LOS 15.1
Su is working but without any manager . You can only acrivate or deactivate it . There is lack of popup window with permission . ( allow , prompt , deny ) . For me is good but I think if you want u-touch and more customization better solution is useing Aex , rr or cosmic or waiting for cosme los 15.1 ( hope ) .
 

Attachments

  • Screenshot_Trebuchet_20180402-103808.jpg
    Screenshot_Trebuchet_20180402-103808.jpg
    126.7 KB · Views: 1,402
  • Screenshot_Trebuchet_20180402-103757.jpg
    Screenshot_Trebuchet_20180402-103757.jpg
    81.1 KB · Views: 1,366
  • Screenshot_Settings_20180402-103639.png
    Screenshot_Settings_20180402-103639.png
    130 KB · Views: 1,349
  • Screenshot_LineageOS_Settings_20180402-103408.png
    Screenshot_LineageOS_Settings_20180402-103408.png
    107.2 KB · Views: 1,292
  • Screenshot_Settings_20180402-103331.png
    Screenshot_Settings_20180402-103331.png
    148.7 KB · Views: 1,277
  • Screenshot_Settings_20180402-103327.png
    Screenshot_Settings_20180402-103327.png
    102.9 KB · Views: 1,259
  • Screenshot_Settings_20180402-103316.png
    Screenshot_Settings_20180402-103316.png
    107.6 KB · Views: 1,221
  • Screenshot_Settings_20180402-103300.png
    Screenshot_Settings_20180402-103300.png
    126.5 KB · Views: 1,215
Last edited:

1944

Senior Member
Dec 25, 2010
81
13
No networks and errors whit all roms :\ aosp and LOS, I do all steps but dunno why
 

zswum

Member
Jan 8, 2016
23
2
just follow the instructions,install phh rr, system shows erro message "vendor image mismatch"
 

weimerd

Senior Member
May 7, 2008
540
377
after clean flash I get android.phone crashes permanently with RR version.

No Gapps possible.

No root possible.

When doing dirty flash over latest official RR only gapps are crashing but system is somehow working.

When trying to flash gapps only pico gapps are possible to flash.

In summary:
It is a test version only yet. I guess vendor image is not perfect until now.

Gapps issue and Root issue is a treble general problem I think. Not connected to our device but treble connected. Anyway a solution is needed before it can be used for normal users.

I will do more investigations and tests in next days.
 
  • Like
Reactions: P4ulRabbit

mar.ur

Senior Member
Oct 30, 2016
988
352
Sosnowiec
No any problems to install RR or Los 15.1 or AOSP with pico gapps . These ROMs are the same . Only slightly differences .
Install
2018.03.11 twrp
Boot_with_permissive_selinux.IMG
Vendor.IMG
RR or LOS 15.1 or AOSP phh-treble for a-only
Open gapps
Restart to system
For root install moded Magisk
https://xdaforums.com/lenovo-zuk-z2/development/rom-aospextended-rom-v5-0-t3683254/page851
There is version of AOSP system with inbuilt gapps and Su as well . Only what you have to do is install phh's superuser app
https://play.google.com/store/apps/details?id=me.phh.superuser
Edit
If you have error 70 during installation of micro gapps you have to resize system partition .
Reboot to twrp
Wipe/ Advanced wipe/ system/ repair or change file system/ resize file system
than swipe to confirme it . Do it twice because of error for first time .
 

Attachments

  • Screenshot_Settings_20180402-234654.png
    Screenshot_Settings_20180402-234654.png
    147.1 KB · Views: 777
  • Screenshot_Settings_20180402-234521.png
    Screenshot_Settings_20180402-234521.png
    122.6 KB · Views: 755
  • Screenshot_Trebuchet_20180402-234400.jpg
    Screenshot_Trebuchet_20180402-234400.jpg
    115.2 KB · Views: 752
  • Screenshot_Settings_20180402-234022.png
    Screenshot_Settings_20180402-234022.png
    141.6 KB · Views: 739
  • Screenshot_Settings_20180402-234009.png
    Screenshot_Settings_20180402-234009.png
    120.3 KB · Views: 739
  • Screenshot_Trebuchet_20180402-233831.jpg
    Screenshot_Trebuchet_20180402-233831.jpg
    108.5 KB · Views: 707
  • Screenshot_Trebuchet_20180402-233741.jpg
    Screenshot_Trebuchet_20180402-233741.jpg
    130.5 KB · Views: 704
Last edited:

shaoyuan

Member
Oct 25, 2008
17
1
No any problems to install RR or Los 15.1 or AOSP with pico gapps . These ROMs are the same . Only slightly differences .
Install
2018.03.11 twrp
Boot_with_permissive_selinux.IMG
Vendor.IMG
RR or LOS 15.1 or AOSP phhrom
Factory reset
Pico gapps
Factory reset
Restart to system

Boot_with_permissive_selinux.IMG , what is this and how to get it?
 

morette17br

Member
Oct 3, 2017
24
8
Screenshot LOS 15.1
Su is working but without any manager . You can only acrivate or deactivate it . There is lack of setting of permission . ( allow , prompt , deny ) . For me for now is good but I think better solution is useing Aex , rr or cosmic or waiting for cosme los 15.1 ( hope ) .

Hey man, is this ROM in Zuk Z2 Pro? Do you have the link?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    No any problems to install RR or Los 15.1 or AOSP with pico gapps . These ROMs are the same . Only slightly differences .
    Install
    2018.03.11 twrp
    Boot_with_permissive_selinux.IMG
    Vendor.IMG
    RR or LOS 15.1 or AOSP phh-treble for a-only
    Open gapps
    Restart to system
    For root install moded Magisk
    https://xdaforums.com/lenovo-zuk-z2/development/rom-aospextended-rom-v5-0-t3683254/page851
    There is version of AOSP system with inbuilt gapps and Su as well . Only what you have to do is install phh's superuser app
    https://play.google.com/store/apps/details?id=me.phh.superuser
    Edit
    If you have error 70 during installation of micro gapps you have to resize system partition .
    Reboot to twrp
    Wipe/ Advanced wipe/ system/ repair or change file system/ resize file system
    than swipe to confirme it . Do it twice because of error for first time .
    3
    Screenshot LOS 15.1
    Su is working but without any manager . You can only acrivate or deactivate it . There is lack of popup window with permission . ( allow , prompt , deny ) . For me is good but I think if you want u-touch and more customization better solution is useing Aex , rr or cosmic or waiting for cosme los 15.1 ( hope ) .
    2
    Can you tell me if it takes some personalization? allows you to disable one of the SIM cards like AEX? some photos are appreciated. thx.

    Enviado desde mi Z2 Pro mediante Tapatalk
    I don't use two sim cards . The personalization is very low . I think you should use xposed to increase the personalization . Unfortunately Los 15.1 is without gapps .
    Edit
    install los15.1 , factory reset / install (optional for root ) addonsu arm64 14.1 from extras Los download ( there are not exist for 15.1 yet ) / install pico open gaps / factory reset / restart . Now it seems be good .
    2
    Good work, Zuk-devs :D


    I've flashed LineageOS and everything seems fine but now I can´t boot to EDL mode in order to flash with QFIL.
    Everytime I try to reboot to EDL mode, it boots normally. I tried to reboot with fastboot-edl without success.
    What should I do?

    Through Fastboot :
    Code:
    fastboot -i 0x2b4c oem reboot-edl

    Through TWRP > Terminal
    Code:
    reboot edl


    And here are some Screenshots from Last nights build of PhhAOSP Treble with GApps and SU inbuilt.
    1
    G
    GuestD0097
    Android-Oreo-8-Easter-Egg-Feature-Image-2-Brown-810x298_c.png


    Hello everyone!

    So... since 2018/03/31 we have a treble compatible vendor image without any problems so far.

    To test a Generic System Image (GSI), you need the following:

    1. Flash the last TWRP recovery build: https://twrp.me/zuk/zukz2row.html
    2. Flash a recent baseband. As a rule, the last one is always the best: https://xdaforums.com/zuk-z2-pro/development/radio-modem-basebands-zuk-z2-pro-t3715835
    3. Flash a boot.img image with support for early mounting of the system and vendor partitions: https://github.com/cosmedd/android_kernel_zuk_msm8996/releases
    4. Flash the vendor image for our device (z2_row): https://github.com/zuk-devs/android_vendor_zuk/releases
    5. Flash the GSI of your choice: https://xdaforums.com/project-treble (Note: ours is an A-only device)

    Keep in mind that, as the name implies, generic images will have fewer functions than dedicated ROMs, since they are designed to support as many devices as possible. On the other hand, they are lighter and closer to pure AOSP.

    But the basic functions like camera, audio, radio, gps, hardware acceleration, fingerprint, gyroscope, etc... should work out of the box.

    If you still do not understand what this means and simplifying a lot... think of boot + baseband + vendor images as the drivers for our device and the Generic System Images (GSI) as the operating system.

    20171124T115704.jpg


    In theory, this vendor image will also allows us to get Android 9, 10, 11, etc... with few or no changes. :eek:

    Now you no longer depend on the developers of Z2 Pro, as anyone from any device can build a GSI. This means more people who can provide an updated system for our device.

    Even if you are not going to use GSI now, I still recommend that you download it and keep it in a safe place in case you need it someday.

    Thanks to: DD3Boh, davidevinavil and the xiaomi/msm8996 devs, you make life easier for the rest of us! ;)

    XDA:DevDB Information
    [VENDOR] Treble support for ZUK Z2 Pro, ROM for the Lenovo Zuk Z2 Pro

    Contributors
    cosmedd
    Source Code: https://github.com/zuk-devs

    ROM OS Version: 8.x Oreo

    Version Information
    Status: Testing

    Created 2018-04-01
    Last Updated 2018-04-03