yashsingh1/xdaforums huggingface dataset:
[HD2 Android Q&A, Help & Troubleshooting and Genera] jimprime:
Um try waking the screen with other button than the power one that sud help but this is a hardware issue I experience it too and it usually get worse over time so best bet for u is to send it in under your repair or get yrself a replacement but it doesn't have anything to do with specific Rom just is that android puts so much stress on our hardware button because Android heavily relies on the keys through the operating system and the hardware keys ware out and cause this issue so look into this as well but before you send it in revert It back to the stock Rom
[HD2 Android Q&A, Help & Troubleshooting and Genera] jaypeg123:
No I am pretty sure that it is not a hardware issue. I to have had it, and it is gone :confused: the only thing i can relate it to is that i stoped using mdjays kernell,, and started to use hastarin again. well it sure is a longshot but mine works perfekt again. :confused:
[HD2 Android Q&A, Help & Troubleshooting and Genera] Yanardag:
Do your finger on the sensor and turn it on.
[HD2 Android Q&A, Help & Troubleshooting and Genera] djdanska:
I have the default 16 Gb class 2 card tmobile usa gave me and my hd2 did this on all builds until the new hastarin recently and it stopped it. Has not come back yet. So, while the sd card may have some pull in this issue, the kernel can play a factor too. Try using hastarin's kernel just for a day and see if it works.
[HD2 Android Q&A, Help & Troubleshooting and Genera] IphoneKiller125:
ummm ive come up with this

http://xdaforums.com/showthread.php?t=868452
[EVO 4G Q&A, Help & Troubleshooting] scirio:
Talking about:

http://www.droid-life.com/2010/10/21/video-gingerbread-shows-a-screen-off-animation/

UPDATE: Source is out! Port please thx.
[EVO 4G Q&A, Help & Troubleshooting] Thedonk13:
+100

this would be so sexy to go with my warm twopointtwo gooyness!!
[EVO 4G Q&A, Help & Troubleshooting] Chris95GT:
Whoa, I gotta have that.
[EVO 4G Q&A, Help & Troubleshooting] tenniech:
agree.. :D

hope myn will hear our request.. :p
[EVO 4G Q&A, Help & Troubleshooting] camdz:
I agree with this guy. I NEED that :D
[EVO 4G Q&A, Help & Troubleshooting] high kick:
whoa, i didn't think it was going to look cool but after seeing the video, i agree. i gotta have it! so simple but looks pretty cool.
[EVO 4G Q&A, Help & Troubleshooting] acme64:
why bother porting when most of us will be upgrading to 2.3 on our respective roms anyway?
[EVO 4G Q&A, Help & Troubleshooting] apristel:
We have nowhere to port it from..its not in the sdk.
[EVO 4G Q&A, Help & Troubleshooting] Chris95GT:
Well, its still cool. lol.
[EVO 4G Q&A, Help & Troubleshooting] magicalan:
on nym or any other rom or just by making it a .zip somehow would be aweomse O.o
[EVO 4G Q&A, Help & Troubleshooting] timdawgdentist:
I want it too.... not to get off topic but is that a wutang hello kitty avatar. My gf noticed it over my shoulder.

tim
[EVO 4G Q&A, Help & Troubleshooting] high kick:
hahah, yeah. the wu and hello kitty.
[EVO 4G Q&A, Help & Troubleshooting] iTouch24:
+200 that would be awesome
[EVO 4G Q&A, Help & Troubleshooting] seekis:
this would be great!
[EVO 4G Q&A, Help & Troubleshooting] scirio:
It's not in the framework?? Whatever it is, it's in the sytem image somewhere. Someone smarter thatn me should do it.

To the poster that said "Why, we'll have 2.3 roms soon" (paraphrasing):

I would like at least this small porrtion of gingerbread on my totally/completely stable/fast Myn rom now. i doubt that the first, even the 2nd or 3rd phase of community built releases will be perfect. But if given just this one feature, I'd be happy. It's not like you can take advantage of new Android features in 2.3 with the evo anyway: we don't have a gyroscope, we don't have a NFC radio.

