Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,742 Members 37,479 Now Online
XDA Developers Android and Mobile Development Forum

[REF] "Android for the Nexus 4" 101 & FAQs

Tip us?
 
efrant
Old
#11  
efrant's Avatar
Senior Moderator - OP
Thanks Meter 8032
Posts: 9,522
Join Date: Feb 2009
Location: Montreal Bow2DaCow

 
DONATE TO ME
Quote:
Originally Posted by d.terenzzo View Post
Thanks man, thats a great guide...

Just one thing, Fastboot IS NOT exclusive for windows system, even for PC.

Cheers
You are right, it is for Windows, Linux and MacOS. I have a habit of using "PC" to mean "computer". I will adjust the wording in the first post.
At present, I am not readily available on the forums or via PM -- if you are in need of a moderator, please contact someone from this list.

I do NOT answer technical questions via PM. Post in a thread.

Google Nexus 5

XDA Forum Rules & Moderator List

WHAT MATTERS IS UNDERSTANDING THE JOURNEY...
 
yduck
Old
#12  
Member
Thanks Meter 46
Posts: 31
Join Date: Feb 2011
this is very useful. thanks!
 
1234568
Old
#13  
Senior Member
Thanks Meter 214
Posts: 608
Join Date: Nov 2010
I have a question that wasn't answered in this FAQ. I was hoping someone could shed some light on the issue, then the OP could update the post to help others...

Basically, on my last Android phone my nandroid backups were all located on my SD card, under clockworkmod/backups. Now, they are located under mnt/shell/emulated.

I am new to emulated partitions and don't really get what is going on. I seem to be able to access various contents of my SD from the following directories:
  • mnt
  • sdcard
  • storage - which also has emulated and sdcard0 subfolders
The contents of these locations is not identical though! Could someone please explain what is actually going on?
Many thanks
 
efrant
Old
#14  
efrant's Avatar
Senior Moderator - OP
Thanks Meter 8032
Posts: 9,522
Join Date: Feb 2009
Location: Montreal Bow2DaCow

 
DONATE TO ME
Quote:
Originally Posted by 1234568 View Post
I have a question that wasn't answered in this FAQ. I was hoping someone could shed some light on the issue, then the OP could update the post to help others...

Basically, on my last Android phone my nandroid backups were all located on my SD card, under clockworkmod/backups. Now, they are located under mnt/shell/emulated.

I am new to emulated partitions and don't really get what is going on. I seem to be able to access various contents of my SD from the following directories:
  • mnt
  • sdcard
  • storage - which also has emulated and sdcard0 subfolders
The contents of these locations is not identical though! Could someone please explain what is actually going on?
Many thanks
This is new in Jelly Bean. Not sure why Google changed it. That said, they are all symlinks for compatibility with various apps. You data is actually stored in /data/media/0. This is your "sdcard" and the other locations should be pointing to that, so the contents of the "other locations" should be identical to that.

Sent from my Galaxy Nexus using Tapatalk 2
At present, I am not readily available on the forums or via PM -- if you are in need of a moderator, please contact someone from this list.

I do NOT answer technical questions via PM. Post in a thread.

Google Nexus 5

XDA Forum Rules & Moderator List

WHAT MATTERS IS UNDERSTANDING THE JOURNEY...
The Following User Says Thank You to efrant For This Useful Post: [ Click to Expand ]
 
1234568
Old
#15  
Senior Member
Thanks Meter 214
Posts: 608
Join Date: Nov 2010
Quote:
Originally Posted by efrant View Post
This is new in Jelly Bean. Not sure why Google changed it. That said, they are all symlinks for compatibility with various apps. You data is actually stored in /data/media/0. This is your "sdcard" and the other locations should be pointing to that, so the contents of the "other locations" should be identical to that.
Thanks for the answer. I will try and express my current understanding in a few statements. If any of it is wrong I would appreciate someone putting me correct.
  • The N4 has one large 16Gb drive.
  • On this drive is the data/media folder, which is preserved when full wiping, flashing roms, etc.
  • The /data/media/0 folder is meant to represent the SD card. Without root access this is all file explorers will see.
  • Instead of saving to data/media/0/clockworkmod/backup, CWM now backs up to data/media/clockworkmod/backup. This is why you need a root file explorer to see the backups.
  • The 'SD card', 'mnt' and 'storage' folders are all symlinks to /data/media.
Assuming all that is correct how, how would an unrooted user delete folders from data/media, other than data/media/0.
Also, will it be possible for CWM to change their backup directory to what it has always been?
 
