yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] andQlimax:
format everything and use only latest recoveries...u are using an old version. also dont go anymore from android 4.2 to android 4.1 to avoid other mistakes
[Samsung Galaxy Nexus] dannejanne:
Thanks. I think I am good to go now though. Newest TWRP recovery and no more weird sdcard/0 subfolders that seemed to be the culprit to my issue(s) as far as I can understand. And I won't go back to 4.1. I like 4.2 too much for that.
[Samsung Galaxy Nexus] creeve4:
Is there a safe way to restore a 4.1.x backup while running a 4.2.x ROM?

I have a 4.1.2 backup that I would like to restore and have noticed several people having issues restoring 4.1.x backups after upgrading to 4.2.
[Samsung Galaxy Nexus] thegtfusion:
Will test and report back.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] soder:
I've just read a lot in a thread about the new 4.2.1 update that is out for the N4. They say that with CWM is tell that the recovery whould the stock after that flash, and ask if the flasher would like to keep CWM and the root after flash.

Does TWRP ask for such a thing? Or can it be added?

/Söder
[Samsung Galaxy Nexus] andQlimax:
u misunderstood i think..the recovery does nothing..
[Samsung Galaxy Nexus] soder:
So, it's the update that know it's a custom recovery and ask if you want's to keep it?

/Söder
[Samsung Galaxy Nexus] efrant:
When you apply an OTA update, it places two files on your device which re-flash the stock recovery on every boot. CWM has a feature that detects these files, and asks you if you would like them removed (and it will do so if told).
[Samsung Galaxy Nexus] soder:
OK, so, does TWRP have this feature? Or will it?

/Söder
[Samsung Galaxy Nexus] Dees_Troy:
TWRP will prevent a stock rom from flashing recovery automatically. I couldn't think of a good reason for letting a stock rom replace TWRP so I just have TWRP do it without asking.
[Samsung Galaxy Nexus] soder:
I just tried to flash 5f67f5ca4720.signed-yakju-JOP40D-from-JOP40C.5f67f5ca.zip on my stock rooted ROM on my GNex.

It failed, and says "assert failed: fil_getprop("/system/build.prop"

E: error in /sdcard/5f67f5ca4720.signed-yakju-JOP40D-from-JOP40C.5f67f5ca.zip

Status7

How come?

/Söder
[Samsung Galaxy Nexus] ak:
? download is this:

http://goo.im/devs/OpenRecovery/maguro/openrecovery-twrp-2.3.2.1-maguro.img
[Samsung Galaxy Nexus] andQlimax:
i flashed the ota 4.2.1 succesfully, but the recovery has been overwritten with the stock one

shouldn't TWRP prevent it? or i misunderstood
[Samsung Galaxy Nexus] soder:
That's what someone here told me.

But, strange I couldn't flash it in TWRP? What was the name of that file you flashed? Any options in TWRP? And, have you done anything to your stock rom, like root and busybox?

/Söder
[Samsung Galaxy Nexus] andQlimax:
i have root and busybox, and the ota worked, had to reflash superuser zip becasue every ota change the permission inside system/bin/ where the su binary live

are u sure u have a yakju rom? maybe u have a takju one
[Samsung Galaxy Nexus] Pkt_Lnt:
That "someone" probably knows what he is talking about, check his sig. :D

http://xdaforums.com/showpost.php?p=34718440&postcount=845

In case you are on Tapatalk and cannot see it, it looks like this:

Lead TWRP Developer | Follow me on Twitter | TWRP Prior Verions | TWRP FAQ

TWRP is fully open source, port / compile TWRP for your device today!
[Samsung Galaxy Nexus] soder:
Yeah. ****, I got takju.

WTF, wasn't takju the one that was suppose to get all the updates first?

/Söder
[Samsung Galaxy Nexus] efrant:
The takju update did come out first...
[Samsung Galaxy Nexus] soder:
Do you have a link to the takju 4.2.1 update? Thanks.

/Söder
[Samsung Galaxy Nexus] efrant:
Have you looked at the stickies in the General sections? http://goo.gl/RYHvH
[Samsung Galaxy Nexus] soder:
No. :angel:

/Söder

---------- Post added at 09:41 PM ---------- Previous post was at 09:15 PM ----------

Well, I just flashed the update and after the phone was in the system again, I started Goo Manager and choose to reboot to recovery. I only came to the Android man with the "!".

TWRP wasn't saved.

/Söder
[Samsung Galaxy Nexus] MultiCulti:
HELP ...

HOW can i mount the system or at least the sdcard in twrp 2.3.2.1???
[Samsung Galaxy Nexus] CatThief:
Well lo and behold I received a message that a system update was available.

I renamed /system/recovery-from-boot.bak to recovery-from-boot.p and ticked the Survival Mode box inside SuperSU. Ok, all set to go...

My GNex rebooted and when I saw the TeamWin splash I had one of those "holy crap" moments. But the update installed without any issues except that I lost root regardless of enabling Survival Mode. That was simple enough to fix with ADB, then I used GooManager to install TWRP again.

Ahhhhh. Back in business and rooted on Jelly Bean 4.2.1.

Sent from my rooted GSM Galaxy Nexus
[Samsung Galaxy Nexus] kyokeun1234:
You cannot mount the sdcard because Galaxy Nexus has no sd card... What I recommend you to use it adb method, which is really nice if you ask me.
[Samsung Galaxy Nexus] Crwolv:
Weird that has never happened to me on my toro+.

---------- Post added at 10:07 PM ---------- Previous post was at 10:00 PM ----------

I was sent sprints jelly bean ota for my toroplus by shabbypenguine and I was rooted and unlocked running cna. I tried to flash ota in twrp and it kept saying fail. Then shabby said you can't flash and ota in twrp if you have installed a rom or rooted with busybox. So I'm ASSuming unlocked and rooted is Ok only cuz some have reported doing it(not me )but once you are not using stock ROM no one gas been able too so no flashey .just a head up on what a VERY respected android Chef told me.

---------- Post added at 10:18 PM ---------- Previous post was at 10:07 PM ----------

Lol I just commented on this. Kinda :)

---------- Post added at 10:21 PM ---------- Previous post was at 10:18 PM ----------

Rooted and unlocked(unmodded pure stock) is supposedly ok from what users have said Cruz they say they did it but my experience its a no no and op has even said so . BUT mod it or flash a ROM and once again....no workie.
[Samsung Galaxy Nexus] Khizar:
yeah you pretty much repeated what i said ;)
[Samsung Galaxy Nexus] androidkid311:
grrrr

Can anyone help meeee!! I flashed 4.2.1 rascarlo and I know the folder changes for 4.2 I'm trying to flash back to slim but when I open the camera it says I have no storage... do I have to flash and older version of twrp??
[Samsung Galaxy Nexus] Khizar:
is everything in the data/media/0 folder? if it is then try moving to data/media and see if that fixes this
[Samsung Galaxy Nexus] Invicta:
Hi guys, i wanna go back to 4.1.2 i have had enough of this 4.2 crap, i want to get rid of EVERYTHING in my phone's memory and storage. including the strange emulated sd cards and sdcard0 which doesnt go away no matter what, can someone pls tell me what to wipe in order to leave the phone as it came from factory?
[Samsung Galaxy Nexus] original21:
Use the toolkit 10.1 version http://xdaforums.com/showthread.php?t=1392310 , wipe everything (factory reser & sd card), using fasboot flash stock 4.1.2 image. Root and flash any custom rom you like. This is what i will do tonight!;)
[Samsung Galaxy Nexus] Invicta:
which option is this? cause the normal flash of a stock google image doesnt delete this multi user crap. Who thought of putting multiuser environments in smartphones, its a personal device damn it not a table, jesus...
[Samsung Galaxy Nexus] seriousia:
Actually its for tablets only not for smartphones :D
[Samsung Galaxy Nexus] original21:
If you wipe sdcard on twrp, i think it deletes everything. The use the option that downloads and flashes stock google image. I had an accident a few days ago and i wiped everything on my phone.

Then try to flash TWRP 2.2.2.0 to flash a custom rom.
[Samsung Galaxy Nexus] Invicta:
i have in my device the same file structure so its actually for smartphones too ;)
[Samsung Galaxy Nexus] seriousia:
Yeah same file structure but you cannot create different user accounts so basically your not using it

Correct me if I'm wrong cause i haven't tried 4.2 on my nexus yet :rolleyes:
[Samsung Galaxy Nexus] dannejanne:
Question is why did they change the structure for phones too if we won't use it?

Tapatalked
[Samsung Galaxy Nexus] aNewNoob:
help me out

i haven't done anything with my nexus

just unlocked the bootloader

so to flash TWRP, do i need a rooted nexus? i haven't rooted my nexus, that's why i cant use Goomanager.

where can i get TWRP .img to flash it manually.

can i flash it without root access or i need to root it first?

in some guides i have also read that to flash TWRP i have to flash CWM first, is that correct or i can directly flash TWRP?

thankx
[Samsung Galaxy Nexus] 3rdstring:
You can fastboot flash a TWRP image witout root (No need for CWM either)
[Samsung Galaxy Nexus] Crwolv:
Why use 2.2.2.0???? I'm using latest and it works flawlessly.

---------- Post added at 06:36 PM ---------- Previous post was at 06:35 PM ----------

Lol sorry bout that.I worded it differently and a lot more in depth, it was late. There are some who need that type of explanation... ya know tomato/tomato. I hate it when peeps repeat what I say so no disrespect intended :)
[Samsung Galaxy Nexus] androidkid311:
Yeah its all in that 0 folder. Must say 4.2 isn't the hassle. I'll back my pictures up on my laptop and give it a go. Many thanks
[Samsung Galaxy Nexus] TonyTurboII:
I thought the current version fixed the sd card 0 problems? No?
[Samsung Galaxy Nexus] Savant:
It has fixed that problem.
[Samsung Galaxy Nexus] Khizar:
using the latest twrp and never had issues with it.. but today after wiping the recovery just froze for around 10 secs, i couldnt press anything and then it rebooted but i had no rom installed so i had to do a battery pull and boot back into recovery to flash the rom
[Samsung Galaxy Nexus] cmstlist:
I flashed JOP40D from fastboot and then in TWRP tried to apply the latest SuperSU zip. It gave me an Error 0 and failed. I couldn't figure out how to make it flash right so eventually I just manually pushed su and did the usual chmod etc. The same zip worked last time. I wonder what went wrong...
[Samsung Galaxy Nexus] Khizar:
you can if you are using pa.. they implemented it in their rom

---------- Post added at 11:16 AM ---------- Previous post was at 11:14 AM ----------

file structure doesnt = multi-user, technically its only for tablets and not for phones.. the only way we can use it is if a custom rom like implements it in their rom
[Samsung Galaxy Nexus] cyberon:
Today i reverted from 4.2 to CM10 but the 0 folder was created.

Also and i don't remember well but was the sdcard being called sdcard0! :confused:

Using TWRP 2.3.2.1
[Samsung Galaxy Nexus] tyea:
I backed up my stock 4.2.1 with TWRP 2.3.2.1, and verified the backup file was good. Then, using TWRP wipe menu, I wiped cache, dalvic cache, factory reset, data, followed by installing Cyanogenmod 10.1 (my usually clean install procedure). I then backed up my cyanogen ROM, went to restore my stock ROM, and the file wasn't there. I tried using TWRP file manager to find the backup, but could not find it anywhere on the Nexus4.

Occam, Tapatalk
[Samsung Galaxy Nexus] Khizar:
sdcard has been sdcard0 since jb was released

---------- Post added at 10:25 AM ---------- Previous post was at 10:25 AM ----------