That said, of course I'd love a full gingerbread release for the evo, but beggars can't be choosers.
[EVO 4G Q&A, Help & Troubleshooting] fronc:
Yes and no. It could be a proprietary Samsung thing. Then it wouldn't be in the SDK, but rather in the Nexus S image. Now, seeing as it's supposedly a Google Experience phone, there shouldn't be proprietary things on it... so that would lead me to believe it is in the framework somewhere.
[EVO 4G Q&A, Help & Troubleshooting] mikevillarroel:
Regardless of where it is, i want it too, lol
[EVO 4G Q&A, Help & Troubleshooting] MRFERRARI23:
I might be wrong, but If the EVO officially gets Gingerbread or even if its ported over.... I the gyroscope is in the and part of the new OS itself and not hardware. Like I said, I could be totally wrong, But think about it, If the EVO Gets Gingerbread then we'd lose out on the new gyroscope feature?? Just doesn't seem right lol

Think about it :p
[EVO 4G Q&A, Help & Troubleshooting] matt4200:
Nope the gyroscope just like NFC is a hardware thing so there is no way for us evo users to get it without some insane hardware modding.
[EVO 4G Q&A, Help & Troubleshooting] MRFERRARI23:
well doesn't that just suck??? LOL
[EVO 4G Q&A, Help & Troubleshooting] totalanonymity:
Myn's Warm Z TwoPointTwo has that animation when you turn off the phone included out-of-the-box. Perhaps it would be best to ask him directly about it?
[EVO 4G Q&A, Help & Troubleshooting] ihtfp69:
Not the same thing.
[EVO 4G Q&A, Help & Troubleshooting] Hamspiced:
so why cant we edit the framework to do this on gingerbread roms?

We have 2.3 now, why cant we make flashable zips to enable this? its already listed as an app in the market...

Screen Off and Lock by Katecca for the Gingerbread screen off animation
[EVO 4G Q&A, Help & Troubleshooting] timdawgdentist:
that is awesome....

so does this mean that the screen shutoff is a hardware thing? because that would not be cool... not cool

tim
[EVO 4G Q&A, Help & Troubleshooting] illmaticone:
Definitely software
[EVO 4G Q&A, Help & Troubleshooting] aamikam:
there is no amin set to do that in the framework... i took it apart already the minute the sdk came out.

i think we will have to wait for a dump from the nexus s before we can be sure how to get it going.

it might just be an xml edit for all we know (even adding a couple of files would be easy to do)... and it might be inside one of the jar files thats inside the frameworks... i dont think anyone really knows at this point.

personally i think its pure samsung thing.... but it doesnt mean we can add it to ourselves.
[EVO 4G Q&A, Help & Troubleshooting] chadm424:
Someone Please make or port this love how it looks and would be fun to show off
[EVO 4G Q&A, Help & Troubleshooting] crpercodani:
Look for the video Phandroid.com posted a few months ago of a Nexus One showing off this feature, so obviously it's not a Sammy or hardware feature.
[EVO 4G Q&A, Help & Troubleshooting] Max_Pain:
well how about instead of trying to port it...can't it be just MADE specifically to work on froyo? its beyond me but i'm sure one of the very capable devs here could get it done!:D
[EVO 4G Q&A, Help & Troubleshooting] mbaseball3:
It's probably an app someone made and doesn't want to share. Then someone else called it gingerbread evidence. Just saying

Sent from my Evo
[EVO 4G Q&A, Help & Troubleshooting] timdawgdentist:
Want it Want it WANT IT NOW!!!!!

tim
[EVO 4G Q&A, Help & Troubleshooting] jmen1213:
This would be awesome to have. Such a nice little detail. Please someone work on this.
[EVO 4G Q&A, Help & Troubleshooting] Paulrybicki83:
looks awesome. I want it
[EVO 4G Q&A, Help & Troubleshooting] Dreddge:
I want this!
[EVO 4G Q&A, Help & Troubleshooting] Systemfraud:
+1
[EVO 4G Q&A, Help & Troubleshooting] scirio:
bumping because the Gingerbread source is released :) !
[EVO 4G Q&A, Help & Troubleshooting] Max_Pain:
Link me to it? I'll open up the framework and see what I can find in there!

Swyped from my HTC Evo 4G on the MetroPCS 1X network!
[EVO 4G Q&A, Help & Troubleshooting] ncfastls1:
Nexus S system dump AND gingerbread source code are now out...so lets make this happen! I'm sure one of you smart devs can extract this. Out of all the features I've seen with 2.3, the screen off animation is what excites me the most lol.

