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!

So you want to edit xml's or more... an ADB. APK Manager How-To (Basics)

Thx OPer for posting. the most recent APKManager version is the only one I've used- happy that the bugs weren't just me, and looking fwd to older ver.

Question: after a single xml edit, say the strings.xml (for examp), during recompiling, when it asks you to delete the resources file, that should be the only file to delete in the "keep" folder, right? (since you can't really navigate to the strings.xml in compiled state)?

Yes just the resources.arsc in those cases where you only editted an xml in the values folder...
What bugs have you experienced with APKMgr 4.9?? and you can always an older version of APKTool in that 4.9.... using 4.8 leaves you unable to control whather or not you want the -v in the drawable folder names..

How does this work? I was just recompliling a facebook apk and it added a second set of folders in drawables without all the -v4 tags so there was a drawable/hdpi and a drawable/hdpi-v4

So when you select Y and then Y, the keep folder has a set of both of those?... what was in the original APK?... I think I remember that happening once to me, and deleting the -v4 from thoise folders and just deleting the entire drawable-hdpi folder without the -v4, netted me those folders without any -v4.... but all in all my APKManager 4.9 almost never outputs those -v4
 
I"m having problems decompiling framework-res.apk. The log says:


--------------------------------------------------------------------------
|Thu 02/03/2011 -- 9:05:59.88|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
'java' is not recognized as an internal or external command,
operable program or batch file.
--------------------------------------------------------------------------
|Thu 02/03/2011 -- 9:06:22.47|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
'java' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\Matt and Alex\Desktop\Android related\apk manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\Matt and Alex\Desktop\Android related\apk manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
'java' is not recognized as an internal or external command,
operable program or batch file.

Anyone know what this means? This is the first time i've had problems decompiling an apk.
 
notification text color isn't in styles... check the status_bar xml files in the layout folder.


powder.... where on your computer is the Java JDK installed?
 
C:/Program files/java/

In the java file is jdk1.6.0_23 and jre6. I was using apk manager for a while and it never gave me this error.
 
my guess is that you updated Java (or windows did) and now you have a version that doesnt match your environment variables.
 
It's funny cuz all of a sudden, right after i actually got an xml edit to work for me... both eclipse and apk manager stop working for me.
 
So when you select Y and then Y, the keep folder has a set of both of those?... what was in the original APK?... I think I remember that happening once to me, and deleting the -v4 from thoise folders and just deleting the entire drawable-hdpi folder without the -v4, netted me those folders without any -v4.... but all in all my APKManager 4.9 almost never outputs those -v4

The original apk just had the 6 folders with the -v4 at the end. After recompiling it added a second set of folders without it (re. drawable-hdpi, drawable-land-hdpi, drawable-land-mdpi, drawable-ldpi, drawable-port-hdpi, drawable-port-mdpi)
 
So can anyone tell me how to make apk manager see java again? I've reinstalled every java i have and still nothing. I know they're there.
 
notification text color isn't in styles... check the status_bar xml files in the layout folder.


powder.... where on your computer is the Java JDK installed?

Well i fingered out the java problem. Have compiled a few xml's successfully now so my mind is somewhat at ease.

However, you say look in the status_bar xml's in the layout folder of i'm guessing SystemUI.apk. I edited status_bar_expanded.xml and it did nothing. There were 2 hex values in there that seem to me to be the colors i'm looking for. What this leaves me believing is that they're in Cyanbread.apk in the values folder and colors.xml. My original concerns are now kind of like, a revelation i guess, since you told me that resources.arsc IS the values folder. So does this mean that after i compile, do the delete resources.arsc thing, that i should drop that into my flashable and it should change the color codes i'm looking for??

I guess all signs kinda point to yes, or something similar to yes lol. I've edited status_bar_expanded.xml and checked every other status bar referenced xml in systemui/res/layout and there's no hex values. This new theme chooser is turning out to be a real pain in the ass.

I'd really really appreciate your input on this. Thanks in advance, you've helped me more than you know.
 
Xkape, If I had a better paying job I would send you a nice sized donation for all of your hard work. You are awesome. Thanks!!!
 
So when you select Y and then Y, the keep folder has a set of both of those?... what was in the original APK?... I think I remember that happening once to me, and deleting the -v4 from thoise folders and just deleting the entire drawable-hdpi folder without the -v4, netted me those folders without any -v4.... but all in all my APKManager 4.9 almost never outputs those -v4

The original apk just had the 6 folders with the -v4 at the end. After recompiling it added a second set of folders without it (re. drawable-hdpi, drawable-land-hdpi, drawable-land-mdpi, drawable-ldpi, drawable-port-hdpi, drawable-port-mdpi)

yeah, all those are in the keep folder right?... so delete the non -v4 folders and delete the -v4 from those folder names that have that... and recompiling should net you only the 6 drawable folders without the -v4.

let me know if that was what you were talking of
 
notification text color isn't in styles... check the status_bar xml files in the layout folder.


powder.... where on your computer is the Java JDK installed?

Well i fingered out the java problem. Have compiled a few xml's successfully now so my mind is somewhat at ease.

However, you say look in the status_bar xml's in the layout folder of i'm guessing SystemUI.apk. I edited status_bar_expanded.xml and it did nothing. There were 2 hex values in there that seem to me to be the colors i'm looking for. What this leaves me believing is that they're in Cyanbread.apk in the values folder and colors.xml. My original concerns are now kind of like, a revelation i guess, since you told me that resources.arsc IS the values folder. So does this mean that after i compile, do the delete resources.arsc thing, that i should drop that into my flashable and it should change the color codes i'm looking for??

I guess all signs kinda point to yes, or something similar to yes lol. I've edited status_bar_expanded.xml and checked every other status bar referenced xml in systemui/res/layout and there's no hex values. This new theme chooser is turning out to be a real pain in the ass.

I'd really really appreciate your input on this. Thanks in advance, you've helped me more than you know.

I don't know anything about the ROM you're decompiling, however in whichever XML you are trying to edit whatever you are trying to change, instead of a hex color code it could be pointing to a color from the colors.xml.... basically something like '@color/perms_dangerous_perm_color' or to that effect...

and the resources.arsc needs to be deleted even if you never editted any XML from the values folder and only an XML from layout, drawable, or other
 
Back
Top