[GUIDE][TREBLE] Axon 7 Custom OREO ROM installation for newbies - 2018.08.05

MrGodMan

Member
Apr 7, 2016
43
6
0
Oreo System:
+ Flash TWRP v3.2.1-7 and reboot again to recovery. Support thread here. Now wipe Data, Cache, Dalvik and System partitions and proceed to the next step without reboot.
+ Flash B32-B10 Bootloader and reboot again to recovery
+ Flash RR-O-v6.0.0-20180511-axon7-Unofficial (includes Hellsgate Kernel 2.2.1). Or flash your favorite AOSP ROM here. Do not reboot unless you are instructed to do so!!!
+ Flash APNlist_v1.1.2018-05-12 to fix the APN bug of the ROM.
+ Flash OpenGAPPS ARM64, 8.1, Micro
+ Flash Hellsgate Kernel v2.3, Support thread here.
.
Probably a stupid question but if I'm coming from a different Oreo ROM (AOSP Extended) I don't need to flash the bootloader I can just wipe system and data then flash RR-O v6 and continue with the steps from there?
 

Oki

Senior Member
Jul 6, 2006
1,009
1,858
0
East Coast
Probably a stupid question but if I'm coming from a different Oreo ROM (AOSP Extended) I don't need to flash the bootloader I can just wipe system and data then flash RR-O v6 and continue with the steps from there?
Yes, just follow the update instructions. You can try a dirty flash. If you find problems just do a clean install.
 
Last edited:
  • Like
Reactions: MrGodMan

kaplah

Member
Sep 12, 2008
28
4
0
A quick note of issues I've run across.

1) Daydream does not work in RR. If you're a VR enthusiast you're better off staying stock
2) I've used both Lineage OS 15.1 and RR. Both have an issue with music playback (podcasts, pandora, doesn't matter) and web browsing. If you open any web browser music cuts off.
 

bornlivedie

Senior Member
Aug 29, 2012
1,877
740
143
Buenos Aires
A quick note of issues I've run across.

1) Daydream does not work in RR. If you're a VR enthusiast you're better off staying stock
2) I've used both Lineage OS 15.1 and RR. Both have an issue with music playback (podcasts, pandora, doesn't matter) and web browsing. If you open any web browser music cuts off.
Most likely that's because the page you're viewing has videos or ads with sound in it.

Try to load google and you will see that the music doesn't stop.
 

bornlivedie

Senior Member
Aug 29, 2012
1,877
740
143
Buenos Aires
Afraid not. Even if I scroll right from the home screen to the Google now screen music cuts out.
Weird. Maybe it's awaiting voice input?

Try to reset all apps to their defaults or reinstall the launcher and browsers.

It's weird because RR shares the same base with AEX/Havoc/Candy and I had no issues with those roms.

If nothing works I'm afraid you will have to reinstall your rom.
 

Seguraf13

Senior Member
Oct 20, 2012
77
15
38
Grand Rapids
www.fscompany.webs.com
Q1: Have you tested it?
Q2: Are you sure ailsa_ii value has to be only at ro.product.board and not at ro.product.device properties?
Q1 I have used daydream for the past few days and its working fine, just the blur is higher from not having the display flicker mode supported to reduce it

Q2 I simply changed all the values in the buildprop from axon7 to ailsa_ii since when i tried havocos it had slightly different lines

---------- Post added at 02:38 PM ---------- Previous post was at 02:33 PM ----------

A quick note of issues I've run across.

1) Daydream does not work in RR. If you're a VR enthusiast you're better off staying stock
2) I've used both Lineage OS 15.1 and RR. Both have an issue with music playback (podcasts, pandora, doesn't matter) and web browsing. If you open any web browser music cuts off.
The fix for daydream that I've been using is to change all the buildprop values from axon7 to ailsa_ii and setting the the vr display mode from reduce blur to reduce flicker (that can be found in the settings under display). This will get you a non distorted daydream with working home and library view, albeit with more blurring when moving quickly as asop does not support the flickering to reduce blur. I only really use my daydream for watching videos so it's not much of a issue but I can imagine that you wanted to try games it could be.
 

kaplah

Member
Sep 12, 2008
28
4
0
Q1 I have used daydream for the past few days and its working fine, just the blur is higher from not having the display flicker mode supported to reduce it

Q2 I simply changed all the values in the buildprop from axon7 to ailsa_ii since when i tried havocos it had slightly different lines

---------- Post added at 02:38 PM ---------- Previous post was at 02:33 PM ----------



The fix for daydream that I've been using is to change all the buildprop values from axon7 to ailsa_ii and setting the the vr display mode from reduce blur to reduce flicker (that can be found in the settings under display). This will get you a non distorted daydream with working home and library view, albeit with more blurring when moving quickly as asop does not support the flickering to reduce blur. I only really use my daydream for watching videos so it's not much of a issue but I can imagine that you wanted to try games it could be.
So far you've offered the most assistance with this nagging issue. So I've modified the buildprop and it does correct the view width, but now the power button is no longer disabled when in daydream mode. So closing the strap turns off the phone... This is a rather dumb issue with the daydream headset and one I can bypass by using a pen as a strain relief, but do you know of a fix for this issue?
 

Seguraf13

Senior Member
Oct 20, 2012
77
15
38
Grand Rapids
www.fscompany.webs.com
So far you've offered the most assistance with this nagging issue. So I've modified the buildprop and it does correct the view width, but now the power button is no longer disabled when in daydream mode. So closing the strap turns off the phone... This is a rather dumb issue with the daydream headset and one I can bypass by using a pen as a strain relief, but do you know of a fix for this issue?
Theres some stuff you could 3d print (waiting on trying to print that) or since i have a case with raised buttons, deflect the strand between the power and volume button. I would be great if we could flip the phone onto the other side but daydream yells at ya for having the phone upside down
 

kaplah

Member
Sep 12, 2008
28
4
0
Aaaand nope. I thought the modification worked, but I'm still seeing the same issue where everything is stretched out and it crashes when I try to load the library. I might not have used the right process. I modified the file with a find / replace all then rebooted. I'm guessing I may need to modify the rom file and then do a dirty flash?

Like I said I've found a simple pen works well. I did 3d print those parts and found them to be more of a pain in the rear end then a help.
 
Last edited:

Oki

Senior Member
Jul 6, 2006
1,009
1,858
0
East Coast
@Oki Can you also add the previous instructions without MiFlash?
As you wish...


WARNING, THIS GUIDE WILL WIPE ALL THE DATA IN YOUR DEVICE.
!!! Whatever you do, it is at your own risk !!!

Right, No official Oreo update yet for the Axon 7. But, who cares? Right now @NFound (in the AEX ROM thread) and @Kranoner (in the Hellsgate Kernel thread) are building and kindly sharing unofficial releases of several custom Oreo 8.1 ROMs. Most notably LineageOS 15.1, AEX and Resurrection Remix (my favorite). @Victor13f has also created a guide on how to install the leaked Stock Oreo 8.0 Beta ROM. I really advise to upgrade to any of the current Oreo ROMs since the current unofficial releases of RR-O and AEX-O ROMs work way better than the previous official Nougat versions. The only known issue is a bug that doesn't allow phone calls to a SIM if data is not enabled in a dual SIM configuration. For those requiring dual SIM functionality i strongly recommend to go for the leaked stock Oreo 8.0 ROM. Nonetheless the custom AOSP Oreo 8.1 ROMs offer a wider spectrum for tweak, performance and battery.

@Kranoner is adding his full featured and optimized kernel for custom ROMs, Hellsgate, supporting almost everything. It sports backported drivers from Linux 4.15 and 4.16.

I posted my configuration before inside a couple of threads. After that, I have received a lot of questions about the same issues. I have also been asked to create a thread so newbies could have an easy way of having an Oreo system up and running in the Axon 7. So I am doing it. Newbies will have an easy entry point to the world of custom Oreo ROMs and a single point to clarify any question. I will start describing my own configuration but I plan to include other configuration I've tested and links to other useful guides in this forum. By the way, the following setup works in any Chinese, Euro or American Axon 7. Of course you have to download all the files linked below and place them into your internal or external storage to be available for flashing. 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.

BACKUP:
Please note that a dirty flash won't work when coming from Nougat or any other Oreo ROM. So, if you want to keep something, then you should do a backup of your data at this point before continuing with this guide. Only then you should safely proceed with the next steps.

DEVICE UNLOCK AND CUSTOM RECOVERY INSTALLATION:
If you haven't done it yet, you have to unlock your Axon 7 and and install TWRP recovery. This guide works for Marshmallow and Nougat stock phones. Please use that thread to ask any question related to unlocking your device.

