[Galaxy S II Original Android Development] Chainfire:
Many Samsung devices store a flash counter that keeps track of how many times you have flashed custom firmwares to your device. On some devices, a yellow triangle or other sort of visual warning is also displayed during boot if you are running a custom firmware. TriangleAway was built to disable the triangle (if a visual warning is present) and reset the custom ROM flash counter to 0. This app requires root !

You can find out the current status of your flash counter and firmware state (custom or official) by booting into "download mode" on most devices. The usual way of getting into "download mode" is by first turning off your device, then turning it on by pressing and holding VolDown+(Home)+Power. Alternatively, the "adb reboot download" command also often works. Note that some newer device like the S4 do not

show

you the flash counter anymore - but it is

still there

.

When you run TriangleAway, if your device and firmware are supported, it will show you the detected state of the binary (custom or official) and flash counter value, and the option to Reset flash counter. Please confirm that the information shown is correct before resetting the values.

On a number of devices, TriangleAway can work, but your firmware may not be supported directly. In that case, the app will tell you it needs to reboot into a special boot mode, which will be happen if you select Reset flash counter. The device will reboot into a special mode which will allow you to review the current status and reset the binary and flash counter values (or abort and do nothing). On some devices this will actually trigger the counter to 1 if its 0 - so if you're "just checking", do that in download mode!

THIS IS A DANGEROUS OPERATION AND COULD POTENTIALLY BRICK YOUR DEVICE. PROCEED AT YOUR OWN RISK. A USB JIG IS PREFERRED IF YOU HAVE A WORKING ONE.

( and by brick I mean brick - only a board replacement or a JTAG unit will be able to save you, don't mess with boot(loader) stuff unless you really mean it! )

Note#1: using Triangle Away may unmount your SD card. Reboot or manually remount it from Android settings.

Note#2: on new devices like the SGS4/SGS3/SGNote2/SGNote8/SGNote10.1 etc, the "system modified" status can only be reset on some firmwares - they must be stock firmwares!

FAQ

- Triangle Away shows a negative counter ?

If you have a very large flash count (over 127) this is known to happen. Please confirm in download mode that you actually have that large a flash count before resetting the counter.

- After using Triangle Away I get no bootscreen at all or an error message on screen ?

Try flashing the attached "param.tar" as PDA in ODIN (no repartition!), that may clear up the issue. Samsung Galaxy S II GT-I9100 ONLY

- What about future updates and devices ?

Please read this article I wrote about this: http://www.chainfire.eu/articles/118/Triangle_Away_vs_Samsung/

- On my SGS4/SGS3/Note2/etc, Download Mode says my System is modified, and Triangle Away does not reset it

Triangle Away attempt to reset this status and block it from coming back, but it depends on the firmware. It does work on some (not all) stock firmwares. Resetting this value often doesn't work on custom firmwares! See the post below this one for more information.

- On the SGS4/SGS3/Note2/etc, System->Settings->About device->Status still shows "Modified"

This is outside the scope of Triangle Away. The "system" status is not even always resettable in the bootloader. If you are going for warranty, you need to also reflash a full stock firmware and wipe your device. If they boot up your device and find root apps, you're not going to get any warranty anyway. If you do such a full stock reflash and wipe, the "Modified" value will go away. The workaround option in TriangleAway

may

help you temporarily change this value. See the post below this one for more information.

- My counter always stays at 1

Some devices/bootloaders set the counter to 1 at every boot if you are running a custom kernel or recovery. On these devices, Triangle Away may always display 1 - make sure to check the counter in actual download mode, and make sure you are running a stock Samsung kernel and recovery.

Supported devices

Samsung Galaxy S2 GT-I9100 **

Samsung Galaxy S2 SPH-D710 Epic 4G Touch **

Samsung Galaxy S2 Korea SHW-M250K/L/S **

Samsung Galaxy S3 GT-I9300 **

Samsung Galaxy S3 GT-I9300T **

Samsung Galaxy S3 AT&T

Samsung Galaxy S3 Sprint

Samsung Galaxy S3 T-Mobile

Samsung Galaxy S3 Verizon UNLOCK BOOTLOADER

Samsung Galaxy S3 Canada

Samsung Galaxy S3 US Cellular

Samsung Galaxy S3 MetroPCS

Samsung Galaxy S3 Cricket

Samsung Galaxy S3 C-Spire

Samsung Galaxy S3 GT-I9305 LTE **

Samsung Galaxy S3 GT-I9305T LTE **

Samsung Galaxy S3 GT-I9305N LTE **

Samsung Galaxy S3 Korea SHV-E210K/L/S ** DISABLE DUE TO ISSUES

Samsung Galaxy S3 Korea SHW-M440S **

Samsung Galaxy S4 International GT-I9505 **

Samsung Galaxy S4 AT&T SGH-I337 UNLOCK BOOTLOADER

Samsung Galaxy S4 Verizon SCH-I545 UNLOCK BOOTLOADER

Samsung Galaxy S4 T-Mobile SGH-M919

Samsung Galaxy S4 Sprint SPH-L720

Samsung Galaxy S4 US Cellular SCH-R970

Samsung Galaxy S4 Canada SGH-I337M

Samsung Galaxy Note GT-N7000 **

Samsung Galaxy Note GT-I9220 **

Samsung Galaxy Note 2 GT-N7100/T **

Samsung Galaxy Note 2 GT-N7102 **

Samsung Galaxy Note 2 GT-N7105/T LTE **

Samsung Galaxy Note 2 SPH-L900 Sprint **

Samsung Galaxy Note 2 SGH-T889 T-Mobile **

Samsung Galaxy Note 2 SGH-T889V Canada **

Samsung Galaxy Note 2 SGH-R950 US Cellular **

Samsung Galaxy Note 2 AT&T/Canada SGH-I317/M **

Samsung Galaxy Note 2 SCH-I605 Verizon ** UNLOCK BOOTLOADER

Samsung Galaxy Note 2 Korea SHV-E250K/L/S **

Samsung Galaxy Note 3 International SM-N9005 4.4+

Samsung Galaxy Note 3 SM-N900T T-Mobile 4.4+ (Untested)

Samsung Galaxy Note 3 SM-N900P Sprint4.4+ (Untested)

Samsung Galaxy Note 3 SM-N900W8 Canadia 4.4+ (Untested)

Samsung Galaxy Note 3 SM-N900S/2/6/8/9 Asia 4.4+ (Untested)

Samsung Galaxy Note 8.0" GT-N5100 3G **

Samsung Galaxy Note 8.0" GT-N511x Wi-Fi **

Samsung Galaxy Note 8.0" GT-N5120 LTE **

Samsung Galaxy Note 10.1" GT-N8000 3G **

Samsung Galaxy Note 10.1" GT-N801x Wi-Fi **

Samsung Galaxy Note 10.1" GT-N8020 LTE **

Samsung Galaxy Note 10.1" SHW-M480S/K/W **

Samsung Galaxy Camera EK-GC100 **

Samsung Galaxy Tab 2 GT-P310x 7" 3G

Samsung Galaxy Tab 2 GT-P311x 7" Wi-Fi

Samsung Galaxy Tab 2 GT-P510x 10.1" 3G

Samsung Galaxy Tab 2 GT-P511x 10.1" Wi-Fi

Samsung Galaxy Ace 2 GT-I8160

Samsung Galaxy S Advance GT-I9070/P

Samsung Galaxy S3 Mini GT-I8190

Samsung Galaxy Grand Duos GT-I9082

Samsung Galaxy Ace Plus GT-S7500

Samsung Galaxy Ace IIx GT-S7560

Samsung Galaxy S Duos GT-S7562

Samsung Galaxy Premier GT-I9260

Various Qualcomm-based Samsung devices should now be supported as well, but I don't know which ones - please let me know!

Suspected is a large range of Qualcomm based Note and S2 variants.

** Various related models are supported depending on firmware, but only the exact model numbers listed are supported regardless of firmware version.

Whether or not Triangle Away works depends largely on your kernel. Flashing a different kernel may make it work if it previously didn't.

Download

Download from Google Play

The Google Play download is not free - it costs about a beer (thanks!). The download listed below is 100% the exact same program, but free. I provide it for free because I believe this app should be available even to people who cannot pay on Google Play. If you are able to purchase on Play, please consider that I have spent a great many hours on this, and the latest version also uses server resources I have to pay for.

REDISTRIBUTION IS NOT ALLOWED

( 1.00: 634; 1.10: 12795; 1.25: 59699; 1.50: 2891; 1.51: 45740; 1.70: 30839; 1.80: 13997; 1.90: 26020; 2.00: 10141; 2.05: 2421; 2.06: 755; 2.10: 17703; 2.15: 4780; 2.20: 4219; 2.25: 2861; 2.26: 11340; 2.30: 5132; 2.35: 676; 2.36: 16139; 2.37: 77595; 2.40: 12019; 2.45: 2725; 2.50: 7233; 2.55: 19784; 2.60: 54862; 2.65: 2957; 2.70: 6734; 2.75: 41790; 2.80: 2314; 2.85: 5092; 2.90: 128863; 2.95: 4595; 2.99: 27515; 3.00: 63085; 3.01: 78579; 3.05: 35309; 3.10: 189298; 3.25: 5562)