yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] ndanl:
i have the same problem with deep sleep after a while my phone stops entering deep sleep, but it's totally random stop, the same issue i have in ICS so i think it is kernel related ...
[Defy Android Development] adi4motion:
i think i know what's happening in maniac103's build that freeze the display

it's the 10152 line in android_frameworks_base/services/java/com/android/server/WindowManagerService.java

it used to be

if (CUSTOM_SCREEN_ROTATION && mPolicy.isScreenOn())

and now is if (CUSTOM_SCREEN_ROTATION)

this is because he tried to fix

"Unfreeze display even if screen is off
Change Idce8fc0049758e50aaf9bc3f93aff45758ed30c1 made it possible
for an animation to start and never complete, thus keeping the
display frozen.
So... disregard screen state when calling unfreeze. If mScreenRotationAnimation
isn't null, let it go all the way.

Change-Id: Ibf4b31508855398e8d20626bf169656e2a3d2aa9"

but by doing this he affected:

"Don't animate rotations when screen is off
Avoid error loops like these:

W/WindowManager( 1744): Animation repeat aborted after too many iterations
W/WindowManager( 1744): Layout repeat skipped after too many iterations
W/WindowManager( 1744): Layout repeat skipped after too many iterations
W/WindowManager( 1744): Layout repeat skipped after too many iterations
W/WindowManager( 1744): Animation repeat aborted after too many iterations
W/WindowManager( 1744): Layout repeat skipped after too many iterations

[B][I][COLOR="Red"]which happened mostly when the screen was turned off while a landscape
app was active.[/COLOR]
[/B][/I]
Change-Id: Idce8fc0049758e50aaf9bc3f93aff45758ed30c1"

i think this may be the "problem"

look at the bolded red "code"

edit1: my logcat looks exactly like this:

W/WindowManager( 2272): Animation repeat aborted after too many iterations

W/WindowManager( 2272): Layout repeat skipped after too many iterations

W/WindowManager( 2272): Layout repeat skipped after too many iterations

W/WindowManager( 2272): Layout repeat skipped after too many iterations

W/WindowManager( 2272): Animation repeat aborted after too many iterations

W/WindowManager( 2272): Layout repeat skipped after too many iterations
[Defy Android Development] ndanl:
can i have the same battery circle from cm9 in cm7?
[Defy Android Development] sakitobaki:
if (CUSTOM_SCREEN_ROTATION && mPolicy.isScreenOn())

maybe to try

with OR instead :-)

Red lense German Vodafone Froyo based

CM7.2 Nightly
[Defy Android Development] adi4motion:
:)) not really

the condition must be if (CUSTOM_SCREEN_ROTATION && mPolicy.isScreenOn())

and a solution i think it may be in the body of the "if" the orientation to be forced in the current orientation without using a animation...or animated a bit after the screen is woke up...like 1 second delay after waking up the screen
[Defy Android Development] petemt:
After flashing the ROM I tried rebooting and now I'm stuck on the screen with Google with the motorola and cyanogenmod logos...

When I try to get into recovery (power button + volume down) I only see a yellow exclamation mark with the android guy next to it...

What can I do to fix this?

Ok, so now I got into Android system recovery (3e), why isn't my custom recovery here?? Or how can i start that??

Or is there a way to flash a rom or whatever in the Android system recovery (3e)?
[Defy Android Development] [] AL []:
yo!

I did report the same a few days ago [just after installing Maniac103's Feb10th nightly I believe] and although not too frequent, it still happens at time. Phone held perfectly straight up, no quick movement or anything and screen rotates [now on Feb13th] - just by scrolling up sometimes.

And again, yes I also get the black screen on wake [with phone left in landscape OR in portrait].

And btw, I agree that there is no logic in having to exit all apps and return to homescreen before turning off the display.

Resistance is futile; you will be assimilated.

---------- Post added at 09:29 AM ---------- Previous post was at 09:12 AM ----------

Which rom? What kind of Defy do you own old Defy or Defy+)? What nightly exactly?

But from your description, I would bet that it is a cm7 (not +) build from Epsylon3.

"the screen with Google with the motorola and cyanogenmod logos": those are two different things. Motorola logo is the boot splash screen and CM "logos" are actually the boot animation.

If you get stuck on splash screen, that could indicate a kernel incompatibilty problem and there's afew things you might want to try but I will not list them here since not enough info from you and that you are most likely in the other situation (below).

If you are stuck in a bootloop at the bootanimation, all you have to do is to press volume up and down (both pressed) and the power button to force a reboot [or pull the battery out and back in]. After reboot, it should be ok.

Pressing volume down and power button brings you to STOCK recovery and you should not wipe anything in there unless you plan to flash a sbf again.
[Defy Android Development] petemt:
It's an old Defy, I flashed the rom from this topic, so 7.1.0.

As for the screen I'm stuck at, I took a picture, it doesn't loop or anything, it just stays there, frozen...

I can get into the standard Android recovery, but not the other recovery I previously installed, which is this one: http://xdaforums.com/showthread.php?t=944543

So can I do anything in the standard recovery?

I tried rebooting several times, but that doesn't seem to be working at all... I also waited for half an hour or more on that frozen screen, but nothing...

I got it to boot once, the first time, since then, it's just being silly and doesn't want to do anything...

Thanks for the quick response!
[Defy Android Development] [] AL []:
That picture tells me that either you ar trying to install OR were running an old cm buid (from 2-3 months ago) before installing the nightly. So give us the build name please: something like cm72-120212.0129-NIGHTLY-Defy.zip from here or a link to it.

If you pull the battery out and puit it back in and reboot, do you see the blue led at any point?

If yes, press the volume down at that exact moment and you'll be on custom recovery, wipe everything and try Maniac103's latest build this time. Edit:[but you would have to find a way to copy the nightly onto your sd card first - something like using a micro SD card adapter for your computer]

If not (no blue led), then you might have lost 2ndinit and/or root and have no choice to start from scratch. I.e: go in STOCK recovery again and wipe all, reboot with volume up pressed and flash a Froyo sbf again, root, install 2ndinit again and so on.
[Defy Android Development] hailmary:
yes there is...try to leave the phone running overnight w/ any app or game open in either of the screen modes-would you?

i always exit apps before turning off the screen-thats why that so called bug never occured on my defy:rolleyes:

a little doggy can never assimilate a gorilla;unless its rabied:p
[Defy Android Development] petemt:
The file name was update-cm-7.1.0-jordan-signed.zip, I just downloaded it from the first post in this topic, so I have no idea...

I don't see any blue led light when putting in the battery.

I guess it's best to start from scratch... What is SBF, how does it work and where can I find it? I'm sorry I don't know this, but I'm used to flashing HTC devices and never saw anything about sbf or something...
[Defy Android Development] [] AL []:
I could make easy money on a bet here monkey :p

The black screen happens on other apps too (xda, Battery Monitor Widget, Notes...) I don't even think that it is related to an app beeing opened in fact..

Who's talking about locking up the phone for the night anyway? For sure I wouldn't leave GTA III running before going to bed. But what's the BIG deal leaving an unread SMS screen on when turning off the display?

An app (especially one not data-enabled (no rights or blocked)) has no reason of draining the battery when the screen if off. If it does, you should probably consider uninstalling it or finding an alternative...

What I would add [to be constructive here / not to your arguable comment] is that I have ADWL to use portrait mode only [in Settings_ADWLauncher_System Preferences_Home Orientation] and haven't tried to replicate the bug with that set to [Auto/sensor] yet. Edit: nope: that doesn't solve it AND I had no app launched .... :rolleyes::rolleyes::rolleyes:

Yes it is probably better for you to do so.

SBF is a complete phone firmware from Motorola and has to be flashed from a computer with RSD. You cannot flash any random sbf because there are "downgrade" risks involved. So, as much as possible, you should try to find the

firmware (sbf) that your phone came with.

Please read the F.A.Q on the first page of the thread for more details and instructions on how to do all that. It would take a page here to tell you exactly what to do...And sorry but this thread is in a development section and this belongs to Q/A - so thanks for your understanding.. good luck.

Edit: I was partially wrong here... from the FAQ, you can see:

"5) Flashed CM7.1 (or any other ROM) now i'm stuck at Motorola or Cyanogen logo. What I have to do?

- Go to Custom Recovery then clear cache. If the problem persists, you can try to wipe dalvik cache (in advanced) too. The next boot will take some time to build dalvik cache again. If you don't have Custom Recovery for some reason, power off your phone,

press and hold Volume Down + Power to go to Stock Recovery (only to clear cache/wipe data). Use Volume Up + Volume Down to show the options at Stock Recovery.

- Some people related freeze on the first boot of CM7.1, just remove your battery ans try again."