OREO SYSTEM:
+ Flash TWRP v3.2.1-8 image file (not a flashable zip file) and reboot again to recovery. Support thread here. Now wipe Data, Cache, Dalvik and System partitions and proceed to the next step without reboot.
+ Flash B12 Oreo Bootloader and reboot again to recovery (it will take a few seconds longer than previous bootloaders).
+ Flash your favorite Oreo 8.1 ROM and continue without rebooting. These are the main options so far, all of them provided by @NFound:
- RR-O-v6.1.0-20180708: Resurrection Remix has almost all customization options you can find out there. It is my recommended option.
- AEX-O-5.7-20180711: AEX is a very complete ROM, carefully curated and with tons of options too.
- HavocOS-O20180716: For those who want round corners everywhere with a touch of Android P aesthetics. Tons of customization options too.
- DU-O-v12.4-20180709: Dirty Unicorns is another AOSP/CAF based project aimed to provide an enhanced but easy to use stock Android experience.
- Pixel-O-v8.1.0-20180624: For those who love the Pixel Experience. Google Apps are included in this ROM so you have to bypass the OpenGAPPS step.
+ Flash OpenGAPPS and do not reboot yet. By the way download selecting ARM64, 8.1, Micro.
+ Last but not least. The Kernel, the program that connects all the apps with the hardware. You can use the default one and leave this step for later, or flash any of these:
- Hellsgate X12 Kernel, Support thread here. This is the one I use and recommend.
- Schwifty R2 Kernel, Support thread here. The newcomer!

ROOT:
+ Flash Magisk 16.6. It comes bundled with Magisk Manager 5.8.0. IMPORTANT: you have to flash this module every time you update the Kernel or the ROM since the Magisk support is overwritten.

UNLOCK BOOT MESSAGE REMOVAL:
If you want to remove the annoying message at boot, again, you just need TWRP Exclusive, if you are following the guide you must be now running it. So, you just need to go to advanced menu > more > Del inscription. You have to do this every time you update the bootloader.

FOR SPEED, SMOOTHNESS AND BATTERY LIFE:
+ Follow the guide F2FS migration of Data and Cache partitions (Increases filesystem speed and battery life). I really encourage everyone to do this. It is like having a next generation phone. The configurations in this guide support f2fs in both the data and cache partitions.

At this point you can now boot into the system, register into Google and begin configuring the Oreo system to your own preference. I continue here with some suggestions that can also improve your experience:

SOUND EXPERIENCE:
For amazing audio experience use one of the following audio options, not both:

Audio Option 1 (recommended): Requires Magisk Root. Use Magisk Manager to Download and install:
+ Ainur Sauron MK II.II (19.06). Support thread here.
+ Viper4Android FX v1.6.9. Support thread here. If you have problems with the volume up/down buttons installing from TWRP, then enable buttons in TWRP settings page and try again.
+ Should you REALLY want Dolby ATMOS, Flash Dolby Atmos™ for Oreo 20180220 using TWRP. It works along with V4A but at the cost of some annoyances and issues. if you want to have a smooth experience, then you will have to choose between V4A and ATMOS. I use to listen to music so I am using V4A and not ATMOS.
+ Audio Modification Library v1.7.2. AML support thread here. IMPORTANT: This module must be installed after all the other audio add-ons.

Audio Option 2:
+ Flash ARISE Sound System Deuteronomy 2.2.3 patched (includes Viper4Android)
+ Flash Dolby ATMOS add on for ARISE
+ Flash AK4490 HIFI DAC Patch
You can find in an old guide my preferred settings for Viper4Android, nonetheless it is a very personal setup so just use them as an starting point to adjust V4A to your headphones and ear.

AVOID BATTERY DEGRADATION:
+ Install Battery charge Limit [ROOT] app. Open it and set Limit charge to 85% and recharge below 79%. Do you want to avoid your battery to wear as the time go by? do not miss this guide to understand why this step is so important for the health of your device.

BETTER CAMERA:
+ Snap Camera App
I am using, and heavily recommend the paid version of Snap Camera HDR. It supports Camera2 API with full manual and HDR support. Find recommended settings here.
Testing now GCAM v4.0. Nonetheless so far I am just starting testing.
Bacon Camera is another Camera I am now actively testing.

SCREEN COLOR ENHANCEMENT:
+ KCAL Color Calibration/enhancement app. This is optional since EX Kernel Manager and Kernel Adiutor also support Color Control. I only modify the Saturation to 62, nonetheless this is a very personal configuration. At the end this has to please your own eyes. This feature is supported only by advanced kernels. If your AOSP ROM is not supporting it, then just upgrade your Kernel.

