Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Strapt
Old
(Last edited by Strapt; 5th November 2011 at 07:55 AM.) Reason: Solved Issue
#1  
Senior Member - OP
Thanks Meter 2
Posts: 299
Join Date: May 2009
Exclamation [Q] Theming ..failing .. errors..Help please..(SOLVED!!)

ok ... so I used to theme a little on the mytouch 4G. I used APK Manager along with eclipse... no issues at all.

But I am wondering now that I have a samsung phone .. how the heck are people doing it??? It seems like the apk manager (4.9 and 5.0.2) is just giving me errors... mainly stuck on the one where I decompile and then compile .. it tells me You must install proper framework files error 2.

*EDIT* THIS IS WHERE IT WENT WRONG!
Quote:
I have placed the framework-res.apk it in the "other" folder and opened the command there and typed in "apktool if framework-res.apk" and it says that it has installed it to the C:\.. blah blah .. I check and it is there. BUT I STILL get that error message.

*Edit* it was the wrong damn apk file!!



So if anyone has any freaking Idea how to solve this .. I would appreciate it.

also .. if i place the apk file in the folder with the apktool files and I run the command from there I can decompile and compile the apk using the commands "apktool d Googlequicksearchbox.apk" and the "apktool b googlequicksearchbox.apk" then I can take the apk out of the dist folder and into the apk manager to sign .. this process suuucks and is a pain to do over and over .. so the story is that the apktool seems to work .. but for whatever reason the errors happen when I use the apk manager .. which uses the apktool .. odd.

I am on windows 7 ultimate X64
I do have the Java SE JDK 7 (64 bit)
I do have the latest SDK (all of it was downloaded yesterday .. and then reinstalled today)
I have added the "adb" Path to user enviroments.
I have added the Java path to the JDK to the "path" in system enviroments.
I have the Drivers installed
I can run the adb commands from the standard terminal thru sdktools


SOLUTION:
Quote:
DO NOT pull the framework-res.apk ..

instead pull the /system/framework/twframework-res.apk
then place the twframework-res.apk into the "other" folder in apk manager and open a command prompt on that "other" folder by using the shift+right click.
then in the terminal type in "apktool if twframework-res.apk"
it should say that it has installed to C:\something here
that should do it there!

This is going to get long (decompile and Compile Logs) .. the LOG when I try and Decompile something:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Owner\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x02090015
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x02090015
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x02090015
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x02090015
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x02090015
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x0206001c
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x0206001c
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x0206001c
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060004
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0209000e
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0209000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060004
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0209000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0206001c
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060001
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0209000e
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060090
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0209000e
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x0206001c
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0206001b
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0206001b
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0206001b
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0209000d
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x0206001c
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060001
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemType, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemText, value=0x7f090098
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemType, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemText, value=0x7f09006a
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060090
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=shadowColor, value=0x02060001
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0206001c
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x0206001c
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0209000e
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0209000f
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemType, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemText, value=0x7f090098
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemType, value=0x00000000
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemText, value=0x7f09006a
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060090
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060001
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060001
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0202009c
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0202009c
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060001
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemStyle, value=0x02010022
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemText, value=0x7f090101
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemStyle, value=0x02010022
W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemText, value=0x7f09006a
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060000
W: Could not decode attr value, using undecoded value instead: ns=android, name=shadowColor, value=0x02060001
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02060090
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0209000e
I: Decoding values*/* XMLs...
=======================================

and when I try to compile it:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java: 142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Abst ractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java: 138)
... 4 more

thing that confuses me here is the "Pathnoexist: apktool.yml" .. well it all confuses me actually
_________________
Phones:
T-Mobile HTC Mytouch 4G
- Rooted
- Clockwork recovery
- ROM: CM MOD 7 Nightlies
T-Mobile HTC G1
- Rooted
- Armon Ra Recovery
- ROM: Cyanogen 6
 
Strapt
Old
(Last edited by Strapt; 5th November 2011 at 07:51 AM.)
#2  
Senior Member - OP
Thanks Meter 2
Posts: 299
Join Date: May 2009
ya .. even though I figured it out .. I'm gonna leave this here so hopefully if someone googles the heck out of it like I did, they will find it and may help someone.

but im not sure if it should be here in general or in the themes section ...
_________________
Phones:
T-Mobile HTC Mytouch 4G
- Rooted
- Clockwork recovery
- ROM: CM MOD 7 Nightlies
T-Mobile HTC G1
- Rooted
- Armon Ra Recovery
- ROM: Cyanogen 6
 
djdarkknight96
Old
#3  
djdarkknight96's Avatar
Recognized Themer
Thanks Meter 2627
Posts: 6,573
Join Date: Nov 2009
Location: Springfield

 
DONATE TO ME
Hahahaha, I'm DA ****!
GALAXY NEXUS:
ROM: JellyBro With DarkJelly goodness



More from me:
DarkIce keyboard skins-Android Pro Widget skins - Handcent Skins
 
Strapt
Old
#4  
Senior Member - OP
Thanks Meter 2
Posts: 299
Join Date: May 2009
Quote:
Originally Posted by djdarkknight96 View Post
Hahahaha, I'm DA ****!
Troll!

Ok ... I might have had someone suggest to try that apk.

Sent from my SGH-T989 using xda premium
_________________
Phones:
T-Mobile HTC Mytouch 4G
- Rooted
- Clockwork recovery
- ROM: CM MOD 7 Nightlies
T-Mobile HTC G1
- Rooted
- Armon Ra Recovery
- ROM: Cyanogen 6
 
j0hnZ
Old
#5  
Senior Member
Thanks Meter 144
Posts: 883
Join Date: Nov 2009
Location: Seattle

 
DONATE TO ME
Just pull the files out of the rom download. Settings/SystemUI always gives me errors, but thankfully I'm not modifying xml's so I don't need to compile and decompile them. I haven't had to touch twframework at all.
Verizon SGS3
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
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...