Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,095 Members 40,670 Now Online
XDA Developers Android and Mobile Development Forum

[THEME][CM9][AOKP][Slim] ICS with Gingerbread colours

Tip us?
 
Deciare
Old
#61  
Deciare's Avatar
Member - OP
Thanks Meter 42
Posts: 51
Join Date: Apr 2012
Location: Mississauga
Quote:
Originally Posted by gaspernemec View Post
thats what error i get after decompilling with command
PHP Code:
apktool b C:\trebuchet.apk C:\trebuchet 
PHP Code:
C:\Users\Gašper>apktool b c:\trebuchet
I
Checking whether sources has changed...
IChecking whether resources has changed...
IBuilding resources...
invalid resource directory namec:\trebuchet\res/drawable-sw600dp-hdpi
invalid resource directory name
c:\trebuchet\res/drawable-sw600dp-nodpi
invalid resource directory name
c:\trebuchet\res/layout-sw600dp
invalid resource directory name
c:\trebuchet\res/layout-sw600dp-land
invalid resource directory name
c:\trebuchet\res/layout-sw600dp-port
invalid resource directory name
c:\trebuchet\res/values-af-sw600dp
invalid resource directory name
c:\trebuchet\res/values-am-sw600dp
invalid resource directory name
c:\trebuchet\res/values-ar-sw600dp
invalid resource directory name
c:\trebuchet\res/values-bg-sw600dp
invalid resource directory name
c:\trebuchet\res/values-ca-sw600dp
invalid resource directory name
c:\trebuchet\res/values-cs-sw600dp
invalid resource directory name
c:\trebuchet\res/values-da-sw600dp
invalid resource directory name
c:\trebuchet\res/values-de-sw600dp
invalid resource directory name
c:\trebuchet\res/values-el-sw600dp
invalid resource directory name
c:\trebuchet\res/values-en-rGB-sw600dp
invalid resource directory name
c:\trebuchet\res/values-es-rUS-sw600dp
invalid resource directory name
c:\trebuchet\res/values-es-sw600dp
invalid resource directory name
c:\trebuchet\res/values-fa-sw600dp
invalid resource directory name
c:\trebuchet\res/values-fi-sw600dp
invalid resource directory name
c:\trebuchet\res/values-fr-sw600dp
invalid resource directory name
c:\trebuchet\res/values-hi-sw600dp
invalid resource directory name
c:\trebuchet\res/values-hr-sw600dp
invalid resource directory name
c:\trebuchet\res/values-hu-sw600dp
invalid resource directory name
c:\trebuchet\res/values-in-sw600dp
invalid resource directory name
c:\trebuchet\res/values-it-sw600dp
invalid resource directory name
c:\trebuchet\res/values-iw-sw600dp
invalid resource directory name
c:\trebuchet\res/values-ja-sw600dp
invalid resource directory name
c:\trebuchet\res/values-ko-sw600dp
invalid resource directory name
c:\trebuchet\res/values-lt-sw600dp
invalid resource directory name
c:\trebuchet\res/values-lv-sw600dp
invalid resource directory name
c:\trebuchet\res/values-ms-sw600dp
invalid resource directory name
c:\trebuchet\res/values-nb-sw600dp
invalid resource directory name
c:\trebuchet\res/values-nl-sw600dp
invalid resource directory name
c:\trebuchet\res/values-pl-sw600dp
invalid resource directory name
c:\trebuchet\res/values-pt-rPT-sw600dp
invalid resource directory name
c:\trebuchet\res/values-pt-sw600dp
invalid resource directory name
c:\trebuchet\res/values-ro-sw600dp
invalid resource directory name
c:\trebuchet\res/values-ru-sw600dp
invalid resource directory name
c:\trebuchet\res/values-sk-sw600dp
invalid resource directory name
c:\trebuchet\res/values-sl-sw600dp
invalid resource directory name
c:\trebuchet\res/values-sr-sw600dp
invalid resource directory name
c:\trebuchet\res/values-sv-sw600dp
invalid resource directory name
c:\trebuchet\res/values-sw-sw600dp
invalid resource directory name
c:\trebuchet\res/values-sw340dp
invalid resource directory name
c:\trebuchet\res/values-sw340dp-land
invalid resource directory name
c:\trebuchet\res/values-sw340dp-port
invalid resource directory name
c:\trebuchet\res/values-sw600dp
invalid resource directory name
c:\trebuchet\res/values-sw600dp-land
invalid resource directory name
c:\trebuchet\res/values-sw600dp-port
invalid resource directory name
c:\trebuchet\res/values-sw720dp
invalid resource directory name
c:\trebuchet\res/values-sw720dp-land
invalid resource directory name
c:\trebuchet\res/values-sw720dp-port
invalid resource directory name
c:\trebuchet\res/values-th-sw600dp
invalid resource directory name
c:\trebuchet\res/values-tl-sw600dp
invalid resource directory name
c:\trebuchet\res/values-tr-sw600dp
invalid resource directory name
c:\trebuchet\res/values-uk-sw600dp
invalid resource directory name
c:\trebuchet\res/values-vi-sw600dp
invalid resource directory name
c:\trebuchet\res/values-zh-rCN-sw600dp
invalid resource directory name
c:\trebuchet\res/values-zh-rTW-sw600dp
invalid resource directory name
c:\trebuchet\res/values-zu-sw600dp
Exception in thread 
"main" brut.androlib.AndrolibExceptionbrut.common.BrutExce
ption
could not exec command: [aaptp, -FC:\Users\GAPER~1\AppData\Local\Temp
\APKTOOL1328495451113697476.tmp, -IC:\Users\GaÜper\apktool\framework\1.apk, -S
c:\trebuchet\res, -Mc:\trebuchet\AndroidManifest.xml]
        
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a
:193)
        
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
        
at brut.androlib.Androlib.buildResources(Androlib.java:248)
        
at brut.androlib.Androlib.build(Androlib.java:171)
        
at brut.androlib.Androlib.build(Androlib.java:154)
        
at brut.apktool.Main.cmdBuild(Main.java:182)
        
at brut.apktool.Main.main(Main.java:67)
Caused bybrut.common.BrutExceptioncould not exec command: [aaptp, -FC:\U
sers
\GAPER~1\AppData\Local\Temp\APKTOOL1328495451113697476.tmp, -IC:\Users\GaÜ
per
\apktool\framework\1.apk, -Sc:\trebuchet\res, -Mc:\trebuchet\AndroidManif
est
.xml]
        
at brut.util.OS.exec(OS.java:83)
        
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a
:191)
        ... 
6 more 
ill try again....and again...but even on my sisters labtop wont work :/
i think ill grab CM7 or stock sammy app to see if im doing it wrong or something is wront with an app
Hmm. I don't have any trouble rebuilding Trebuchet with apktool, so I'm not sure what to recommend. You have run
Code:
apktool if framework-res.apk
with CM9's own framework-res.apk before you tried to decompile, right?
Nexus 4 「Fina」 Limbo Level 3 Alumna CM 10.1 nightlies
Nexus S / i9020T 「Rien」 CM 10 Android 4.2 camera/gallery and keyboard Gingerbread colours
HTC Dream / G1 「Revem」 ezGingerbread RAM hack
The Following User Says Thank You to Deciare For This Useful Post: [ Click to Expand ]
 
Deciare
Old
(Last edited by Deciare; 3rd May 2012 at 09:32 PM.) Reason: Forgot about git add
#62  
Deciare's Avatar
Member - OP
Thanks Meter 42
Posts: 51
Join Date: Apr 2012
Location: Mississauga
Quote:
Originally Posted by the1dynasty View Post
is there a "How to..." on using this script so i can update my themes to newer ROMs and/or porting them?? i learn fast but i don't have much time to figure this out on my own... so any help is appreciated!

btw, i just got a computer setup to theme... so i can do the basics right now of that...
I tried to make those READMEs rather specific... ^^; What else can I offer?

I did start on HCS, but didn't get very far. I can summarise what I've done so far. You've already seen the scripts I put on github? So what I did went something like this...

