yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] philmein:
the backup went in nmt/shell/emulated/twrp

so i had 2 twrp folders one in the standard place sdcard and another in the place above nmt ect

when i used restore it was empty twrp was probably looking in the sdcard location

both the locations had a TWRP folder

the backup was found in the nmt/shell location but twrp does not seem to look there

i was using cwm touch before installing twrp
[Nexus 4 Original Android Development] Dees_Troy:
I get that you have 2 TWRP folders, but none of what you've told me so far is all that helpful. Your internal storage is actually part of the data partition as per this:

http://teamw.in/DataMedia

You'd have to give me the physical locations in /data/media. I presume that one folder will be in /data/media/TWRP and the other in /data/media/0/TWRP.
[Nexus 4 Original Android Development] philmein:
the backup went to data/media twrp

and the standard folder like my n7 was also there in data/media/0/twrp this folder was empty i think twrp was looking here for the backup

hope this makes sense

would love to go back to using twrp but i need to be able to restore backups

any advice for me troy

always use twrp on my n7
[Nexus 4 Original Android Development] Dees_Troy:
Not sure how that happened. You can use a file manager including the one in TWRP to move the TWRP folder from /data/media to /data/media/0 to get TWRP to see your backups. Hopefully it won't happen again.
[Nexus 4 Original Android Development] philmein:
thanks for the advice all working now backups showing:o
[Nexus 4 Original Android Development] P0MM3S:
did you try a second backup? i'm pretty sure it will show up in the wrong destination again....
[Nexus 4 Original Android Development] philmein:
tried and restored second backup all seems good no

backup now in data/media/0
[Nexus 4 Original Android Development] Stadsport:
Sweet. I've been waiting for this, I'll have to give it a shot.

Edit: Working fine, flashed through fastboot/adb.
[Nexus 4 Original Android Development] obscure.detour:
I successfully flashed and have a working TWRP recovery on my Nexus 4! Thank you for all your work.

Since this thread isn't long yet, I read the entire thing. I flashed the latest, 2.3.2.3 via fastboot and then immediately rebooted into TWRP from fastboot and made a backup. This backup was placed in /data/media/TWRP, as to what happened to philmein.

I successfully moved the backup folder to /data/media/0/TWRP and the Restore function was able to see it. I rebooted and made another backup and it was stored in /data/media/0/TWRP location, so I guess all is well.

The only thing I can guess is that if you don't do a reboot after your initial flash it'll stick to /data/media, but after the reboot it establishes /data/media/0. This might not happen if you flash via GooManager? I dunno.

Anyway, everything works and that is all that matters.
[Nexus 4 Original Android Development] inspire4gfreak:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Yes, that was my point. :D

But it seems that themes are not causing this problem. Then it's device specific... But surely it can be solved since 2.3.3.3 works for those who had issues with latest version.
[Nexus 4 Original Android Development] Rod3:
Long time TWRP user but have run into a curious issue with 2.4.1 (no themes).

Normally, one of my favorite features of TWRP were the speedy backups. Yesterday, my backup took almost 7 minutes. And, to top it off, when I tried to resore to that backup, it basically restored my ROM and apps, but not my homescreen setup or ROM settings. My usual snappy ROM was then very sluggish and non-functional. In any event, it gave me an excuse to do a fresh wipe.

Currently running AOKP PUB Krait build 2-05 and IR's test kernel.
[Nexus 4 Original Android Development] Dees_Troy:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

If you still have the backup that didn't restore properly, do the following:

Restore the backup.

After the restore & before rebooting, go to advanced, copy log.

Grab the recovery.log from the root of sdcard and paste it to a paste site.

Look in your backup folder for recovery.log and paste that as well.

Post the links for both logs (or PM)
[Nexus 4 Original Android Development] Dees_Troy:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Someone run uname -a in recovery via adb shell or the terminal command under advanced. Let us know the output. This will tell us what kernel is in use
[Nexus 4 Original Android Development] Rod3:
Sorry bro, I deleted it since that backup was huge for some reason (2.7 GB). I noticed during the data portion it was separating into "archive 1 & archive 2."

I reflashed the twrp image again and ran a new backup with no issues ( quick).