efrant
Old
#16  
efrant's Avatar
Senior Moderator - OP
Thanks Meter 8032
Posts: 9,522
Join Date: Feb 2009
Location: Montreal Bow2DaCow

 
DONATE TO ME
Quote:
Originally Posted by 1234568 View Post
Thanks for the answer. I will try and express my current understanding in a few statements. If any of it is wrong I would appreciate someone putting me correct.
  • The N4 has one large 16Gb drive.
  • On this drive is the data/media folder, which is preserved when full wiping, flashing roms, etc.
  • The /data/media/0 folder is meant to represent the SD card. Without root access this is all file explorers will see.
  • Instead of saving to data/media/0/clockworkmod/backup, CWM now backs up to data/media/clockworkmod/backup. This is why you need a root file explorer to see the backups.
  • The 'SD card', 'mnt' and 'storage' folders are all symlinks to /data/media.
Assuming all that is correct how, how would an unrooted user delete folders from data/media, other than data/media/0.
Also, will it be possible for CWM to change their backup directory to what it has always been?
There are a few points that are not exactly correct in your post. I'll explain when I'm in front of a computer.

Sent from my Galaxy Nexus using Tapatalk 2
At present, I am not readily available on the forums or via PM -- if you are in need of a moderator, please contact someone from this list.

I do NOT answer technical questions via PM. Post in a thread.

Google Nexus 5

XDA Forum Rules & Moderator List

WHAT MATTERS IS UNDERSTANDING THE JOURNEY...
The Following User Says Thank You to efrant For This Useful Post: [ Click to Expand ]
 
1234568
Old
(Last edited by 1234568; 1st December 2012 at 07:55 PM.)
#17  
Senior Member
Thanks Meter 214
Posts: 608
Join Date: Nov 2010
I came across this comment in another thread that answered one of my questions:

"I believe the location was changed because of the multiple users feature that has been incorporated into android.

If you go into storage you'll notice a folder called sdcard0. This is how android handles multiple users the next user would have a folder called sdcard1 and the next sdcard2 so forth and so on.

CWM had problems handling this so Koush changed the location to get around the problem."
 
efrant
Old
#18  
efrant's Avatar
Senior Moderator - OP
Thanks Meter 8032
Posts: 9,522
Join Date: Feb 2009
Location: Montreal Bow2DaCow

 
DONATE TO ME
Quote:
Originally Posted by 1234568 View Post
I came across this comment in another thread that answered one of my questions:

"I believe the location was changed because of the multiple users feature that has been incorporated into android.

If you go into storage you'll notice a folder called sdcard0. This is how android handles multiple users the next user would have a folder called sdcard1 and the next sdcard2 so forth and so on.

CWM had problems handling this so Koush changed the location to get around the problem."
That's pretty much correct, although I believe the actual folders are /data/media/0, /data/media/1, etc. Everything else is just symlinks.

Sent from my Galaxy Nexus using Tapatalk 2
At present, I am not readily available on the forums or via PM -- if you are in need of a moderator, please contact someone from this list.

I do NOT answer technical questions via PM. Post in a thread.

Google Nexus 5

XDA Forum Rules & Moderator List

WHAT MATTERS IS UNDERSTANDING THE JOURNEY...
 
1234568
Old
#19  
Senior Member
Thanks Meter 214
Posts: 608
Join Date: Nov 2010
Cool. And was everything else in my previous post correct then? Just trying to puzzle out exactly how this all works. Thanks for giving your time for this one on one teaching!
 
efrant
Old
#20  
efrant's Avatar
Senior Moderator - OP
Thanks Meter 8032
Posts: 9,522
Join Date: Feb 2009
Location: Montreal Bow2DaCow

 
DONATE TO ME
Quote:
Originally Posted by 1234568 View Post
Cool. And was everything else in my previous post correct then? Just trying to puzzle out exactly how this all works. Thanks for giving your time for this one on one teaching!
The other thing that wasn't quite correct is that data/media is NOT preserved when doing a wipe if you are using the stock recovery, but is preserved if you are using a custom recovery like cwm or twrp.


Sent from my Galaxy Nexus using Tapatalk 2
At present, I am not readily available on the forums or via PM -- if you are in need of a moderator, please contact someone from this list.

I do NOT answer technical questions via PM. Post in a thread.

Google Nexus 5

XDA Forum Rules & Moderator List

WHAT MATTERS IS UNDERSTANDING THE JOURNEY...

The Following User Says Thank You to efrant For This Useful Post: [ Click to Expand ]
Tags
101, adb, basics, fastboot, how-to
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes