[tutorial]your own cosmic flow LW colors :D

reaper61616

Senior Member
Nov 23, 2010
663
747
0
Brodnica
Hi all!

I decide to write tutorial how to edit CosmicFlow. :)
Now have no time to make it updated.:(

Also you can share with other users your modded apk and post screenshots, so everyone can use your mod....:)
__________________________________________________________________________
REQUIRE

1. JDK

2. NotePad++ - OPTIONAL BUT RECOMMANDED

3. Paint.NET - OPTIONAL


__________________________________________________________________________
FILES

So first download some attached files.

1. apktool+signer.zip

2. CosmicFlow-Update5.apk

3. Frameworks.zip




1. apktool+signer.zip contains apktool.jar, aapt.exe (latest version from SDK), Auto-Sign folder with files needed to sign your new apk :)

2. CosmicFlow-Update5.apk - latest update of my work.

3. Frameworks.zip contains 1.apk (Freamework-res.apk) and 2.apk (SemcGenericUxpRes.apk)

__________________________________________________________________________
INSTALLATION

Windows:


1. Install JDK

2. Go to downloaded 'apktool+signer.zip', open it and unpack to C:/ drive (short path it better to use:))

3. Go to downloaded 'Frameworks.zip', open it and unpack to C:/apktool (or where you place apktool folder)

4. If you first time decompile using apktool you need to install frameworks
a) unapck Frameworks.zip to apktool folder
b) in CMD write: java -jar apktool.jar if 1.apk
c) next in CMD write: java -jar apktool.jar if 2.apk


5. Now you can delete 1.apk and 2.apk from apktool folder only.

6. Place CosmicFlow-Update5.apk in apktool folder


Linux:
I don't use linux for now so can't tell how to and what to do...

__________________________________________________________________________
HOW TO USE​

1. Open CMD (Windows logo+ R -> in window type: CMD and click 'Enter')


2. Write: cd "c:/apktool" (if path is different then type your path)


3. Now decompile APK -> in cmd write: java -jar apktool.jar d CosmicFlow-Update5.apk


4. When new folder named CosmicFlow-Update5 will appear you can start editing app (see HOW TO MOD SOME COLOR SCHEME)

5. Compile CosmicFlow-Update5 folder -> java -jar apktool.jar b CosmicFlow-Update5


6. Sign:
a) go to apktool folder and then to CosmicFlow-Update5 folder in explorer (not CMD)
b) go to dist folder and copy CosmicFlow-Update5.apk (this is your modded apk) in explorer (not CMD)
c) go back to apktool folder and then to Auto-Sign folder in explorer (not CMD)
d) paste your modded apk (ONLY ONE APK MUST BE IN THIS FOLDER!!) and run sign.bat


e) one more apk will appear (your_app_signed.apk) - this apk is ready to install on your phone - SIGNED :)


__________________________________________________________________________
HOW TO MOD SOME COLOR SCHEME

First of all you need to understand that any change of resources or smali files may result in error while compiling.
If resource is wrong (e.g. bad file name) there will be displayed error with file name containing error and maybe some more usefull info for debugging.
When smali file is corrupted there will NOT be displayed any concrete error message (even filename and line of error) so please be carefull and DON'T CLOSE EDITED FILE UNTIL APK WILL BE SUCCESSFUL COMPILED!!


1. Get your color in hex representation. On the web there are some usefull sites where you can calculate or choose color.

2. Go to: C:\apktool\CosmicFlow-Update5\smali\com\sonyericsson\cosmicflow and open ColorInfo.smali with NotePad++


3. Go to line 100 - begin of color description.

4. Each color is beginning from 'new-instance...' and ends on line with 'sput-object v6..'.

5. E.g. You want to make --Little White-- to be red (#ff0000-> ff|00|00) so replace values of const/16 (0x must stay!!)

a) to change name simply change value of 'const-string'


b) some of colors has more then 3 const/16 values, first 3 values are color description, 2 next values are color property (don't know, I don't edit it)


REMEMBER! DO NOT CHANGE ANY OTHER VALUES, CHARS!! !const-string v1 - v1 is name of variable so if you change it the menu of live wallpaper will give FC or this will be uncompilable!

6. Save your file and then try to compile (HOW TO USE: 5)

7. If compile goes ok and no errors appears you can go to next step, if not check edited file for const/16 valeus are not missing.

8. Go to CosmicFlow-Update5 folder root and then into res folder.

9. Go to drawable folder and find color you edit ( names of images can be not understandable so open on the phone cosmicflow settings (in live wallpaper) and find colors you edit, then compare images in the phone and drawable folder - open image that you change color in smali file in Paint.NET)

10. Each folder with name contains 'drawable' has images to display in menu so it need to be changed.

11. Try to compile after edit, if everything goes ok you can sign your apk (HOW TO USE: 6) and then install in phone :)


__________________________________________________________________________
HOW TO MAKE LIVE WALLPAPER DIMMER OR BRIGHTER

1. Go to res folder of CosmicFlow-Update5

2. Then open in image editor file named: bg_grey.png

3. Make it brighter or set more contrast

4. Save image.

5. Compile.

6. Sign.

__________________________________________________________________________
FOR QUESTION PLEASE WRITE POST AND THEN INFORM ME BY PM!!
PM MUST CONTAINS POST NUMBER
 

Attachments

Last edited:

reaper61616

Senior Member
Nov 23, 2010
663
747
0
Brodnica
Hi !! reaper61616

I just finished changed colors ;)


--changed new colors--
Carnation Pink from Medium Purple
Deep Champagne from Little White
Moonstone Blue from Light Blue
Kelly Green from Chartreuse
Salmon Pink from Almost Pink
Burgundy from Total Green
Majorelle Blue from Magic Blue

:D:D:D
Great job!!!:)
Using your mod :)

Any sugestions about tutorial?? Something need to be changed or something?? :)

AND THANKS FOR SHARING!! :D
 

bilal.fanatic

Senior Member
Dec 26, 2011
402
92
58
Karachi
Hi !! reaper61616

I just finished changed colors ;)


--changed new colors--
Carnation Pink from Medium Purple
Deep Champagne from Little White
Moonstone Blue from Light Blue
Kelly Green from Chartreuse
Salmon Pink from Almost Pink
Burgundy from Total Green
Majorelle Blue from Magic Blue

:D:D:D
would you also mind sharing screenshots for each of them plz... :)
 

jitin02

Senior Member
Mar 17, 2009
1,925
263
83
Unknown
www.safaribikes.com
Sir
I am from xperia u , sorry for being of topic/phone model but it really related to this topic
Need see help. As we have illuminating light in bottom on xperia u. We can change it simply by changing the hex color code. In res/values/colors
Till here everything is ok but as we change the Color code, it basically the illumination light bar color plus the live Wallpaper corresponding it automatically but thing is while applying the theme preview is not displayed, it simply shows X even after editing even After changing color of images in drawable folder.
By the way if in case we don't change drawable images color will it effect the working of theme

Sent from my Dell Streak using xda app-developers app
 

android addicts

Senior Member
Jan 8, 2012
1,051
96
0
I got this error. Why is that?

C:\apktool>java -jar apktool.jar d SystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Home\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

C:\apktool>java -jar apktool.jar b SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'status_bar_settings_auto_brightness_label' has no default
translation in C:\apktool\SystemUI\res; found: af am ar bg ca cs da de el en_GB
es es_US fa fi fr hi hr hu in it iw ja ko lt lv ms nb nl pl pt pt_PT ro ru sk s
l sr sv sw th tl tr uk vi zh_CN zh_TW zu
I: Building apk file...

C:\apktool>