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

[OFFICIAL] LineageOS 15.1 for ZTE Axon 7

Search This thread

gads1

Senior Member
Nov 14, 2009
114
13
perfect -- I didn't realize that was simply a "patch" to be installed over bootstack (I didn't realize until I downloaded the various files and sizes were so different).
worked like a charm. thanks!!

bootstack stuff

There are other bootstacks with working "offline charging" like the one that's on the link in the OP (A2017x_OfflineCharging_NOFASTBOOT) for example
 

littlenoodles

Senior Member
Apr 30, 2011
94
12
Hi

I've made a new build with june security patches included: lineage-15.1-20190615-UNOFFICIAL-axon7.zip

Cheers
NyQuilXT :)

Thanks, Ny. It's nice to see that we're still getting security patches. One question. Are your builds essentially the same as the ones armitage has been posting on his 'UNOFFICIAL' thread? Obviously, you guys have been building on different dates, so you're picking up different nightly LOS source - but the vendor stuff and other configuration settings are the same, right? (i.e., the builds are interchangeable in terms of dirty-flashing over one another)?
 

NyQuilXT

Senior Member
Jan 15, 2016
180
353
Thanks, Ny. It's nice to see that we're still getting security patches. One question. Are your builds essentially the same as the ones armitage has been posting on his 'UNOFFICIAL' thread? Obviously, you guys have been building on different dates, so you're picking up different nightly LOS source - but the vendor stuff and other configuration settings are the same, right? (i.e., the builds are interchangeable in terms of dirty-flashing over one another)?

As I'm also just building the images from udev's repos (excluding his last WIP commit on the device tree), they should be interchangeable. As for LOS 15.1, there isn't much development anymore...just googles security patches were included lately.
 

gads1

Senior Member
Nov 14, 2009
114
13
can anyone explain why applying this "offlinecharging" package would render me unable to unlock my Axon7? PIN pattern security in place on lock screen.

Fortunately, I've moved on to different phone for primary but this Axon7 with Lineage 15.1 was backup. I applied the __OfflineCharging__ zip (only 40MB) and now I"m unable to unlock PIN lock screen on phone. The phone correctly boots and I see notifications for apps, etc.

However, I'm unable to successfully unlock PIN pattern.

Any ideas? Am I hosed...? -GA :p:confused:

bootstack stuff

There are other bootstacks with working "offline charging" like the one that's on the link in the OP (A2017x_OfflineCharging_NOFASTBOOT) for example
 

Choose an username...

Senior Member
Oct 16, 2016
2,677
924
can anyone explain why applying this "offlinecharging" package would render me unable to unlock my Axon7? PIN pattern security in place on lock screen.

Fortunately, I've moved on to different phone for primary but this Axon7 with Lineage 15.1 was backup. I applied the __OfflineCharging__ zip (only 40MB) and now I"m unable to unlock PIN lock screen on phone. The phone correctly boots and I see notifications for apps, etc.

However, I'm unable to successfully unlock PIN pattern.

Any ideas? Am I hosed...? -GA :p:confused:
You have to go to /data/system from the TWRP file manager and delete the files called locksettings
 
  • Like
Reactions: gads1

Blankisblank

Member
Jan 7, 2018
19
2
Samsung Galaxy A70
Okay, so 15.0 LOS isn't supported anymore because @Unjustified Dev is now going to work on 16.0 (if he can get a few people to help)? Congrats on the promotion by the way. Or am I misunderstanding something? Sorry it's all a bit confusing for me since this is the first time I've really looked into the development of a phone.
 

Infy_AsiX

Senior Member
Feb 13, 2012
965
389
Brisbane
Nothing wrong here with rotation sensor,but still have battery issues that occurd when upgrading to los15
I grabbed out the old B32+10 backup where it used to work and recorded a video of it, see

When it used to work properly you had to pass like an 80 degree angle. Nowadays it's like 10 degrees. Makes for impossible usage when not sitting idle. Basically always need to lock and unlock rotation to do anything with a deal of inconvenience.

I'm returning on the 16th got a promotion at my second job now I'm quitting my first. My plan is to start fresh on Pie using B32 kernel source and only modify it to work with Oreo camera. We gotta catch up in time for Q.

Been seeing a bunch of fix battery percentage fixes. I said before ZTE oreo release appeared to scrap every change from stable N B32 to start fresh so I've been reverting pieces back to caf and b32 so I too have the battery profile working correctly in my latest kernel for 15.1. I was waiting around to see if ZTE released something new before I go and rewrite everything to be clean and less of a mess for something special.
Looking forward to this. Hopefully it can fix the aforementioned auto rotation issue we've had since Treble started long ago.

Sent from my ZTE Axon 7 using XDA Labs
 
Last edited:

gads1

Senior Member
Nov 14, 2009
114
13
I used the following TWRP: "twrp-3.2.3-0-ailsa_ii.img".

additional notes:
  1. you may encounter issue with unwritable vendor partition. check the Axon7 thread for PARTY.
  2. if flashing Lineage 15.1, you may encounter error on first try ("creating vendor partition failed"), be sure to immediately try again. if fails third time, see #1.
  3. the various boot stacks, modem, etc were confusing for me as well. In addition to having boot stack and modem, if you want Offline charging there's another ZIP to flash. Note you lose fastboot.
  4. when all said an done, if your battery level stays at 50%, there's a kernel fix for that, search axon7 threads for "LOS_kernel".

Tried that and I managed to get into TWRP. I'll start over from scratch and let you know if my results yield some success.

EDIT: Looks like that did the trick. I was successful and it started to boot up with the Lineage Logo. I was wondering if this was a driver error or something, but it looks like Twrp 3.21-6 has an issue where half of the screen will look like static. Don't know if thats me or anything
 
Last edited:

Spazebar

Member
Feb 5, 2011
6
0
Screen Timeout

No matter what duration I set the sleep setting to the screen goes black after 30 seconds of inactivity. I cant figure it out and my wife is starting to get irritated with me. The phone is on 15.1-20190517-NIGTLY-axon7
 

Top Liked Posts

  • There are no posts matching your filters.
  • 94
    http%3A%2F%2Fi.imgur.com%2Ff2gAFBe.png%3F1
    Lineage OS
    About Lineage OS:

    Lin·e·age
    /ˈlinēij/
    noun
    lineal descent from an ancestor; ancestry or pedigree.
    a sequence of species each of which is considered to have evolved from its predecessor.


    Disclaimer:
    LineageOS (Lineage Android Distribution) members or anyone else on this website is not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in the products you find here before flashing it! YOU are choosing to make these modifications, and if you point the finger at us for messing up your device, we will laugh at you. Your warranty will be void if you tamper with any part of your device / software.


    Warning:
    This ROM will not work on devices that have not installed the O bootloader and appropriate modem package below. Any failure in this process could lead to an unrecoverable bricked device.

    Instructions:
    Attention! The bootloader needs to be unlocked!
    1. Install the Universal O bootloader and your model specific modem. Download
    2. Update your version of TWRP. Download
    3. Perform a backup of your current ROM. (optional)
    4. Wipe system,data and cache (optional) [Needed if coming from another rom!; always good to avoid bugs]
    5. Install the ROM. Download or Download Unofficial builds
    6. Install GApps. (optional) [Recommended -> Open GApps (arm64) (8.1)]
    7. Reboot.

    What is CAF?
    Code Aurora, a Linux Foundation Collaborative Project, hosts tested open source software code needed to provide upstream enablement for innovative, performance optimized, network connectivity and related ecosystems to support system on a chip (SoC) products. It also serves as a staging area for open source code that is submitted to various upstream projects such as the Linux kernel and Android. CAF also mirrors key upstream projects for use by the community.

    Sources, Changes, & Wiki:
    Source | Changes | Axon 7 Wiki | Lineage OS

    Credits:
    @Unjustified Dev
    @DrakenFX

    XDA:DevDB Information
    [OFFICIAL] LineageOS 15.1 for ZTE Axon 7, ROM for the ZTE Axon 7

    Contributors
    OrdenKrieger, Unjustified Dev, DrakenFX, tdm
    Source Code: https://github.com/LineageOS/android_kernel_zte_msm8996/tree/lineage-15.1

    ROM OS Version: 8.x Oreo
    ROM Kernel: Linux 3.x
    ROM Firmware Required: O bootloader + region modem
    Based On: LineageOS

    Version Information
    Status: Nightly

    Created 2018-06-05
    Last Updated 2018-10-14
    52
    I made this thread detailing a bit more how I got my phone bricked, so people don't do the same thing as me.

    https://forum.xda-developers.com/axon-7/help/bricked-phone-trying-to-install-los-15-1-t3847517
    To avoid more device bricks I have created very detailed, easy to follow instructions on how to update with minimal risk. The Bootstack in the OP is fine, but it doesn't support Emergency Download
    (EDL) mode. To avoid that I have gathered my custom B12 Bootstack, the TWRP Labs 1.3 and the Official LOS15.1 into an EDL package.


    BACKUP:

    if you want to keep your information, then you should do a backup of your data before continuing with this guide. You can use the file manager to move your Documents, Downloads, Music, Pictures, Videos, etc... from your internal storage to an external SD card. You can upload them to a cloud service such as Google Drive, One Drive, MEGA, DropBox, etc. Or use the USB connection to move your information to your PC.


    DEVICE UNLOCK:

    Unlocking your bootloader will trigger a factory reset, and will delete the internal storage along with all the information in your phone. If your Axon 7 bootloader is still locked, you have to follow this guide before proceeding to the rest of this guide. It works for Marshmallow and Nougat stock phones. Please use that thread to ask any question related to unlocking your device.


    INSTALLATION INSTRUCTIONS:


    WARNING, THIS GUIDE WILL WIPE ALL THE DATA IN YOUR DEVICE, INCLUDING THE INTERNAL STORAGE.
    IT REQUIRES YOUR DEVICE TO BE UNLOCKED, OTHERWISE YOUR DEVICE COULD BE BRICKED.
    !!! Whatever you do, it is at your own risk !!!

    In case you get stuck at any point in this guide, do not panic! There is a straightforward way to go back to stock. Just follow this Unbrick/Restore guide. I've tried to make things as easier as possible for everyone, specially newbies not used to deal with the Axon 7. So, I have created stable custom EDL packages. In order to reduce the risk and complexity, this one Stop ROM Shop performs all the following actions in a single flash:
    - installs my customized B12 Bootstack with EDL support
    - removes unlocked bootloader annoying warning message.
    - creates vendor partition.
    - installs TWRP Labs Mod 1.3 custom recovery
    - installs Official LOS15.1 ROM.
    - And the guide also helps you to format data and cache as f2fs in case you haven't done it already. It provides better battery, performance and extends the lifespan of the internal flash.

    STEPS

    1. Download and Unzip Axon7_LOS15.1_180925_B12Oki_TWRP_LABS1.3_FULL_EDL.zip to a folder in your computer, ensuring there are no errors. I have an A2017U, so the American modem is the package default. If you have an A2017 or A2017G just copy your modem firmware, from the corresponding provided modem subfolder, to the main folder. Just overwrite the default American modem file.
    2. Install MiFlash in your PC. It includes the Qualcomm Snapdragon SoC drivers, nonetheless you can always install the latest Qualcomm drivers.
    3. Enter EDL mode using one of the following options:
      • by pressing VolUp+VolDn+Power until the power led flashes briefly
      • Installing a terminal app and typing reboot edl at the app prompt.
      • connecting your phone to your PC and typing adb reboot edl at your computer's command prompt.
      • While your phone is completely off, press VolUp+VolDn while connecting your phone to your PC.
    4. If you haven't done yet, it's time to connect your phone to your computer.
    5. Open MiFlash in your computer.
    6. Click Browse button and select the folder you created with the firmware files in step 1.
    7. Click Refresh button and your device will appear listed as virtual COM port.
    8. Click Flash button and wait for a few minutes until it finishes. Note the bottom options are not applicable.
    9. Press VolUp+Power until the phone vibrates, then release both buttons and wait for TWRP to boot. Go to Reboot menu and keep pressed VolUp while tapping on DM-Verity ON until the phone vibrates. TWRP will restart.
    10. Go to Reboot menu and keep pressed VolUp while tapping on eMMC Write until the phone vibrates. TWRP will restart.
    11. Go to Advanced > Oki Labs menu and tap on Expand OS.
    12. To ensure everything is clean you should format the DATA partition, including internal storage. Go to main menu > settings and ensure "Use rm -rf instead of formatting" option is not selected. Then go to Wipe > Advanced Wipe, select Data partition and tap on Repair_or_Change_File_System button and then on Change_File_System button. Select F2FS and confirm action. Do the same to apply F2FS to the Cache Partition.
      NOTE: If you receive an error while formatting data, then go to Wipe > Advanced Wipe, select Data partition and tap on Repair_or_Change_File_System button and then on Change_File_System button. Format DATA as EXT4 first and, without leaving TWRP do it again as F2FS. That will fix the issue.
    13. Go to main menu and reboot system.

    Happy transition to Official LineageOS 15.1 Oreo. I have not included Google Apps and Magisk root since I just wanted to create a basic package with easy to follow instructions. If you are interested in expanding these instructions with GApps and Magisk just let me know.
    43
    Lol all those thumbs up. I don't get it. Is this a hint or something?
    Jealous? No sir lol I'm just subscribing myself trying to catch up on things I just came back from a 21st birthday vacation. I do want to wait around and see what all issues people find that we couldn't. To be fair about battery life etc we didn't get the latest and greatest Oreo kernel source I received a bad beta with horrible overheating and battery life. I decompiled the dtb (device tree blob) from the prebuilt B12 kernel and that helped a lot as you can see no one hand is burning which is what I experienced before. Hopefully we can get everything solved and worked out eventually. I'm basically handing everything over to OP I'll continue to contribute though so I'll probably be getting back in touch with everyone on Hangouts soon to see if I can get some of the small necessary things out of the way like SELinux, offline charging mode, and the flip cover. At this point there's no reason to report anything previously reported, I've read every single comment and page just be patient

    Sent from my G8142 using Tapatalk
    40
    I'm returning on the 16th got a promotion at my second job now I'm quitting my first. My plan is to start fresh on Pie using B32 kernel source and only modify it to work with Oreo camera. We gotta catch up in time for Q.

    Been seeing a bunch of fix battery percentage fixes. I said before ZTE oreo release appeared to scrap every change from stable N B32 to start fresh so I've been reverting pieces back to caf and b32 so I too have the battery profile working correctly in my latest kernel for 15.1. I was waiting around to see if ZTE released something new before I go and rewrite everything to be clean and less of a mess for something special.

    Sent from my G8142 using Tapatalk