[ROM][N5][7.1.2_r24]★ Pure Nexus ★ Substratum ★[31/07/17]

Search This thread

nathanchance

Senior Recognized Developer / Recognized Contribut
Jul 22, 2015
13,751
49,972
26
Mesa, AZ
nathanchance.dev
Super happy to see more and more developers adopt upstreamed kernels :) The primary reason being these patches are important due to the bugs and security vulnerabilities they fix and they are only allowed under these circumstances. They are stable.

Now I have gotten flack or scoffed at by several developers for this for a few reasons which I will (try to) debunk now:

1. Linux upstream causes instability
This CAN be true, if your upstream merge is done improperly. But this is also the case with something like a Google security update; any time there are conflicts, there is a risk that you may do a mismerge and cause instability. If you are smart and confident in your ability to look at code and understand the context (which I am), you will have no issues with this. Furthermore, I always recommend people go version by version, testing to make sure nothing breaks. There is only one commit in 3.10 that I know for sure breaks something and it is not even needed due to the way Qualcomm chips are setup. Same thing with 3.18.

2. We don't use 99.9% of upstream commits
Just yesterday a developer said this, which is completely and utterly inaccurate. Almost every single version has at least a few commits that are relevant to us. Just in the last few versions of 3.10 and 3.18 there have been SEVERAL CVE fixes, mostly to the networking stack, bugs that have been present since 2007. While I will concede a lot of the patches aren't relevant to us, they aren't going to do anything if they are in the source. It's very easy to do upstream on top of stock source then add your custom modifications on top of it so you don't get overwhelmed (that's what I do). I can go through and probably pick out at least 5-10 CVEs that are patched in upstream but not Google's source.

3. You'll never feel a difference
This is pretty much true; you won't. However, that's not the point. Most if not all of these fixes are to certain subsystems that don't impact performance, like ext4, filesystems, sound, networking, arm64, etc. These are to prevent vulnerabilities and prevent crashes or oops. Not all problems are a user visible issue. The kernel is massive and may be experiencing internal issues without you realizing it.

Ultimately, I don't want people to buy into the notion that upstreaming isn't important; it is. It's taking relevant bug fixes from paying companies for free (even though they may not have a visible user impact but it's rare that any kernel patch does). If a kernel developer doesn't want to do this, it's usually because they don't have the time or are lazy, which I disagree with. This is about security and the user experience, it's worth the time to do as I did.

Do realize if your custom kernel isn't upstreamed, you are losing out on this.

More reading: https://forum.xda-developers.com/an...rence-how-to-upstream-android-kernel-t3626913
 

Achi Shukuteki

Senior Member
Jan 17, 2017
64
16
Dirty flash ok?
I dirty flashed. All is well. However...

---------- Post added 30th July 2017 at 12:02 AM ---------- Previous post was 29th July 2017 at 11:59 PM ----------

Update time:
https://www.androidfilehost.com/?fid=673368273298975168

-Updated to July patch
-Kernel is now from DU (which is upstreamed)
-Check the official changelog for the rest
Ever since the June update, the camera keeps crashing. Any tips? I can try and reflash again but I tried that last month.
 
  • Like
Reactions: Passaralho

Schnuffel2008

Member
Aug 7, 2016
19
13
Hi,
I am having the same problem.
Whenever I open substratum I have a message thattheme interfacer will be shutting down and I can't apply any overlay. Trying it with root ( magisk 13.3) and rootless. Tried different happy beans mini and full 072517. I've done a clean flash (two times). (Substratum 815, interfacer version 62).
Everything else seems okay.
Thanks for this new version of a great ROM
 
Last edited:
  • Like
Reactions: catharsis724

thenugdestrroyer

Senior Member
Jun 22, 2012
1,843
2,581
So on this update we just wipe caches and flash?

Sent from my Nexus 5 using Tapatalk

---------- Post added at 07:26 PM ---------- Previous post was at 07:25 PM ----------

I ain flashing this until the issues are resolved, good to know ??

Sent from my Nexus 5 using Tapatalk
 

Schnuffel2008