http://xdaforums.com/showthread.php?t=877099
[EVO 4G Q&A, Help & Troubleshooting] chaoticallysweet:
super excited, I want this!
[EVO 4G Q&A, Help & Troubleshooting] Tiffany84:
bcnice ported a gingerbread rom over from nexus one i believe just a little bit ago and it has that screen off animation. Don't know why I like it so much but its freakin awesome. Go to evo development section and try it out. Only thing is at the moment there's no gapps or root access but its being worked on.
[EVO 4G Q&A, Help & Troubleshooting] Max_Pain:
well it wasn't as simple as moving the /anim folder from framework-res.apk. tried that and nothing. no crashes or any problems, but the screen just turns off the regular way.

i'm installing the alpha version now, going to try to see the log of events when I turn off the screen. see if we can pinpoint what calls the animation.

will report later.

EDIT: here's what comes up in the log:

12-18 11:58:33.835: DEBUG/WindowManager(117): I'm tired mEndcallBehavior=0x2

12-18 11:58:34.365: INFO/power(117): *** set_screen_state 0

12-18 11:58:34.475: DEBUG/SurfaceFlinger(117): About to give-up screen, flinger = 0x25f4b0

12-18 11:58:28.415: INFO/power(117): *** set_screen_state 1

12-18 11:58:28.875: DEBUG/SurfaceFlinger(117): Screen about to return, flinger = 0x25f4b0
[EVO 4G Q&A, Help & Troubleshooting] Adam1422:
+1

I really want this!
[EVO 4G Q&A, Help & Troubleshooting] brandenk:
I'm at a loss. Ive literally tried everything I can think of with every option available so far. I hope somebody smarter than myself can figure it out.
[EVO 4G Q&A, Help & Troubleshooting] Rydah:
Mabey its a fake?

Sent From My HTC Evo 4G Using Tapa Talk Pro!
[EVO 4G Q&A, Help & Troubleshooting] brandenk:
That was my thought, but someone here said they saw it in a ported ROM, so I'm just hoping Google is one step ahead and they are using a new technique.
[EVO 4G Q&A, Help & Troubleshooting] xhazyx:
yea in bcnice's port, the animation is awesome... im just wondering why this is taking so long to be ported, not complaining, but i know we have some awesome devs over here who whip out ROMs and stuff in 12 hrs, hopefully they actually take a look at this
[EVO 4G Q&A, Help & Troubleshooting] ncfastls1:
I can tell you first hand it is not fake. When I flashed the gingerbread alpha rom for the evo the screen off animation was there and it was awesome. Would have kept using it but nearly nothing works in the alpha build so I'll give it some time
[EVO 4G Q&A, Help & Troubleshooting] KLLSWITCH:
its in this framework.res somewhere i know it is cause you can flash the GB build with out this framework and there's no animation then flash this framework and the animation is there so its there somewhere
[EVO 4G Q&A, Help & Troubleshooting] Max_Pain:
the animation gets called by surfaceflinger. i'm trying to figure out where in framework-res.apk surfaceflinger can be found to then try to use that one over the one in our framework-res.apk...but wont have the time to really look at this for a while unfortunately:(
[EVO 4G Q&A, Help & Troubleshooting] philburkhardt:
Yeah, it's definitely there. I spent 5 minutes turning my screen on and off, earlier today.

It's the little things :)
[EVO 4G Q&A, Help & Troubleshooting] hmsheen10:
No its a GB thing. I'm running a port of GB on my evo and it works perfectly :) I'd rather have it on a more stable rom though
[EVO 4G Q&A, Help & Troubleshooting] brandenk:
Yes it must be a gingerbread thing. I noticed a few other things that probably fall into the same feature set. When you scroll a menu instead of it hitting the bottom and just stopping or rebounding, it make a slight color on the bottom edge like the bottom option is getting crushed under the weight of the others. Im sure based on the facts, this will probably make it into a ROM before someone figures out how to extract just the screen off, along the lines of the Sense UI.
[EVO 4G Q&A, Help & Troubleshooting] MrCDWJR:
the only surfaceflinger things i've found were in both /system/lib and /system/bin.
[EVO 4G Q&A, Help & Troubleshooting] KyojinKun:
Well maybe it's on of the 3 files. I've noticed that "libsurfaceflinger_client.so" doesn't exist on the CM6.1.1 ROM, but is on the /system/lib of the Nexus S dump.