ROM DIRTY UPDGRADES:
After following this guide, new ROM updates of the same flavor will require only a dirty flash (AKA you do not lose your data but you can get sometimes, not often, unexpected results, so a backup is always advised). In that case just follow these steps:
1. Boot to TWRP and wipe only system, cache and dalvik partitions. Then proceed to the following steps without rebooting.
2. Flash the new ROM + Gapps + kernel (if different than the one integrated in the rom) + Magisk in that order.
3. Should you use the Audio Option 2, then you have to flash those modules. Otherwise disregard this step.
4. Reboot to system to enjoy the updated ROM.

Should you find any problem with lockscreen password or pattern after updating the firmware, then just boot TWRP by maintaining vol up pressed while the device is rebooting. Go to Advanced > More > Unlock > Reset Lockscreen. Then reboot to system. After that you will need to setup your security settings within the Android settings and activate the Smart Lock under Trust Agents.

Hope it helps. I will be updating this guide in the future as soon my configuration changes or I find new technologies, apps or patches. If you know about a better option just post your suggestions!
 

Oki

Senior Member
Jul 6, 2006
1,009
1,858
0
East Coast
New OP, Now with TREBLE support!

I have updated the OP with a new basic system Axon7_OREO_B12_TREBLE-Ready_Oki20180728_FULL_EDL.7z with huge implications:

1. Creates the new vendor partition already formatted and provides all you need to flash TREBLE_A ROMs the same way we've been doing so far with the old Nougat ROMs.
2. It includes the new OpenGapps 2018.07.27
3. It now uses the latest Magisk 16.7
4. Added link to download the semi-Treble ROMs Havoc OS and AEX.
5. Added link to new TWRP 3.2.1-8 TREBLE
 
Last edited:

Oki

Senior Member
Jul 6, 2006
1,009
1,858
0
East Coast
UPGRADE TO THE NEW TREBLE BASIC SYSTEM WITHOUT LOSING YOUR PROGRAMS AND DATA
WARNING, !!! Whatever you do, it is at your own risk !!!

If you are using the previous Basic Oreo System I provided in the old OP, You can upgrade without losing your apps, data and configuration. All you need is an SD card with enough free space. An empty external SD card of the same size as the internal storage will ensure this requirement. After completing these steps, you will be able to flash back and forth from Treble and non-treble versions of AEX the same way you have been doing before, and with the usual risks of any other dirty flash.

To update to TREBLE you need a Windows PC, Windows 10 is highly recommended. Do this:
  1. In your computer, Download Axon7_OREO_B12_TREBLE-Ready_Oki20180728_FULL_EDL.7z.
  2. Un7zip the package to a folder, 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.
  3. Install MiFlash in your PC. It includes the Qualcomm Snapdragon SoC drivers, nonetheless you can always install the latest drivers.
  4. In your Phone, Boot Recovery by pressing VolUp+Power until it vibrates. Go to Backup, press select_storage button, select your Micro SD card. Now select your data partition (Optionally you can also select system and Boot in case something goes wrong). This will create a backup of your apps and their protected app data among other files. Do not reboot yet.
  5. To backup all your pictures, music, videos, and the rest of the non protected app data in your internal storage, go to the main menu > Advanced > Terminal, at the command prompt type:
    Code:
    tar zcpv sdcard | split -b1024m - /external_sd/sdcard.tgz
  6. You need to know the format of your current data filesystem. If you are not sure, go to Wipe > Advanced Wipe, select vendor partition and tap on Repair_or_Change_File_System button. At the top you will see the File system as EXT4 or F2FS. remember this information and go back to the main menu.
  7. Press VolUp+VolDn+Power until the screen turns off and the power led flashes briefly.
  8. If you haven't done yet, it's time to connect your phone to your computer.
  9. Back in your computer, Open MiFlash.
  10. Click Browse button and select the folder you created with the EDL firmware files in step (2).
  11. Click Refresh button and your device will appear listed as virtual COM port.
  12. Click Flash button and wait for a few minutes until it finishes. Note the bottom options are not applicable.
  13. Once it had finished, press VolUp+Power until the phone vibrates to enter into recovery
  14. To ensure everything is clean you should format the DATA partition. Go to 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 EXT4 or F2FS depending on what you got in step (6). and confirm.
  15. Without rebooting go to the main menu and tap RESTORE, select your external storage and select the last backup you did. Restore ONLY your data partition. Do not reboot yet.
  16. To restore all your pictures, music, videos, and the rest of the non protected app data to your internal storage, go to the main menu > Advanced > Terminal, at the command prompt type:
    Code:
    cat /external_sd/sdcard.tgz* | tar zxpv
  17. You are all set. Reboot to system.

