yashsingh1/xdaforums huggingface dataset:
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
Looking to install 4.4.2 and reading that TWRP doesn't work. Similar to the issues we had installing AOSP 4.4.

So what's going on? I love TWRP, only recovery I ever want to use on my Android devices. Is what's preventing it from properly flashing a known issue? Fixable?
[Verizon Samsung Galaxy Note II] bigbiff:
What's happening?
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
Not sure exactly but check this first post:

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

Seems like the same issues I've been having since 4.3 abouts where I would have to flash something, get in a bootloop, then flash the same file again for it to stick.
[Verizon Samsung Galaxy Note II] bigbiff:
I read through parts of that thread but I can't find anything telling or specific. Do you have any specific logs that I can look at when flashing the rom?
[Verizon Samsung Galaxy Note II] krowley3:
We don't really know what specifically is causing it. The rom will flash with twrp but it will not flash the su binaries and it causes right issues to /system and /data. These issues do not occur with cwm or philz.
[Verizon Samsung Galaxy Note II] bigbiff:
It would be great to see /tmp/recovery.log after the flash.
[Verizon Samsung Galaxy Note II] krowley3:
One of us will get it for you upon full rom flash. I have things going on this weekend, so I may not personally be able to get it done, but one of us will.
[Verizon Samsung Galaxy Note II] synapsesboob:
Omg 2.7.2.0 has F2FS built in finally! You guys are awesome!
[Verizon Samsung Galaxy Note II] lacoursiere18:
Hey [MENTION=2638973]bigbiff[/MENTION]..

Here is the recovery log for ND7 4.4.2... We have problems with TWRP.. Only can flash with 2.7.0.1... and even when it flashes.. sdcard write issues occur and root does not stick. However, using Philz latest works fine..

This log is of TWRP 2.7.2, which caused my phone a soft data brick and was unable to flash..

Let me know if you need anymore info OR if you want me to try 2.7.1 and recover a log from there as well

Thank you for your work!

Device I605 BTW but I am sure you know that :laugh::good:

Thanks

Brian
[Verizon Samsung Galaxy Note II] bigbiff:
Looks like you are having a data issue. Please try formatting data.

Also I would like to see a log after the flash happens.
[Verizon Samsung Galaxy Note II] lacoursiere18:
Ok do you mind if it is on 2.7.0.1... 2.7.2 soft data bricked my phone after flashing..
[Verizon Samsung Galaxy Note II] bigbiff:
What does soft data bricked mean?
[Verizon Samsung Galaxy Note II] lacoursiere18:
Was unable to wipe data..

I flashed 2.7.2 from philz.. rebooted.. got

///////////////////////
errror
too many files open in "[I]directory[/I]"
/////////////

I tried wiping data to flash and pull you a log for why TWRP isnt flashing 4.4.2 correctly..Data would not wipe..

Could not restore or flash..

It has been happening every now and then since 4.3
[Verizon Samsung Galaxy Note II] bigbiff:
In TWRP, do advanced wipe->wipe data. Make sure to backup /data/media and any app settings necessary. This will recreate the filesystem to get rid of that error.
[Verizon Samsung Galaxy Note II] lacoursiere18:
I did that sir... Not my first rodeo..

Data would not wipe.. that is how I always wipe..

Advanced Wipe/ i wipe data/system/cache/dalvik and internal..
[Verizon Samsung Galaxy Note II] bigbiff:
Can you do an advanced wipe of data then pull recovery.log and post it here?
[Verizon Samsung Galaxy Note II] lacoursiere18:
How about I flash 2.7.1 then flash 4.4.2 ND7 Touchwiz and post log.. I don't want to soft brick my phone again if I don't have to..

TWRP 2.7.1 we are having writing issues/ to internal sdcard.. and root does not stick.. Ill be back with a log..

---------- Post added at 03:08 PM ---------- Previous post was at 02:31 PM ----------

[MENTION=2638973]bigbiff[/MENTION]

Here you are sir.. let me know if I can provide anymore info for you..
[Verizon Samsung Galaxy Note II] bigbiff:
Sorry, don't see the advanced wipe logged in there.
[Verizon Samsung Galaxy Note II] lacoursiere18:
Umm seriously:rolleyes:... Ok i will grab another..I pull the log after booting correct? Just so I know I am doing this correctly,,
[Verizon Samsung Galaxy Note II] bigbiff:
Please copy the log after you do the advanced wipe of data.
[Verizon Samsung Galaxy Note II] lacoursiere18:
Here ya go.. I did flash as well sorry saw your post to late..

and if you don't find it.......

Wiping starts at .line 840
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
That data wiping error is bad joojoo. Happened to me too and the ONLY way I could fix my phone was by doing a full Odin back to stock 4.1.2 and redoing everything.

I'm gonna have to switch to CWM for the time being. That data partition glitch was not cool.
[Verizon Samsung Galaxy Note II] lacoursiere18:
Thank for confirming this does happen..

Just for your info if it does happen again..There is a quicker fix then Odin to 4.1.2

Boot into Download Mode

Flash Stock Recovery Tar and Pit file..

Reboot into Stock Recovery

DO a Factory/Data Reset

Reboot into Download Mode

Reflash CWM/TWRP with Pit

FIXED!:victory:

Credit goes to the "Recognized UNICORN" [MENTION=4986903]Deckoz2302[/MENTION]
[Verizon Samsung Galaxy Note II] bigbiff:
Can you describe what happens in more detail on when you wipe the data partition in TWRP?

Also try Wipe->Format Data->yes

This will reformat the filesystem. I always forget that advanced wipe just do rm -rf minus /data/media
[Verizon Samsung Galaxy Note II] lacoursiere18:
Ok [MENTION=2638973]bigbiff[/MENTION]... Listen dude.. data is fine now.. we fixed the data brick.. I am not going to try 2.7.2 that caused the problem again..

Wiping in twrp 2.7.1 worked fine...

The problem we are having is that you can NOT write to the internal sdcard when flashing the NEW OFFICIAL ND7 4.4.2.. Also root does not stick on boot.

On the latest Philz everything flashes fine..

I am not trying to be a deusche or anything just trying clear up what the problem is..

Thank you for your time:good:
[Verizon Samsung Galaxy Note II] Deckoz2302:
The header blocks of the memory are becoming corrupted in a manor that does not allow data to be wiped. Data is wiped in the fashion of deleting the header of each memory block. This manor does not work. Stock recovery and odin to stock work in a different way. By zeroing out not only the header but the entire block. Thus fixing the "bricked blocks". Bricked blocks occur only on twrp. And it can happen and has happened to me on both data and cache partitions. These blocks are unable to be accessed. When the system tries to access an applications data or cache it typically causes constant force close that you cannot get rid of. You can try to wipe or reflash, but you cannot get rid of that header by wiping in twrp recovery.

Or any other recovery for that matter after. The only way to get rid of this is to use odin to flash full stock with pit. Or odin stock recovery and wipe data/cache.

I dealt with this all through development of 4.3 from November until now. My friend here was just trying to inform you. Take it or leave it. There is an issue with twrp, take it how you will. If there was more that I could offer such as uart readouts when this happens I would, but it happens at random with no rhyme or reason, other than the simple act that when you wipe all data on the device for a flash, every time you do so you have a greater risk of getting data/cache partition brick.
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
That sounds exactly correct. Partition corruption on data/cache and only way to fix was Odin with the pit file.

Hopefully this can be resolved. I love me some TWRP.
[Verizon Samsung Galaxy Note II] bigbiff:
There has been no changes in how TWRP wipes between 2.7.1 and 2.7.2. We use make_ext4fs to format partitions.

I would like if you can get the following results:

install stock 4.4.2: ls -lRZ /data > /sdcard/datastock.txt

backup stock in TWRP

restore stock in TWRP: ls -lRZ /data > /sdcard/datatwrp.txt

Please upload both files.
[Verizon Samsung Galaxy Note II] bigbiff:
Hm, since we use make_ext4fs I am wondering if you know of a different method that will wipe the entire block outside of using Odin? I am not exactly familiar with this issue on emmc chips but I will look into it.
[Verizon Samsung Galaxy Note II] Deckoz2302:
Outside if odin or stock recovery, I've done adb in recovery. This doesn't wipe but simply scans and fixes blockheaders and is sometimes successful.

e2fsck /dev/block/platform/msm_sdcc.1/by-name/userdata

Also thank you for your continued work on the recovery. I have enjoyed it's usefulness
[Verizon Samsung Galaxy Note II] bigbiff:
I am going to post a test build with a patch I didn't have that when wiping it sends the trim command to emmc.
[Verizon Samsung Galaxy Note II] lacoursiere18:
Thank you let us know when is up and we can test it for you. Thanks again
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
I did some testing with wiping partitions and running a 4.4+ ROM. The most simple test for me was with the /cache. If I wiped it using TWRP latest version then it became somewhat corrupt. I'd see artifacts in various apps like Tweetcaster and beautiful widgets. As soon as I switched recoveries to Philz or CWM and wiped cache again all the problems went away. So there is definitely something bad going on with how TWRP is formatting partitions. I'd be willing to rerun these tests with the patched build and report what happens.
[Verizon Samsung Galaxy Note II] bigbiff:
Okay I added the patch: http://techerrata.com/bigbiff/openrecovery-twrp-2.7.1.0-t0ltevzw.zip

