yashsingh1/xdaforums huggingface dataset:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] troy5890:
Just curious, if we go about doing this, can we possibly go back to stock firmware (Mifavor, on case we want to submit an RMA)?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bornlivedie:
Of course.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] raystef66:
Use https://xdaforums.com/showpost.php?p=76912572&postcount=84

Flash GPT Original, reboot into twrp, format data, and reflash your backup or whatever ;)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Oki:
No problem, you can go back to Stock using this guide or return to a custom not treble ROM using this other guide.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Dodgexander:
I'm interested how future updates are released now. Will treble releases be standard or will this be a one off?

I also wonder with lineage :)

Those who put time into this deserve serous credit. Can't thank you enough!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] janthe6th:
Thanks Oki, the the excellent guide. Very clear instructions.

Guys, fyi, I ran into problem at step 12 while trying to wipe data, it says "unable to mount data". What I did was I had to change data type to ext2, then change it back again right after to ext4. Everything is fine after that

edit 1: I flashed boot_havoc file from telegram and during boot up process after the bootloader warning screen, I'm taken to a fastboot screen that let me choose several options but none to boot to system. Had to dirty flash the rom again to get to system normally

Also I don't think the patch_usb works with Treble Havoc either. PC only see my phone while in TWRP, not while in system (not automatically anyway. need to go to developer options to change to MTP)

edit 2: slim recents seems to work fine now. normal recents laggy like hell lol
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] WesTD:
i know what is treble project but we already have havoc rom. i just want to know what is different between treble havoc and normal havoc rom.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Gachmuret:
+1

Not that my opion has any value but still I prefer to use part of system partition over vendor partition, too...

As I manage three numbers from my phone (multiple whatsapp, telegram, etc. clients) and that uses masses of data...

However I'm very thankful to you [MENTION=5492451]NFound[/MENTION] [MENTION=6330152]djkuz[/MENTION] [MENTION=319057]Oki[/MENTION] and all the other devs, contributors and supporters for your efforts for our Axon 7 :good:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Oki:
[MENTION=5492451]NFound[/MENTION] I have been testing some GSI ROMs and none of them can detect the SIM. I even tested HavocOS GSI and the result is also negative. Could you please check that please? maybe you missed to move something to the vendor partition or maybe something in the kernel related to the SIM detection. Under this situation, switching to HavocOS Treble ROM for Axon7 provides no added value. It is like flashing the HavocOS for Axon 7 ROM but adding some annoying problems. Nonetheless it is a huge step forward and everything else seems to be working fine using other GSI (Tested RR, AEX and Havoc GSi images so far and flashing Android P GSI at this moment).

Please do not forget to reconsider splitting the vendor partition from the oversized system partition. That could be also a step forward.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] bornlivedie:
Please update your post when you're done trying Android P. I was going to do it myself but I don't want to have to spend 2 hours trying to revive the phone afterwards lol.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Oki:
Android P boots when using the Device/Vendor support provided by NFound and adding the GSI and the three patches for Android P. The good news stop here.

It is an early development version, both the Device/Vendor support provided by NFound and the GSI image of Android P ported from the Pixel XL.

As the rest of the GSI images, there is no phone, SIM not detected. It looks a failure in the Device/Vendor part of the ROM since it happens for all the GSI images I have tested so far.

No sound at all. Talking about battery has no sense. It is smooth and fast as any other ROM when there is no other app installed.

Sensors are not working, even auto-rotate isn't working.

Apps open veeery slowly and there are crashes everywhere.

I haven't tested Camera in Android P since there is no app provided and Google Services are still very buggy. However Camera works in any other Oreo GSI ROM.

It is nice to see Android P running (sort of) in a 2016 device. So far flash it is only as a curiosity, only for experiencing a hint of the future.

---------- Post added 27-07-2018 at 00:07 ---------- Previous post was 26-07-2018 at 23:57 ----------

You should update your bootstack to the NFound B12, DrakenFX Universal Oreo or my Universal Oreo Remix included in the basic oreo system.

---------- Post added at 00:45 ---------- Previous post was at 00:07 ----------

[MENTION=5492451]NFound[/MENTION] I have performed a comparison of the features not working when using the Official Havoc-OS Oreo Generic System Image (GSI):

- No sound at all.

- No Phone (SIM not detected)

- Sensors don't work (auto-rotate not working due to this)

It looks like there is till some things pending to be ported to the vendor partition and/or configured in the kernel. On the other hand Wifi, bluetooth, cameras, fingerprint sensor and video acceleration are working features in any Oreo GSI ROM (RR, AEX, Havoc, Pixel Experience).
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] NFound:
Ok, I'll try to fix it later.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] zouyiqiang:
thanks NFound!!!! will aospExtend support treble next publish? I love aex rom better :laugh::laugh::laugh:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] ramnkc:
Sorry, how to do this with EDL Tool?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] djkuz:
For Axon7 EDL Tool https://www.androidfilehost.com/?fid=5862345805528058734
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] NFound:
Big THANKS to [MENTION=6330152]djkuz[/MENTION] :highfive::good:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] raystef66:
Yeah, a BIG thnx to [MENTION=6330152]djkuz[/MENTION] too ! I tested this file yesterday as he made it in a wink :eek: Thnx man !

btw [MENTION=6330152]djkuz[/MENTION], I leave that up to you to share the AXON7_GPT_ORIGINAL link (to revert back) which can be flashed with the EDL tool too (the one for Miflash can be found here) ;)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] NFound:
Today ?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] zouyiqiang:
you are great!!

you are great!!

---------- Post added at 06:32 AM ---------- Previous post was at 06:31 AM ----------

thank you NFound,you are great!!!!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] djkuz:
I believe that the package for returning to the original gpt is not needed. if someone wants to flash another firmware via twrp, then everything will go well, and the vendor partition will remain, only it will not be used.

if you flash full edl then the vendor partition will be deleted.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] raystef66:
I think that'll be the case. But as i did use and tested the original gpt yesterday and all went fine, i thought to mention this in case something possible may go wrong in the end.

Anyway, great job :good:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] taufikthexfader:
Dear nfound, does the treble patch make our axon7 to be treble A only or A/B? Thank you for your great supports
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Aviver:
https://xdaforums.com/showpost.php?p=77176846&postcount=135
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] NFound:
AospExtended-v5.7-axon7-20180727-TREBLE

- sync repo to actually source

- move to treble

Manual to install (I am used translator):

1. Installing the new TWRP 3.2.1-8 - TREBLE

2. Reboot to the new TWRP, click "reboot - EDL"

3. Download AXON7_GPT_ADD_VENDOR_800MB.zip, extract from the archive into a folder and flash through MiFlash

4. Boot into TWRP (hold the volume + and the power button)

5. Go to Wipe - Advanced - put a tick on Vendor - Change the FS and select EXT4

6. Do step 5 with the Data section

7. Just in case, we reboot from TWRP to TWRP

8. Connect the phone to the computer and copy the ROM, Gapps, Magisk, etc. into the memory phone or SD card

9. Install the ROM, Gapps, Magisk, etc. and reboot.

10. After switching to Treble under the given instruction it is possible to put any ROMs, incl. not based on treble, incl. drain for TWRP

To return to the factory state, it is enough to flash any official ROM via EDL.

Files for treble: https://www.androidfilehost.com/?w=files&flid=279629

AEX Treble: https://androidfilehost.com/?w=files&flid=274713

Enjoy :good::highfive:

Video proof: https://www.youtube.com/watch?v=9-tvwJo2JuM

PS big thanks [MENTION=6330152]djkuz[/MENTION] to add vendor part.!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] joaste:
Great stuff!