I will mark this post so I know to get the logs if it happens again.
[Nexus 4 Original Android Development] Lownita:
Linux localhost 3.4.0-perf-ge039dcb #1 SMP PREEMPT Thu Nov 8 15:42:02 PS
[Nexus 4 Original Android Development] Utini:
with 4.2.2. getting pushed via OTA soon, will I be able to use the OTA update with TWRP ?
[Nexus 4 Original Android Development] casonswag:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Its already out if u are conpletely stock all u have to do is find the update and flash it in your recovery
[Nexus 4 Original Android Development] Utini:
well, when I had cwm installed, I got asked about a new update.

Now I have twrp but when I check for updates it tells me I already have the latest one (altough I am on 4.2.1) ?

With custom recovery, root, custom kernel, it seems like OTA won't work anyway :/
[Nexus 4 Original Android Development] TeddyBeers:
So i pressed button named "FORMAT DATA" and now i have extremely big problem.

data and EVEN SDCARD been formated.

So my nexus4 it's completely free of any data.

No TWRP backups, no goomanager folder, nothing at all.

According to TWRP 13GB of free space.

Before that manually formatted System.

Now I can't mount sdcard and computer doesn't recognize device after connect.

Nothing work as it should.

Can someone help me install any kind of rom ???
[Nexus 4 Original Android Development] Bapf:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

As long as the bootloader works (volume down while booting) you can install ROMs.

Just take a look at the install scripts contained in the stock images at the Google site.
[Nexus 4 Original Android Development] veyka:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Download and flash the factor image via fastboot.

http://xdaforums.com/showthread.php?t=2010312

I would warn you that this will wipe your whole device, but you have done that already.
[Nexus 4 Original Android Development] XxSilent22xX:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Just go into twrp and use adb sideload, no need to flash factory image.

Sent from my Nexus 4
[Nexus 4 Original Android Development] tonysac:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Is there anyway to go back to stock recovery of 4.2.2?

Keep walking Greece
[Nexus 4 Original Android Development] TeddyBeers:
Thanks for lightning fast reply !!!

Problem solved.

I had problem to connect adb with nexus cause few days ago installed SGS3 drivers.

Completely uninstalled all nexus/mako/android related drivers, than downloaded "Nexus Root Tolkit 1.6.2", installed new drivers from it.

Than copied stock rom over ADB using Total commander and adb plugin

Installed rom in TWRP Recovery

job done

Everything back to normal.

BTW

TWRP please change warning message when "format data" is pressed. Right now is saying only about formatting data and twrp backups.

Please add message which will clearly say "also SDCARD in nexus 4 will be deleted"
[Nexus 4 Original Android Development] casonswag:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Why did u press format data that wipes everything off your internal sd never press that use factory data reset
[Nexus 4 Original Android Development] 3rdstring:
Fastboot flash the stock recovery img
[Nexus 4 Original Android Development] azrash:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

I guess it is because in previous devices, formatting data doesn't touch the internal sd, i do understand the reasoning of it, but it'll be great if they can put a disclaimer or something since new users might get confused.

Flowed from my Nexus 4
[Nexus 4 Original Android Development] casonswag:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Yea thats true maybe op will add a little caption saying what itll do if u proceed
[Nexus 4 Original Android Development] mitchdickson:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Pretty sure there is a disclaimer before you confirm that you want to format data, right?

Sent from my iPad 4
[Nexus 4 Original Android Development] azrash:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

yes there is, if I am not mistaken it says this will wipe your data, media, and your backups.

What I am trying to say is, most new users that have just migrated to a phone that uses emulated sd card might be confused about what it does. For what it's worth, even I thought it will wipe the /data (like in phones with sd card) and leave the internal storage intact. Good thing that I read a post in TWRP website that talks about this before trying it out. Nexus 4 is my first phone that uses internal storage with emulated sd card and first time using TWRP.

I love the recovery, it is just that with so many users getting confused about it and end up with an empty device, then perhaps the disclaimer can be put to say, 'this will wipe your internal storage as well'. Much clearer for new users and people that are not familiar with Android in general. This'll definitely improve the usability/clarity of the recovery.

Another issue is, some users don't read disclaimer and just swipe the confirmation slider. Nothing we can do about that.

Flowed from my Nexus 4
[Nexus 4 Original Android Development] TeddyBeers:
Indeed.

Before nexus 4 I have had HTC Desire X with CWM recovery.

This is copied message when I press "Format Data"

