[ROM][5X][7.1.2_r24]★ Pure Nexus ★ Substratum | Fi | WiFi Calling ★[07/25/17]

Search This thread

roofrider

Senior Member
Jul 24, 2011
7,042
904
Bangalore, IN
To be honest, it doesn't help, though it's not your fault, and I appreciate your post. But now I need to check further, because it seems incorrect according to what I've been learning (including the original quote from Stack Exchange that your link answered).

I have no directory called "userdata", only "/data". So what does wiping userdata even mean? Everything I read seems to say or imply that userdata is the same as /data. I'll admit that the Android filesystem is pretty confusing, but it seems as if the sdcard is a part of /data, at least on my phone. I browsed into /data/media/0, and found the contents of my sdcard (/storage/emulated/0). If I delete a picture from this directory, it deletes the picture from the sdcard, so I can see it's the same files. Therefore, deleting the /data directory will delete the entire sdcard. So, on my system at least, /data is the same as userdata (whatever that is).

I'm unsure of the manner in which you are going about deleting "/data" here. A Factory Reset (via TRWP) will not delete the contents of your sdcard, whereas Format Data (or wiping your internal storage via Advanced Wipe) will. The TWRP FAQ linked above by PiousInquisitor sheds more light on what happens during the various TWRP wipes.

You will find the contents of your sdcard not just in /data/media/0 and /storage/emulated/0, but also in:
/mnt/sdcard (linked to /sdcard)
/sdcard (linked to /storage/self/primary, which is linked to mnt/user/0/primary, which is in turn linked to /storage/emulated/0)

So, basically you are right. Deleting anything from /data/media/0 will remove it from sdcard. But TRWP does not do this during a Factory Reset, it intentionally skips deleting /data/media. As for the userdata confusion, I'm not sure if its an actual partition (I'll leave it to you guys to find out; not a linux user). I believe it is just a term to refer to a user's data (partition or directory? I've no clue) in its entirety (including one's sdcard aka internal storage).

I think the cause of the confusion here is method followed to remove /data. If you delete /data via ADB (while in recovery), then you will lose everything. If /data is wiped via TWRP, your sdcard content will persist.
 
Last edited:

AndiTails

Senior Member
Nov 28, 2008
411
144
London
I have no directory called "userdata", only "/data". So what does wiping userdata even mean? Everything I read seems to say or imply that userdata is the same as /data. I'll admit that the Android filesystem is pretty confusing, but it seems as if the sdcard is a part of /data, at least on my phone. I browsed into /data/media/0, and found the contents of my sdcard (/storage/emulated/0). If I delete a picture from this directory, it deletes the picture from the sdcard, so I can see it's the same files. Therefore, deleting the /data directory will delete the entire sdcard. So, on my system at least, /data is the same as userdata (whatever that is).

Userdata is exactly that - it's all the data that has been written by the user (so all the settings, your internal sdcard, user installed programs) are wiped as if they didn't exist. Bare in mind that in Google's eyes, a normal 'user' doesn't write to /system or /vendor ...
This is only referred to via fastboot, by Google.

When you "wipe /data" or "Factory Reset" in TWRP, because it thinks you probably don't want to wipe the internal SD card, it purposely skips that bit. It doesn't actually format /data (as that would kill /data/media), it performs an "rm -rf" on all folders, apart from /data/media.
This differs from if you choose "Factory Reset" from within the ROM with a standard recovery - that will actually wipe your internal SD card too - as it's doing as a 'normal' user would probably want.
Remember, a TWRP user is generally considered a more advanced user than the stock ROM user - so the processes differ.

This actually stems from way way way back when "Clockworkmod" was the recovery of choice, and there were complaints that 'wiping' data also killed the internal SD card, and therefore wiped out the ROM file you most likely wanted to flash next. And since then, the 'workaround' has stuck. It was also the 'done thing' to wipe /cache every time you flashed something. I actually put in the request to make it an option when actually flashing a ZIP file and Koush added it the very next day ;) Now it's normally done in the script ran by the ROM file during flashing, so isn't really needed... but it's a relic from 'ye olde times'.


This is all massively off-topic... Sorry!
 

martyfried

Senior Member
Aug 30, 2013
146
30
Pleasant Hill
I think the cause of the confusion here is method followed to remove /data. If you delete /data via ADB (while in recovery), then you will lose everything. If /data is wiped via TWRP, your sdcard content will persist.
Thanks for the input. The main cause of confusion is that I keep reading things that are either incorrect, confused, or incomplete. Many posts freely mix terms for directories or partitions (eg, referring to a directory as a partition), or use a term like userdata that isn't well defined, etc. I'm still learning, so my questions have mostly been figured out. But one thing that seems evident is everything I've read before is wrong. :rolleyes: userdata seems to be data + sdcard, and might be a partition that is mounted at /data. It is either a term that refers to these, or it may refer to userdata.img from the factory image zip file. So far, this is all just an initial theory on my part.

My quest started simply as wanting to find out if doing more than wiping system, data, and caches, then flashing the ROM, vendor, etc would fix any problems with Android Pay. My conclusion is you might as well add reciting magic incantations to the mix, as Android Pay seems to be a lost cause for people like us. :)
 

aringler

Senior Member
Oct 24, 2012
94
8
hey guys,

when I boot up my device, I got the attached error message...
which vendor image version do I have to flash? is it MMB29U? or MMB29Q?
and where can I download it?
you just flash it with fb?
fastboot flash vendor "vendor"zip?

thanks a lot in advance!!

Sent from my Nexus 5X using XDA Free mobile app
 

Attachments

  • 1457012365187.jpg
    1457012365187.jpg
    39 KB · Views: 492

nathanchance

Senior Recognized Developer / Recognized Contribut
Jul 22, 2015
13,751
49,972
26
Mesa, AZ
nathanchance.dev
hey guys,

when I boot up my device, I got the attached error message...
which vendor image version do I have to flash? is it MMB29U? or MMB29Q?
and where can I download it?
you just flash it with fb?
fastboot flash vendor "vendor"zip?

thanks a lot in advance!!

Sent from my Nexus 5X using XDA Free mobile app

You need MMB29Q, it is linked in the OP. If it is the zip file, you flash it in TWRP. If it is an image file, use fastboot.
 
  • Like
Reactions: aringler

vally78

Member
Jan 24, 2009
8
0
Yeah the vendor is a flashable zip. I'd check your APN settings just in case :) just hazarding guesses if I'm honest
I know this is an old thread., but i am having the exact same issue. No internet connection unless on wifi. No LTE. Can you walk me through the steps for check my APN and running the vendor flash?
 

mmartenn

Senior Member
Jun 4, 2011
117
16
ROM or Android problem?

