What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Theming Guide for changing system text settings.

OK, first time I have tried the second section. (and by the way, "4.8" still says it 4.7. Weird). Anyway, I can DECOMPILE an APK just fine, but when I try to COMPILE it, it wont do it. Keeps giving me an error, and says to check the log file, which I still dont know how to make sense of. Any ideas?

More then likely you need to set the environment PATH. I had this issue with apktool.jar not finding the path for aapt.exe.
 
OK, first time I have tried the second section. (and by the way, "4.8" still says it 4.7. Weird). Anyway, I can DECOMPILE an APK just fine, but when I try to COMPILE it, it wont do it. Keeps giving me an error, and says to check the log file, which I still dont know how to make sense of. Any ideas?

Make sure you are using a stock apk. Transparent or the like images dont compile nicely! then just pull out the xml's you edited or add your images to the new apk
 
So what if I just want to change the icon in an APK, and I use transparancy? It wont compile right? Im not sure where my error is, so I cant really but much help here. lol

And as for editing the framework-res.apk, is there a file in there somewhere that controls some of the behavior of the system? (yep, wanting to finish building my own ROM. Have it mostly finished, just want to do some system editing beyond what I have done so far).
 
So what if I just want to change the icon in an APK, and I use transparancy? It wont compile right? Im not sure where my error is, so I cant really but much help here. lol

post your error log, delete it first then try to compile then post it so its not 8 miles long!
 
Here you go. I know it wont find ADB, which it weird, because it IS set in my system PATH:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:\android\tools\

Anyone else see above that there is a SPACE in the last "System32" entry? Its NOT there in the PATH box in Environment Variables either.
 
Last edited:
Also, does anyone know where a FULL FRG22 ROM is, that is rooted, and has busybox? Not one by a dev, but a general base ROM?

My current ROM is based on FRG01B, and I would like to base it on the newest FRG22. (just like to keep up to date)

EDIT: I found the one Pets's site. It was rooted and busybox was installed. Installed it right now, and its working perfectly! This is going to be the one I base my new ROM off of.
 
Last edited:
This is killing me...

I have all files in my Tools Folder, it finds ADB, because I do not get the "Cannot locate ADB error". With that said, I edit my styles.xml and save, then go to option 11 to compile and it says "An Error Occured, Please Check The Log (option 21)"

Not sure what I've done wrong, I done everything step by step as you explained... please help. Thanks.

I'm only trying to change the font color on the Twitter and Facebook widgets... I have a black glass and it has black fonts on both of them. :unsure:

Edit: If the font color on the Twitter and Facebook widgets can be changed elsewhere, please let me know. Thanks!!
 
Last edited:
I have the Facebook decompiled right now and trying to chage the widget text color. Any ideas where it is?
 
I have the Facebook decompiled right now and trying to chage the widget text color. Any ideas where it is?

Ok now I really feel lost, I decompiled my framework and was following the instructions on the Widget.EditText section of the OP. Geeez I need help on this cause the black on black text for Facebook/Twitter widgets is killing me...

Edit: I also decompiled the Facebook.apk and the folders are a mile long... not sure where to look.
 
Last edited:
K, lets hit two birds with one stone here. The Facebook and Twitter widgets text can be found in /res/layout-land/widget_view.xml and /res/layout-port/widget_view.xml. You can use what they have in there for for textcolor (I believe it point to "text color" in the colors.xml) or just put in a static hex color code in it's place.

android:textColor="@color/text_color" to android:textColor="#ffffffff"
 
K, lets hit two birds with one stone here. The Facebook and Twitter widgets text can be found in /res/layout-land/widget_view.xml and /res/layout-port/widget_view.xml. You can use what they have in there for for textcolor (I believe it point to "text color" in the colors.xml) or just put in a static hex color code in it's place.

android:textColor="@color/text_color" to android:textColor="#ffffffff"

perfect...thank you sir.
 
Please decipher this log...

This is my log, please let me know how I can correct my errors... I cannot compile my changes to save my life... Thanks!!