Let me know if this works better. Thanks for your help in testing.
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
That patch seems to have completely fixed the issue. Wiped the cache and all the thumbnails look proper. Before they would be blank as if the OS couldn't write to the cache. Now its all good.
[Verizon Samsung Galaxy Note II] bigbiff:
I can push it up as 2.7.2.1 if you think everything is good. Did you hear of this happening with the other note2 devices on other carriers?
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
Unless there's some negative aspect to this patch then it can't be worse than without it lol.

I personally haven't done any looking into TWRP issues on other N2 variants. And I couldn't even begin to speculate if there's any reason why it should or shouldn't have problems elsewhere. That's all way over my head.

But thanks for the patch. Glad to have this working again. It just didn't feel right not having TWRP on my device :)
[Verizon Samsung Galaxy Note II] lacoursiere18:
I agree. Bigbiff what do you need to see why 4.4.2 TouchWiz is having internal writing issues and root on boot issues. I have yet flash that patch so when I do, probably Monday I will report if the issues still are there.
[Verizon Samsung Galaxy Note II] bigbiff:
A logcat and the results of the following commands:

flash stock via odin

in android terminal: ls -lRZ /data > /sdcard/stock.txt

backup stock in TWRP

restore stock in TWRP

boot android

in android terminal ls -lRZ /data > /sdcard/twrp.txt

To get the logcat:

perform some operation that tries to write to filesystem

adb logcat -d > /sdcard/logcat.txt

Please upload all 3 files.
[Verizon Samsung Galaxy Note II] lacoursiere18:
Will do thank you
[Verizon Samsung Galaxy Note II] lacoursiere18:
Sorry I was just re reading your post on what you need me to do..

I can not flash stock odin ND7 4.4.2.. I guess I could if we modified the official tar.. but yea
[Verizon Samsung Galaxy Note II] bigbiff:
No ND7 stock roms are available?
[Verizon Samsung Galaxy Note II] lacoursiere18:
Not a official tar.. well there is but it contains sboot which is locked..

Like I said the tar would have to be modified to remove certain things..
[Verizon Samsung Galaxy Note II] bigbiff:
OK, I was hoping someone had a custom rom to flash.
[Verizon Samsung Galaxy Note II] lacoursiere18:
We do.. but you said odin stock rom..loll
[Verizon Samsung Galaxy Note II] bigbiff:
Does it happen with custom roms or just odin stock firmware?
[Verizon Samsung Galaxy Note II] lacoursiere18:
Custom rom. My friends and I were the first ones to release ND7 4.4.2 on the Verizon note 2. We only seem to have this issue when using any version of twrp.. deckoz2302 and I both prefer using it and would like to solve the issue.
[Verizon Samsung Galaxy Note II] bigbiff:
Can you get me the following then:

Flash your rom in Philz:

ls -lRZ /data/ > /sdcard/philzdata.txt

ls -lRZ /system > /sdcard/philzsystem.txt

Flash your rom in TWRP:

ls -lRZ /data/ > /sdcard/twrpdata.txt

ls -lRZ /system > /sdcard/twrpsystem.txt

Thanks.
[Verizon Samsung Galaxy Note II] lacoursiere18:
No problem.. I will use the Patch build that you just posted.. thanks again.. Trying to get this all working bc I know some people prefer TWRP over Philz.. No offense to his work.. but just like the ui of TWRP
[Verizon Samsung Galaxy Note II] BluGuy:
Just to let you know if you go through twrp website goo.im doesn't have 2.7.2.1.zip. The other mirror has it but I can't get the md5 to match. Tried downloading over WiFi twice and network once.
[Verizon Samsung Galaxy Note II] bigbiff:
Goo has been disabling uploads. They should be there shortly hopefully now that they migrated.
[Verizon Samsung Galaxy Note II] BluGuy:
What about the zip on techerrata? That was the other mirror I mentioned that I couldn't get the md5 to match.