Member
Aug 7, 2016
19
13
Meanwhile I have found a workaround for the subs-issue that helped me. But you need root access for it.
Make a backup of theme interfacer with titanium backup after the installation of the ROM. Then install it again ( I use install app and data). After that you can install substratum and the themes and everything works as it should be (for me).
After having a closer look what has changed I noticed that before the reinstallation of theme interfacer the app was missing in menu: settings/apps. After the reinstallation it is listed there and everything works. Maybe this is helpful...
 
  • Like
Reactions: lion_2006

lion_2006

Senior Member
Apr 4, 2013
212
27
Meanwhile I have found a workaround for the subs-issue that helped me. But you need root access for it.
Make a backup of theme interfacer with titanium backup after the installation of the ROM. Then install it again ( I use install app and data). After that you can install substratum and the themes and everything works as it should be (for me).
After having a closer look what has changed I noticed that before the reinstallation of theme interfacer the app was missing in menu: settings/apps. After the reinstallation it is listed there and everything works. Maybe this is helpful...

I tried this method but it didn't work , can you give the procedures in more details
 

Schnuffel2008

Member
Aug 7, 2016
19
13
I tried this method but it didn't work , can you give the procedures in more details

I thought that I've told everything in detail.and that it would help.
So once again.
I have installed a clear version of the newest pure nexus image with the latest version of the bean mini happy. Then I've installed the latest version of magisk manager (5.1.1) and magisk (13.3).
Then I've made a backup of theme interfacer with titanium backup (8.02).
Afterwards I've reinstalled theme interfacer with titanium backup and made a reboot.
The next step is to reinstall theme interfacer with titanium backup again. When I've tried this titanium backup keep working without ending (spinner turns round and round. Maybe this is because theme interfacer is a system app).
So I've reboot again and strictly after the reboot I've try to install theme interfacer with titanium backup again and now the backup works. Afterwards I've installed substratum theme engine and Belo and now it works ( I believe it is important that theme interfacer is listed under menu/settings/apps after the reinstallation!)
I attend a screenshot to show you that it works...
Best wishes
 

Attachments

  • Screenshot_20170731-150011.png
    Screenshot_20170731-150011.png
    115.6 KB · Views: 366
  • Screenshot_20170731-145840.png
    Screenshot_20170731-145840.png
    209.1 KB · Views: 364
  • Screenshot_20170731-151540.png
    Screenshot_20170731-151540.png
    170.5 KB · Views: 354
Last edited:

ibnu jafar

Member
Jan 6, 2017
13
0
I thought that I've told everything in detail.and that it would help.
So once again.
I have installed a clear version of the newest pure nexus image with the latest version of the bean mini happy. Then I've installed the latest version of magisk manager (5.1.1) and magisk (13.3).
Then I've made a backup of theme interfacer with titanium backup (8.02).
Afterwards I've reinstalled theme interfacer with titanium backup and made a reboot.
The next step is to reinstall theme interfacer with titanium backup again. When I've tried this titanium backup keep working without ending (spinner turns round and round. Maybe this is because theme interfacer is a system app).
So I've reboot again and strictly after the reboot I've try to install theme interfacer with titanium backup again and now the backup works. Afterwards I've installed substratum theme engine and Belo and now it works ( I believe it is important that theme interfacer is listed under menu/settings/apps after the reinstallation!)
I attend a screenshot to show you that it works...
Best wishes
What the theme?
 

davin3377

Member
Apr 2, 2011
19
7
Thanks, It works well !

I thought that I've told everything in detail.and that it would help.
So once again.
I have installed a clear version of the newest pure nexus image with the latest version of the bean mini happy. Then I've installed the latest version of magisk manager (5.1.1) and magisk (13.3).
Then I've made a backup of theme interfacer with titanium backup (8.02).
Afterwards I've reinstalled theme interfacer with titanium backup and made a reboot.
The next step is to reinstall theme interfacer with titanium backup again. When I've tried this titanium backup keep working without ending (spinner turns round and round. Maybe this is because theme interfacer is a system app).
So I've reboot again and strictly after the reboot I've try to install theme interfacer with titanium backup again and now the backup works. Afterwards I've installed substratum theme engine and Belo and now it works ( I believe it is important that theme interfacer is listed under menu/settings/apps after the reinstallation!)
I attend a screenshot to show you that it works...
Best wishes

