yashsingh1/xdaforums huggingface dataset:
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] btemtd:
I have an issue, I started of with 2 flash counts, When I reset the counter and then open up Triangle away it says Flash count 0 etc.. BUT soon as I restart I see the small red exclamation in the top left corner and once i load up Triangle away I see the flash count on 1 again

I am on a deodexed/Zipaligned Rom XXALI5 with Perseus Kernel

I was on the main thread and me and a few other running Perseus Kernel having the same problem I think that Triange away is not working properly on custom kernel

You may correct me if I am wrong but I have a feeling its because of the custom kernel each time the device is reset it does something which makes the counter restart @ 1. If this is the case well then it does not really matter because if you were to send it back to samsung you are going to flash official firmware and kernel which I then think the counter will stay at 0
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] kazuni:
Yep, I can confirm that I have the same issue. I will try and flash stock kernel on it and see if it works.
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] btemtd:
^great please let us know
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] kazuni:
Works with stock. If you used Triangle Away and then reflash a stock rom (through Odin) - the counter will be at 0.
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] jeet:
Tested works like a charm on GT-I9305 (Telstra AU)
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] rickadlee:
Yes this does work as long as you have a custom kernel. However as stated in the original post for triangle away there are some models that will set the counter to 1 on every boot, when a custom kernel or recovery is detected.

To recover back to stock without flash counter. Ensure you aren't plugged into power, as upon power up you boot into the charging screen which sets the counter again.

Run triangle away to reset counter. Once all completed, pull the battery. Out battery back in and boot into download mode immediately. Flash stock firmware and boot. No flash counter and stock firmware. Worked like a charm for me.

Hope this helps
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] Acesi7:
Can confirm this works also.

Telstra i9305t
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] btemtd:
So people with I9305, If we have a custom kernel it will reset back to 1 if we keep using our phones Modded? This is only a fix for if we want to return it back to samsung rght?
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] Rithina:
yes. the counter will always reset to one since the current latest model will detect the device status if we are running on custom recovery and kernel. To reset before sending for repair, just restore the recovery and kernel and use triangle v2.05 and reset the counter again and restore the original firmware. This will get your counter to 0 and device status as official.

This apply to the new s3 lte and note 2 non ite versions
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] shashasha:
Great!!!
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] fallendevil:
Any idea where I can get the original kernel
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] F1tty:
http://xdaforums.com/showthread.php?t=1971265

stock kernel and recovery ;) odin flashable...
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] fallendevil:
Thanks Worked like a charm
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] ram fetouh:
look! after resting Flash count to 0, when you enter the custom recovery, it counts again to 1. The solution is resting flash count to 0, and then installing official firmware using kies or odin (without entering recovery), just use download mode.
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] solrakk6:
Happy to see a solution for the 9305.

if i run the 4.1.2 and have 2 on counter ie.

i can reinstall my 4.1.2 or 4.1.1 and clear the counter?

thx
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] fallendevil:
I know this is documented else where but thought it would also be fitting here.

If you experience a problem where the counter does reset to 0 but the phone still shows as modified after rebooting, Remove the Micro SD card from the external card holder in the phone, as i and others have experienced that when the card is in the phone, it can cause the counter to read 0 but the phone still shows as modified when checking in settings > about phone.

Hope this helps
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] Rekoil:
I have a problem. I have stock system (rooted to use Triangle Away), kernel and recovery, after using triangle away the counter is reset, but not the system status. Do you mean that this was because there was an SD card in the phone?
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] timberwolf60:
Run titanium backup, locate syssope: refer to this thread: http://xdaforums.com/showthread.php?p=37364067 unfroze it and wide data then reboot. You should have counter = 0 and status official. If still can't get status > official. used mobile odin to flash the stock kernel and recovery, reboot and now you should have counter 0, status official in download mode and about. Your phone still remained rooted.

Send via i9100 using XDA premium,

ROM: Stock XWLSD

Kernel: Phil XWLSD V4.64

superSU 1.10
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] fallendevil:
Yes, thats what i found when i restored the official firmware and my counter was reset to 0 but the phone status was listed as "modified" so removing the SD card from next to the Sim card made my system state "normal" and i could once again run firmware update from EE/Samsung.
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] !crazy:
Could you please elaborate? Did you have an external SD card or what have you removed and where can we find that setting?
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] fallendevil:
okay