Maybe I'll try to open up the librairies and see what's about that, but it's definitely not a framework-res thing.
[EVO 4G Q&A, Help & Troubleshooting] t3project:
the surfaceflinger calls are in the /values/public.xml file
[EVO 4G Q&A, Help & Troubleshooting] verse187:
I know its in there but can't seem to find it dam ill keep looking
[EVO 4G Q&A, Help & Troubleshooting] Hamspiced:
Im very interested in this. Your work will not go forgotten...
[EVO 4G Q&A, Help & Troubleshooting] MrCDWJR:
if you didnt use this framework for your initial boot then what frameworek-res did you actually use?
[EVO 4G Q&A, Help & Troubleshooting] wrapkgb:
Who ever gets this ported will forever be my hero.
[EVO 4G Q&A, Help & Troubleshooting] KyojinKun:
Yup' but there's no difference on the values between CM6.1.1 ROM and Nexus S' framework, so the difference might be in /system/bin or /system/lib (I'm more thinkin' that it is the second one).
[EVO 4G Q&A, Help & Troubleshooting] MrCDWJR:
That's what I was thinking also but I wasn't sure how to go about it. I moved the lib files but it threw a boot loop. I haven't tried bin tho
[EVO 4G Q&A, Help & Troubleshooting] brandenk:
In this ROM, the screen off animation was added between versions 5 and version 6 if that helps anyone narrow it down.

http://xdaforums.com/showthread.php?t=878020
[EVO 4G Q&A, Help & Troubleshooting] lithid-cm:
It was not "added" it was always there in the source.

During the compile I found out that this:

~/android/frameworks/base/core/res/res/values/config.xml

<!-- If this is true, the screen will fade off. -->
<bool name="config_animateScreenLights">false</bool>

Was:

<!-- If this is true, the screen will fade off. -->
<bool name="config_animateScreenLights">true</bool>

It being true force the "fade" animation.

The animation we see and love is actually the default for the screen.

Now that I am aware of this thread, if I come across any information on how this is being pushed throughout the framework to make it happen I will let you know.
[EVO 4G Q&A, Help & Troubleshooting] lithid-cm:
You can find this bool name in res/value/bools.xml... but in froyo it might need to be added.
[EVO 4G Q&A, Help & Troubleshooting] Max_Pain:
that'd be great. i've tried a few things and nothing works.

this is officially way beyond me:o
[EVO 4G Q&A, Help & Troubleshooting] MrCDWJR:
+1 this is overwhelming me haha
[EVO 4G Q&A, Help & Troubleshooting] KLLSWITCH:
and let the tinkerin begin lol
[EVO 4G Q&A, Help & Troubleshooting] Daneshm90:
What about this ?

final float windowScale = getFloat(WINDOW_ANIMATION_SCALE, 1.0f);
final float transitionScale = getFloat(TRANSITION_ANIMATION_SCALE, 1.0f);
mAnimationSetting = 0;
if (windowScale > 0.5f) {
mAnimationSetting |= ANIM_SETTING_OFF;
}
if (transitionScale > 0.5f) {
// Uncomment this if you want the screen-on animation.
// mAnimationSetting |= ANIM_SETTING_ON;
}
[EVO 4G Q&A, Help & Troubleshooting] MrCDWJR:
i wish i knew how to read this stuff =/ haha what does it mean??
[EVO 4G Q&A, Help & Troubleshooting] Igotsanevo4g:
It looks like from what ive seen, it would mean flashing a completely new framework.apk and including the correct things in each.

So there would have to be different ports for sense/CM etc. OR Metamorph? O_o

Hmmm... Firing up the linux box...
[EVO 4G Q&A, Help & Troubleshooting] Leukay:
This looks promising. If you guys need a couple more eyes looking at this I can do a little bit of digging tomorrow
[EVO 4G Q&A, Help & Troubleshooting] Hamspiced:
+1 for that.. id love to be able to flash this tomorrow
[EVO 4G Q&A, Help & Troubleshooting] mistermr:
Giving this a bump in hopes of having this animation :)

Sent by my Droid 2 running GummyJAR 1.9.1
[EVO 4G Q&A, Help & Troubleshooting] Daneshm90:
Well that is one of the things i found when i ran diff a the framework base source code of froyo vs gingerbread. It's been added in Gingerbread, wasn't there in froyo.
[EVO 4G Q&A, Help & Troubleshooting] ihtfp69:
It's done in code found in one of the shared library files. Here is the method: void nativeStartSurfaceFlingerAnimation(int screenOffReason) {}

Check out services/com/android/server/PowerManagerService.java

If anyone can find it maybe we can compile it into cm6.
[EVO 4G Q&A, Help & Troubleshooting] Daneshm90:
Hmm. Found this as well.

static void android_server_PowerManagerService_nativeStartSurfaceFlingerAnimation(JNIEnv* env,
jobject obj, jint mode) {
sp<ISurfaceComposer> s(ComposerService::getComposerService());
s->turnElectronBeamOff(mode);
}

Ok check out ISurfaceComposer.h
[EVO 4G Q&A, Help & Troubleshooting] XxsydenxX:
Has there been any progression with this or...?
[EVO 4G Q&A, Help & Troubleshooting] Hamspiced:
Curious about this as well. Devs?
[EVO 4G Q&A, Help & Troubleshooting] brandenk:
From the sounds of it there isn't an easy way since its just a default in 2.3. The best bet is just to wait for a 2.3 ROM of your choice.
[EVO 4G Q&A, Help & Troubleshooting] dwd3885:
Yep. I'm assuming all the devs are working on either CyanogenMod, Gingerbread ROMs or WIMAX. Nobody is really focusing on porting this screen animation over to 2.2. Not saying it won't happen, but I'd just wait for a 2.3 rom.
[EVO 4G Q&A, Help & Troubleshooting] matthewjulian:
Wow that sucks, I would like this as well. Every GB rom is going to be buggy as **** for a good while, so I don't see why we shouldn't have certain things ported to our stable froyo,especially since as of now they're the only real draw of GB, there really aren't many improvements in GB over Froyo other than the look of it. I know people are going to say speed is improved but I say is it really,most every aosp rom I have used is about as fast, simply because stock android is very light and easily optimized, so again I say whoevers interested pitch in and bring the full GB feel to Froyo!
[EVO 4G Q&A, Help & Troubleshooting] ncfastls1:
I agree... It was nice to test out gingerbread, but it won't be my daily driver for a long time. Probably not until HTC releases their GB update and devs get their hands on that. Myn's RLS4 is much faster than any of the GB roms I have tried, looks 10x better, half your apps won't work because they aren't updated for GB, and the last one I tried I got tons of force closes. The devs have definitely done great work bringing GB this far but it won't be ready as a daily driver for a long time.
[EVO 4G Q&A, Help & Troubleshooting] bigrushdog:
No promises, but i'll take a peek here. Keep in mind, PowerManager is likely calling surfaceFlinger lib for GB. so, you can change the code, but changing the lib may bork the system.
[EVO 4G Q&A, Help & Troubleshooting] dwd3885:
i know. i'm just saying i think most devs are concerned with building GB roms now.
[EVO 4G Q&A, Help & Troubleshooting] MikeC84:
bnice20 latest release is really nice, nothing "buggy" about it. Very fast and smooth. I see it opposite, there no point in porting to an old firmware when gb is being developed on.
[EVO 4G Q&A, Help & Troubleshooting] RMGeren:
FOUND IT! The animation resides inside /aosp/frameworks/base/services/surfaceflinger/SurfaceFlinger.cpp from lines 1612-1902 (ish). Now, we just have to merge it and it's associated header files... tomorrow.
[EVO 4G Q&A, Help & Troubleshooting] Hamspiced:
im excited...
[EVO 4G Q&A, Help & Troubleshooting] jpatterson350:
Make it happen captain :)
[EVO 4G Q&A, Help & Troubleshooting] justinisyoung:
services/surfaceflinger/SurfaceFlinger.cpp doesn't even exist on froyo from the looks of it. Could be placed somewhere else though.

I'd love to help you out but it looks like it's fairly complicated... and i don't have the time too

Good luck though!
[EVO 4G Q&A, Help & Troubleshooting] dkotoric:
Wow im excited can't wait
[EVO 4G Q&A, Help & Troubleshooting] mistermr:
Will continue to watch this thread closely. Hope somebody can hack it in :)

