[ROOT] TriangleAway v3.26 - Galaxy Ace II Android Development

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 !
my flash counter was 11 :silly:
using Triangle Away may unmount your SD card. Reboot or manually remount it from Android settings.
MOD EDIT: WAREZ ATTACHMENT REMOVED...DO NOT HOST SOMEONE ELSE'S WORK WITHOUT THEIR PERMISSION
Al Credit : Chainfire
i hope that i helped you :angel:

hmzh said:
i hope that i helped you :angel:
Click to expand...
Click to collapse
NO U JUST WANT TO FARM "THANKS"
But whatevar, take it if it saves U i think that everybody know about this and laiks propably wont increase flash counter (as i look now, in our dev section we almost dont have anything what is flashed by odin (except stock roms)"

http://forum.xda-developers.com/galaxy-s2/orig-development/2014-01-15-triangleaway-v3-26-t1494114
plus there's way more information there.

I don't even know if the Ace 2 HAS the flash counter. I have flashed different firmware and ROMs thousands of times and not hit a wall. Download mode always thinks you're running Samsung Official firmware so is unaffected. Triangle Away is NOT needed for our device, I will argue that to the grave.

j800r said:
I don't even know if the Ace 2 HAS the flash counter. I have flashed different firmware and ROMs thousands of times and not hit a wall. Download mode always thinks you're running Samsung Official firmware so is unaffected. Triangle Away is NOT needed for our device, I will argue that to the grave.
Click to expand...
Click to collapse
It is still useful in cases when you need to repair your phone(using custom fw) if too lazy to flash full firmware

j800r said:
I don't even know if the Ace 2 HAS the flash counter. I have flashed different firmware and ROMs thousands of times and not hit a wall. Download mode always thinks you're running Samsung Official firmware so is unaffected. Triangle Away is NOT needed for our device, I will argue that to the grave.
Click to expand...
Click to collapse
That only proves, you weren't with codina from the beginning
First mods affected flash counter (gingerbread times), until devs learned how to workaround this)

Thread closed
Go here for proper credits and use: http://forum.xda-developers.com/galaxy-s2/orig-development/2014-01-15-triangleaway-v3-26-t1494114

Related

Current best way to root the S II?

No need for a long explanation, just a link or two, and/or some terms I can google for.
And, yes, I have been reading/searching the forum, and only find old posts mentioning Odin as a technique. Is there anything like SuperOneClick out?
Thanks!
Hi, Rooting through odin currently seems to be the most reliable and safest option.
There is other methods however can cause problems with the phone.
Head over to http://forum.xda-developers.com/showthread.php?t=1103399
Based on the current firmware download the cf root that matches it, extract it and flash using odin.
Hope this helps.
I literally just received my SGS2 about 2 hours ago and read a bit of the thread, not all considering how large it is.
I know this roots but does this unlock the BL at the same time since its installing CWM?
Sent from my SAMSUNG-SGH-I777 using xda premium
Up until recently, SGS2 bootloaders have been 'unlocked'. The easiest way to test this would be to try and use a jig to reset the flash counter on the phone after you've rooted it.
If you can't reset the counter, then the firmware that came with your phone has the locked bootloader (I'm sure someone will be along any second now & tell us exactly which version the bootloader started to be locked in . The details are somewhere on the forum).
Easy fix to this is to flash firmware that has the bootloader unlocked. Alternatively, you simply flash the old bootloader over whatever firmware you're running. This is also available on the forum *somewhere* (I don't have a link handy).
Edit to add - About halfway down the page in this thread , there's a section in bold red type which has a link to a tar of the old bootloader you can flash in Odin should you need to.
Auxilium said:
I literally just received my SGS2 about 2 hours ago and read a bit of the thread, not all considering how large it is.
I know this roots but does this unlock the BL at the same time since its installing CWM?
Sent from my SAMSUNG-SGH-I777 using xda premium
Click to expand...
Click to collapse
MistahBungle said:
Up until recently, SGS2 bootloaders have been 'unlocked'. The easiest way to test this would be to try and use a jig to reset the flash counter on the phone after you've rooted it.
If you can't reset the counter, then the firmware that came with your phone has the locked bootloader (I'm sure someone will be along any second now & tell us exactly which version the bootloader started to be locked in . The details are somewhere on the forum).
Easy fix to this is to flash firmware that has the bootloader unlocked. Alternatively, you simply flash the old bootloader over whatever firmware you're running. This is also available on the forum *somewhere* (I don't have a link handy).
Edit to add - About halfway down the page in this thread , there's a section in bold red type which has a link to a tar of the old bootloader you can flash in Odin should you need to.
Click to expand...
Click to collapse
Hi,
I've rooted my sgs2 using CF-Root, i found it better than OneClickRoot, reason for that is when i used oneclickroot the phone rooted then went back after i rebooted, which is weird. So i flashed CF-Root using ODIN and its perfect.
What I want to ask if you could help me please, is how can i see my flash counter? (if there is any)
and what is a jig, does it mean usb connection or is it a device i need to buy?
Thanks
Go into download mode (switch phone off - then do 3 finger reboot - hold home, volume down & power button at the same time), if you've flashed a non-stock rom/kernel in Odin it will show Custom binary download: x, where x is the number of times you've flashed a rom or kernel in Odin.
The jig is a usb plug with a certain amount of resistance over some of the pins of the plug (301k Ω or thereabouts I believe). To use it, you switch the phone off, plug the jig into the usb port on the phone, it reboots the phone into download mode and you'll get a message saying "Erasing download information successful". It will now show Custom Binary Download as no & Custom Binary as Samsung Official.
This will also get rid of the yellow warning triangle that appears at boot as long as you're using an "old" bootloader. Samsung recently started including "locked" bootloaders with their newer firmware in the last few months that don't allow a jig to reset the flash counter.
These cost a few dollars on eBay, do a search for "Samsung Galaxy S2 jig" or similar.
ab.riyami said:
Hi,
I've rooted my sgs2 using CF-Root, i found it better than OneClickRoot, reason for that is when i used oneclickroot the phone rooted then went back after i rebooted, which is weird. So i flashed CF-Root using ODIN and its perfect.
What I want to ask if you could help me please, is how can i see my flash counter? (if there is any)
and what is a jig, does it mean usb connection or is it a device i need to buy?
Thanks
Click to expand...
Click to collapse
Search for the zergRush method. Its the easiest one so far. I personally used odin to flash a rooted cf-kernel but used zergRush to root a friens sgs2 and its really easy. You must have the adb drivers installed for sgs3.
Sent from my GT-I9100 using Tapatalk
bobkoure said:
And, yes, I have been reading/searching the forum, and only find old posts mentioning Odin as a technique. Is there anything like SuperOneClick out?
Thanks!
Click to expand...
Click to collapse
Wanna bet 100$ that you didn't? Paypal only.
There's a ****ing sticky with one non-Odin method, which you just missed, because you were too busy furiously searching for other methods, which were also described many times in the same forums.
Hi kinda off topic, i already rooted my SGS2 by flashing insecure kernel from Odia for DXKL3 and rooting it then flashing back the original kernel. now i want to install CWM, I see a lot of guides and searched, all looks like that need to install a CWM enabled rom or use a kernel that is compatible with CWM, thats where the part i get confused since most of the guide points you to a diffrent kernel from the insecure kernel, cant you use the insecure kernel tha odia posted specific for my DXKL3? and i dont want to install a custom ROM just for CWM it would defeat the purpose since i want to back up my stock firmware.
MistahBungle said:
Go into download mode (switch phone off - then do 3 finger reboot - hold home, volume down & power button at the same time), if you've flashed a non-stock rom/kernel in Odin it will show Custom binary download: x, where x is the number of times you've flashed a rom or kernel in Odin.
The jig is a usb plug with a certain amount of resistance over some of the pins of the plug (301k Ω or thereabouts I believe). To use it, you switch the phone off, plug the jig into the usb port on the phone, it reboots the phone into download mode and you'll get a message saying "Erasing download information successful". It will now show Custom Binary Download as no & Custom Binary as Samsung Official.
This will also get rid of the yellow warning triangle that appears at boot as long as you're using an "old" bootloader. Samsung recently started including "locked" bootloaders with their newer firmware in the last few months that don't allow a jig to reset the flash counter.
These cost a few dollars on eBay, do a search for "Samsung Galaxy S2 jig" or similar.
Click to expand...
Click to collapse
Thanks for the explanation mate, so then the jig is a device to buy not just the normal usb wire.
I'm thinking of getting it but now that its useless if firmware wont allow counter resets using jig......
quick Q, is there another method of resetting the counter and removing the yellow triangle? (it doesnt matter to me but incase i need to take it back for warrantee id need to do that i reckon)
There's no other way to reset the counter that I'm aware of. There's another method you can use to get rid of the triangle tho. 2nd post of the CFRoot thread details how to do this.
I suggest you get a jig. For less than $5 the peace of mind having one gives you is priceless.
ab.riyami said:
Thanks for the explanation mate, so then the jig is a device to buy not just the normal usb wire.
I'm thinking of getting it but now that its useless if firmware wont allow counter resets using jig......
quick Q, is there another method of resetting the counter and removing the yellow triangle? (it doesnt matter to me but incase i need to take it back for warrantee id need to do that i reckon)
Click to expand...
Click to collapse
i used the zergrush exploit, worked fine
http://forum.xda-developers.com/showthread.php?t=1319653