Modify extracttheme.sh to put all the packages from your theme in the $PACKAGES array:
Code:
PACKAGES=(
        'system/framework/framework-res.apk'
        'system/app/SystemUI.apk'
        'system/app/Camera.apk'
        'system/app/Contacts.apk'
        'system/app/Gmail.apk'
        'system/app/Launcher2.apk'
        'system/app/Mms.apk'
        'system/app/PhaseBeam.apk'
        'system/app/Phone.apk'
        'system/app/Settings.apk'
        'system/app/Talk.apk'
)
Create a new git repo:
Code:
mkdir -p theme/dcs/codename
cd theme/dcs/codename
git init
Extract the Codename ROM:
Code:
../extracttheme.sh ../../../Codename-Android-(MOD)-1.5.5-NS4G.zip
Tell git to make note of every directory that will contain theme changes, then make an initial commit:
Code:
git add framework-res SystemUI Camera Contacts Gmail Launcher2 Mms PhaseBeam Phone Settings Talk
git commit -m 'Initial commit'
That extracts every package referenced in the $PACKAGES array from the Codename ROM, and creates a basic unthemed state for us to work with. Next, we want to see what you changed in HCS. So create a new branch for HCS:
Code:
git branch hcs
git checkout hcs
Extract your theme:
Code:
../extracttheme.sh ../../../dy-NASTY_HCS_b3.0_CNA-1.5.5_complete.zip
And now you can type
Code:
git diff
to see what changed between your theme and Codename. There about 8500 unstaged changes. -_- Too much to process on the command line. We can use git gui to view the differences graphically, but git gui only shows 5000 unstaged changes by default, which doesn't help us. So do this:
Code:
git config --add gui.maxfilesdisplayed 65535
git gui
Now you're looking at a list of every unstaged change! The top left shows every modified or untracked file. Modified files have a blue icon; untracked files have a white icon. You only need to worry about the modified files.

Scroll waaaaay down to where you see modified files in framework-res. Click on any one. If it's an image (anything ending in *.png), you probably want to include it. You can do that by selecting Commit -> Stage To Commit from the menu. Files staged for commit will appear in the lower-left corner.

You have several hundred modified images in framework-res alone, so go ahead and select them all (click the first image, then shift-click the last image) and stage them for commit.

What's left over are XML files, and these are trickier. There are some changes that are useful, like colour changes:


And some changes that are "useless", such as stuff that should be left up to the ROM to decide, like resource names or language translations:


You'll have to decide for yourself what's useful and useless, and stage only the useful changes for commit.

Some XML files may have some lines that are useful, and some lines that are useless! You can stage individual lines for commit by highlighting the line(s) in the upper-right box, right-clicking, then selecting Stage Line for Commit from the context menu.

Once you have staged every useful change in framework-res for commit, type a description into the lower-right box, then click the Commit button.

I recommend doing a separate commit for each package (i.e. one for framework-res, one for SystemUI, one for Settings, etc.) to keep things simple. The more complex a commit is, the harder it will be to resolve conflicts when you try to cherry-pick them to another ROM! (For more on cherry-picking, refer to my README for gingercream_cm9.)
Nexus 4 「Fina」 Limbo Level 3 Alumna CM 10.1 nightlies
Nexus S / i9020T 「Rien」 CM 10 Android 4.2 camera/gallery and keyboard Gingerbread colours
HTC Dream / G1 「Revem」 ezGingerbread RAM hack
The Following User Says Thank You to Deciare For This Useful Post: [ Click to Expand ]
 
Icecoldmeat
Old
#63  
Icecoldmeat's Avatar
Senior Member
Thanks Meter 111
Posts: 723
Join Date: Oct 2011
Location: Almelo
Nice theme man.. but not everything is green.. like clicking.. etc. Good luck with the rest

Sent from my Nexus S using XDA app
Galaxy Nexus - MBQ's Xylon / franco.Kernel

Apple iPhone 5 - iOS 6.1.2 Evasi0n
 
the1dynasty
Old
#64  
the1dynasty's Avatar
Recognized Themer
Thanks Meter 3042
Posts: 4,229
Join Date: Dec 2011

 
DONATE TO ME
Wow, thanks for that example... I'm new to using git and commit stuff... And i understand the process better now... But i still don't know how to set this up on the computer lol... Once that is done, I'll be able to try this process... Can i do this on windows 7?