Sent by my Droid 2 running GummyJAR 2.0
[EVO 4G Q&A, Help & Troubleshooting] tejasrichard:
All I can say is: get to learning, son. As soon as one of the GB roms has working 4g, froyo will be a thing of the past for me. I like sense, but not enough to use old software while I wait for HTC to MAYBE update sense to gingerbread for the EVO. How long did we Hero users have to wait for 2.1? Yeah, good luck with that. Heck, who knows? They may update the evo in january, for all any if us know...but I won't be holding my breath.
[EVO 4G Q&A, Help & Troubleshooting] chuckhriczko:
Well, I just found SurfaceFlinger.cpp in ./frameworks/base/libs/surfaceflinger/SurfaceFlinger.cpp

for FroYo. Maybe this holds the key?
[EVO 4G Q&A, Help & Troubleshooting] chuckhriczko:
So it looks like we are looking to add the turnElectronBeamOn and other Electron Beam variables and functions. I'm going to play with this tonight and see if I can get it to work.
[EVO 4G Q&A, Help & Troubleshooting] Negrito:
Awesome!!!!

Sent from my Gingerbread dipped, Cyanogen modded Evo like device....
[EVO 4G Q&A, Help & Troubleshooting] gear.h34d.2012:
Let's get to it! :cool:
[EVO 4G Q&A, Help & Troubleshooting] mistermr:
I would donate a fair sum of money to the person who gets this ported.

Sent by my Droid 2 running GummyJAR 2.1
[EVO 4G Q&A, Help & Troubleshooting] ncfastls1:
I will do the same
[EVO 4G Q&A, Help & Troubleshooting] shdwboy:
I think its bad ass that yall can look at some code and pick out what ur looking for. This would be a cool thing to have on my evo and show off to my buddys that are scared to root. lol
[EVO 4G Q&A, Help & Troubleshooting] chuckhriczko:
The thing is I don't know C++. I know a little Java but primarily PHP and Javascript. Android is built in C++. All you need to know is the basics of programming and you just explore. I can't promise I can port this over but since I know the basics of programming it's just a matter of trial and error. Honestly, don't think you can't do it yourself. Just start learning off the internet and explore. You'll be surprised at what you can do when you try.

That said, tonight is over. I'm going to bed. I'll try some more tomorrow and keep you guys updated. Anyone else working on this too or am I going solo here? lol
[EVO 4G Q&A, Help & Troubleshooting] chaoticallysweet:
i am getting excited!!!!:)
[EVO 4G Q&A, Help & Troubleshooting] justinisyoung:
well, I'm on winter break right now so I may find some time to try this out, but between my work and college apps that I gotta submit it might not be much. I know a fair amount of java and some C so hopefully I can help.
[EVO 4G Q&A, Help & Troubleshooting] jcalba89:
im learning it as we speak. thats how bad i want this on my phone lol
[EVO 4G Q&A, Help & Troubleshooting] chuckhriczko:
Well, kind of at a standstill right now. I moved everything over and fixed all the errors but now it seems like it won't do a full compile. I'm still trying to figure it out and it looks like I'm close but I'm kinda stuck right now. I'll keep you guys updated if I come up with anything.
[EVO 4G Q&A, Help & Troubleshooting] KyojinKun:
Hum, intresting :)

And if you're still stuck, maybe you should post the problem here, it will make it easier to resolve. ;)
[EVO 4G Q&A, Help & Troubleshooting] chuckhriczko:
Ha ha good call. Too tired now though. Will later.
[EVO 4G Q&A, Help & Troubleshooting] Hamspiced:
+1

community shares
[EVO 4G Q&A, Help & Troubleshooting] uhhmoney:
I was playing with a Nexus S at BB today and it reminded me of how much I NEED this in my life! Judging by the contents of this thread... it seems that it is not something that could easily be cut and pasted into a modified framework, hmm?
[EVO 4G Q&A, Help & Troubleshooting] xx_jay_xx:
Things are looking good with this particular feature. To all the devs that are involved: Keep up the great work. Thank you, God Bless and Happy Holidays to everyone!
[EVO 4G Q&A, Help & Troubleshooting] mistermr:
To the top with this one. Any progress? :D