Edit: Just looked at the file size on all the downloads I tried from techerrata. They are all 4kb.
[Verizon Samsung Galaxy Note II] bigbiff:
What are you downloading on?
[Verizon Samsung Galaxy Note II] BluGuy:
My phone. Tried both over WiFi and over Verizon network.
[Verizon Samsung Galaxy Note II] bigbiff:
Please try a computer and let me know if it's still having problems. Also try firefox if you only have our phone.
[Verizon Samsung Galaxy Note II] BluGuy:
OK. Downloaded Firefox and it downloaded it correctly. I then tried it again in both Chrome and Chrome Beta and it downloaded correctly too. Weird b/c Chrome would only download 4kb of the file this morning and about an hour ago.
[Verizon Samsung Galaxy Note II] bigmike35:
On your phone using Chrome, I have notice download(s) do not work properly when just clicking (on some websites). You have to long press < open in new tab, well that how I get mine to work. That happened to me yesterday when downloading new version, only 4kb, but when I long press < new tab, it worked properly.
[Verizon Samsung Galaxy Note II] Dugall12:
Backup issues

Hello everyone, I'm having a weird issue. I have the latest TWRP installed 2.7.2.1 and when I try to backup my ROM SR 4 Remix to either internal storage or SD card TWRP looks like it freezes then goes back to the splash screen without the typical backup progress. When I reboot my phone I check the TWRP folder for my backup and it has a folder there with the ROM name but it's only 119 MB. Also when I try wiping Dalvik and/or cache it does the same thing, appears to freeze then back to the splash screen. Any idea? Any help would be greatly appreciated.
[Verizon Samsung Galaxy Note II] bigbiff:
TWRP is crashing for some reason. Luckily recovery.log will still be there even after the crash. The next time this happens use adb to pull /tmp/recovery.log and post it here.

Thanks.
[Verizon Samsung Galaxy Note II] timmyd463229:
I just tried to do a backup and it failed ...I'm on 2.7.0.0 I've never had it fail before is there something wrong with that build?
[Verizon Samsung Galaxy Note II] Romans8vs1:
I was also having problems backing up, restoring and flashing zips. I ended up re-installing 2.7.0 via ODIN as well as formatting my internal memory. Now all is well and I can backup, restore and flash just fine. Just wanted to mention how I got back in business in case it helps someone.
[Verizon Samsung Galaxy Note II] bigbiff:
I cannot debug without recovery.log, if you care to provide it. Thanks.
[Verizon Samsung Galaxy Note II] NWNJ:
Now, can you tell us how to use odin to falsh the tar file?

I have odin up and I have the latest TWRP tar file, now I don't know how to use Odin to install.
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
So 2.7.2.1 allows me to install 4.4.2 stock no problem, there's no data corruption issues. But root is totally borked. Had to install Philz to get it to stick. Any advice biff?
[Verizon Samsung Galaxy Note II] bigbiff:
No idea what you mean by borked. Can you clarify?
[Verizon Samsung Galaxy Note II] ezas:
Screwed up, broken, but I also take it to mean but still should be fixable.
[Verizon Samsung Galaxy Note II] Romans8vs1:
These (http://www.androidnectar.com/how-to-install-twrp-recovery-on-verizon-galaxy-note2-i605/) are the instructions I followed. Hope it helps you too!
[Verizon Samsung Galaxy Note II] NWNJ:
Thank you very much. I will give it a try. I tried to get the latest TWRP every other way and nothing worked.
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
Exactly this. Some how some way root refuses to stick with TWRP.
[Verizon Samsung Galaxy Note II] bigbiff:
Hard to say but that doesn't help.
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
Really man? Come on dust off your slang vocabulary. It simply means broken lol http://www.urbandictionary.com/define.php?term=borked
[Verizon Samsung Galaxy Note II] bigbiff:
I know what it means, I am just saying it's not a very good way to report bugs without any debugging information.
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
Why not just say in the beginning that you need more pertinent information to get somewhere with it? I am not a developer and don't know what to report other than what I know. That other recoveries have no problem getting root to stick with Android 4.4 roms and no matter what I flash in TWRP it just doesn't work.

No fun allowed man. Gotta ease up.
[Verizon Samsung Galaxy Note II] bigbiff:
Can you describe what it means to stick?
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
Are you trolling me again or being serious?

I install a rom that comes with root.

I boot up the rom.

The rom works in every way except root.

Flashing a zip that's just root (that was created in case root didn't install properly in the base rom) also doesn't work.

Anything root + android 4.4 + TWRP any version = non-functioning root.

At this point if you troll again biff then I just give up. I'd be very sad, but I'd move on.
[Verizon Samsung Galaxy Note II] riggsandroid:
[MENTION=2638973]bigbiff[/MENTION] is just too dumb to troll.
[Verizon Samsung Galaxy Note II] bigbiff:
If you think trolling is asking for information I cannot help.

I cannot think of how TWRP can mess up root, it just follows whatever updater-script tells it to do. Which version of utility you are flashing to obtain root functionality?
[Verizon Samsung Galaxy Note II] DreamFX:
I have flashed every rom from aosp to tw on every version of twrp and I always have root. Twrp is rock solid, reliable, and the gui is top notch. Thanks again biff for keeping this going for our beloved note 2s.
[Verizon Samsung Galaxy Note II] S0UTHPAWK1LLA:
Never any issue with TWRP on my Note. 2. I still won't use another recovery. Never liked CWM or it's clones
[Verizon Samsung Galaxy Note II] djd338:
+2 here on many devices. I also wanna thank biff again for keeping our Notes up to date
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
But not 4.4.2 stock right? Because root simply does not install properly on this build + TWRP. CWM, Philz, they work just fine. Obviously the zip is good (md5 checked) and it functions as intended. Thus the problem lies with TWRP.

I love it too, and wish I didn't have to switch to get this ROM functioning 100%. But that's the way it is now. I am not a developer and don't know how to mess around in ADB or command line. Otherwise I would give more information than "it doesn't work." I want to see it fixed so I can go back to TWRP bad, I just don't know how.

Dream you seem to have some experience with this stuff. Could you try to log the root issue with Stock 4.4.2? It'd be better than us all saying TWRP is godlike and biff is our dudebro while not ever fixing anything.
[Verizon Samsung Galaxy Note II] DreamFX:
I tried stock for only a few minutes as I can't stand TouchWiz. I did try ditto note 3 and other 4.4.2 tw builds and they have root using TWRP. But I didn't stay on those either as I'm a die hard aosp fan. Next time I flash I will try stock and let you know if root sticks for me ?
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
The ditto note 3 ROM is a port. The official stock 4.4.2 rooted ROM is the one that has an issue with TWRP. I think it might be because of KNOX perhaps, or some other security lockdown. I honestly don't know and am just shooting in the dark here.

If you could try to install it and run the log I would be very grateful. 2.7.2.1 works perfectly for the actual system and data, but root access is not being given to the superuser apk and it can't function properly. The apk is there and installed, but when you try to grant superuser access to an application it just fails. This entire problem was resolved by flashing the ROM or root package via another recovery.
[Verizon Samsung Galaxy Note II] bigbiff:
Please upload a logcat of this issue.
[Verizon Samsung Galaxy Note II] DreamFX:
I will try this tomorrow morning. Did you get biff a logcat already? I will at least confirm your issue tomorrow. I was keeping up with the twrp discussion that you and a few other people were having with data I didn't remember root ever being mentioned as an issue. If your like me having no root is like not having a phone so I'm sure that frustrating. I'll keep you posted.
[Verizon Samsung Galaxy Note II] DreamFX:
https://www.sendspace.com/file/78d6fg

Here is the log from recovery when attempting to root ANY 4.4.2 TW rom from VZW. Ported roms from other phones work but not from VZW.

The roms I have tried are Stock ND7 4.4.2 and SR Remix 4.4.2. These are supposed to be prerooted but are not upon boot flashing with TWRP. When you attempt to flash SuperUser in TWRP it appears that it works but does not infact root the phone. SuperUser upon launching says knox is enabled and asks to disable. When you try and disable knox it never does it just sits there.
[Verizon Samsung Galaxy Note II] DaRkL3AD3R:
Thanks DreamFX. I have no idea how to get the logs or any of it otherwise I would have from the start.

Also glad to see you are getting the same experience as the rest of us, hopefully it helps the devs understand the issue so it can be fixed.

So it's definitely Knox related eh? I had a bad feeling it was :/
[Verizon Samsung Galaxy Note II] DreamFX:
You're welcome. And your right it's def a twrp issue because why else does CWM work and twrp doesn't.
[Verizon Samsung Galaxy Note II] bigbiff:
Can you get a logcat of the issue in android? I don't see anything telling in the log.
[Verizon Samsung Galaxy Note II] DreamFX:
@ DaRkL3AD3R can you possibly do this? Biff just needs us to run a logcat app from the play store and then attempt to use a rooted app. The logcat will show will the events including any errors hopefully. Then we can send it to him. I won't be able to do this for awhile. Anyone else is welcome to try as well reading this.