Message does't clearly say that the emulated SDCARD will be formatted as well.

Format Data should be changed to Full Phone Format and format all partitions at the same time (System, Data, SdCard, Cache) and clearly say what will be formattted.
[Nexus 4 Original Android Development] peschka:
I got strange issue with the recovery. It has one black band at the right of the screen. I mean theme not fitting the whole screen. I reinstalled it twice, also flashed CWM and then TWRP and its the same again. Tried to put different themes .... still the same ... any ideas ?
[Nexus 4 Original Android Development] JaylanPHNX:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Did you install from a zip, or from Goo Manager?
[Nexus 4 Original Android Development] Bapf:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Having the same issue here, regardless if installed via fastboot or GooManager.
[Nexus 4 Original Android Development] peschka:
Installed from Goo Manager. Now tried fastboot and its still the same ? I couldn't find zip ...
[Nexus 4 Original Android Development] spaceman860:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

That's normal and has been answered a million times http://xdaforums.com/showthread.php?p=37400448

Sent from my Nexus 4
[Nexus 4 Original Android Development] peschka:
Thanks !

So in conclusion its known bug but it wont be fixed and we just have to get used to it ? Little annoying ...
[Nexus 4 Original Android Development] casonswag:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Use a theme it fixes it
[Nexus 4 Original Android Development] rmkilc:
Yes, it bugs me a lot too, but the dev has said he won't be fixing it. Making a theme is over my head, and I haven't found any stock looking themes at this resolution. I guess we live with it. My OCD is suffering! :eek:
[Nexus 4 Original Android Development] c00ller:
The "Holo Dark (Larger nav keys)" looks pretty clean and "stock" like IMO and was made for our resolution :)
[Nexus 4 Original Android Development] rmkilc:
Show me where to find that theme for the Nexus 7, Motorola Xoom, Motorola Atrix, and HTC Thunderbolt and then I will use it. Otherwise, I have no interest.
[Nexus 4 Original Android Development] c00ller:
Wow.. well, I sincerely apologize for making the suggestion. My mistake O_o
[Nexus 4 Original Android Development] rmkilc:
I do actually think that theme looks better than stock. But OCD won't let me use it if it's only on one device. :rolleyes:
[Nexus 4 Original Android Development] ViViDboarder:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Internal Storage and Backups make it pretty obvious. That said, I feel like Factory Reset is in a very prominent spot. Reformat is really overkill on Just about any device. Generally unneeded unless you have some kind of corruption.