--------------------------------------------------------------------------
|Sun 08/08/2010 -- 23:33:13.80|
--------------------------------------------------------------------------
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\Daddy\Desktop\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged.apk
Could Not Find C:\Users\Daddy\Desktop\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-signed.apk
Could Not Find C:\Users\Daddy\Desktop\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-unsigned.apk
The system cannot find the file specified.
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Daddy\apktool\framework\1.apk
S: Could not decode file "drawable-hdpi/bg_location_maps_bubble.9.png" to "drawable-hdpi/bg_location_maps_bubble.9.png"
S: Could not decode file "drawable-hdpi/bg_searchbar_twitter.9.png" to "drawable-hdpi/bg_searchbar_twitter.9.png"
S: Could not decode file "drawable-hdpi/bg_searchbar_twitter_location.9.png" to "drawable-hdpi/bg_searchbar_twitter_location.9.png"
S: Could not decode file "drawable-hdpi/bg_twitter_titlebar.9.png" to "drawable-hdpi/bg_twitter_titlebar.9.png"
S: Could not decode file "drawable-hdpi/btn_bg_pressed.9.png" to "drawable-hdpi/btn_bg_pressed.9.png"
S: Could not decode file "drawable-hdpi/btn_bg_selected.9.png" to "drawable-hdpi/btn_bg_selected.9.png"
S: Could not decode file "drawable-hdpi/btn_onscreen_default_sign_in.9.png" to "drawable-hdpi/btn_onscreen_default_sign_in.9.png"
S: Could not decode file "drawable-hdpi/btn_onscreen_pressed.9.png" to "drawable-hdpi/btn_onscreen_pressed.9.png"
S: Could not decode file "drawable-hdpi/btn_onscreen_selected.9.png" to "drawable-hdpi/btn_onscreen_selected.9.png"
S: Could not decode file "drawable-hdpi/btn_search_dialog_pressed.9.png" to "drawable-hdpi/btn_search_dialog_pressed.9.png"
S: Could not decode file "drawable-hdpi/btn_search_dialog_selected.9.png" to "drawable-hdpi/btn_search_dialog_selected.9.png"
S: Could not decode file "drawable-hdpi/grid_selector_background_focused.9.png" to "drawable-hdpi/grid_selector_background_focused.9.png"
S: Could not decode file "drawable-hdpi/grid_selector_background_pressed.9.png" to "drawable-hdpi/grid_selector_background_pressed.9.png"
S: Could not decode file "drawable-hdpi/ic_corpora_pressed.9.png" to "drawable-hdpi/ic_corpora_pressed.9.png"
S: Could not decode file "drawable-hdpi/ic_corpora_selected.9.png" to "drawable-hdpi/ic_corpora_selected.9.png"
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Unknown Source)
at java.lang.String.<init>(Unknown Source)
at org.antlr.runtime.ANTLRStringStream.substring(Unknown Source)
at org.antlr.runtime.CommonToken.getText(Unknown Source)
at org.antlr.runtime.tree.CommonTree.getText(Unknown Source)
at org.jf.smali.smaliTreeWalker.reference_type_descriptor(Unknown Source)
at org.jf.smali.smaliTreeWalker.instruction(Unknown Source)
at org.jf.smali.smaliTreeWalker.statements(Unknown Source)
at org.jf.smali.smaliTreeWalker.method(Unknown Source)
at org.jf.smali.smaliTreeWalker.methods(Unknown Source)
at org.jf.smali.smaliTreeWalker.smali_file(Unknown Source)
at brut.androlib.src.DexFileBuilder.assembleSmaliFile(Unknown Source)
at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)
at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)
at brut.androlib.src.SmaliBuilder.buildFile(Unknown Source)
at brut.androlib.src.SmaliBuilder.build(Unknown Source)
at brut.androlib.src.SmaliBuilder.build(Unknown Source)
at brut.androlib.Androlib.buildSourcesSmali(Unknown Source)
at brut.androlib.Androlib.buildSources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
 
Man I have tried everything, I have even decompiled a stock Twitter, and made no changes just to see if I will get a repacked.apk... and I still get these errors...

|Sun 08/08/2010 -- 23:52:11.13|
--------------------------------------------------------------------------
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
Could Not Find C:\android\tools\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged.apk
Could Not Find C:\android\tools\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-signed.apk
Could Not Find C:\android\tools\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-unsigned.apk
The system cannot find the file specified.
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\Daddy\apktool\framework\1.apk
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...


The log goes further but I don't want to overkill the log... anyway it says in the beginning it cannot find repacked.apk However it was never created it so how can it find it? Maybe I need to just get some sleep lol

Any help would be greatly appreciated... this has been the holdup of all of my updated themes, as I do not want to put out black on black Facebook/Twitter widgets. If somebody could even send me the latest stock Facebook/Twitter with white text widgets... THAT WOULD BE AWESOME!!!!!!! (Credit will definitely be given)
 
Last edited:
Back
Top