It works well!
The point is that the 'theme interfacer' should be moved from the system app to the user app.
 

Attachments

  • KakaoTalk_20170731_225335618.png
    KakaoTalk_20170731_225335618.png
    110.3 KB · Views: 278
  • KakaoTalk_20170731_225335279.png
    KakaoTalk_20170731_225335279.png
    130.8 KB · Views: 282

Top Liked Posts

  • There are no posts matching your filters.
  • 236
    0WMoeXoh.png

    The Pure Nexus Project

    Disclaimer:
    We are not responsible for anything that may happen to your phone as a result of installing custom roms and/or kernels. you do so at your own risk and take the responsibility upon yourself.

    "This is a user friendly thread. All feature requests will be heard and considered. I am not against anything that doesn't stray too far away from the original idea of the ROM! Helping one another is also encouraged! Please be respectful and you will always be treated the same way, we are all here for a good experience."


    About:
    The Pure Nexus Project aims to bring stability and features to your Nexus device, while keeping Google's vision in line and not straying too far away from that. If you are looking for a stable ROM with true tested features and minimal bugs, then this is the place to be.


    Features:
    Code:
    [COLOR="#1976D2"]-General[/COLOR]
    *All stock Nexus features working!!
    *Based on AOSP Android 7.1.2_r24
    *Busybox, Init.d, Addon.d support
    *Googles sounds from the factory images not the horrible AOSP ones
    *Bug fix's and stability improvements
    *UI Improvements (fixed a bunch google forgot to materialize)
    *Full Substratum Theme Engine support
    *ADB enhancements (ADB over wifi, Hide ADB icon, colored logcat "abd logcat -C")
    *Enabled Developer settings by default
    *Disabled forced encryption
    *Disabled tether provision checks
    *Added Advanced Reboot menu
    *Added back volume adjust sounds and toggle
    *Added Advanced charging sound controls
    *Added PureAmbient display options
    *Added Special keys to all keyboard keys
    *Added Quick setting header Longpress actions
    *Added ability to see app version when sideloading app
    *Added app package name to app info screen
    *Added ability to launch app when touching app icon in app info screen
    *Added phone info shortcut to about phone/status on top
    *Added dynamic vendor image notification
    *Added additional battery saver trigger steps
    *Added Increasing ringtone option
    *Added Dialer Lookup, Proximity speakerphone, Incall vibration options
    *Removed googles SystemUpdate option
    *Removed googles legal information
    
    [COLOR="#1976D2"]-PureNexus Settings[/COLOR]
    [COLOR="red"]Lock Screen[/COLOR]
    *double tap anywhere to sleep
    *Long press power for torch
    *Option to disable lockscreen media art
    [COLOR="red"]Notification Drawer[/COLOR]
    *quick settings pulldown (left,right,always)
    *smart pulldown (no ongoing, no dismissable, no notifications)
    *Force Expanded Notifications
    *Brightness slider on/off toggle
    [COLOR="red"]Statusbar[/COLOR]
    *Clock customization(show clock, show seconds, alignment, ampm, date, date style, date position, date format)
    *Network traffic meter options(enable, display units, update interval, hide arrows, inactivity threshold)
    *Statusbar icon blacklist
    *Battery percentage
    *Double tap on statusbar to sleep
    *Status bar brightness control
    *Status bar notification count
    [COLOR="red"]Navigation Bar[/COLOR]
    *Navigation bar tuner
    *multiwindow navbar swipe gesture
    [COLOR="red"]PowerMenu[/COLOR]
    *Option to disable on secure lock
    *Add/remove (reboot, screenshot, screen-record, torch, airplane mode, user switcher,settings shortcut, search, voice search, lock now, sound panel)
    [COLOR="red"]Volume Rocker[/COLOR]
    *Volume keys control media volume
    *Volume key wake
    *Volume key music control
    *Volume key orientation swap
    *Volume down to enter do not disturb
    *Volume up to exit do not disturb
    *Do not disturb volume panel switch
    *Volume key keyboard cursor control
    [COLOR="red"]Display[/COLOR]
    *screen color and appearance(color control, night mode)
    *option to enable/disable wake on plug
    [COLOR="red"]Media & Notifications[/COLOR]
    *Power notification controls
    [COLOR="red"]Tools and info[/COLOR]
    *Phone info shortcut
    *Battery stats shortcut
    *Usage statistics shortcut
    *Build.prop editor
    *FiSwitch (standalone shortcuts)

    Downloads & Changelog:


    Credits & Thanks:


    The Cheeky Bastards - Bajasur, Dwitherell, DaveyAnnihalation, Surge1223!!!
    The PureNexus Moderators - MicMars, Kris Nelson, Nathan Chance
    The PureNexus Beta and Themer groups
    The CyanogenMod Community
    Dirty Unicorns
    SlimRoms
    OmniRom
    Euphoria-OS
    And all other open source Devs/Teams i may have missed!


    XDA:DevDB Information
    [ROM][NEXUS 5][N7.1.2] - Pure Nexus - Substratum, ROM for the Google Nexus 5

    Contributors
    GtrCraft, BeansTown106
    Source Code: https://github.com/PureNexusProject

    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.4.x
    Based On: AOSP

    Version Information
    Status: Stable

    Created 2016-10-10
    Last Updated 2017-08-01
    51
    PLEASE READ YOUR APPLICABLE PROCESS AND UNDERSTAND IT BEFORE ATTEMPTING. ALSO READ THE LATEST UPDATE POST AND THIS FAQ, IT HAS SOME GOOD INFO IN IT.

    Pre-requisites: An unlocked bootloader and custom recovery installed. Use this guide if you need assistance with this (just read the beginning of the guide, follow sections 1 and 2, then come here).

    Which path do I choose? Clean install or dirty flash?

    Dirty flash: If you are already on Pure Nexus AND NOT flashing across Android versions (6.x.x to 7.x.x). Please check the update post linked about though. This keeps your apps and their data intact.
    Clean install: When you have problems with dirty flashing, when coming from another custom ROM or stock Android, OR when required (check the update post).

    Always do a clean install before reporting issues :)

    How to dirty flash:

    1. Download the latest Pure Nexus zip, your choice of root zip (optional), and your custom kernel (optional) onto your phone.
    2. Boot into TWRP and make a backup (remove any lock screen security before this, optional but HIGHLY recommended).
    3. Wipe cache and dalvik cache (optional).
    4. Flash Pure Nexus zip.
    5. Flash custom kernel (optional).
    6. Flash root (optional).
    7. Reboot and profit.
    How to clean install:

    1. Download the latest Pure Nexus zip, your choice of root zip (optional), and your custom kernel (optional) onto your phone.
    2. Backup any important data.
    3. Delete any Layers you have installed
    4. Boot into TWRP and make a backup (remove any lock screen security before this, optional but HIGHLY recommended).
    5. Wipe system, data, cache, and dalvik cache in Wipe > Advanced Wipe.
    6. Flash Pure Nexus zip.
    7. Flash custom kernel (optional).
    8. Flash root (optional).
    9. Reboot and profit.
    Root links:
    A note about Open GApps:

    If you want to flash Open GApps, you MUST omit the Google Package Installer; otherwise, your permissions requests will be elongated and unpressable. To do this, follow the below process before step 3 above:
    1. Download the appropriate Open GApps zip and place it in the location of your choice.
    2. In the same location as the GApps zip, make a file named ".gapps-config".
    3. In that file, simply type "PackageInstallerGoogle".
    4. Save the file and continue on in your process.
    To read more on this, visit Open GApps' wiki. This process is NOT necessary with Banks or PN GApps.
    46
    Useful Links:
    Detailed Installation instructions (By @nathanchance) http://goo.gl/B1XUru
    Frequently Asked Questions (By @nathanchance) http://goo.gl/BdzZaH
    PureNexus User Signatures (By @malybru) http://goo.gl/eBJwEK
    42
    Time to update:
    https://www.androidfilehost.com/?fid=529152257862711703

    - March update (r26)
    - Rootless Substratum
    - I will update the OP later
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone