Guest TheManicGibbon Posted June 12, 2011 Report Posted June 12, 2011 What I'm trying to do; is to change the description and time text colour of items in the notification pulldown (circled). I decompile framework-res.apk using the apktool using the method provided here. I then change the appropriate hex codes detailed here(section 1D). The change is from #ff000000 to #ff6b6b6b. I build this file by running build.bat. However, if I then decompile this new file, the colours have both reverted to #ff000000. Now: 1) I know that other things work because I successfully used this method to change other colours (the ticker text in the notification bar) when porting this theme to another phone. 2)During the porting process, and this current mod attempt, I noticed that every time I decompile, change and recompile framework-res.apk, the resulting file is significantly smaller than the first one, usually by 2-3MB I must have something set up wrong but I don't know what I'm doing wrong here, can anyone help? It's driving me insane!
Guest burstlam Posted June 12, 2011 Report Posted June 12, 2011 (edited) What I'm trying to do; is to change the description and time text colour of items in the notification pulldown (circled). I decompile framework-res.apk using the apktool using the method provided here. I then change the appropriate hex codes detailed here(section 1D). The change is from #ff000000 to #ff6b6b6b. I build this file by running build.bat. However, if I then decompile this new file, the colours have both reverted to #ff000000. Now: 1) I know that other things work because I successfully used this method to change other colours (the ticker text in the notification bar) when porting this theme to another phone. 2)During the porting process, and this current mod attempt, I noticed that every time I decompile, change and recompile framework-res.apk, the resulting file is significantly smaller than the first one, usually by 2-3MB I must have something set up wrong but I don't know what I'm doing wrong here, can anyone help? It's driving me insane! u need to push a class.dex file(from any other apk) into the apk file before decompile /compile it. otherwise it won't finish correctly . after u make all the changes , rebuild the apk. delete the class.dex file. then sign it back. it should be fine then. Edited June 12, 2011 by burstlam
Guest TheManicGibbon Posted June 12, 2011 Report Posted June 12, 2011 u need to push a class.dex file(from any other apk) into the apk file before decompile /compile it. otherwise it won't finish correctly . after u make all the changes , rebuild the apk. delete the class.dex file. then sign it back. it should be fine then. Any class.dex file at all will work? Just in the root of the apk? And what do you mean by "sign it back"? Thanks so much!
Guest Mushroom_Lord Posted June 12, 2011 Report Posted June 12, 2011 Any class.dex file at all will work? Just in the root of the apk? And what do you mean by "sign it back"? Thanks so much! 1) not sure by the .dex thing I jsut edit things in winrar on the pc or astro on the phone ;) and 2) After compiling, use signapktic from the market to "sign in back" (from your phone) or just sign the apk after compiling with apktool
Guest TheManicGibbon Posted June 12, 2011 Report Posted June 12, 2011 (edited) 1) not sure by the .dex thing I jsut edit things in winrar on the pc or astro on the phone :P and 2) After compiling, use signapktic from the market to "sign in back" (from your phone) or just sign the apk after compiling with apktool I'm using 7-Zip, and is it technically possible to edit stuff on the phone? I have Root Explorer but surely you cant modify framework-res on the phone? ;) Gaah I feel like such an idiot here. Maybe I'm doing things wrong in the first place. What is the best way for me to modify some XML files in framework-res.apk in order to improve my Gingerbread themes? Specifically, involving changing text colours in the notification area pulldown? Thanks! EDIT:A bit more information; I'm trying to change my notification tray/images/text to go from this: (ignore the power control widget) to this: My problems are; I can't find the PNGs to swap! I've compared the drawable-hdpi folders of Blade and Nexus S ROMs and the files that look like they could be for the bars are the same! Also, as described above, I'm having real problems editing the text colour. Edited June 12, 2011 by TheManicGibbon
Guest ricardopvz Posted June 12, 2011 Report Posted June 12, 2011 (edited) I'm using 7-Zip, and is it technically possible to edit stuff on the phone? I have Root Explorer but surely you cant modify framework-res on the phone? ;) Gaah I feel like such an idiot here. Maybe I'm doing things wrong in the first place. What is the best way for me to modify some XML files in framework-res.apk in order to improve my Gingerbread themes? Specifically, involving changing text colours in the notification area pulldown? Thanks! EDIT:A bit more information; I'm trying to change my notification tray/images/text to go from this: (ignore the power control widget) to this: My problems are; I can't find the PNGs to swap! I've compared the drawable-hdpi folders of Blade and Nexus S ROMs and the files that look like they could be for the bars are the same! Also, as described above, I'm having real problems editing the text colour. Use apktool to decompile the framework-res.apk and then modify what you need, compile the framework-res and sign the result file As for the bars, maybe you have to edit smali files, but i warn you this is not easy Edited June 12, 2011 by ricardopvz
Guest ricardopvz Posted June 12, 2011 Report Posted June 12, 2011 (edited) delete this. ;) Edited June 12, 2011 by ricardopvz
Guest TheManicGibbon Posted June 12, 2011 Report Posted June 12, 2011 Yes, I know the process, but it's not working for me; when the apk is recompiled; all my changes revert, and also the issue with the resulting apks being smaller. I'll try the dex thing though.
Guest ricardopvz Posted June 12, 2011 Report Posted June 12, 2011 Yes, I know the process, but it's not working for me; when the apk is recompiled; all my changes revert, and also the issue with the resulting apks being smaller. I'll try the dex thing though. ยด It is smallet because you have not signed it And that dex thing is not needed. (at least i never needed it)
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now