your internal storage may have moved from data/media to data/media/0 due to upgrading to 4.2
[Samsung Galaxy Nexus] royzlife:
I have CWM recovery in my nexus..want to replace with TWRP.. how to go about it?
[Samsung Galaxy Nexus] TheInVisibleGoD:
Install "GooManager" from Play Store, open it, click Menu and choose option "Install OpenRecoveryScript", this will automatically install latest TWRP version to your GNex!
[Samsung Galaxy Nexus] albsat:
By the way, how do i update the twrp? Always from goo manager? Is there a flashable format in zip somewhere?
[Samsung Galaxy Nexus] jordanishere:
You can get the images from the twrp website and flash them via fast boot.
[Samsung Galaxy Nexus] Khizar:
3 ways..

1. flash using goo manager

2. download the img file from twrp site and flash in fastboot

3. flash this zip in cwm and then reboot recovery

http://www.mediafire.com/?ssnegu6sfb76d2o
[Samsung Galaxy Nexus] D3VI0US:
I moved to TWRP because i was tired of CWM and everything was going well untill yesterday day when i found two folders with the same name it was folder i always create on my phone called Android Stuff this folder contains roms and gapps and apks for my apps so when i hook the phone to the pc i found two of those one was copying one folder in it different more than one time with (1) (2) (3) by the end of the folder name and the other folder has my data so i deleted the extra folder on windows through MTP and when i went to recovery earlier i found out that the original folder was deleted too so what the hell .. is the recovery still doing that nesting thing ?

Anybody faced something similar ?
[Samsung Galaxy Nexus] Khizar:
nope dont have this issue
[Samsung Galaxy Nexus] albsat:
So there is no way to update twrp from twrp console? Hmm...
[Samsung Galaxy Nexus] jordanishere:
to my knowledge, no recovery will allow you to update while in recovery mode, except for a flashable .zip
[Samsung Galaxy Nexus] :
I have a question regarding the O folder. I moved from 4.1.2 to 4.2 with a fresh start means wiping everything factory image and root etc again. So i currently have no 0 folder on my sd. If i install a 4.1.2 rom would that create a 0 folder? And after the 4.1.2 going back to 4.2.1 would that create the O folder?

Thanks!

Nexus Prime Powered by Rasbean & Trinity
[Samsung Galaxy Nexus] pa.pn2:
backward flashing to 4.1.2 will not create a 0 folder, forwards i think not, but just with the actual twrp version...
[Samsung Galaxy Nexus] cyberon:
Not true, i have flashed from stock 4.2 to CM10 and the 0 folder was created.
[Samsung Galaxy Nexus] Khizar:
from my understanding if you use the new twrp at-least one "0" will be created...however i have seen some ppl who are still having multiple "0" created after flashing new roms. so i recommended they use the guide that is linked in my sig to keep the old sdcard format and get rid of the "0" folders once and for all
[Samsung Galaxy Nexus] gab1972:
Curious question...

I *thought* I had the latest version of TWRP. I came from Paranoid Android 2.54 (a 4.1 ROM) to Xylon (a 4.2.1 ROM). Doing this for the first time, I had all of my stuff in /data/media So I moved everything to the /0 folder. Then I discovered this...