Not sure if this is a ROM or inherent Marshmallow issue, but my DND doesn't always automatically turn on. Anyone have any insight on this issue?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 392
    [ROM][5X][7.1.2_r24]★ Pure Nexus ★ Substratum | Fi | WiFi Calling ★[07/25/17]

    QNtLLPxh.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!!(WiFi calling, Project Fi, VoLte)
    *Based on AOSP Android 7.1.2_r24
    *Busybox, and Init.d support
    *Googles Pixel sounds and OEM wallpapers from factory images
    *Googles Pixel theme and Pixel navbar animation
    *Bug fix's and stability improvements
    *UI Improvements (fixed a bunch google forgot to materialize)
    *Rootless Substratum OMS Theme Engine support
    *ADB enhancements (ADB over wifi, Hide ADB icon, colored logcat "abd logcat -C")
    *Enabled Developer settings by default
    *Enabled Night mode for all devices
    *Enabled App ops
    *Custom night light brightness options
    *Disabled forced encryption
    *Disabled tether provision checks
    *Made preselectable item clickable in app picker dialog
    *Added download speed in notification
    *Added Advanced Reboot menu
    *Added Advanced screenshot functionality (longpress tile/power menu for selectable screenshot)
    *Added back volume adjust sounds and toggle
    *Added advanced rotation control and lockscreen rotation toggle
    *Added ability to lock app in landscape via rotation tile
    *Added advanced charging sound controls
    *Added advanced seekbar style animation controls
    *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 ability to unlink notification volume from ringer volume
    *Added Increasing ringtone option
    *Added Proximity Speakerphone and dialer lookup
    *Added Group support in contacts
    *Removed googles SystemUpdate option
    *Removed googles legal information
    
    [COLOR="#1976D2"]-PureNexus Settings[/COLOR]
    [COLOR="red"]Lock Screen[/COLOR]
    *Lockscreen item option(time, date, alarm text toggles & Clock font style)
    *Double tap anywhere to sleep
    *Long press power for torch
    *Option to disable lockscreen media art
    *Option to scramble the pin entry layout
    *Option to disable the pin ripple background when entering lockscren pin
    *Option to disable fingerprint success vibration
    [COLOR="red"]Notification Drawer[/COLOR]
    *quick settings pulldown (left,right,always)
    *smart pulldown (no ongoing, no dismissable, no notifications)
    *advanced quick settings easy toggle
    *Brightness slider on/off toggle
    *Haptic feedback on quick setting on/off toggle
    *ability to disable quick settings on secure lockscreen
    *ability to disable the quick settings title text
    *ability to change number of quick settings columns
    *ability to change the amount of rows in quick settings
    *ability to set contexual or custom header images
    [COLOR="red"]Recent apps[/COLOR]
    *immersive recents
    *kill all fab
    *kill all fab location
    [COLOR="red"]Statusbar[/COLOR]
    *Battery customization(percentage/icon style)
    *sync battery icon with quick settings tile
    *Battery bar options(location, color, style, thickness, animation)
    *Carrier Label customization(placement, text)
    *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, auto hide, inactivity threshold)
    *Statusbar icon blacklist
    *Double tap on statusbar to sleep
    *Status bar brightness control
    *Status bar notification count
    *Status bar bluetooth battery meter toggle
    [COLOR="red"]Navigation Bar[/COLOR]
    *Navbar toggle and Height/width options
    *Navigation bar tuner
    *Pixel navbar animation toggle
    *Ability to enable one handed mode
    *Ability to enabe double tap to sleep
    *longpress back to kill
    *configurable longpress back to kill timeout
    [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 key keyboard cursor control
    *Volume up and power action (screen record/selectable screenshot)
    *Volume down to enter do not disturb
    *Volume up to exit do not disturb
    *Do not disturb volume panel switch
    *Volume steps customization
    [COLOR="red"]Display[/COLOR]
    *expanded desktop options
    *option to enable/disable wake on plug
    *3 finger swipe for screenshot toggle
    *Battery and Notification LED controls
    [COLOR="red"]Media & Notifications[/COLOR]
    *Ability to turn off vibration when double tapping power button for camera
    *Power notification controls
    *Peeking notification option(on/off, timeout, snooze length)
    *low battery notification toggle
    [COLOR="red"]Miscellaneous[/COLOR]
    *ability to enable app icon on toast
    *force enable or disable scrolling cache
    *incall vibration options

    Downloads & Changelog:


    Changelog: https://goo.gl/P8WBn3

    Current Release Download Link: https://forum.xda-developers.com/showpost.php?p=73176283&postcount=10459

    Rom Builds: https://goo.gl/6If2bP

    Vendor Images(flashable by twrp image option): https://goo.gl/z7YfSc

    Nexus 5x AFH folder: https://androidfilehost.com/?w=files&flid=43157


    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][5X][7.1.2_r24]★ Pure Nexus ★ Substratum | Fi | WiFi Calling ★[07/25/17], ROM for the LG Nexus 5X

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

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

    Version Information
    Status: Stable
    Stable Release Date: 2017-07-25

    Created 2015-11-09
    Last Updated 2017-07-26
    157
    Well after a bit of an absence while rebuilding the rom from scratch for 7.0 i am finally pleased to announce the return of PureNexus!!

    a couple things to note:
    *not all mods from marshmallow will be in the first build so be patient as i add your favorite mods, etc!
    *as of right now the rom only has substratum legacy support. will update to full blown substratum as the stability increases for N!
    *changelog doesnt display anything for this first build as all changes are listed on github/xda op, changelog will be back next release!

    ok, Lets get to the goodies!!

    10/10 PureNexus Bullhead Update is Live!!!

    Download Link: https://www.androidfilehost.com/?fid=312978532265362983

    Updated Gapps Download: https://www.androidfilehost.com/?fid=385035244224383656

    Updated Vendor image: https://www.androidfilehost.com/?fid=457095661767100435

    As always if you like my work dont forget to hit that thanks button.
    Donations are always appreciated but never required, I am only posting the link for convenience, Donate link
    130
    Useful Links:
    Detailed Installation instructions (By @nathanchance) http://goo.gl/6HbDp8
    Frequently Asked Questions (By @nathanchance) http://goo.gl/BdzZaH
    PureNexus User Signatures (By @malybru) http://goo.gl/eBJwEK
    121
    New 7.1.1 Build!! this is a complete rebase, i rewrote the rom from scratch with 7.1.1

    change log might not look that big but a lot of work went into making sure everything is smooth and stable!!

    next release will focus on adding some more missing features from 6.0 but the main one theme-able battery's are now here

    OK, Lets get to the goodies!!

    12/15 Pure Nexus Bullhead Update is Live!!!

    Download Link: https://www.androidfilehost.com/?fid=385035244224405810

    Gapps Download: https://goo.gl/idK1eL

    Gapps XDA thread: http://forum.xda-developers.com/android/software/gapps-dynamic-gapps-t3487192

    Updated Vendor image: https://www.androidfilehost.com/?fid=745425885120693783

    Dont forget to check the changelog Changelog!!

    As always if you like my work dont forget to hit that thanks button.
    Donations are always appreciated but never required, I am only posting the link for convenience, Donate link
    106
    Okay guys the time is here, finally 7.1.2 for purenexus officially released!!!

    a couple things to note:
    *the rom is now signed with private keys starting with 7.1.2 this is good for security purposes, but you will be required to clean flash this build, going forward you can dirty flash as long as it is an official release
    *i have removed the built in gapps for "nexus devices" i however will not respond to any bug reports using open gapps, use the newly made BeansGapps alongside purenexus for the best results!!
    *this release mostly is focused on stability and getting all the features from 7.1.1 into 7.1.2 without issues, next release will be geared towards going over the feature request section of the g+ community
    *with 7.1.2 google updated the radio and boot loader i suggest fast-booting those as well

    ok, Lets get to the goodies!!

    04/23 PureNexus Bullhead Update is Live!!!

    Download Link: https://www.androidfilehost.com/?fid=457095661767156065

    BeansGapps Download: https://www.androidfilehost.com/?w=files&flid=171925

    BeansGapps XDA thread: http://forum.xda-developers.com/android/software/gapps-dynamic-gapps-t3487192

    Vendor image: https://www.androidfilehost.com/?fid=673368273298946249

    Dont forget to check the Changelog!!

    As always if you like my work dont forget to hit that thanks button.
    Donations are always appreciated but never required, I am only posting the link for convenience, Donate link
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