Sent from my Nexus S 4G using Tapatalk 2
 
the1dynasty
Old
#65  
the1dynasty's Avatar
Recognized Themer
Thanks Meter 3042
Posts: 4,229
Join Date: Dec 2011

 
DONATE TO ME
after glancing over your post again... i definitely do not know how to do all of that lol... also appears it has to be done on Linux which i do not have right now...

since i do have access to a PC that i can theme on right now (running Windows7)... what would I need to do to port my themes over to other ROMs?? or would u suggest i port them over manually like i was doing before?? i'd really like to learn this process but lets face it, we don't get paid for this stuff lol...
 
the1dynasty
Old
#66  
the1dynasty's Avatar
Recognized Themer
Thanks Meter 3042
Posts: 4,229
Join Date: Dec 2011

 
DONATE TO ME
just watched a video on that git stuff... apparently i CAN install it on windows... with some learning... i might be able to get this one day lol
 
gaspernemec
Old
(Last edited by gaspernemec; 4th May 2012 at 05:20 PM.)
#67  
Senior Member
Thanks Meter 36
Posts: 315
Join Date: Jun 2011
Location: Laško
Quote:
Originally Posted by Deciare View Post
Hmm. I don't have any trouble rebuilding Trebuchet with apktool, so I'm not sure what to recommend. You have run
Code:
apktool if framework-res.apk
with CM9's own framework-res.apk before you tried to decompile, right?
thanx for tip ill give it a try

EDIT: Still not working.....ima try on other comp again or ill rename maybe š in my name is bothering it....
EDIT2: Managed to compile/decompile CM7 contacts w/o problem...CM9 up now....btw, what do you use to sign apps
EDIT3: still no luck, cm9 seems screwed :/, ill try with nexus S apps tho, should work on galaxy S as well

HTC ONE
GALAXY SIII
GALAXY NOTE III
GALAXY FIT
SONY XPERIA GO
 
Deciare
Old
(Last edited by Deciare; 10th May 2012 at 01:52 AM.)
#68  
Deciare's Avatar
Member - OP
Thanks Meter 42
Posts: 51
Join Date: Apr 2012
Location: Mississauga
For great SCIENCE, there is now a package for the T-Mobile Theme Engine, newly accessible in CM9 from Settings -> Theme.

It's not complete, there are bits that I can't seem to theme, and I don't know if that's because of bugs in my work, in CM9, in the theme engine itself, or any combination of the foregoing. But most importantly, it's NEW!

At some point, this theme engine will theoretically make it possible to touch bits that are too much trouble to bother with now. Anyway, there you have it, have fun. Also, it will unset your ringtone, notification sound, and wallpaper. I don't know how to make it stop doing that.

Quote:
Originally Posted by the1dynasty View Post
just watched a video on that git stuff... apparently i CAN install it on windows... with some learning... i might be able to get this one day lol
That's great, I hope it works out for you! There is certainly demand for the sort of complete theme that you make. I'd like to be able to point people at you for their all-green and all-red fixes.
Nexus 4 「Fina」 Limbo Level 3 Alumna CM 10.1 nightlies
Nexus S / i9020T 「Rien」 CM 10 Android 4.2 camera/gallery and keyboard Gingerbread colours
HTC Dream / G1 「Revem」 ezGingerbread RAM hack
The Following User Says Thank You to Deciare For This Useful Post: [ Click to Expand ]
 
Deciare
Old
(Last edited by Deciare; 10th May 2012 at 08:58 PM.)
#69  
Deciare's Avatar
Member - OP
Thanks Meter 42
Posts: 51
Join Date: Apr 2012
Location: Mississauga
Green dialpad and toggle buttons (the kind that looks like a button with a state indicator)! Now available on CM9 2012-05-09, AOKP M5 and build 35, and SlimICS 3.6.

The T-Mobile theme engine package also includes these updates and no longer blows away your wallpaper and sounds.
Nexus 4 「Fina」 Limbo Level 3 Alumna CM 10.1 nightlies
Nexus S / i9020T 「Rien」 CM 10 Android 4.2 camera/gallery and keyboard Gingerbread colours
HTC Dream / G1 「Revem」 ezGingerbread RAM hack

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes