[Defy Android Development] okij:
History of known bugs with CM10.2 for Defy

Edit: I now use this post here to keep a history of the known bugs with CM10.2 for the Defy(+) of the older nightlies, just for reference purposes (as some bugs contain links to other posts which might still be useful for the devs). For a more up-to-date information, please look at my current list of known bugs, which Quarx has linked on the opening post.

---

Known bugs with the 09-15 nightly of CM10.2 for the Defy(+):

1. BT-headset has problems.: Still existent

2. BT will not work, if FM is enabled: Still existent (AFAIK, because I didn't try it)

3. Video recording is not good.: Still existent (especially sound being cut off to early)

4. Memory leak after some days.: This is IMHO solved or at least got much better!

(The 08-01 nightly I could run for 14+ days without rebooting, something that

never worked on my Defy+ with CM10 and CM10.1, where 3-5 days was the maximum until a

noticable memory loss / not responding device / random reboot)

5. Delay on wakeup.: This is IMHO solved (less than 1 second for me)

6. Mobile data drops: Should be solved with the next nightly, since Quarx applied the

SlugZero patch on his Github today. :)

7. Missing "Defy Parts" settings: Should be solved with the next nightly, because Quarx

applied "Restore device settings" on his Github today. :)

8. Missing capability to disable HWA for apps: As far as I can see, Quarx didn't add this to

his Github yet, but since [MENTION=4148153]TJKV[/MENTION] already implemented it in his Slimbean 4.3, it shouldn't

be difficult for Quarx to implement it in CM10.2. :D IMHO this is an important feature for

us Defy users since it saves quite some RAM for every running app which has HWA disabled.

Edit: Should be solved with the next nightly, because Quarx meanwhile applied "hwui: Allow to blacklist

android applications" on his Github today. :)

9. Missing arrows that indicate upload/download activitiy at Wifi and mobile connections:

This (minor) bug has already been reported a couple of times. Does anybody know if this

bug maybe is present in other CM10.2 distributions too, so that it's not Defy specific?

Edit / additional info: One more thing that I observed: Since I first installed CM10.2

some weeks ago, all apps which count mobile data usage don't work anymore (whereas the Android

system is still counting correctly). I guess that could be related to the same bug.

Edit: one more minor bug to the list: ;)

10. The app switcher previews sometimes don't work correctly: If this happens, you just see a black

rectangle instead of the usual screenshot-thumbnail of an app. This might be easily fixable, since

[MENTION=4173406]Kayant[/MENTION] pointed to a patch for samsung devices called "fixes the app switcher previews". :)

[MENTION=513620]Quarx[/MENTION]: First of all: It's great to have you back here on xda and that you put out a first nightly so quickly after your holidays! :)

It would be great if you could update the information in your OP with this list, so that everybody who's interested in CM10.2 can lookup the known bugs without asking in this thread. :angel:

To conclude my posting, I want to say that CM10.2 IMHO is already running much better and more stable than the CM10 and CM10.1 releases for the defy :good::good:, so I would recommend it for everyone who can live with the known bugs. :)

---

Known bugs with the 09-17 nightly of CM10.2 for the Defy(+):

BT-headset has problems: Still existent, but maybe not with all models. Master Quarx has announced to get himself a BT headset and try to debug the BT issue! :victory::fingers-crossed: (I think that Quarx's commitment in fixing the BT bug is a good reason to make a donation to him, if not already done so. :)) Edit: YetAnotherForumUser posted a patch here which is necessary to get the current repo to build in terms of BT, but this patch doesn't solve the known BT issues.

BT will not work, if FM is enabled: Still existent (AFAIK, because I didn't try it)

Video recording is not good: Still existent (especially sound being cut off too early). 720p video theoretically works since the latest build, but the recording doesn't finish correctly, so the recordings cannot be played back (I tried it with both Camera ICS+ and lgCamcorder).

Memory leak after some days: This bug is not totally solved yet, but got much better under CM10.2 and thanks to Blechd0se's efforts in fixing those leaks. With this I ran the 08-01 nightly for 14+ days and daFlox reported an uptime of 800+ hours = 33+ days! :D For some users, this bug also leads to the device not waking up from deep sleep after 2-3 days, as arod81 and TJKV reported here and here. Blechd0se wrote here that there are still some memory leaks left and that he will further investigate this. :fingers-crossed:

Delay on wakeup: This can be considered as solved (less than 1 second for me). If people still have problems with it, I recommend to turn off multiple lock-screen pages and the the lock-screen camera feature in Settings.

Mobile data drops: This is not completely solved yet, even though Quarx applied the SlugZero patch which has been re-adapted to CM10.2 by [MENTION=1892363]xdaid[/MENTION]. As xdaid wrote here, he keeps trying to fix this bug. :) SlugZero's fixed kernel here is a necessary precondition for fixing this bug, but unfortunately doesn't fix it by itself.

Missing "Defy Parts" settings: This has been solved.

Missing capability to disable HWA for apps: This is not solved yet, because one commit is still missing, as TJKV pointed out here. If you cannot wait: MarcinRN released an unofficial nightly here where he already applied the missing commit. :D Edit: On 10-12 Quarx applied the missing commit on his GitHub, so it will be fixed in his next nightly. :)