Couldn't hurt to make it more clear, but I don't think many people have made the mistake (at least that I've heard from).
[Nexus 4 Original Android Development] Lownita:
AW: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

So any news regarding this issue? Thermal throttling in twrp not working correctly?

Papastalked from my Nexus 4
[Nexus 4 Original Android Development] aimcr7:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

No issue here, done backup and restore several times even with compression, no issue.
[Nexus 4 Original Android Development] _Sparks:
If i install this using the app, do i have to remove cwm first or will this recovery just replace cwm?
[Nexus 4 Original Android Development] 3rdstring:
TWRP will replace XCWM
[Nexus 4 Original Android Development] Lownita:
AW: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

That does not indicate if the thermal throttling is working correctly or not. Depending on the size/time the backup takes, phone will get hotter from one user to another. Also CPU binning/voltages might be counted in.

Papastalked from my Nexus 4
[Nexus 4 Original Android Development] elzafir:
I need help understanding the Wipe menu that is relevant to the Nexus 4.

Cache - wipes cache

Dalvik Cache - wipes dalvik cache

Factory Reset - wipes /data and cache (also dalvik I presume?)

System - wipes /system

External Storage - ???

Internal Storage - ???

Format Data - ??? Does this option wipes all-of-the-above?

Which ones do I need to do if I want to change ROMs and do a clean install?

Which ones if I want to wipe the /storage/emulated/0 (the 'Virtual SD Card) as well (to do a "super-clean" install)?

PLZ HLP.

Thanks before.
[Nexus 4 Original Android Development] jan.ringas:
As far as I know:

Format Data will wipe everything what's on the /data partition (including the virtual SD card)

Factory reset will wipe /data, but without the virtual SD card (therefore being able to install ROMs, perform/restore backups, ...)

I don't know what External Storage and Internal Storage will do, but would suspect either delete the virtual sd card or nothing at all, since we don't have a "real" SD card

Edit: To answer your last two questions: You'll need to perform a Factory Reset to do a clean install and a Format Data to do a "super-clean" install (but as your virtual SD card will be wiped you will have to push the needed files on it afterwards).
[Nexus 4 Original Android Development] elzafir:
THANKS.

Well, I'm actually out of thanks for the day, will get back to you tomorrow. :p

So,

Factory Reset also wipes dalvik cache?

Clean install doesn't need to wipe System? If not, what are the benefits of wiping System?

External Storage and Internal Storage are still unclear. I'm particularly confused by this, which partitions constitute as External or Internal in the Nexus devices?
[Nexus 4 Original Android Development] jan.ringas:
According to this:

A Factory Reset will wipe your dalvik-cache as well (as long as you didn't apply a tweak or anything to move it to another partition).

Almost all ROMs perform a system wipe during their installation. If you want to be sure you can perform one by yourself, but you shouldn't need to.

Wiping of External and Internal Storage shouldn't be needed. If you're curious feel free to try it for yourself. But be aware that it might result in trouble as it's not clearly stated what these will do. ;)
[Nexus 4 Original Android Development] elzafir:
That link. Why it doesn't come up when I search?! Thanks, man. :laugh:

And thank you for the very clear explanations.

Regarding External/Internal Storage, it's kinda funny that there are two big buttons there, but nobody knows what they do :D

No documentations as well.
[Nexus 4 Original Android Development] _Sparks:
I tried wiping the internal and external storage yesterday.

The external storage button will have no effect as we dont have an external storage (sd card) hence it gives an error.

While the internal storage wipes your virtual sd card.

I presume Formatting data will not wipe the virtual sd but instead just wipe /data partition

Hope that helps :)
[Nexus 4 Original Android Development] elzafir:
It does help. Thank you.

Now....I understand!
[Nexus 4 Original Android Development] jan.ringas:
Formatting data will wipe the virtual sd as well (it's stored under /data/media/0), as this has been reported by users who did this accidentally already; so be aware!

See: http://xdaforums.com/showpost.php?p=38040531&postcount=396
[Nexus 4 Original Android Development] rmkilc:
A comprehensive list as to what exactly each button does, for each device, in the OP, would be nice.
[Nexus 4 Original Android Development] casonswag:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

So really all we need to do is press factory reset before flashing roms thats what it seems like we dont need to do the extra wipe caches and dalvik?
[Nexus 4 Original Android Development] wera750:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

I know this is out in left field, but I was wondering. What will happen with recovery if we try the Ubuntu os images tomorrow? I'm sure it will be over wrote their .img but will it work if we reflash it in fastboot?

I understand it may be too early to know any of this, just wondered if Deez Troy had any ideas.

Thanks.
[Nexus 4 Original Android Development] veyka:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Hopefully they won't touch the recovery, but i think we will really just have to wait and see!
[Nexus 4 Original Android Development] apat183:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Just wanted to report an issue. Not sure what I can provide to help. Running TWRP 2.4.0.0. Had 100% charge and phone was plugged in to charger. Did a nandroid and walked away from phone. Cane back 10mins later phone was off, turned it on and it had 1% charge. Not sure how I could use 100% in 10mins. Backup wasn't complete either.

Had this issue on earlier versions but thought it was fixed. Running 4.2.2 so don't know if that could be the problem since it was my first backup after updating. Or that it was plugged into the charger.
[Nexus 4 Original Android Development] show-p1984:
2.4.1.0 isn't using bricked anymore, that's why some of you get battery drains and red leds (just noticed, I was still on an old version up until now Oo)

<5>[ 0.000000] Linux version 3.4.0-perf-ge039dcb (android-build@vpbs1.mtv.corp.google.com) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 SMP PREEMPT Thu Nov 8 15:42:02 PST 2012

PS:

With the stock kernel my Phone drained 15% battery while doing a backup with compression. Now the funny thing: It was connected to my laptops usb port.

So I can imagine that some of your phones (which probably have to backup more stuff) are getting drained.
[Nexus 4 Original Android Development] A2Eric:
What is 'bricked' and what does this mean? Some of us will experience the battery drain and some won't?

Edit.........Nevermind. The Bricked Kernel sig was so big, I completely missed it.
[Nexus 4 Original Android Development] elzafir:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Does TWRP loads the kernel installed on the device? Or it come with its own kernel?

Sent from my Nexus 4 pimped with AOKP and Franco.kernel
[Nexus 4 Original Android Development] Stryder5:
Recovery uses its own kernel.
[Nexus 4 Original Android Development] Lownita:
AW: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

And that's the problem. I hope the devs are aware of this.

Papastalked from my Nexus 4
[Nexus 4 Original Android Development] gianton:
Which version was the last that used your kernel?
[Nexus 4 Original Android Development] gnan10:
TWRP recovery 2.4.1.0 file

here the flashable recovery image file .... no need to download from goomanager again

just copy to sd card and flash through goo manager

here the link

http://www.mediafire.com/?01dkup551cd28e7
[Nexus 4 Original Android Development] casonswag:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Shouldn't it be a zip not a img
[Nexus 4 Original Android Development] Lownita:
I would like to know that too! Also, where to get it and how to flash it, goo or fastboot. :)
[Nexus 4 Original Android Development] A2Eric:
If you click on his signature there's a link to his website. http://bricked.de/

Looks like you can download from there and he has an installer for Windows and Linux. I have no idea how to use it or which version was in the latest TWRP though :p
[Nexus 4 Original Android Development] P00t:
wait...whats wrong with my phone...i cant get into recovery mode.

this never happened before.

flash latest twrp awhile ago.

tried to reboot into recovery, but it wont

...it staying on black screen..

reflashed using goomanager and still didnt work

so i decided to flash cwm and that worked.

so i guess twrp have a problem right now.
[Nexus 4 Original Android Development] azrash:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

use your file explorer and go to /GooManager at root of sd card and delete TWRP recovery image and try installing it again from GooManager app.

Or flash the recovery via fastboot.

Flowed from my Nexus 4
[Nexus 4 Original Android Development] Lownita:
Guys I opened an issue on their github regarding the overheating due to the lack of bricked kernel in latest releases. Hope this gets some more attention over there :)
[Nexus 4 Original Android Development] casonswag:
Re: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

Im fine with my compression off maybe yall should try the same
[Nexus 4 Original Android Development] thebrainkafka:
AW: [RECOVERY] TWRP 2.4.1.0 touch recovery [2013-02-01]

THX. Working fine.
[Nexus 4 Original Android Development] jassycliq:
I got the latest TWRP recovery and switched the zImage with the one from 2.3.3. If I remember reading correctly that's the one with bricked kernel. The heat issue isn't as bad as before and i only lost 8% on my full backup with compression, I have a lot of apps and data so I think that's decent.

It's an .img so you'll have to flash with fastboot.

Edit: removed link do to showp's updated and better version, 1 post under.
[Nexus 4 Original Android Development] show-p1984:
TWRP 2.4.1.0 with latest bricked-kernel for twrp:

https://dl.dropbox.com/u/44206202/pub_test_kernelz/mako/twrp/openrecovery-twrp-2.4.1.0-mako.img

Before this is asked: Yes this is different from jassycliq's image, it has the most recent thermal and mpdecision patches. (and was compiled a few minutes ago)

Linux version 3.4.0-Bricked-TWRP-Edition-ge64003f-00963-g0d8a3e7 (showp1984@jarvis) (gcc version 4.7.2 20120910 (prerelease) (Linaro GCC 4.7-2012.09) ) #3 SMP PREEMPT Sun Feb 24 03:23:20 CET 2013

<4>[ 91.129314] msm_thermal: Thermal Throttled (low)! temp:70 by:7
<6>[ 93.042514] [MPDEC]: CPU[1] on->off | Mask=[1011] | time online: 44423
<6>[ 93.449473] [MPDEC]: CPU[1] off->on | Mask=[1111]
<6>[ 93.652250] [MPDEC]: CPU[1] on->off | Mask=[1011] | time online: 203
<4>[ 93.679658] msm_thermal: Low thermal throttle ended! temp:58 by:7

Happy flashing :)

1. adb reboot-bootloader

2. fastboot flash recovery openrecovery-twrp-2.4.1.0-mako.img

3. boot into recovery
[Nexus 4 Original Android Development] gianton:
Thanks! Working great, but then again I didn't have any issues with 2.4.1.0 before.