[Q] [I9000]Warranty even if once rooted

Hello fellow XDA user
I have recently bought a the I9100 internation version and I am really pleased, however I do know the power of a ROM and how much it could improve or brick your phone.
However I came from the Galaxy S i9000, I never managed to recover the phone, so it would be recognized by kies, it did recognize my phone, but it said that 'Kies didn't support any upgrades for it'. Meaning if I would like to return it for garantee reasons, the shop or manufacturer will see I have been messing with my phone, which excludes my warranty.
Therefore I wonderd if there was a possibility to install roms or root your phone and unroot it, so kies would regonize it again.
Thanks alot and feel free to suggest any rom
Intensity007 said:
Hello fellow XDA user
I have recently bought a the I9100 internation version and I am really pleased, however I do know the power of a ROM and how much it could improve or brick your phone.
However I came from the Galaxy S i9000, I never managed to recover the phone, so it would be recognized by kies, it did recognize my phone, but it said that 'Kies didn't support any upgrades for it'. Meaning if I would like to return it for garantee reasons, the shop or manufacturer will see I have been messing with my phone, which excludes my warranty.
Therefore I wonderd if there was a possibility to install roms or root your phone and unroot it, so kies would regonize it again.
Thanks alot and feel free to suggest any rom
Click to expand...
Click to collapse
yes there is a way cfroot to which will give you superuser access and also CWM recovery by then swapping back to stock kernel will unroot also if you using odin to flash this wil increase binary counter look for a app called triangle away this will reset the binary counter but only works on ics.
this is just basics to answer quickly your question please still search within the sgs2 forum sections most of all new users questions have been answered and there is many guides for new users to refer to in development sections prior to installing customs roms etc
DJBoxer said:
yes there is a way cfroot to which will give you superuser access and also CWM recovery by then swapping back to stock kernel will unroot also if you using odin to flash this wil increase binary counter look for a app called triangle away this will reset the binary counter but only works on ics.
this is just basics to answer quickly your question please still search within the sgs2 forum sections most of all new users questions have been answered and there is many guides for new users to refer to in development sections prior to installing customs roms etc
Click to expand...
Click to collapse
I know about CF root .. but as I said before, I managed to restore the stock functionality of my Galaxy S, but I never managed to get support from Kies again. ('Kies doesn't support updates for your phone'). I don't know if the Galaxy S II method might diffrentiate from that .. but I do want to be on the safe side with my warranty and I don't want another bad to happen to my phone.
Quik Recap
1) Prepare Odin --> Go download Mode (Power + volume down + home button)
2) Flash Phone --> Odin --> Install CF Root Kernel
3) Mount Phone ---> USB --> Download Rom ---> Boot ClockWorkRecovery (Power + volume up + home button)
4) Enjoy Rom --> Enjoy Xda Power
5) How to Revert?, will kies regonize it and support it
Code:
[URL="http://forum.xda-developers.com/showpost.php?p=20075898&postcount="]CF Root Kernals By Chainfire[/URL]
Can someone please answer my post above, I really want to start modding, but I also want to be able to get back to an unrooted version with Kies support
Check out the links in my signature, especially the one about going back to stock. That should satisfy your request.
Long story short, reset your flash counter and flash stock rom. But make sure you READ
OK. The experience on here over the past 6 mths or so goes something like this. About 50% of people who go back to stock firmware for their region after using custom roms or stock firmware not for their region seem to be able to get OTA updates via Kies OK. For some reason(s), the other 50% or so of these people seem not to be able to get OTA updates to work despite flashing a full stock rom for their region (with correct CSC).
Why doesn't it seem to work for some people ? Who knows ? I don't think I've seen a single answer that could cover even a small majority of those cases.
Regardless, if you find you ever go back to stock with the intention of getting OTA firmware updates & they don't work, do what plenty of people on here do & flash them via Odin. Easy fixed.
The bottom line with warranties is this. The moment you start rooting your phone or flashing non-stock firmware on it, you should forget about/lose all expectations of warranty service/replacement should something go wrong with your phone. At the end of the day, you mess with your phone, why should Samsung/your telco foot the bill ?
Having said that, if you format everything, go back to stock & reset the flash counter, again, the experience on here is many people seem to get warranty service OK.
What you seem to be looking for is a 100% iron-clad guarantee.
There isn't any. If potentially borking your phone & having to pay to have it repaired/replaced yourself frightens you, best advice would be simply don't mess with it. Stay on stock. That's the only way you're getting 100% guarantees. If you've only ever been on stock/OTA updates & never rooted/flashed custom firmware and the phone borks, they pay to fix it.
Pretty simple really.