So try this first before learning about sbf.
[Defy Android Development] caioars:
Try to follow this: http://xdaforums.com/showthread.php?t=1065798
[Defy Android Development] petemt:
Thanks to the both of you! Got the stock rom again :). Any of you guys of a good step-by-step tutorial for root and flashing custom roms again? :p
[Defy Android Development] maniac103:
While those changes aren't mine (they came in via CM merges, check the author name), and while I think the problem is somewhere around those pieces of code, I don't think your assumption is right: An unfreeze of the screen is what's missing, thus it can't be wrong to remove a condition around unfreezing.

The reason why it's hard to reproduce is that the screen is unfreezed automatically 5 seconds after rotating to portrait. As the lockscreen timeout is also 5 seconds, you have to be really quick trying to power on.

Sent from my Defy

EDIT: I think I found the problem. Currently trying a fix, will upload a new build if successful.

EDIT2: New build uploaded, please give it a try.
[Defy Android Development] adi4motion:
Thanks maniac103, trying the fix right now.

Just to clarify, i was not acusing you of "bad coding" i was aware that the code is not yours, I was just trying to help by identifying the problem. About the so called "fix" i posted. I don't really know what those functions that were called in the if statement were returning... i was just making an assumption... a wrong one as it turns.

My second one were to somehow "split" the code into two... one to complete the animation and one to unfreeze display or something like that (i think this is what you did isn't it?)

Anyway, thanks a lot! willpost result!
[Defy Android Development] maniac103:
You can have a look at the fix here. The problem was that on rotation to portrait the screen was freezed (because the screen was off, thus no rotation animation), but on turning on screen again, it wasn't unfreezed accordingly (because the unfreezeDisplay() call was only done for !CUSTOM_ROTATION_ANIMATION).
[Defy Android Development] adi4motion:
Thanks a lot! The fix is working as is supposed!

edit: oh, yeah...stupid me:D The problem was checking first for custom animation...
[Defy Android Development] caioars:
Watch this video: http://www.youtube.com/watch?v=1xSIEx7kiXU
[Defy Android Development] sakitobaki:
Ok. Nice :-) What does mean those + and - branches with same lines of code? One is red and other is green.

Red lense German Vodafone Froyo based

CM7.2 Nightly
[Defy Android Development] adi4motion:
red is removed, green is added
[Defy Android Development] andrrei22ro:
thanks maniac... you are the best :D thank you all for your work
[Defy Android Development] AgentSmith:
Sorry wrong forum. Post can be deleted. :)
[Defy Android Development] measel:
slow wifi connection / no wifi connection when screen off

I just went back to an older version: 2011-11-16 and the problem was gone. I backed up the whole /system/etc/wifi/ folder and compared it with the one on the current nightly. There are definitely a view differences.

Question:

Is it save to just replace the whole folder?

Thank you.

/edit: Ok might have bin the wrong folder... did it have to be /data/misc/wifi/? Argh it's hard when one knows nothing. :|

/edit2: I'm so sorry: I compared wrong files and folders (system and data). I come back here, when I really found something. *shame on me*
[Defy Android Development] [] AL []:
I'd just copy the module tiwlan_drv.ko [in /system/lib/module] from that older nightly and replace it on the newer build first.

Don't forget to set its permissions afterwards..

You can do this with RootExplorer or with Terminal (from the app tray) by entering these 5 lines:

su
cd /system/lib/module
mount -o remount,rw /system/
chmod 644 tiwlan_drv.ko
chown 0.0 tiwlan_drv.ko

and reboot.
[Defy Android Development] measel:
Thanks a lot but replacing tiwlan_drv.ko didn't help. :(

I stop discussing that here and move to a new thread for that (don't want to spam here!)

http://xdaforums.com/showthread.php?p=22570913#post22570913

Any help is appreciated of course. Thank you so far.
[Defy Android Development] adi4motion:
LOL...just LOL! but i guess we expected this:

DEFY+ MB526

Will remain on Android 2.3.

https://forums.motorola.com/pages/00add97d6c

Not a single update... and they signed that accord that will update a handset at least for 18 months...

If their phone's wouldn't be cheaper/better build quality then competition's they wouldn't sell anything:P
[Defy Android Development] jh20:
i'm not only expecting this, but also that they will "never" unlock the bootloader. why do you think they released bl7 roms that are unrootable? they don't want you to use custom roms......

i also don't believe motorola when they claimed it was the phone vendors who refused to let them unlock the bootloader. they sell other phones with unlock bootloader anyway. so what's the different with one more device? or is that the reason why motorola is giving up on the defy? they are dead-locked into a contract (out of their own stupidity) that they couldn't get out?
[Defy Android Development] Proverbs2:
After further research, I've learned that the wifi wakelock issue is a common problem on Gingerbread ROMs, not only on the DEFY but on many other devices as well. Fortunately, there is a very simple workaround. Just install the "Wifi Timeout" app (by Last Mile), free on Android Market. :)

As far as I can tell, the app just disables wifi after the screen is off for a certain length of time, then re-enables it when the screen is turned on again. (That's exactly what is supposed to happen by default, of course; but somehow the AOSP's way of implementing that timeout feature seems to cause the wakelock problem, whereas the app does not.)

A humble suggestion for the devs: perhaps something like this could be implemented in the CM7 rom itself. That might help with some battery drain issues.

Edit: this solution only seems to work when the wifi timeout length is short. I wonder why that might be... Maybe changing the default wifi timeout period would have a similar effect, without using the "Wifi Timeout" app. I'll try that and report back...
[Defy Android Development] Proda:
Wow...So that's why I have a lot of wifi_locks in BetterBatteryMonitor with WIUI and CM7...Both are GB ROMs right?

Damn...So I should just switch back to Froyo and have pretty good battery life (or go to ICS with some other phone, cause Defy won't ever get update from Motorola now).
[Defy Android Development] hrk:
Are you kidding? This could be the best news of the day. If you bough a device after motorola publicly claimed 18 months of updates, then (at the very least here in the European Union) Motorola has breached its contract with the customer and is liable of damages ranging from complying with the contract (providing updates) to refund of purchase (at the price you bought it).

I think in the USA the consumer-protection laws are even more powerful than in the EU, so this could as well be the perfect foundation for a class action.

I, for example, bought the Defy after Motorola publicly claimed that she'd release an unlocked bootloader (and my device is not subsidied by an operator, I bought it directly by Motorola through its resellers). This is too a breach of contract... way more powerful than an online petition.
[Defy Android Development] Sedariya11:
Have installed the cyanogen mod 7.1.0 everything is working perfectly fine but while on roaming I m not able to connect to any mobile network (India).

Little help would be much appreciated.
[Defy Android Development] LeopardSurd:
If there will be this kind of action, I'm in but how to do this. Just take a look at MOSH, there are so few subscribers.
[Defy Android Development] pprakash:
Please check your baseband settings. That could be the reason.
[Defy Android Development] Sedariya11:
Baseband version: EPU93_U_00.59.01

But I dont know what to do with it..
[Defy Android Development] diamond_lover:
Damn... I hate Live Wallpapers... :mad:

Without I have App Drawer smooth like butter..

With I have a choppy App Drawer (I tried LauncherPro, GoLanuncheEx, etc..)

Settings and other apps are smooth, only app drawer is like running @ 300Mhz..
[Defy Android Development] Proverbs2:
Go into baseband switcher and select the one for your region. (In the 7.1 build, there is an app called “DEFY baseband switcher” in the app tray. In the latest nightly builds, the baseband switcher is in Settings > Device settings > Baseband switcher.)
[Defy Android Development] Sedariya11:
Can u Pl help me with the settings as I m in the baseband swithcer and I m not getting any option for India. Thanks..

Edit: I figured it out I selected China RT and it started working. Thanks alot guys..
[Defy Android Development] zorofroozo:
indeed, Motorola is allready very stuborn, we'll need a lot more presure before they'll budge.

We're still sillently hoping that the takeover by google (in the near future) will change their nonchalant behaviour towards us. But google has also declared they whouldn't meddle in Motorola's Phone division...

and the fact they are going to sell unlocked phones at a higher price... well, that doesn't sound good either.

---------- Post added at 04:11 PM ---------- Previous post was at 03:43 PM ----------

Did anyone try Quarx's february 16th build?

Recharging my defy atm but I'm curious to find out if the alarm/lockscreen bug is gone. Kinda use my alarm on a daily basis to wake up ... so I need it in working order:)
[Defy Android Development] Proverbs2:
Glad it's working. You might also want to try the very last option under the "APAC" tab (RT SEA15 3.4.3-331), which is the one that is supposed to work for India. The China RT uses frequency bands 850 and 2100 MHz, whereas the India one uses 900 and 2100. That may work best for you.
[Defy Android Development] maniac103:
I didn't try it, but as it's still broken with my last build and I don't see any additional fixes to it in his repo, it's likely that it's still broken for it as well.

I have some ideas on how to fix it, will try it as soon as I have some time.
[Defy Android Development] Mikis89:
I've read somewhere a commit about auto focus in media recorder, is it really working?

I'm on a rather old nightly and haven't upgraded anything at all lately, that would be a big reason to do it!
[Defy Android Development] qaqarox:
I had the same problem. Download the latest defy baseband switcher (ver 0.7 methinks). Choose the "SEA15 3.43-331" option under the "APAC" category.
[Defy Android Development] Proverbs2:
Ok, so I disabled the "Wifi Timeout" app and instead changed the wifi timeout duration by following this guide: http://xdaforums.com/showthread.php?t=774507

I succeeded in changing the timeout to 30 seconds (the default is 15 minutes), but then my phone wasn't going into deep sleep at all! So I'm back to using the Wifi Timeout app for now. It's kind of a pain, though, because I have to remember to start the app again every time I reboot the phone. (There's no option to enable the app on boot.) I'll keep experimenting to see if I can find a better solution. Edit: The Wifi Timeout app is starting automatically now. I'm not sure why it didn't work when I rebooted the first time.
[Defy Android Development] maniac103:
Should be fixed in my today's build.
[Defy Android Development] sakitobaki:
Sometimes when I choose picture in gallery, and while it zooms to show in actual size, strange black stripes appear and disapear quickly...

Red lense German Vodafone Froyo based

CM7.2 Nightly 02162012
[Defy Android Development] rishi2100:
which gapps should i flash with latest nightly

gb and HDPI one are not working....
[Defy Android Development] duendetuc:
Question: if a reflash the last nightly it undo the supercharger v6? My phone is getting hot ano i think that is because of that script. I have already reflash but still having this problem. What about local.prop? I think that the script made a new one.

Enviado desde mi MB525 usando Tapatalk
[Defy Android Development] hackergnome:
No reflash makes everything revert... so its not the script...

If u use 3G that may be the cause...
[Defy Android Development] djkail:
[BUGREPORT]

Voice commands (Voice dialing) not working well in spanish. I know that its not very important but i want to report it.

If i say "call Mario" (in spanish: llamar a Mario) Phone detects it like it was in other language... It chooses a random action... I hope it could be solved...

Good job Epsy and Quarx!! :D

Im on CM7.2 02312012 nightly, red lens.
[Defy Android Development] coelho_:
in french laguage it's same problem :confused:
[Defy Android Development] ndanl:
say it in english :))
[Defy Android Development] [] AL []:
Just want to say thanks to Danny (Maniac103) for all his great work.