At this point you can dirty flash any AEX ZIP file, TREBLE or NON TREBLE with the usual risks of any other dirty flash.

Enjoy!
 
Last edited:
  • Like
Reactions: squicky

Raffikie

Senior Member
Oct 10, 2016
116
17
0
You're saying I can install the new android beta preview Roms (GSI)?

---------- Post added at 09:52 PM ---------- Previous post was at 09:50 PM ----------

UPGRADE TO THE NEW TREBLE BASIC SYSTEM WITHOUT LOSING YOUR PROGRAMS AND DATA
WARNING, !!! Whatever you do, it is at your own risk !!!

If you are using the previous Basic Oreo System I provided in the old OP, You can upgrade without losing your apps, data and configuration. All you need is an SD card with enough free space. An empty external SD card of the same size as the internal storage will ensure this requirement. After completing these steps, you will be able to flash back and forth from Treble and non-treble versions of AEX the same way you have been doing before, and with the usual risks of any other dirty flash.

To update to TREBLE you need a Windows PC, Windows 10 is highly recommended. Do this:
  1. In your computer, Download Axon7_OREO_B12_TREBLE-Ready_Oki20180728_FULL_EDL.7z.
  2. Un7zip the package to a folder, 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.
  3. Install MiFlash in your PC. It includes the Qualcomm Snapdragon SoC drivers, nonetheless you can always install the latest drivers.
  4. In your Phone, Boot Recovery by pressing VolUp+Power until it vibrates. Go to Backup, press select_storage button, select your Micro SD card. Now select your data partition (Optionally you can also select system and Boot in case something goes wrong). This will create a backup of your apps and their protected app data among other files. Do not reboot yet.
  5. To backup all your pictures, music, videos, and the rest of the non protected app data in your internal storage, go to the main menu > Advanced > Terminal, at the command prompt type:
    Code:
    tar zcpv sdcard | split -b1024m - /external_sd/sdcard.tgz
  6. You need to know the format of your current data filesystem. If you are not sure, go to Wipe > Advanced Wipe, select vendor partition and tap on Repair_or_Change_File_System button. At the top you will see the File system as EXT4 or F2FS. remember this information and go back to the main menu.
  7. Press VolUp+VolDn+Power until the screen turns off and the power led flashes briefly.
  8. If you haven't done yet, it's time to connect your phone to your computer.
  9. Back in your computer, Open MiFlash.
  10. Click Browse button and select the folder you created with the EDL firmware files in step (2).
  11. Click Refresh button and your device will appear listed as virtual COM port.
  12. Click Flash button and wait for a few minutes until it finishes. Note the bottom options are not applicable.
  13. Once it had finished, press VolUp+Power until the phone vibrates to enter into recovery
  14. To ensure everything is clean you should format the DATA partition. Go to 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 EXT4 or F2FS depending on what you got in step (6). and confirm.
  15. Without rebooting go to the main menu and tap RESTORE, select your external storage and select the last backup you did. Restore ONLY your data partition. Do not reboot yet.
  16. To restore all your pictures, music, videos, and the rest of the non protected app data to your internal storage, go to the main menu > Advanced > Terminal, at the command prompt type:
    Code:
    cat /external_sd/sdcard.tgz* | tar zxpv
  17. You are all set. Reboot to system.

At this point you can dirty flash any AEX ZIP file, TREBLE or NON TREBLE with the usual risks of any other dirty flash.

Enjoy!
You're saying I can install even the android beta preview (GSI) Roms?
 

Oki

Senior Member
Jul 6, 2006
1,009
1,858
0
East Coast
You're saying I can install the new android beta preview Roms (GSI)?

---------- Post added at 09:52 PM ---------- Previous post was at 09:50 PM ----------



You're saying I can install even the android beta preview (GSI) Roms?
This is Treble ROM compatible, not GSI compatible. THe Device/vendor part is not yet fully compatible and can't support generic system images at this moment. NFound is working hard to get this done.
 
  • Like
Reactions: kitcostantino

Raffikie

Senior Member
Oct 10, 2016
116
17
0
This is Treble ROM compatible, not GSI compatible. THe Device/vendor part is not yet fully compatible and can't support generic system images at this moment. NFound is working hard to get this done.
Okay, just that in the op page you indicated can install any GSI. I guess I will not attempt an install of the android please beta 5 preview.