custom binary counter in download mode quistion

hi all , i have astrange thing that i don't understand
i have my s2 sice 10 months now , and from day one i rooted it and installed about all custom roms and kernels out there , but strangely when i went to download mode yesterday to see what is my custom binary counter
it shows me custom binary counter= no !!
from day one i used to flash syah kernel through odin and then used the recovery to flash all of my stuf ,and i never used triangle away or any other alternative to reset my binary counter , also i didn't get the yesllow triangle after using siyah kernel !!
any one can explain this because i want to be sure that my binary counter is set to zero and it isn't just a funny value
As long as it says no & says Samsung Official if you ever send it in for warranty service how/why/anything else is irrelevant.
Don't worry about it. Just check it again to be doubly sure if the above is ever required.
MistahBungle said:
As long as it says no & says Samsung Official if you ever send it in for warranty service how/why/anything else is irrelevant.
Don't worry about it. Just check it again to be doubly sure if the above is ever required.
Click to expand...
Click to collapse
yes it says no and i checked it again , thanks

[Q] Getting customized without touching the binary counter...

Im thinking this:
If one wants to get root and custom firmwares onto the Mega (I9205 in my case), then the only way that i can imagine right now is to flash one of the prerooted firmwares and then flash CWM with Mobile Odin from within the system afterwards (I know Mobile Odin does not officialy support the Mega yet).
Is there any other way to get root and CWM without touching the binary counter and having to risk using "Triangle away" ?
According to some more experienced users, mega does not have a binary counter. It shows "customised" rather than a counter.
To flash a stock rom with stock recovery is sufficient to restore to its stock state.
dchsub said:
According to some more experienced users, mega does not have a binary counter. It shows "customised" rather than a counter.
To flash a stock rom with stock recovery is sufficient to restore to its stock state.
Click to expand...
Click to collapse
Thank you very much for your reply. If this is true, then that is really good news and a fair decision on Samsungs behalf, to make it that way.
Yes just the stock rom flashing from Odin will make it back in warranty and Real factory Default
IN case of Mega we don't need any triangle away/Binary counter reset kernel.
brunte said:
Thank you very much for your reply. If this is true, then that is really good news and a fair decision on Samsungs behalf, to make it that way.
Click to expand...
Click to collapse
I naively think, to make it easier to restore to stock state will decrease the chance to go service for those who will flash anyway. Triangle away can sometimes soft brick a samsung device.

[Q] i777 says I900 on startup