I'm on his latest (Feb 17th) build and all the lockscreen/rotation problems are gone: I no longer have the screen rotating on me for no reason...

So, good stuff!! and thanks again.
[Defy Android Development] motobird:
maniac's feb17 rom is the best for me as well. seems to be faster with more responsive touchscreen than quarx nightlies. thanks for the great work.
[Defy Android Development] djkail:
It doesn't work too... :-(

Enviado desde mi MB525 usando Tapatalk
[Defy Android Development] Sigray:
I can't find the link of maniac's builds, can you post it for me? Thanks!
[Defy Android Development] pprakash:
https://github.com/maniac103/android_device_motorola_jordan/downloads#download_182785
[Defy Android Development] ktmbikerman:
There's a graphical glitch on maniac's 18th nightly. The status bar area refreshes before the rest of the screen when rotating the device.

Is it just me?

Sent from my superfly Defy
[Defy Android Development] motobird:
feb17 maniac is the latest and no such bug encountered here
[Defy Android Development] onesss:
I use CM7-02162012-nightly by Ouarx (network Cosmote-Romania), is stable, data (2G-3G) do not stick and I like wi-fi priority ... connection-reconnection is fast.

USB side have not tried anything? You know ... portable memory and tst connectivity.

Thx men!
[Defy Android Development] hackergnome:
I must say MANiAC is my new HeRo!!!

The best nightly I ever tried...

And why is the touch response so good?

What do u add in these builds?(WiTcHcRaFt!!)
[Defy Android Development] ktmbikerman:
Sorry... 17th. It only happens when using a theme with transparent statusbar it seams. Switched to default theme and all is well.

Sent from my superfly Defy