I suppose this will erase everything on the phone?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Spooderman46:
Not to be too negative. Butttt are we going to have to go Treble to continue receiving updates?

Not really keen to go through the hassle of setting up the phone again and downloading my spotify playlists :( Unless anybody knows a way to backup spotify playlists consistently, haven't found a way even with TitaniumBackup.

EDIT: Spotify Offline playlists*
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Nameless One:
n/t
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] raystef66:
Or for the [MENTION=6330152]djkuz[/MENTION] 'die-hard EDL Tool fans' like me , flash https://androidfilehost.com/?fid=5862345805528058734 with EDL Tool

Great work btw [MENTION=5492451]NFound[/MENTION] !

It will joaste

-----------------------------

Btw, noticed 2 cool UI lock and unlock sounds out of the havoc_axon7-20180726-TREBLE I flashed yesterday (btw moving on to Android P gave me too many hickups….back to AEX which I love the most atm)

Anyway for those who want to change their lock and unlock UI sound, just make a backup of your old ones, replace them with these cool Havoc ones into system/media/audio/ui and reboot.

credits to Havoc [MENTION=5492451]NFound[/MENTION]
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] powermarcel10:
Hello, I like to try havoc aswell and Im running allready B12 bootstack. Can I just flash the latest version from 20180726? Or do I need to install extra stuff first..
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Spooderman46:
Sorry should've specified. The problem is backing up offline playlists and songs, have quite limited internet caps and can't afford to download 800 or so songs monthly :(
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] beastobadness:
Treble has been a new learning curve for me, I am no dev and I wondered why it would be a benefit to the custom ROM community...found these articles and they put treble's benefits in layman's terms.

https://www.xda-developers.com/how-project-treble-revolutionizes-custom-roms-android-oreo/

https://www.androidpolice.com/2018/05/13/project-treble-impact-android-custom-rom-community/

Give them a read if you don't quite understand what's going on with treble and how it effects the Android poweruser. The hype is quite real!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] NFound:
To ALL: Current kernels from third-party "developers" are not suitable for the Project Treble!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] DarkQuark:
Nfound, will there still be updates for the non Treble ROMs or should be all be moving to Treble at this point? I am just debating whether to move to Treble or not. Thank you.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Oki:
It is always nice to have it in case someone needs to recover the space stolen from userdata partition by the vendor partition.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] NFound:
Yes, all future updates will only be for the Project Treble :)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] NFound:
To Ivars: big thanks!!!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] joaocandeias:
Is dolby atmos working on the new treble rom?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Zobat:
As i dont own a windowscomputer, would it work if someone creates a nandroidbackup and shares it here for linuxusers to restore from?

*edit: maybe after doing a little repartioning in twrp?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] janthe6th:
So if I'm currently on treble havoc, I can try to dirty flash to non-treble havoc as well?

---------- Post added at 03:03 PM ---------- Previous post was at 03:01 PM ----------

Yes I have Dolby installed with treble havoc and no problem so far

Edit: Sorry. Actually no there's annoying cracking sound when I move between tracks in Spotify. No such problem with AudioFx that came with the rom though
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] messi2050:
Great work, Is the device/vendor source available?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] NFound:
No, it's too early... ;)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] beastobadness:
So, could having treble actually mean we may get all the vendor features of the stock ROM on AOSP i.e. camera and full use of the hifi DAC in the future without the need to port them?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] 2CanSan:
[MENTION=5492451]NFound[/MENTION]

If I am coming from

TWRP Official 3.2.1.0

A2017X_BootStack_B32_O.zip

AospExtended-v5.3-axon7-20180404-1930.zip

Do I

1 Wipe

2 Flash A2017X_BootStack_B12_O.zip

3 Flash TWRP 3.2.1-8

then follow your instructions from 2

Will it be possible to Restore a TWRP 3.2.1.0 Back up of 5.3 from Treble?