Missing arrows that indicate upload/download activitiy at Wifi and mobile connections: This bug has been reported a couple of times. Edit: SlugZero has posted a fixed kernel here which fixes this bug. :D This patch has already been applied at Quarx's github by Blechd0se so it will be in the next nightly. :)

Mobile data counter apps don't work with CM10.2 yet: This bug is related to the before mentioned bug, but has no impact on the build-in data counter, which works correctly. Edit: SlugZero has posted a fixed kernel here which fixes this bug. :D This patch has already been applied at Quarx's github by Blechd0se so it will be in the next nightly. :)

The app switcher previews sometimes don't work correctly: If this happens, you just see a black rectangle instead of the usual screenshot-thumbnail of an app. This might be easily fixable, since Kayant pointed to a patch for samsung devices called "fixes the app switcher previews". :)

Sometimes the IMEI isn't present after booting: This bug exists since CM10 or at least since the first custom kernels. As a workaround, doing a Hot Boot with some Rebooter app from Play Store helps in restoring it quickly. Nevertheless I would be happy if this bug could be fixed, since some apps like MyPhoneExplorer and Navigon need the IMEI to work.

"ehci_pm" is causing battery drain due to wakelocks (was: Sometimes the battery drains very quickly at night): This bug was reported by Urdle, hotdog125 and also by myself, see here and here. Edit1: This bug seems to be quite random because now I didn't have it again for a couple of days. Edit2: Here I identified "ehci_pm" (i.e. the USB driver or probably the modem driver which is connected to USB) as the culprit for the wakelocks. Edit 3: Here I collected some more information about ehci-omap.c (which Blechd0se suspects to contain the buggy code) and here I posted a kmsg-log after the bug occured again.

Wifi list in the setting page will not update when pressing scan: As a workaround, turn off WiFi, then turn it back on and you'll get a scan. Edit: [MENTION=4841764]SlugZero[/MENTION] has posted a fixed version of the wpa_supplicant here which fixes this bug. :D

System returns only 00:00:00:00:00:00 as BSSID (MAC address of the router): This bug is related to the before mentioned bug. Edit: SlugZero has posted a fixed version of the wpa_supplicant here which fixes this bug. :D

Log is spammed by BATTD when Defy is connected to wall charger: This (cosmetic) bug has been reported by YetAnotherForumUser here, where he also already posted a patch for fixing this bug. :) This patch has already been applied at Quarx's github by Blechd0se so it will be in the next nightly. :)

Handset mic, earphone and speaker all muted during calls if BT enabled even when not connected to any BT device: I added this bug to the list as requested by bbstrikesagain here.

After suspend/resume the governor can't be changed (if started from interactive): This bug has been reported by Blechd0se here who investigated this issue and already made a patch at Quarx's github so it will be in the next nightly. :)

Data partition corruption bug: This serious bug - which also exists in CM10 and CM10.1 - occurs when the battery goes to 0%. It is easily repoducible, as described by Proverbs2 here.

---

Known bugs with the 10-20 nightly of CM10.2 for the Defy(+):

To distinguish the solved bugs from the others, I now decided to mark them in three different ways:

Bugs that are written normally are not solved yet.

Bugs that are written in brackets have already a fix (e.g. a flashable zip) which hasn't made it into the current nightly yet. Please note that some of these fixes still need some more approval.

Bugs that are struck out are already fixed in the current nightly.

BT-headset has problems: Still existent, but maybe not with all models. Master Quarx has announced to get himself a BT headset and try to debug the BT issue! :victory::fingers-crossed: (I think that Quarx's commitment in fixing the BT bug is a good reason to make a donation to him, if not already done so. :)) Edit1: YetAnotherForumUser posted a patch here which is necessary to get the current repo to build in terms of BT, but this patch doesn't solve the known BT issues. Edit2: SlugZero posted here that the usage of the BlueZ stack (when its finished) might solve the BT issues and Benoe pointed here to a commit (code cleanup) on Quarx's github that might be related to the BT issues.

BT will not work, if FM is enabled: Still existent (AFAIK, because I didn't try it)

Video recording is not good: This got much better with the 10-20 nightly, as 720p video now finally is working with a CM10.x release by courtesy of Quarx! :) However, when I tried a 3:30 minutes long 720p recording, sound still was being cut off too early (after 2:55 minutes). More test and feedback is appreciated! Edit: Quarx made a further commit for this issue which will be in the next nightly. :)

Memory leak after some days: This bug is not totally solved yet, but got much better under CM10.2 and thanks to Blechd0se's efforts in fixing those leaks. With this I ran the 08-01 nightly for 14+ days and daFlox reported an uptime of 800+ hours = 33+ days! :D For some users, this bug also leads to the device not waking up from deep sleep after 2-3 days, as arod81 and TJKV reported here and here. Blechd0se wrote here that there are still some memory leaks left and that he will further investigate this. :fingers-crossed:

Delay on wakeup: This is solved. :) If people still have problems with it (i.e. if it takes more than 1 second), I recommend to turn off multiple lock-screen pages and the the lock-screen camera feature in Settings.

(Mobile data drops): This is not completely solved yet, even though Quarx applied the SlugZero patch which has been re-adapted to CM10.2 by [MENTION=1892363]xdaid[/MENTION]. As xdaid wrote here, he keeps trying to fix this bug. :) Edit1: SlugZero posted a fixed version of libril here which can be flashed ontop of 10-20 nightly and which hopefully fixes this issue. Test and feedback is appreciated! :fingers-crossed: Sevenrock posted a link to the source for SlugZero's libril patch here. Edit2: SlugZero additionaly posted a fixed version of build.prop (also flashable) here, which should make data connectivity a lot more stable. Sevenrock posted a link to the source for SlugZero's build.prop patch here. Edit3: As pasor1 wrote here, the data drop issue is solved for him with the build.prop patch, which has been confirmed by TJKV here. Edit4: Quarx applied SlugZero's patch to his github here so it will be in the next nightly. :)

[*]Missing "Defy Parts" settings: This has been solved by courtesy of Quarx. :)

[*]Missing capability to disable HWA for apps: This has been solved by courtesy of Quarx and TJKV. :)

[*]Missing arrows that indicate upload/download activitiy at Wifi and mobile connections: This has been solved by courtesy of SlugZero. :)

[*]Mobile data counter apps don't work with CM10.2 yet: This has been solved by courtesy of SlugZero. :)

[*]The app switcher previews sometimes don't work correctly: If this happens, you just see a black rectangle instead of the usual screenshot-thumbnail of an app. This might be easily fixable, since Kayant pointed to a patch for samsung devices called "fixes the app switcher previews". :)

[*]Sometimes the IMEI isn't present after booting: This bug exists since CM10 or at least since the first custom kernels. As a workaround, doing a Hot Boot with some Rebooter app from Play Store helps in restoring it quickly. Nevertheless I would be happy if this bug could be fixed, since some apps like MyPhoneExplorer and Navigon need the IMEI to work.

[*]("ehci_pm" is causing battery drain due to wakelocks) (was: Sometimes the battery drains very quickly at night): This bug was reported by Urdle, hotdog125 and also by myself, see here and here. Edit1: This bug seems to be quite random because now I didn't have it again for a couple of days. Edit2: Here I identified "ehci_pm" (i.e. the USB driver or probably the modem driver which is connected to USB) as the culprit for the wakelocks. Edit 3: Here I collected some more information about ehci-omap.c (which Blechd0se suspects to contain the buggy code) and here I posted a kmsg-log after the bug occured again. Edit4: Blechd0se posted a fixed kernel here which can be flashed ontop of 10-20 nightly (as it contains all other commits too). Edit5: As I reported here, this kernel unfortunately doesn't solve this bug. Edit6: Blechd0se made a commit to the kernel here where he removed ehci_pm wakelocks from the usb driver, so this will be in the next nightly. Since TJKV already compiled this for his current SB4.3 build, I took the kernel and put it into a flashable zip for CM10.2 here. Let's hope that this now finally gets rid of this bug! :fingers-crossed: Test and feedback is appreciated! :D

[*]Wifi list in the setting page will not update when pressing scan: This has been solved by courtesy of SlugZero. :)

[*]System returns only 00:00:00:00:00:00 as BSSID (MAC address of the router): This has been solved by courtesy of SlugZero. :)

[*]Log is spammed by BATTD when Defy is connected to wall charger: This has been solved by courtesy of YetAnotherForumUser. :)

[*]Handset mic, earphone and speaker all muted during calls if BT enabled even when not connected to any BT device: I added this bug to the list as requested by bbstrikesagain here. It might be related to bugs #1 and #2.

[*]After suspend/resume the governor can't be changed (if started from interactive): This has been solved by courtesy of Blechd0se. :)

[*]Data partition corruption bug: This serious bug - which also exists in CM10 and CM10.1 - occurs when the battery goes to 0%. It is easily repoducible, as described by Proverbs2 here. Edit: SlugZero posted an explanation for this bug and a manual fix (using ADB in recovery) here, which hopefully fixes this bug! This manual fix has just to be applied once (as long as /data isn't formatted again in boot menu or after factory reset). Edit2: cyrusct82 found a method here to enable "has_journal" without an external computer, just by using TWRP, and xergio24 wrote a step-by-step guide for this method here.:) Edit3: phirsch made some findings here which might help to track further down the reason for this bug. Edit4: As Proverbs reports here, this bug obviously is neither solved by enabling "has_journal", nor by phirsch's findings. :( More tests and feedback are still appreciated! Until this issue is further investigated, enabling "has_journal" still is a good idea, as it might at least decrease the possibility or frequency for this bug. Edit5: As Antiga Prime proves here, the "format /data to EXT4" option in bootmenu disables journal. Edit6: Quarx enabled journal feature during install rom and journal in format script in his github, so it will be in the next nightly. :)

[*](Wifi tethering is not working on 10-20 nightly): This bug has been reported by xukashi here and confirmed by other users. Edit: SlugZero posted a fix as a flashable zip here which replaces hostapd with the older, working version. :)