• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[VENDOR] Treble support for ZUK Z2 Pro

G

GuestD0097

Guest


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://forum.xda-developers.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://forum.xda-developers.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.



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:

xino22

Senior Member
Mar 9, 2011
178
19
0
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
 

xino22

Senior Member
Mar 9, 2011
178
19
0
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
389
55
0
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
979
347
63
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
979
347
63
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

Last edited:

weimerd

Senior Member
May 7, 2008
537
372
0
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
979
347
63
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://forum.xda-developers.com/le...nt/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

Last edited:

shaoyuan

Member
Oct 25, 2008
17
1
3
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
11
4
0
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?