What is Binary Counter?

All Samsung smartphones including the latest Galaxy S4 include a “binary counter”.  This counter only increases when you install non-official Samsung recovery.  So if you end up installing ClockworkMod or TWRP recovery to install custom ROMs, this binary counter is increased.

If you do flash an official Samsung firmware (or root-injected Samsung firmware), the binary counter does not increase.

Fortunately, XDA developer ChainFire develops Triangle Away app which allows you to reset the binary counter.

What does this mean for you as a consumer?

Nothing, you can always get your Galaxy S4 completely back to stock by installing an official Samsung firmware and also resetting binary counter using Triangle Away app.  The beauty of Samsung phones like Galaxy S4 is that it is possible to “unvoid” your warranty completely back to stock easily using free online tools unlikes HTC, where you can re-lock HTC phones but HTC will still know you’ve rooted your device.


What is a Custom ROM?

A custom ROM is a custom, modified operating system that you can install on your Android device. Basically it's like installing Windows OS on a Macbook. By installing a custom ROM, you can bypass stock factory settings like locked hotspot tether, install new Android versions early, or even convert your phone into another OS.

With a custom ROM, you can really maximize the capabilities of your smartphone by adding custom features that have been developed by open source developers.

How to Install Custom ROMs

First, you will need to root your device, if it is not rooted yet, follow our root tutorial and root your phone.

Once rooted, you should have TWRP installed on your phone. Installation of a custom ROM is easy if you learn the basic of it. If you don't know how to install custom ROMs using TWRP recovery, see our tutorial on How to Install Custom ROM using TWRP!

7 Responses

  1. geet says:

    how to reset binary counter of galaxy s4 i9500 as it doesn’t support triangle away?

  2. Makarand Godbole says:

    the information provided only works on gt-i9505 and not on gt-i9500. triangle away does not work on gt-i9500.

  3. pls help me says:

    hi i tried all the ways to get stock firmware back on my i9300 but not working if i flash it back to stock firmware it is stuck at the bootscreen and cant go into recovery mode only download mode
    current firmware : JDQ39.I9300XXUFME3 (non official 4.2.2)
    mn : gt-i9300

  4. SAMWEL says:

    its amazing………

  5. Pasad says:


    I flashed pre rooted firmware 4.2.2 using ODIN on my Samsung I-9500 4.2.2. Then the status is remain same
    Binary : Samsung Official
    System : Official.

    Then I installed Wanam apk to modify the UI, It asked me to download Xposed framework I grant Super user permission. Once It completed I checked the status

    Binary : Samsung Official
    System : Custom.

    I flashed stock firmware 4.2.2 and did the reset factory reset. Then it changed to
    Binary : Samsung Official
    System : Official.

    My question, Is the hidden binary count or knox counter triggered or not ?
    If I updated to stock 4.3 Is the Knox Warranty bit 0x0 or 0x1 ?

    Please help me.

  6. abhi says:

    Please help me to reset binary counter on gt i9500

  7. sami says:

    i tired to root my phone samsung s2 and now phone start with that yellow caution …but after that screen get all black i cant see anything does i have totally formatted my phone please help me so i can at least have my old verison back

Leave a Reply

Your email address will not be published. Required fields are marked *