Whenever my external SD card was installed in the phone, the status was always set to modified. Once the external SD card was removed the status would then (after a reboot) be ok with status normal.

This would then allow me to run updates via the built in firmware update utility.

then i would reinsert my SD card in the external slot.
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] jetbruceli:
Have you tried a different SD card? Maybe there is a file on yours that is causing the modified status.

BTW I have come to conclusion that it doesn't matter to reset this unless or resale or repair.

You dont have to wait for an update since Samsung mobile has all their firmwares available for download

Sent from a Galaxy far away!!
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] fallendevil:
Yup

I have suspected that there is something in the content that caused my problems, but as i know a way around it then i am happy i can update my firmware via the official means.

But thanks for the suggestion.
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] android freek:
im think im anyway going to full back to stock ...im tryed 10 roms for i9305 and every have some bug after couple of days i notice them ...lol

our phone by specs are enoufh powerfull to run without custom moded things , hope i will manage to use right tringle .:o
[Galaxy S III I9305 (4G LTE + 2GB RAM) Android Deve] winxuser:
To have it on 0.. Once u use triangle away it will want to reset. Try to put it into download mode straight after triangle away restarts the phone and flash stock firm were. Counter will be 0
[Galaxy Note II Original Android Development] bigbiff:
[TOOL/UTILITY][TWRP][3.3][RECOVERY] TWRP 3.3.1-0 TeamWin Recovery Project 5/22

[RECOVERY] [5/22/19] TWRP 3.3.1-0 - TeamWin Recovery Project

TeamWin is proud to present TWRP 3.3.1-0 for the Samsung Galaxy Note 2 (International)!

Youtube video: http://www.youtube.com/watch?v=RIvWVS_Rkxo

Full TeamWin credits are on the TWRP page on the TeamWin website: http://teamw.in/project/twrp2

Introduction:

Team Win Recovery Project or twrp2 for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added a lot of our own features. It's a fully touch driven user interface , no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

Key Features:

Touchscreen driven with real buttons and drag-to-scroll

XML-based GUI that allows full customization of the layout true theming!

Settings are saved to the sdcard and persist through reboots

Ability to choose which partitions to back up and which to restore

Ability to choose to compress backups now with pigz (multi-core processor support for faster compression times)

Onscreen keyboard

Decryption of /data

Easy selection of internal/external storage

See changelog below for new features

In addition to the above new features, TWRP features a scripting engine that allows an app to send commands to the recovery for the recovery to perform during startup. We call this scripting engine OpenRecoveryScript. This engine will be put to use immediately in the GooManager app. GooManager will be able to install recoveries automatically for most supported devices. The app will also let you choose to install multiple zips from within Android, wipe cache & dalvik, and run a backup.

We are looking for other talented developers, themers, and device maintainers if they are interested in helping with a free, open source project.

Source Code:

GitHub - https://github.com/omnirom/android_bootable_recovery

Gerrit for TWRP Official Device Configs - http://gerrit.twrp.me

Gerrit Instance - http://gerrit.omnirom.org

If you have made your own twrp build for an unsupported device, please let us know. We might add your build to the list of unofficial builds. Bear in mind that we are working hard to add more devices and we may add your device to our official build list later.

t03g Device Config: https://github.com/TeamWin/android_device_samsung_t03g

Kernel: https://github.com/bigbiff/android_kernel_samsung_smdk4412

DOWNLOAD:

All official devices are listed at the top of the page on the Team Win website. Search for the device in the textbox.

http://twrp.me

Support:

Click http://webchat.freenode.net/?channels=twrp for live support or join us in #twrp on Freenode IRC servers
[Galaxy Note II Original Android Development] bigbiff:
FAQ

Q. Are there any themes I can use?

pctv007 has ported some themes for the Note2: http://www.mediafire.com/?34sulxbjxzb34

Q. Can I use Goo Manager to install TWRP if I am not rooted?

A. No, you will not have permissions to access the recovery paritition without a rooted system installed. This gives you the ability to have su installed as SUID root and with Superuser or SuperSu, you can give Android applications root access to use su to access the system as the root user.