Using Root Explorer, under the root folder / I see /sdcard and /storage. Under /sdcard I see all of my files and folders as before - as I think it should be. Under /storage there are two folders /emulated and /sdcard0. /emulated has two folders /0 and /legacy. Both /emulated/0 and /emulated/legacy have the same stuff. /sdcard0 also had the same stuff. When I go into my music player, I have duplicates and the gallery will not show images from the Camera folder (though there's a picture count).

So first, why does /storage and /sdcard show the same information? Second why does /storage/emulated/0 and /storage/emulated/legacy have the same stuff? Third, do I need to leave both /storage and /sdcard? Fourth, do I need to leave both /storage/emulated and /storage/sdcard0? What can I keep? What can I delete?
[Samsung Galaxy Nexus] Khizar:
The physical media of your sdcard exists as /data/media. On boot, your phone uses /data/media to create a virtual sdcard, found at /storage/sdcard0. After that, symbolic links are set up that point /sdcard and /mnt/sdcard to /storage/sdcard0.

The data exists in one place, /data/media. The rest are essentially just pointers to the information for backward/forward compatibility.

You can delete /storage/emulated.. but just remember to flash the latest twrp before flashing anymore roms or use the guide that i linked in my sig to keep the same sdcard format as before 4.2
[Samsung Galaxy Nexus] gab1972:
I double checked and I know that right now I have the latest TWRP.

I have:

/data/media - only contains the following 3 folders...

/data/media/0 - all of my stuff

/data/media/legacy - empty

/data/media/obb - empty

/sdcard - all of my stuff

/storage - only contains the following 2 folders...

/storage/sdcard0 - all of my stuff

/storage/emulated - only contains the following 2 folders...

/storage/emulated/0 - all of my stuff

/storage/emulated/legacy - all of my stuff.

So if I understand you correctly...

I can delete /storage/emulated (which contains /0 and /legacy); and leave /storage/sdcard0 - correct?

What about /data/media/0? Can I move everything from /data/media/0 into just /data/media? Likewise, can I delete /data/media/legacy and /data/media/obb?

I'm assuming if I move everything from /data/media/0 up one then /storage/sdcard0 gets renamed to /storage/sdcard (no 0)?? I'm wondering because I have /sdcard in the root folder, but I have this /storage/sdcard0 (with the 0).

I suppose I could try all of this through trial and error...but it's the proverbial "red wire, blue wire" scenario for me. I don't want to delete the wrong folder and lose all my stuff.

Mucho thanks in advance!!
[Samsung Galaxy Nexus] doomed151:
If I'm not mistaken, /data/media is the real one and everything else are just mount points. However, deleting mount points could result in the deletion of the actual folder.
[Samsung Galaxy Nexus] gab1972:
And that's exactly what happened. =(

I just deleted /storage/emulated and now everything is gone.

Funny thing is that my home screen still has all widgets and wallpaper, etc. I just got an email. Clicking widgets doesn't do anything. I can see all the apps in the app drawer. My notion is that once I reboot, it'll be like an empty void of a phone. Because I do not have any backups anymore of anything.

Fun.
[Samsung Galaxy Nexus] niels72:
Hey there lads.

As I thought I couldn't have a nesting problem I do have. So just checked the version I have of TWRP and it us 2.3.2.0. For some reason I got several 0 folders. Since I wanna try out new ROM I will first update the recovery. However seeing this ROM I wanna try out the guy says that format SD card after flashing ROM. But as soon as I update the recovery the SD card will be formatted?. Right ? Noob Q I know but I wanna get ride if this nesting bullocks.

send from mine galaxy nexus.
[Samsung Galaxy Nexus] gab1972:
This is what I would do...

Make a backup of your image right now. Then save the entire contents of your sdcard to your computer...just in case what happened to me, doesn't happen to you.

Next, make sure you're on TWRP 2.3.2.1. Now, when you wipe and flash the new ROM, everything will be in the root folder under /data/media

I'm not sure what to do after that. I have a /data/media/0 folder. I haven't flashed any other new ROM's yet to see if I'll get a nested /0 folder. But at least you'll have a backup of everything just in case something goes wrong. I deleted the wrong symlink (/storage/emulated) and I lost my SD card contents...so don't do that.
[Samsung Galaxy Nexus] andQlimax:
wrong, u will have everything in /data/media/0

thats the new format after 4.2...no other 0 subfolder will appear with the latest TWRP 2.3.2.1, only with old recoveries u would see nested 0 subfolders inside /data/media/0

u dont have to look to much at the new format...when u open ur file explorer (i sue solid expolorer) it show ur files in the sdcard as ususal, when u connect the phone to the pc, u will also see ur files as usual..so nothing has changed...
[Samsung Galaxy Nexus] maxawesome:
Device Encryption & TWRP are not friends (yet)

As a user, I would like to be able to enable Device Encryption and still use TWRP to make backups, flash ROMs, etc.

Now that I've already lost everything on my phone, and want to help get this working properly and provide good feedback, I'm going to do the following:

-Create nandroid of stock ROM (4.1.1) in TWRP 2.3.2.1

-Enable Device Encryption

-Install AOSP r7 (4.2.1)

-Create nandroid of AOSP r7 in TWRP 2.3.2.1

-Perform Factory Reset (should disable Device Encryption if TWRP is properly working with encryption in latest version)

-Restore AOSP r7 from nandroid

-Enable Device Encryption

-Restore AOSP r7 from nandroid again

-Restore stock ROM from nandroid

If I can make it through all of these scenarios, then I'll be convinced that there was something wrong with the version of TWRP I was using (can't say for certain it was 2.3.2.1 and not 2.3.2.0, but I'm 99% sure) that caused the problems I had.

What problems did I have? Well for starters, TWRP wouldn't mount data or sdcard. Therefore I couldn't restore backups. Second, when I went from a 4.1.2-based ROM to a 4.2-based ROM after enabling encryption, there was a bulk of about 6GB of storage that was unavailable, but unaccounted for in the OS itself (in Storage from menu). This leads me to believe that something about the encryption was preventing the OS from seeing what were actually my files and so forth still on the media.

I've already reset the device using Odin, so those files are gone. mostly replaceable stuff, with only really a few photos between October and December that never got uploaded to DropBox or SkyDrive.

So yeah, I'll report back on how it goes. I really would like to get this sorted. My employer is forcing us to enable device encryption on Android phones to connect to Exchange, so it's either this, or figuring out how to get the Mail app to spoof that I have encryption enabled.
[Samsung Galaxy Nexus] Khizar:
use the guide linked in my sig if you want to keep sdcard format same as before 4.2
[Samsung Galaxy Nexus] Milamber:
Interesting, so can we use twrp with the android encryption?

I'd like to enable encryption but be able to flash nightly cm. Would this be possible?
[Samsung Galaxy Nexus] AbhishekS:
If I wipe system using the latest TWRP recovery then will I lose my sdcard data (pictures, songs, nandroid backups, etc.) too?
[Samsung Galaxy Nexus] AbhishekS:
Cool, I hope you are sure about it.

I'm changing from one ROM to other. These steps should be fine, right? Just tell that by the time I reach step 5 I have all the files intact to flash.

Step 0: Take a nandroid backup

1. Wipe cache

2. Wipe dalvik cache

3. Factory reset

4. Wipe system

5. Flash the new rom and Gapps (do I have these or have I lost them?)

---------- Post added at 05:25 PM ---------- Previous post was at 05:00 PM ----------

Anyone for help?
[Samsung Galaxy Nexus] Khizar:
yeah this is how i flash all roms..

1. Factory reset

2. Wipe system

3. Wipe cache

4. Wipe dalvik

5. Flash rom

6. Flash Gapps

7. Reboot

In twrp wiping data and wiping internal storage will wipe sdcard
[Samsung Galaxy Nexus] mrm43:
Correct. That's the way I have been doing it ever since. All my data in sdcard intact.
[Samsung Galaxy Nexus] AbhishekS:
Alright, I was just taking a nandroid backup, the process was on and the phone suddenly rebooted to system. Odd, isn't it?
[Samsung Galaxy Nexus] Khizar:
that has happened to me before..its random and only happened once in all the time i have been using twrp.. just boot into recovery and do everything again
[Samsung Galaxy Nexus] Dees_Troy:
A factory reset wipes cache and data. Dalvik is stored in /data too. The vast majority of ROMs wipe system during the zip install. What I'm getting at is: you really only need to do a factory reset.
[Samsung Galaxy Nexus] Khizar:
you are right but i guess its more of a habitual thing for me, i have always been flashing like this and never had issues so thats why i dont change anything..
[Samsung Galaxy Nexus] bunklung:
I am using an encrypted device on AOSP 4.1.1 with TWRP 2.3.21 and I finally *tried to* jump on AOSP 4.2.1 rom.

After a full wipe of dalvik/cache/system and a rom flash, I can not boot android. I am stuck at the decryption page on android. My password is not recognized.

I rebooted to recovery and my password worked. I restored my old 4.1.1 nandroid. I booted to Android and my password is not recognized.

I reboted back to recovery and my password work. Using ADB to pull al data from /sdcard and I will factory reset with a stock image and then use 4.2.1

Is the encryption support not fully supported?