yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Android Development] c010:
I am not sure why your method was not working for me running Villain 1.3, however i have tested my method and it works.

1. Copy and paste framework-res.apk from /system/framework/ to /sdcard/ using root explorer (as backup just in case)

2. copy and paste framework-res.apk into "place-apk-here-for-modding" (APK Manager)

3. run option 9 to decompile framework-res.apk (APK Manager)

4. navigate to \out\res\values\ and open the bools.xml file with Notepad

5. Search for "config_animateScreenLights" and change the "true" to "false", then save the notepad

6. run option 11 to compile it

7. navigate to "place-apk-here-for-modding", the compiled file name will be "repackaged-unsigned.apk"

8. open repackaged-unsigned.apk with 7-zip (i prefer this)

9. open the original framework-res.apk with 7-zip

10. drag and drop "META-INF" and "AndroidManifest.xml" from original framework-res.apk into repackaged-unsigned.apk (replace)

11. rename repackaged-unsigned.apk to framework-res.apk

12. use 7-zip open CRT.zip, drag and drop the renamed framework-res.apk into "framework" folder

13. flash CRT.zip via CWM

Note: if you are using tegrak kernel, learn how to flash from its guide before trying! Always keep a backup of framework-res.apk in case you screw up!
[Galaxy S II Android Development] DooMLoRD:
ok it worked!

but slight problem... only the CRT-off animation works... and the animation IS VERY FAST :(

the CRT-ON animation (during screen unlock) doesnt work!
[Galaxy S II Android Development] cmd512:
CRT breaks auto dim/brightness as well. Goes instantly from bright to dim and vice versus... very annoying.
[Galaxy S II Android Development] _JKay_:
What rom are you using? I do not have this issue in xwkf3.
[Galaxy S II Android Development] bruflot:
I guess its not supposed to be any slower :o

Oh, almost forgot, there is no on amination.
[Galaxy S II Android Development] c010:
yes, the animation is indeed faster if compare to the animation on SGS. the only way to explain why is the CRT effect (animation is faster) would be

1. sgs2 is just too fast

2. less frame on CRT animation (which i doubt so)
[Galaxy S II Android Development] c010:
Bruflot,

just to confirm, your method is for stock rom (non deodexed) ?
[Galaxy S II Android Development] bruflot:
yup, stock KF3 rom :o
[Galaxy S II Android Development] buck naked:
I used APK Manager and Root Explorer to edit to complete the process on my KE4 stock rom. After I replaced the running framework-res.apk I got a bunch of Force Close messages, I powered the phone off and on again, and the CRT animation is now active (and is nice and sharp with the LCDDensity tweak).

A quirk I wasn't expecting, my synchronised accounts (Google, Facebook) were missing and had to be added again. It also reverted from the Swype input back to the Samsung keyboard - nothing else seems broken.

I guess I left something out in the de/recompiling process? Or was an active process abandoned when I replaced the running framework-res.apk?

It's not a critical issue, but I thought someone with a working knowledge of the Android system might know where I went wrong?
[Galaxy S II Android Development] c010:
Ok guess that's the difference. Mine is for deodexed rom.
[Galaxy S II Android Development] bruflot:
Hmm.. Did you get any errors when compiled the file? I also dont think the synchronised accounts info is saved in the framework file.

Must be a coincidence or something :cool:
[Galaxy S II Android Development] kab89:
I used this method for villain Rom 1.4 and it worked fine
[Galaxy S II Android Development] yousif666:
It is working but the only problem now is how to fix the pixelbug because its not always working correctly.

sometimes it shows pixels while doing the animation.
[Galaxy S II Android Development] bruflot:
Download LCDDensity from Market, and change the DPI from 240 to 240 (No, not a spelling mistake)

Haha, thanks to mrvtec69 ;)

-------------------------------------------------

Added a fully working CWM-flashable template. This time it really does work :p

Open the zip, place your framework-res.apk in the /system/framework/ folder, and then extract it to your phone and flash it.
[Galaxy S II Android Development] yousif666:
Still gitting the pixelbug.
[Galaxy S II Android Development] mista1982:
Can I overwrite the CRT effect from Lite'ning 1.5 KF2 Rom?

Because the crt animation from Litening Rom has very artefacts.
[Galaxy S II Android Development] mista1982:
Here you go:

http://www.youtube.com/watch?v=DcFs_m2JIzg

And here the smoooooooooooooooooth original effect from Nexus S Please compare:

http://www.youtube.com/watch?v=RGiPwpSqTLY
[Galaxy S II Android Development] bruflot:
You sure? Worked perfectly fine for me.

Try and move the slider down to eg. 200, apply it and close the program.

Then try and move it back to 240 and apply it ;)

Like I stated in the previous post (Might have been hard to spot, since your post created a new page ;))

Download LCDDensity from Market, and change the DPI from 240 to 240 (No, not a spelling mistake)

Haha, thanks to mrvtec69 :)

It'll remove the pixelbug, but I'm not sure if it makes it smoother :P

What do you mean by overwriting it?

There will be no difference from the CRT effect from Lite'ning, and this.
[Galaxy S II Android Development] bruflot:
Double post, sorry :(
[Galaxy S II Android Development] mista1982:
To change the density i have try.. from 240 to 239 and it works.. than I switch back to 240.

I think this was the solution. BUUUUUUUUUUUUUUUUT i move in Go Launcher in the app drawer one App to a folder. And after this, the pixel bug come agin. :(
[Galaxy S II Android Development] free-sidux:
Tried it following method 1 yesterday but ended up with a device, which did not boot anymore. I guess I did something wrong in the last step, where I just recreated framework-res.apk by zipping the file using the unix command line. Is it necessary to sign the apk or a special zipping procedure? Cheers!
[Galaxy S II Android Development] .hide:
i do not have /res/values/ in my framework.apk?
[Galaxy S II Android Development] bruflot:
No need for signing.

By replacing the resources.arsc file from the modified framework to the original, Android think its the original file (signed)

You need to decompile the file using either APKTool or APK Manager ;)
[Galaxy S II Android Development] .hide:
problem is i am having bootloop after i replace resources.arsc in framework.apk. .

after replace framework.apk my screen is black even pressing power button so i decide to pull out the battery and reboot. now it had bootloop. :(
[Galaxy S II Android Development] free-sidux:
Hey OP,

thank you for the fast response.

What is the way you replace it?

I unzipped both and zipped the modified again.

Cheers!
[Galaxy S II Android Development] bruflot:
I simply open the modified and original framework in to different windows.

Then I delete the original resources.arsc. And after that, I drag n' drop the modified resources.arsc in to the original.

(That might have been confusing due to my horrible english ;) )

If I understood you right, we're doing it the same way
[Galaxy S II Android Development] minjiet:
thanks for the template...it works...

if i want to add the systemIU.apk into the template, will it work? or i need to edit some sort of script?

please guide me...thanks
[Galaxy S II Android Development] bruflot:
You would need to edit the updater script to make it delete the current SystemUI.apk

I'll add a mini guide tomorrow, its 3:33 here ATM..
[Galaxy S II Android Development] minjiet:
thanks, waiting for it...
[Galaxy S II Android Development] bruflot:
Open the zip. Enter the META-INF folder, then android, then google, and there you'll find a file named updater-script.

Open that file using notepad or notepad++, and you'll see a line with delete or something. Just add a comma and insert the sysemui.apk file directory
[Galaxy S II Android Development] free-sidux:
Damn, has to be another mistake. Have to check and try that again.
[Galaxy S II Android Development] hocgwai:
@op

great mod! thanks for this. instructions are very clear and easy enough to follow
[Galaxy S II Android Development] forgetmyname:
Hi,

I think it would save some people time if you edited the first post on this thread to clearly state that this will not work on an odexed ROM like stock Samsung.
[Galaxy S II Android Development] bruflot:
It doesn't have to be deodexed.

Just rooted ;)
[Galaxy S II Android Development] DimICE:
It's only temporary solution..

You can long-push POWER button and cancel menu which appeared after it.. And PixelBug will appears again..
[Galaxy S II Android Development] karendar:
Doctorcete and I are actually gonna take a look into this if we can. We're thinking the CRT pixelbug is related to either android.policy.jar which is related to the extended power menu or framework.jar... Or services.jar which handles CRT effect. He threw out the possibility that blur might be the cause, that or alpha. As soon as we have some time, we'll try and correct it.

I personally don't have the bug EVER unless I open the power menu and then lock my phone with the power button. A simple reboot fixes it.

It's also possible we can slow down the CRT effect by modding those files. More to come!
[Galaxy S II Android Development] kin0kin:
The bug exists even in stock odexed rom. LCD density would fix it when you changed dpi to 240 but once you reboot the phone it'd be back. I have no clue why are cooks still cooking this bugged animation into roms.
[Galaxy S II Android Development] c010:
weird, i am running this on stock odexed KG1 and i do not have that pixel bug. could it be something to do with your process of decompile and compile?
[Galaxy S II Android Development] kin0kin:
I highly doubt it. Regardless could you post up your framework? Ill flash it and see if it works bug-free
[Galaxy S II Android Development] c010:
yes i can but you have to backup your original framework-res.apk and systemui.apk first because i have modded it from UOT. it has my name in notification footer and as well as transparency background. Also, i have modded the icons and etc. Therefore it is very important for you to backup your original version before flashing mine and the purpose is merely to test the CRT effect. Bear in mind, my version is for stock odexed rom. you might screw up if you flash it on a deodexed rom.

https://docs.google.com/leaf?id=0B-...MWYyMy00M2ZmLWI4ZDEtZWY1ZmEzYTVjYWM5&hl=en_US
[Galaxy S II Android Development] kackburt:
Mine is buggy aswell :(

Going to try the density trick.
[Galaxy S II Android Development] kin0kin:
I just redid mine again:

pulled framework

edited the file

dropped ARS back into original framework

flash through CWM

garbled...
[Galaxy S II Android Development] kin0kin:
I copied your resources.arsc into my framework and it's still showing the garbled animation. I didn't flash the other files as they should not be required, perhaps I should just try to flash the whole file in.
[Galaxy S II Android Development] c010:
have u clear dalvik cache?
[Galaxy S II Android Development] kin0kin:
Yup, cleared the cache for sure.
[Galaxy S II Android Development] c010:
So you tried to flash the whole file ?
[Galaxy S II Android Development] kin0kin:
No actually I haven't. I will try it tomorrow. I just reverted everything back to figure out a battery drain issue.
[Galaxy S II Android Development] bruflot:
I used KG1 for half a day or something, and I can't say I remember there was a pixelbug. I think they possibly fixed it, not quite sure though.

But what if, the pixelbug isnt a bug? What if Samsung made it look like that?

I think it actually looks better than the Nexus S :p
[Galaxy S II Android Development] EarlZ:
Can anyone make a CWM flashable for KF1 that has no pixel bug, thanks!
[Galaxy S II Android Development] karendar:
It has to do with the way the CRT off animation handles its transparency or blur effect from what we've noticed. There's a reason Samsung disabled the CRT off animation on their phones, they never got around to figuring how to fix that issue I'm sure. So they thought disabling it was the easiest way of "fixing" things.

I'm pretty sure CM7 will not have this issue. But in the meantime, it gives us cookers something to try and figure out. ;)
[Galaxy S II Android Development] kin0kin:
Something out topic but worth mentioning as well is that none of the 3rd party launcher works properly on S2 roms. When hitting the back button, the launcher goes back to home screen, bypassing the app drawer. No such problem with other phones. Someone's gotta figure that out too :D
[Galaxy S II Android Development] bruflot:
While the phone is booting up, and you press the lock button, theres no pixelbug :O
[Galaxy S II Android Development] kahvitahra:
I think its before phone is connected to network.

I flashed one rom and the modem part faild somehow. My baseband was unknown etc. No network connection at all. And ques what? No pixels in crt. Clicked like hundred times screen on --> off and allways smooth and clean. Then flashed working modem and pixels were back..

Wierd stuff :)

All of you can test it before you enter your pincode. No pixels at all in animation and after entering the pixels are back.

Does anyone have a clue why this could happen?
[Galaxy S II Android Development] kin0kin:
Try putting your phone in flight mode then reboot and see if you get the garbled animation. Then turn the radio back on to see how it goes :D
[Galaxy S II Android Development] kahvitahra:
When booting with flight mode on the animation is smooth. Then i put flight mode off and the animation is grabled, even before entering pincode.
[Galaxy S II Android Development] timpychu:
wipe both cache partition and dalvik cache may fix the garbled animation :)
[Galaxy S II Android Development] bruflot:
Not sure if this is helping, but the MIUI rom does not have this bug :)

Maybe someone can get in touch with him and ask him how he fixed it?
[Galaxy S II Android Development] cerede2000:
I am currently on Cognition ROM 1.15 and I try to remove the effect of CRT.

I changed the file bools.xml by delivering value to true but the effect is still present.

I do not know what else to do: (

Thank you;)
[Galaxy S II Android Development] Remoteconcern:
Change it to false.
[Galaxy S II Android Development] forgetmyname:
Good to hear. I did try this, but unzipping the file led to a load of missing files.

Do those programmes mentioned (APKManger etc) work on Linux?
[Galaxy S II Android Development] cerede2000:
No the true value is for diable but not work :(
[Galaxy S II Android Development] bkilit:
These methods r only for rooted phones.Is there a way to activate crt effect for non rooted phones???
[Galaxy S II Android Development] bruflot:
Nope :(

The only way to do that is to buy a Nexus S :-P
[Galaxy S II Android Development] bkilit:
I am very new to root stuff and playing with these system folders.Is there a video link to the steps u mentioned above so i can figure out them more easily???Any help opinion will be appreciated.Thx in advance...
[Galaxy S II Android Development] sicopat:
To fix CRT : an other thing to modify in bools.xml :
[Galaxy S II Android Development] nikzDHD:
Thanks dude very useful as the current theme I use does not have CRT.
[Galaxy S II Android Development] bkilit:
Come onn guyss what should i do is it very hard:s???? Please help..
[Galaxy S II Android Development] bkilit:
I finally managed to do the steps but now the phone is not flashing the flashable zip file.E:signature verification failed ,installation aborted

message comes up..Any ideas??:confused:
[Galaxy S II Android Development] bruflot:
Did you move the modified resources.arsc file to the original apk?
[Galaxy S II Android Development] bkilit:
Yes definately as u told at your post.Then put the template zip file to the sd card memory.And then cwm flash the zip file but getting the same signiture verification warning.Do i have to sign it and how??:confused:
[Galaxy S II Android Development] bruflot:
Just a couple of questions;

-Where in the template did you put file?

-In the apk you placed in the zip, is there a META-INF folder?

(You do not have to sign it, if you did it correctly it will still have the original signed .. files)
[Galaxy S II Android Development] bkilit:
-I put the file(apk) in the system/framework/

-Yes in the apk that i put in the system/framework there is a META-INF folder

And there is another META-INF folder in the template zip too.

Hope answers are helpfull and you can find a solution:(

Thanx in advance:(
[Galaxy S II Android Development] bruflot:
My best suggestion is to re-download the template perhaps, and if that doesn't work I would suggest you to do everything again :/
[Galaxy S II Android Development] criscan:
Simple and Perfect...

Thank you for share!!
[Galaxy S II Android Development] gil80:
can't find values folder

Why I can't see this folder?

I'm using crysis rom.

Uploaded with ImageShack.us
[Galaxy S II Android Development] bruflot:
Have you decompiled the file?
[Galaxy S II Android Development] bkilit:
I did the whole thing from the start two more times but always that E:signature verification failed ,installation aborted message is coming up:(

Is this because my recovery mode has 4 options

-reboot system now

-apply update from sdcard

-wipe data/factory reset

-wipe cache partition

And i choose second one.(since i am an original stock rom user with only root!!)But i have seen from another threat that some cwm modes have more options which i have no idea how they can have those options:confused:

Any ideas:confused:Thanx in advance:(
[Galaxy S II Android Development] bruflot:
AAAHHH! You're supposed to flash it with ClockworkMod (CWM), not the stock recovery mode.

Flash a kernel like Nimethaphine or CF-Root or something to get CWM :)
[Galaxy S II Android Development] bkilit:
Maybe just copy and paste it with a root explorer will be a better and easier option for me??Can i do that without flashing any kernel and without messing up my phone??:confused:
[Galaxy S II Android Development] bruflot:
Yep, you can.
[Galaxy S II Android Development] bkilit:
Thanx a billion mate.Now it is working for me finally..And i have cwm as well..Please let me know if there r more modifications like this(done by not changing to a custom rom)

Thanx again.:D
[Galaxy S II Android Development] gil80:
errors while compiling

Hi.

I'm trying to re-complie framkework-res.apk file and I get errors.

I've uploaded the log file: http://www.multiupload.com/4XX4STSAUT

Can someone assist me with this issue. Why it won't recompile?

Thanks
[Galaxy S II Android Development] bruflot:
You haven't tried to "port" a theme from another ROM have you?

Unless, you need to try and pull the whole file again and do it all over.

But, when you open ADB to decompile the file, write "apktool if framework-res.apk" first, then decompile it.
[Galaxy S II Android Development] nitsuajd:
I modified the two values (config_sf_slowBlur and config_animateScreenLights) and works fine, ​​but after do a screen capture bug returns.

Is there any solution?

Thanks in advance
[Galaxy S II Android Development] sicopat:
Nope, no solution for the moment :(

Just reboot or capture a white screen (see JKay tips in his theme thread) and CRT effect will be good again
[Galaxy S II Android Development] abhiwltya:
I dont understand what i did wrong.i downloaded your template and put my framework-res.apk in your zip's system/framework.i just applied the update from sd card and chose the zip and then cwm says update is successful.But nothing happens.No crt.i dont understand The part -where do i extract the zip on my phone as update file in cwm has to be .zip .I am on stock kg5 witb speedmod kernel t38.

Also if i cant get the crt can neone tell me what files i changed on my system so i can revert back to the original.
[Galaxy S II Android Development] bruflot:
You must have done something wrong in the process of adding the CRT effect.

Perhaps you dragged over the wrong file? :p

Or maybe even you forgot to switch the resources.arsc?
[Galaxy S II Android Development] abhiwltya:
I want to know if i put my framework-res.apk in your zip then where do i exreact it before i flash it.isnt the flashing is done by a .zip file from cwm.so why do i extract your zip at the first place..please haaaaallllppp.
[Galaxy S II Android Development] bruflot:
You should just place the zip file on your sdcard, wherever you want it. Then flash it with CWM
[Galaxy S II Android Development] sabrateur:
OP, thanks. I used the first method and it works.

In case anyone wants to know, I am using stock ROM DXKH2, with CF-Root kernel KH1.

I learnt a few things trying to do this:

1) How to use adb push/pull

2) How to use APKTool

3) APKs can actually be opened with archive managers (7zip)

4) CF-Root kernel is NOT an insecure kernel (so adb root or adb remount won't work), so I had to use the push to temp location method.

So thank you again OP!
[Galaxy S II Android Development] j0sh0:
hi all

i tried to pull framework-res.apk, decompile it, modify bools.xml, recompile the apk with apk manager v4.9, replace the resources.atsc in the original apk push it again in /system/framework but when i reboot i get a boot loop... someone can help me?

thanks ;-)

PS i'm running cognition 777 rc2

---------- Post added at 05:22 PM ---------- Previous post was at 04:47 PM ----------

nevermind... comment #35 worked for me!

thanks ;-)
[Galaxy S II Android Development] sianzb0i:
i couldnt build the apk again. it had many errors. when it decompiled i encountered many errors i didnt see before as well.

im on xwlpg.
[Galaxy S II Android Development] sianzb0i:
used apk manager and got the apk compiled.

Thanks to OP!
[Galaxy S II Android Development] kuldeephack:
hey

will this method work for xperia mini ics with custom rom?
[Galaxy S II Android Development] jared407:
I do not have a values folder..... :confused:
[Galaxy S II Android Development] ioannis_m:
Will this .zip fix my distorted CRT effect on Galaxy S with CM10.2 /CM11?

By distorted i mean that it is there but it is not as smooth as it was.
[EVO 4G General] Bfitz26:
so i have had evo 24 hours or less rooted ran several roms however running stock kernals not noticing anytthing special the quadrant scores are rediculous my wife has the shift scoring over the top of the nexus 2.2 and i am just barely getting under 1000 i am thinking about taking it back to the shack and getting the epic unless someone can talk me out of it and give me some pretty good reasons to stay with the evo i haven't even seen any o.c. kernals :confused:
[EVO 4G General] metalfan78:
Do whatever makes you happy. Why do you want complete strangers to talk you into something?

We're comin from a pure power source.
[EVO 4G General] jayharper08:
Rule # 1- Don't go by quadrant scores.
[EVO 4G General] metalfan78:
+1 to that

We're comin from a pure power source.
[EVO 4G General] gears1979:
+2 to that
[EVO 4G General] spider2346:
Quadrant scores mean nothing...
[EVO 4G General] xchompondizx:
Quadrant scores is CRAP! :p
[EVO 4G General] HipKat:
This is true. Quadrant score are pointless.

And the Epic is crap. Good enough?
[EVO 4G General] jayharper08:
Lol. +51
[EVO 4G General] drdrewdown:
bahahhahhaha go get an epic so people in that forum can read a post about how you aren't sure about it & see if they can talk you into keeping it.. oh yea, being disappointed with a year old phone is well.... disappointing.
[EVO 4G General] bigmoogle:
+1 to quadrant scores. So many scores are the results of people dumping apps, and overclocking just for the score, and not for every day use.

That said there a several kernels so choose one that suits your rom

THAT said, if you think you might prefer the epic, go for it.

Evo HW 003

MIUI 1.6.17