Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
vishwanathptl
Old
(Last edited by vishwanathptl; 21st June 2011 at 12:13 PM.)
#1  
vishwanathptl's Avatar
Recognized Developer - OP
Thanks Meter 951
Posts: 259
Join Date: Jun 2009
Location: Bangalore
Talking [MOD] Overscroll Effect and CRT Screen off animation for GALAXY FIT S5670

Overscroll Glow MOD for Gingerbread Galaxy FIT S5670

Only for DEODEXED ROM.

For CRT screen off animation see post 2.

Source works with all Gingerbread Firmwares.!!


Here is the Overscroll Glow effect for GALAXY FIT running on Gingerbread similar to the one in CM7 and stock Gingerbread. dhiru1602 have ported the Functions and Code required for the Overscroll Glow to Gingerbread Stock firmware XXKPG and XWKPI. I made the Modifications to smali files to make it work in G-FIT with the help of dhiru1602. Thanx to him.

Note: Few Touchwiz apps that have "Swipe to Message or Call Feature" will have the default scrolling and this MOD doesn't take effect for such Scroll Lists, since this feature is a part of Touchwiz and not Stock Android. Its hardcoded directly in the APK and they would require appropriate edits which is not a part of this MOD. All the regular Android Scrolling Lists will have Overscroll Glow.

Quote:
For Developers and Themers

There is an important thing to note. Some Touchwiz applications use calls to inbuilt scrolling functions, hence it is important to preserve the old functions so that scrolling in few TW Apps works fine.

1. Extract the Classes.dex from framework.jar (Use a Framework.jar with Extended Menu as a Base)
2. Use baksmali to decode the DEX file to .smali files.
3. Download the ZIP package and extract the files inside android/widget/
4. Use smali to recode the edited .smali files to a DEX file.
5. Use a file manager to add the newly created DEX file to the framework.jar
6. Copy the framework.jar to your device and reboot.


Quote:
If you are facing problems with overscroll effect like white background or some other image instead of glow then You might need to change the Resource ID's for the Overscroll PNG Images

AbsListView.smali: (line 10884 and 10892)

.line 666
.local v2, res:Landroid/content/res/Resources;
const v3, *Resource ID of overscroll_edge.png*

.line 667
.local v0, edge:Landroid/graphics/drawable/Drawable;
const v3, *Resource ID of overscroll_glow.png*
Quote:
For Users [DEODEXED XXKPG, XWKPI ROM ONLY]

Quote:
ADB Method:
Download the framework.zip file and copy the file inside the zip to ur sdcard.(not in any folder)
use these commands:
adb shell
su
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/framework.jar /system/framework/
reboot
Quote:
Recovery Method:

Download the overscroll.zip
copy it to sdcard
now restart in recovery mode(switch off ur device and hold middle(OK) button and power on)
now select "apply update from sdcard" option.(press vol down button to navigate through options)
select overscroll.zip u just copied to sdcard
wen its complete select "reboot system now" option.
Initial boot will take sometime. So please be patient.
Quote:

Changing the Glow Color


Change the png's in framework-res.apk.
overscroll_edge.png
overscroll_glow.png

Thanks to dhiru1602 who ported this mod to SGS. I used the same source and made it possible for G-FIT. All credits goes to dhiru1602 and some for me for making it available for G-FIT.

Tested on XXKPI and XXKPG. If u face any issues them reply here. i wil try to help u. THANX.

SCREENSHOT:




I accept no responsibility for your bricked or non functional device from using this MOD. Use it with caution.

If u like this dont forget to press thanks button.
Attached Files
File Type: zip Overscroll Glow Source for GALAXY FIT.zip - [Click for QR Code] (138.0 KB, 310 views)
File Type: zip overscroll.zip - [Click for QR Code] (3.43 MB, 558 views)
File Type: zip framework.zip - [Click for QR Code] (3.31 MB, 323 views)
The Following 7 Users Say Thank You to vishwanathptl For This Useful Post: [ Click to Expand ]
 
vishwanathptl
Old
(Last edited by vishwanathptl; 11th June 2011 at 11:19 PM.)
#2  
vishwanathptl's Avatar
Recognized Developer - OP
Thanks Meter 951
Posts: 259
Join Date: Jun 2009
Location: Bangalore
Talking CRT Animation for GALAXY FIT S5670

CRT Screen off animation for GALAXY FIT Gingerbread.

In SAMSUNG GINGERBREAD ROM this animation is disabled by default but code for this still present.

So Here are the steps to enable it in SAMSUNG FIT:

Quote:
Only for Stock ROM. Follow this step Only if u r having stock ROM and Stock theme as this file contains stock res. Otherwise skip this step.

Download the CRT ANIM.zip and extract it to ur sdcard.
And follow these steps.
ADB Commands:
Quote:
adb shell
su
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
stop
cp /sdcard/framework-res.apk /system/framework/
cp /sdcard/build.prop /system/
reboot
Quote:
For developers :

1. Get apk manager
2. Put framework-res.apk in "modding" folder
3. Run apk manager, decompile (option 9)
4. Go into projects\framework-res\res\values\bool.xml
5. Make config_animateScreenLights to false
6. Go back to apkmanager and select compile.
7. Say y
8. Say y
9. Delete resources.arsc from keep folder
10. Enter in apkmanager again
11. U'll find unsignedframework-res.apk in "modding" folder

Quote:
For users :
Copy the unsignedframework-res.apk to your sdcard and rename it to framework-res.apk.
It should be in root of ur sdcard.(not in any folder)
Code:

Quote:
adb shell
su
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
stop
rm /system/framework/framework-res.apk
cp /data/local/tmp/framework-res.apk /system/framework/
rm /data/local/tmp/framework-res.apk
reboot
Quote:
And at last u need to modify the build.prop
Pull it from ur mobile or use the one i attached. It is inside the CRT ANIM.zip file.
Open the build.prop file in any Text editors (i used notepad++) find "debug.sf.hw=1" and add # (making it comment) at first.
It should look like this:
#debug.sf.hw=1
And save.

Now copy it to ur sdcard and then use
Quote:
adb shell
su
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/build.prop /system/
reboot
Now the Screen off animation should work.
Thanks to Daneshm90 who made this Guide. I made it to work on G-FIT.
Credits to Daneshm90 and to me for small changes.

If u like this post Then Please dont forget to press Thanks Button.

I am not responsible for any damage. Dont blame me if u didnt follow the steps correctly.
Attached Files
File Type: zip CRT ANIM.zip - [Click for QR Code] (2.64 MB, 980 views)
The Following 5 Users Say Thank You to vishwanathptl For This Useful Post: [ Click to Expand ]
 
rudolf895
Old
(Last edited by rudolf895; 11th June 2011 at 01:42 PM.)
#3  
rudolf895's Avatar
Recognized Developer
Thanks Meter 599
Posts: 2,360
Join Date: Oct 2010
Location: Bangalore
Nice work, over scroll looks too overdone..Maybe its the .png size in the framework, I'll Photoshop it to look smaller

Get upto 50GB free online storage Sign up--- http://min.us/rWK2Rqm
YouTube channel.
Twitter:@mayur_rt
G+:mayurRT

The right way is never easy, The easy way is never right.


CM7 Changelog. Cm7 Galaxy S2 Page

Know how to flash ICS on SGS2, video guide >[LINK]
The Following 2 Users Say Thank You to rudolf895 For This Useful Post: [ Click to Expand ]
 
rgshah3
Old
#4  
Senior Member
Thanks Meter 70
Posts: 257
Join Date: Apr 2011
Location: Mumbai

 
DONATE TO ME
which other overscroll colours are available and how do i change it???
Dont Forget To Hit The Button

The Following User Says Thank You to rgshah3 For This Useful Post: [ Click to Expand ]
 
xm2406
Old
#5  
xm2406's Avatar
Senior Member
Thanks Meter 13
Posts: 113
Join Date: Dec 2010
Location: mumbai
thnx... btw hw did ya change d notification bar icons??? metamorph themes?
 
xm2406
Old
#6  
xm2406's Avatar
Senior Member
Thanks Meter 13
Posts: 113
Join Date: Dec 2010
Location: mumbai
dint work on xxkpi :/
 
xm2406
Old
#7  
xm2406's Avatar
Senior Member
Thanks Meter 13
Posts: 113
Join Date: Dec 2010
Location: mumbai
TRIED D ADB METHOD.. UNZIPPED D FRAMEWORK.JAR TO SD.. BUT ON PUTTING cp /sdcard/framework.jar /system/framework/ IT SAYS FRAMEWORK.JAR NOT FOUND
 
xm2406
Old
#8  
xm2406's Avatar
Senior Member
Thanks Meter 13
Posts: 113
Join Date: Dec 2010
Location: mumbai
My rom is s5670xxkpi... Nw is it deodexed or d stock rom??????
 
vishwanathptl
Old
#9  
vishwanathptl's Avatar
Recognized Developer - OP
Thanks Meter 951
Posts: 259
Join Date: Jun 2009
Location: Bangalore
Quote:
Originally Posted by xm2406 View Post
TRIED D ADB METHOD.. UNZIPPED D FRAMEWORK.JAR TO SD.. BUT ON PUTTING cp /sdcard/framework.jar /system/framework/ IT SAYS FRAMEWORK.JAR NOT FOUND
did u unzipped the jar file or zip file? u need to have framework.jar file in sdcard. dont extract the jar file...
 
vishwanathptl
Old
#10  
vishwanathptl's Avatar
Recognized Developer - OP
Thanks Meter 951
Posts: 259
Join Date: Jun 2009
Location: Bangalore
Quote:
Originally Posted by xm2406 View Post
My rom is s5670xxkpi... Nw is it deodexed or d stock rom??????
XXKPI is stock rom and u need to deodex it manually. This mod have deodexed files....

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...