ever since i first rooted my s2 2 years ago it's booted up with the I900 on startup. i didn't pay any attention to it then cause i was new to flashing and rooting but i installed Resurrection Remix last night and tonight i'm trying out the Pacman Rom and i noticed its still there. I know i have the i777 at&t version for sure but was curious as to why the new roms aren't fixing the bootup. i don't think it's that big of an issue (or is it??) but yea. anyone know why?
Do you have the yellow triangle too? If so it's because you tripped the counter for installing custom roms. No big deal unless you need warranty which sounds like you'd be out of anyway.
Sent from my GT-p511x
sharonbw said:
Do you have the yellow triangle too? If so it's because you tripped the counter for installing custom roms. No big deal unless you need warranty which sounds like you'd be out of anyway.
Sent from my GT-p511x
Click to expand...
Click to collapse
yea i have the triangle and figured thats why it showed up. i just thought it curious that the model number would be wrong
ok i have another question and i didn't want to make a new thread..
on the pacman 4.3 rom when you go to lock screen settings it lets you choose "system icons" which i like wayy more than the default android icons. where are they stored on the phone? and how do i go about placing them in an easily accessible folder so i can change up my icons other than the lockscreen ones
sil3nt_trill said:
ok i have another question and i didn't want to make a new thread..
on the pacman 4.3 rom when you go to lock screen settings it lets you choose "system icons" which i like wayy more than the default android icons. where are they stored on the phone? and how do i go about placing them in an easily accessible folder so i can change up my icons other than the lockscreen ones
Click to expand...
Click to collapse
You might need to ask this in the pacrom thread (that's a cool feature!)
Re the I9100 logo, it is apparently because at&t was to lazy to make a separatescreen for the I777. Once you've tripped the counter, that's what you get. It bugged me a lot so I got rid of it. I'd have to re-search the threads addressing this (or you can if you care about it.
Sent from my GT-p511x
can't post in developer forums -_-
sharonbw said:
You might need to ask this in the pacrom thread (that's a cool feature!)
Re the I9100 logo, it is apparently because at&t was to lazy to make a separatescreen for the I777. Once you've tripped the counter, that's what you get. It bugged me a lot so I got rid of it. I'd have to re-search the threads addressing this (or you can if you care about it.
Sent from my GT-p511x
Click to expand...
Click to collapse
No it sounds like 2 years ago he used the old Zedomax method of rooting and used an i9100 kernel to do it. My counter is tripped and the ONLY time its ever said i9100 was because of Zedomaxs method which used modded i9100 firmware. Nada to do with ATT as far as i remember. Otherwise all of us custom rom users would still have that screen.
Slavestate said:
No it sounds like 2 years ago he used the old Zedomax method of rooting and used an i9100 kernel to do it. My counter is tripped and the ONLY time its ever said i9100 was because of Zedomaxs method which used modded i9100 firmware. Nada to do with ATT as far as i remember. Otherwise all of us custom rom users would still have that screen.
Click to expand...
Click to collapse
Could be. I thought that using Odin to install anything custom is what tripped the counter and that if you use mobile Odin or flash via cwm you don't trip it. However, I believe I may have installed a zedomax kernel to trip mine (I did it recently when attempting to return to stock - I forget exactly what I did.)
Anyway, I read that the triangle screen from tripping the counter always says I900 even on the I777. Mine did and it totally got on my nerves so I followed instructions to get rid of it. I couldn't use chainfires triangle away so I followed some more complicated instructions. I don't remember the link but I could probably find it - although anyone else probably can too.
Sent from my GT-p511x
sharonbw said:
Could be. I thought that using Odin to install anything custom is what tripped the counter and that if you use mobile Odin or flash via cwm you don't trip it. However, I believe I may have installed a zedomax kernel to trip mine (I did it recently when attempting to return to stock - I forget exactly what I did.)
Anyway, I read that the triangle screen from tripping the counter always says I900 even on the I777. Mine did and it totally got on my nerves so I followed instructions to get rid of it. I couldn't use chainfires triangle away so I followed some more complicated instructions. I don't remember the link but I could probably find it - although anyone else probably can too.
Sent from my GT-p511x
Click to expand...
Click to collapse
^^^
This is correct. Actually, using Odin or Heimdall to install a non-stock kernel is exactly what trips the flash counter, and throws up the warning screen. Using Odin or Heimdall to install a "stock" kernel will also clear the warning screen, but it will not reset the flash counter. To reset the flash counter to zero, you either need to use a USB jig, or use Chainfire's app. The warning screen has nothing to do with whether the non-stock kernel is built for the I777 or the I9100, or whether it was a zedomax kernel. Any custom kernel will produce the exact same results.

Categories

Resources