Thanks for all your hard work, donations are worth it.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] christoophat:
Exciting times here in Axonville!!

Can we add/use the current audio mods via magisk (Sauron, V4A, etc?)
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Martinxyzko:
I have latest AEX - treble and with magisk every audio mod(viper, sauron, aml) working great
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] 2CanSan:
Any problems or are you just loving it?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Oki:
TWRP doesn't have a good integrated tool for managing the UFS GPT, this is why we have to flash using the firehose protocol in EDL mode. I am afraid that you will need a Windows computer to modify the partition table. This is something that can't be done using a traditional nandroid backup.

---------- Post added at 12:23 ---------- Previous post was at 12:21 ----------

I dirty flashed the new Treble AEX and everything works exactly the same as it was with the last non-treble version.

---------- Post added at 12:25 ---------- Previous post was at 12:23 ----------

No need for all that, just flash Flash A2017X_BootStack_B12_O.zip at any point between steps 4 and 7 of the original NFound instructions.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] 2CanSan:
I dirty flashed the new Treble AEX and everything works exactly the same as it was with the last non-treble version.[/QUOTE]

Is it possible to go from stock OS with official TWRP and Magisk straight to Trebel by following [MENTION=5492451]NFound[/MENTION]s guide?

Never mind you posted before I could keep up. Thanks. I hosed trying to go from 5/3 to 5.5

Something to do with flashing 3.2.1-7 before the bootstack and then upgrade to 3.2.1-8, anyway had to edl full factory to fix it.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Oki:
No. That means that in the future we could use any GSI distribution while keeping the current AOSP ported features from stock ROMs. Basically you will be able to flash the latest Generic RR, AEX, DU, Tesla, etc without worrying about the availability of an especific build developed for our device. More or less, this will detach the hardware from the OS/software.

Since the Stock ROM provided by ZTE is not treble compatible, it is going to be a little more complicated since that device/vendor part has to be reverse engineered. This is the hard work NFound is doing now.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] NFound:
to Robert: big thanks!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] joaocandeias:
What version are you using? The one NFound released a few weeks ago?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] sauerkraut17:
Read what I quoted before replying.

Did you purchase the phone from ZTE or Nfound?

What I am getting at, is that its completely dense to claim many people bought the phone for its audio while expecting it to work the same with unofficial software as it does with official software. Not to be a giant jerk, but isnt the boot stack used for this ROM from the beta. That means the firmware itself which is crucial for the various parts inside to work properly was still in test phase and not ready for normal use. Head over to the LOS 15.1 thread, the devs have already mentioned there that certain things from the oreo boot stack have bugs, some of which can affect battery drastically. To make this whole thing even more laughable is that the manual for the official software even states more CPU/ battery is used when the "super" setting is on vs the "standard" one. My understanding is that most all ASOP roms for this device use only the enhanced DAC and not the main SoC DAC, so more battery drain should basically be expected.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] nfsmw_gr:
Wow, if he accomplishes this I may keep my A7 after all. :P

Performance is not an Issue, battery needs replacing but that's it really.

My only worry was the lack of updates, this could be a game changer!

Thanks to everyone involved in this, you sincerely have my deep appreciation!!
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] DarkQuark:
So I am going through the process, following one of the guides. I am stuck in the middle as my /data partition is 0 size and no matter what I do it stays that way. Any thoughts? Thank you.

-EDIT-

Think I got it. Formatted to F2FS and then back to EXT4.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] 2CanSan:
Very welcome :good:
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] troy5890:
Anybody notice that the remap zip to turn the recent side into a the back button isn't working?

EDIT: Alright, found a work around for that, but for some reason, sound isn't working
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] DarkQuark:
Is there something wrong with Magisk 16.7 or is it the ROM? With 16.7 (and AEX Treble) my Magisk modules (while they show installed) are not there. For example, my Dolby and YouTube apps are missing. Thank you.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Surge_:
[MENTION=5492451]NFound[/MENTION] Wow, great work. When do you even find time to eat, sleep and do other things? :D

Sounds amazing!

More current software, faster security patches, quicker fixes overall and of course less work for the Devs if it all holds true.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Vaga Liki:
I want to make sure I understand correctly - does Treble work at all with F2FS?

If not, is there a post explaining why not?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Oki:
I have 16.7 and everything works fine, even my magisk customized bootanim.

Yes, I have F2FS in Data and cache working as good as always.

---------- Post added at 15:31 ---------- Previous post was at 15:25 ----------

There is still a log run to reach that. So far there are some key features not properly working in the Device/vendor portion of the rom. no sim detected, no sound at all, no sensors among other issues. This is why the challenge is not small and it all depends on the skills porting those hardware support features out of the system partition into boot and vendor. Until then, Having a Treblelized rom or a normal rom is the same since treble without GSI support is not really useful at all. At least you will be able to see Android P running (sort of) in your Axon 7 if you flash the GSI image and some patches for the vendor and boot partitions.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] piet8stevens:
Let's therefore hope non-treble AEX updates keep coming...
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] DarkQuark:
Any magisk module I install does not show up after a reboot. For example Vanced YouTube. It shows as an installed module but does not show up in apps.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] jrotaetxe:
Hello, guys

Need some help as seems I have managed to almost brick my phone trying to go treble

The starting situation is HAVOC with FS2S filesystem in cache and Data.

I have flased the suggested zip using my flash, but now I cannot format vendor because cannot be mounted and then I am completelly stuck

("failed to mount /vendor (invalid arguments)", and size seems to be 0

Can any of you shed some light abot nex steps? (still have EDL)

Regards

managed to solve.

In treble....
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Zobat:
NFound said no ?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] beastobadness:
Just updated to treble and latest AEX [MENTION=319057]Oki[/MENTION] your guide was perfect... your a star.

Only issue I had following the guide was with my internal storage backup. Something creates an error 'broken pipe' on trying to restore the tgz files in twrp's terminal. Tried repeating the process 3 times but no go! Are these able to be extracted manually?
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Dodgexander:
He's Russian. He eats and sleeps vodka funded from donations.

On a separate note there's no rush to install the treble ROMs really. Until you see fixes or features in new releases that is of course.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] Oki:
I have 6 modules and Vanced is one of them. No problem whatsoever.

---------- Post added at 17:48 ---------- Previous post was at 17:40 ----------

you can use 7zip to extract all that in Windows. You just need to join the parts together by typing copy scard.tgzaa+scard.tgzab+...+scard.tgzzz scard.tgz

sdcard.tgz is a standard compressed backup file that can be extracted with winrar or 7zip for windows.

Nonetheless it works, it is the standard unix pipe I use for split the backup in several files and join them together at the end to restore them. I do this very often when doing testing. You should have a bunch of sdcard.tgzaa, sdcard.tgzab, sdcard.tgzac, ... of 1GB each except for the last one. cat /external_sd/sdcard.tgz* will take them all and dump them to the tar program for restoration. It is very basic in unix and should work in all cases. What is the exact error you get? are the backup files there in the root if the external_sd? you must be in the / directory to extract them, if you are not just type cd / before restoring the sdcard.tgz. files.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] DarkQuark:
I got nothing on that then except to maybe do a clean install.

-EDIT-

So I did some testing and I THINK it was the Dolby module I was using. I changed Dolby mods and now everything is fine. The offending module is the Unity 2.20.18 one. If I use the BNC one everything is good to go.
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] beastobadness:
It runs for sometime but it seems to get stuck at the same file each time, maybe corrupt. Yes the tgz files are in root of the external_sd as you described.

The error literally reads...

Broken pipe

Broken pipe

Killed
[ZTE Axon 7 ROMs, Kernels, Recoveries, & Other Deve] janthe6th:
ya that's the one I had