Q. Where is the "Delete battery stats opton?"

A. We removed this option in 2.1. Please see https://plus.google.com/u/0/105051985738280261832/posts/FV3LVtdVxPT as reference.

Q. What happens if I wipe /data?

Good description also here: http://teamw.in/DataMedia

The Galaxy Note 2 is using the fuse filesystem to pretend /data/media is its own filesystem to external computers when you plug the phone into the computer. /data is one partition formatted as ext4. There is a subdirectory for media under /data which is presented as its own block device using fuse. Then mtp responder uses this directory to present the directory to a host computer when plugging in via USB.

Never allow your computer to format this directory in case there is a problem with mtp responder. Also NEVER wipe data under the Wipe menu unless absolutely necessary. This will remove all your files in /data/media.

On the original note, internal SDCARD was a separate file system formatted with the fat32 filesystem but exported directly through UMS.
[Galaxy Note II Original Android Development] ptichalouf:
First !

Envoyé depuis mon GT-N7100 avec Tapatalk
[Galaxy Note II Original Android Development] xaoc747:
I flash it through CWM Recovery, reboot, but Recovery still the same, what's wrong?
[Galaxy Note II Original Android Development] Reb0rn:
Great! Now we aren't stuck with cwm anymore!

Thanks!

Edit. Btw, does backup and restore work now?
[Galaxy Note II Original Android Development] xaoc747:
""No recoveries were found for your device" - say me GooManager...
[Galaxy Note II Original Android Development] kest874:
I get the same result, also tried the odin method > mobile odin complains that the image is missing. I try PC odin and it blows up when it goes to flash.
[Galaxy Note II Original Android Development] CRudner:
Go to the TWRP web site, choose the GT-N7100. Download the Odin flashable .tar file and flash via Mobile Odin.

For themes the HTC Evo themes are the same size 720x1280, but make sure they 2.3 compatible as 2.2 themes dont have some of the options available in 2.3.

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

Change the file name to recovery.tar or use the .img file and name it just recovery.img, Mobile Odin will flash then.

---------- Post added at 09:20 PM ---------- Previous post was at 09:18 PM ----------

Backups work 100%, just never tested the restore.
[Galaxy Note II Original Android Development] apascual89:
Backups and restore work fine for me.

---------- Post added at 04:26 PM ---------- Previous post was at 04:21 PM ----------

Download the image (.img) file here:

http://goo.im/devs/OpenRecovery/n7100/openrecovery-twrp-2.3.1.0-n7100.img

Rename it to recovery.img then you'll be able to flash through mobile odin.
[Galaxy Note II Original Android Development] xaoc747:
Partition could not be found on file - say me Mobile Odin!

recovery.img flashed through mobile odin and I have touch recovery!!! great!!!
[Galaxy Note II Original Android Development] bigbiff:
Sorry guys I need to fix the zip. Don't use it for now.

Also make sure you guys backup all your partitions just in case.

Luckily the zip is harmless and non damaging. I still recommend using dd to backup your phone but otherwise your fine if you flashed the zip.
[Galaxy Note II Original Android Development] toofank:
Thanks alot!
[Galaxy Note II Original Android Development] mprziv:
Strange, TWRP wont mount my external sd
[Galaxy Note II Original Android Development] StelardActek:
So does this mean that the Note 2 actually uses the recovery partition, instead of using an initramfs image in the kernel?
[Galaxy Note II Original Android Development] xaoc747:
When will be ready?
[Galaxy Note II Original Android Development] bigbiff:
If you could provide me /tmp/recovery.log I can take a look.
[Galaxy Note II Original Android Development] Myrkin:
Flashed it just now.

Works fine 4 me.

What should I be affraid of?
[Galaxy Note II Original Android Development] Chenglu:
Set backup name, click on the virtual keyboard the program crashes.
[Galaxy Note II Original Android Development] CRudner:
I can confirm this issue.

@bigbiff I have attached a link to my log, hopefully it recorded it as it restarts TWRP.http://dl.dropbox.com/u/24188397/recovery.zip
[Galaxy Note II Original Android Development] bigbiff:
I will have to build one with crypto support. I will look into it today some point.
[Galaxy Note II Original Android Development] brocktice:
Thanks, let me know if you need anything from me.

If you could point me to some build instructions I could give it a try myself.
[Galaxy Note II Original Android Development] bigbiff:
Can you try this: http://techerrata.com/file/twrp2/n7100/openrecovery-twrp-2.3.2.3-n7100-encrypt.img
[Galaxy Note II Original Android Development] brocktice:
Thanks! We have some progress anyway. It attempts to decrypt, but my password is not working. The log screen just says 'E:failed to decrypt data'.
[Galaxy Note II Original Android Development] bigbiff:
Can you paste /tmp/recovery.log from within twrp? I can get with Dees_Troy and see what's supposed to happen.
[Galaxy Note II Original Android Development] brocktice:
http://pastebin.com/5AR79SrK
[Galaxy Note II Original Android Development] brocktice:
I am trying to figure out a way to do it manually over ADB in TWRP, but it appears there are no appropriate binaries. Looking through the code some, it seems to all be handled automatically, and if the first attempt doesn't work at recovery boot, that's it. Right?

I'm going to try to get the CyanogenMod code base synched up tomorrow and see if I can start building this myself. I ought to be able to track this down.
[Galaxy Note II Original Android Development] bigbiff:
I talked to Dees_Troy and he said that Samsung encrypts differently than AOSP and that's why we are unable to decrypt data encrypted by Samsung OEM roms currently. Since we don't have access to Samsung's code we might not be able to support decrypting samsung encryption at all.
[Galaxy Note II Original Android Development] brocktice:
Ugh seriously? Why can't they leave well enough alone. I don't know if I can even trust it if they've mucked around with the mechanism. Can you guys tell me where things appear to be different so I have about sensible starting point for looking into it? In the mean time you should maybe update the OP to remove the mention of decryption support.
[Galaxy Note II Original Android Development] yahyoh:
@bigbiff the goomanager method for installing the recovery isn't working :rolleyes:

i used the zip to install it :D

and the keyboard crashing the recovery if i want to change the backup name
[Galaxy Note II Original Android Development] bigbiff:
What name are you trying to use and I will see if I can replicate.

GooManager just downloaded the recovery and flashed it for me. Sometimes goomanager doesn't work and you need to try again.
[Galaxy Note II Original Android Development] yahyoh:
i can't write any thing at all its crash as i put my finger on keyboard , and i tried 3 times with goomanager then i flashed the zip one :)
[Galaxy Note II Original Android Development] bigbiff:
Are you flashing 2.3.2.3? The first one I believe 2.3.1.1 had this issue, but was fixed later.
[Galaxy Note II Original Android Development] yahyoh:
WOW i'm blind :eek:

i was using the old version , i'm really sorry :D
[Galaxy Note II Original Android Development] Lit:
I found 2 bugs:

1. USB Mass Storage not working for int or ext storage

2. Backup write 2 times same data to SD and spend too many time to split archive in 2 files. Why? I use extFAT and dont need split 2Gb files anymore
[Galaxy Note II Original Android Development] bigbiff:
We split cause busybox tar can't handle greater than 2GB files. I am porting libtar currently and that gets rid of the limitation. I might add an option to disable it after. Disable would be default because if you move the file to a fat32 partition you run into the 4GB limit. Apps like tb might have issues too.
[Galaxy Note II Original Android Development] pongster:
Hi TeamWin. Great stuff here. I've been testing different recoveries to test install of my kernel and I love the speed of TWRP.

I was wondering if its possible to include USB Mass Storage support for exfat? Log shows the lun file can't be found so its not mounted and then the system tries using MTP, which is buggy on my set up. I was hoping UMS for exfat, bypassing MTP like Chenglu's CWM does, is possible.

Let me know what other info you might need so I can help get some for you. :)
[Galaxy Note II Original Android Development] bigbiff:
I tried ums with exfat in Windows but windows saw it as an unknown disk.
[Galaxy Note II Original Android Development] pongster:
I thought Windows would have support for exfat out of the box. :)

