[Android Software/Hacking General [Developers Only]] Lanchon:
Affected Devices

See here for more information.

Which Devices Are Known To Be Affected By Brickbug?

GT-N7000 Galaxy Note (International)

GT-I9100 Galaxy S II (International)

SGH-I777 AT&T Galaxy S II Attain (3G)

SGH-I727 AT&T Galaxy S II Skyrocket (4G)

SGH-T989 T-Mobile Galaxy S II Hercules

Most other Samsung tablets and handsets released in 2011

Amazon Kindle Fire first generation (approximately 50% of units; the rest have unaffected Toshiba eMMCs)

Acer A500 (no official CyanogenMod support)

Nook Color

Which CyanogenMod ROMs Are Known To Include Indie Developers' TRIM-Crippling Brickbug Fix?

Part 1: Recoveries that suppress wiping of eMMC partitions (BOARD_SUPPRESS_EMMC_WIPE)

BOARD_SUPPRESS_EMMC_WIPE

galaxys2-common/BoardCommonConfig.mk

celox-common/BoardConfigCommon.mk

motorola/qcom-common/BoardConfigCommon.mk

(FYI: Recoveries that wipe eMMC partitions non-securely.)

Devices:

GT-N7000 Galaxy Note (International) / GT-I9100 Galaxy S II (International) / SGH-I777 AT&T Galaxy S II Attain (3G) / SPH-D710 Sprint Galaxy S II Epic 4G Touch: yes

SGH-I727 AT&T Galaxy S II Skyrocket (4G) / SGH-T989 T-Mobile Galaxy S II Hercules / SGH-I577 AT&T Exhilarate: yes

GT-I9100G Galaxy S II (G): no

GT-I9250 Galaxy Nexus (GSM): no

Nexus 7 (2012): no

Amazon Kindle Fire first generation: no

Nook Color: no

Nook HD+: no

Part 2: Kernels that suppress ERASE/TRIM/DISCARD eMMC commands (no MMC_CAP_ERASE)

Each SoC (system-on-chip) has its own set of on-chip peripherals that require specific ad-hoc drivers. Which of these drivers controls the peripheral that is connected to the eMMC is SoC- and board-specific. The indie developers' fix for brickbug entails hacking this driver to make in unable to issue ERASE/TRIM/DISCARD commands by way of removing the MMC_CAP_ERASE capability. I could not find a generic way to know which driver controls the eMMC from sources, so this has to be studied for each case.

XDA's codeworkx (thanks!) provided this info:

Exynos: drivers/mmc/host/mshci.c

OMAP: drivers/mmc/host/omap_hsmmc.c

Kernels and boards:

android_kernel_samsung_smdk4210 (Exynos): yes, but this kernel was abandoned after CM 10.1.

android_kernel_samsung_smdk4412 (Exynos): yes, but only for Mach U1 boards (including i9100 and i777).

android_kernel_samsung_msm8660-common (Snapdragon S3): boards seem to use SDCC1 for the eMMC, including celox, so apparently not.

Devices:

GT-I9100 Galaxy S II (International) / SGH-I777 AT&T Galaxy S II Attain (3G): yes, these are Mach U1 boards.

GT-N7000 Galaxy Note (International) / SPH-D710 Sprint Galaxy S II Epic 4G Touch: maybe; are these Mach U1s?

SGH-I727 AT&T Galaxy S II Skyrocket (4G) / SGH-T989 T-Mobile Galaxy S II Hercules / SGH-I577 AT&T Exhilarate: these are celox, so APPARENTLY NOT !!!

GT-I9100G Galaxy S II (G): unknown

Galaxy Nexus (GSM / Sprint / Verizon): unknown

Nexus 7 2012 (WiFi / GSM): no (tested fstrim)

Amazon Kindle Fire first generation: unknown

Nook Color: unknown

Nook HD+ : unknown

Which CyanogenMod ROMs Are Known To Include Samsung's Brickbug Fix?

Fixed kernels:

first implemented fix (MMC_QUIRK_MOVINAND_SECURE)

mainline fix (MMC_QUIRK_SEC_ERASE_TRIM_BROKEN)

Devices:

GT-N7000 Galaxy Note (International) / GT-I9100 Galaxy S II (International) / SGH-I777 AT&T Galaxy S II Attain (3G) / SPH-D710 Sprint Galaxy S II Epic 4G Touch: yes (for CM 10.1 and earlier: yes)

SGH-I727 AT&T Galaxy S II Skyrocket (4G) / SGH-T989 T-Mobile Galaxy S II Hercules / SGH-I577 AT&T Exhilarate: yes

GT-I9100G Galaxy S II (G): yes

Galaxy Nexus (GSM / Sprint / Verizon): no

Nexus 7 2012 (WiFi / GSM): no

Amazon Kindle Fire first generation: NO !!!

Nook Color: NO !!!

Nook HD+ : no

Which Devices Are Known To Be Affected By WL Bug?

Galaxy Nexus

Which CyanogenMod ROMs Are Known To Include The Fix For WL Bug?

It seems that only 3 kernels include this fix, the Galaxy Nexus, the Nexus Q, and the Qualcomm-based Galaxy S2s.

GT-N7000 Galaxy Note (International) / GT-I9100 Galaxy S II (International) / SGH-I777 AT&T Galaxy S II Attain (3G) / SPH-D710 Sprint Galaxy S II Epic 4G Touch: NO !!!

SGH-I727 AT&T Galaxy S II Skyrocket (4G) / SGH-T989 T-Mobile Galaxy S II Hercules / SGH-I577 AT&T Exhilarate: yes

GT-I9100G Galaxy S II (G): NO !!!

Galaxy Nexus (GSM / Sprint / Verizon): yes

Nexus 7 2012 (WiFi / GSM): no

Amazon Kindle Fire first generation: no

Nook Color: no

Nook HD+ : no

Which Devices Are Known To Be Affected By TRIM Bug?

Nexus 7 2012

Nook HD+

Which CyanogenMod ROMs Are Known To Include The Fix For TRIM Bug?

These 4 kernels plus these 3 kernels:

android_kernel_samsung_smdk4210

android_kernel_samsung_smdk4412

android_kernel_samsung_jf

android_kernel_samsung_msm8930-common

android_kernel_bn_omap

android_kernel_asus_grouper

android_kernel_htc_msm8960

And I have found these 3 kernels that seem to include the same fix but triggered for specifically singled out eMMC parts. This may be a subset of the 'standard' fix (it may be an older implementation) or may cover devices not covered by the standard implementation. Besides this, nothing else seems interesting.

Devices:

GT-N7000 Galaxy Note (International) / GT-I9100 Galaxy S II (International) / SGH-I777 AT&T Galaxy S II Attain (3G) / SPH-D710 Sprint Galaxy S II Epic 4G Touch: yes

SGH-I727 AT&T Galaxy S II Skyrocket (4G) / SGH-T989 T-Mobile Galaxy S II Hercules / SGH-I577 AT&T Exhilarate: NO !!!

GT-I9100G Galaxy S II (G): seems to be covered by this eMMC-specific patch

Galaxy Nexus (GSM / Sprint / Verizon): NO !!!

Nexus 7 2012 (WiFi / GSM): yes

Amazon Kindle Fire first generation: no

Nook Color: no

Nook HD+ : yes

Which Devices Are Known To Be Affected By P17 Bug?

Nook Color

Which CyanogenMod ROMs Are Known To Include The Fix For P17 Bug?

It seems that not a single CM ROM includes this fix.

GT-N7000 Galaxy Note (International) / GT-I9100 Galaxy S II (International) / SGH-I777 AT&T Galaxy S II Attain (3G) / SPH-D710 Sprint Galaxy S II Epic 4G Touch: no

SGH-I727 AT&T Galaxy S II Skyrocket (4G) / SGH-T989 T-Mobile Galaxy S II Hercules / SGH-I577 AT&T Exhilarate: no

GT-I9100G Galaxy S II (G): no

Galaxy Nexus (GSM / Sprint / Verizon): no

Nexus 7 2012 (WiFi / GSM): no

Amazon Kindle Fire first generation: no

Nook Color: NO !!!

Nook HD+ : no