Is Fat32 UMS a possibility instead if having to go through MTP? Not sure how its done I recovery or if you can even use what cwm uses but chenglu's cwm can mount fat32 as ums. I can't find the "mount USB storage" as an option in the mounts menu.
[Galaxy Note II Original Android Development] bigbiff:
I want to do it right then have someone complaining that formatted their exfat drive. I will let you know when it's ready. For now you can use adb push/pull or a file explorer that works with adb.
[Galaxy Note II Original Android Development] bigbiff:
Hmm, I am thinking that kmsg from a flash over a former version of TWRP unfortunately.
[Galaxy Note II Original Android Development] OhCaN99:
Where to get 2.8.4.x

Hi i went to the twrp site and found the n7105 t0lte and the newest file they have is 2.8.0.1

wondering where I can find the latest file from.
[Galaxy Note II Original Android Development] xhizorsz:
Just use the mirror link. http://techerrata.com/browse/twrp2/t0lte
[Galaxy Note II Original Android Development] keenblade:
There maybe a problem with the latest twrp-.2.8.4.0, since you got the lte 7105 version. Read a few page back about the issue. So be sure to backup your modem about that issue. Also bigbiff posted an experimental twrp version that you may want to test. I would stick with the older and official build that you have until the issue fixed.
[Galaxy Note II Original Android Development] vincentshjuan:
Yup, 2.8.4.0 have some issue, so make sure you have a full nandroid (efs , boot, recovery etc). The problem I had was I lost TWRP recovery completely. I was on 2.8.1.0 before trying the latest, somehow the stock recovery went back into my phone. I had to Odin back twrp 2.8.1.0, and it's ok now
[Galaxy Note II Original Android Development] bigbiff:
Never got a valid last_kmsg to debug with yet.
[Galaxy Note II Original Android Development] keenblade:
Come on guys, give some logs and contribute. So bigbiff can fix it.
[Galaxy Note II Original Android Development] vincentshjuan:
Sorry, I forgot to backup the last_kmsg before doing the Odin....sorry was panicking then as all I could think of was how to get back twrp.... :(
[Galaxy Note II Original Android Development] dc66:
Still encryption issues

I factory reset, format and wipe everything before re-installing TWRP 2.8.4.0 and then latest CM12 nightly. Everything works fine, great.

Then, as I am obliged to have my Android device encrypted, I enccrypted it. Then had to apply a pin. Since then, I cannot decrypt/mount data in TWRP (wrong password error), which is very annoying (no nandroid possible, etc.). I love TWRP, but I need it work with encryption on my HTC One (m7)...

What should/can I upload as information? I am ready to do that, but I do not know what (nor how probably).

Thanks!
[Galaxy Note II Original Android Development] bigbiff:
They seem to be using a new method for encryption. If you can help in reversing there process that would be great. I am looking into it, but who knows how long it will take.
[Galaxy Note II Original Android Development] dc66:
Ok thanks for support. When you say "they", you mean CM12 or Google or is it linked with M7?
[Galaxy Note II Original Android Development] bigbiff:
CM seems to be using new methods to do encryption.

However we need support from people who have the device still to figure out how to make decrypt work in TWRP.
[Galaxy Note II Original Android Development] scrin378:
2.8.5.0 is available for download

But dont know which one to download...t03g,to3gdoszn or t03gub ???
[Galaxy Note II Original Android Development] F@HIM:
If u have international note 2 then dwnld t03g
[Galaxy Note II Original Android Development] szunyi77:
Hello, I have already 2.8.5.0! Great! What is the difference between the two versions? Which should I use, which is recommended? I have internal n7100.

So should the t03gub? I do not want problems.

Thank you

Galaxy note 2, Resurrection rom, Agni kernel
[Galaxy Note II Original Android Development] apuntigam:
Does 2.8.5.0 address the issue we've had with TWRP trying to overwrite the modem, and then disappearing to leave only the stock recovery?
[Galaxy Note II Original Android Development] bigbiff:
n7100 is t03g, the others are different variants.
[Galaxy Note II Original Android Development] bigbiff:
Please let me know if it doesn't.
[Galaxy Note II Original Android Development] F@HIM:
Use the 6th one bro from your ss which has t03g.zip at the last bcoz the other ones r for diff variants of note 2 :)