[Q] Modding rom files - Captivate Q&A, Help & Troubleshooting

when it comes to modifying the xml files that come with a roms framework, I would have to use backsmali to disassemble the framework odex file right? Provided my rom hadn't already ben deodexed.
After doing that will I still have to decompile the apk before the xml files become tradable again? I've tried looking around for threads on the topics. But all information I can find about these things, the threads don't relate to the same subject so its hard to put compiling and smali together when everything is using different examples to explain themselves.

http://forum.xda-developers.com/showthread.php?p=8090714#post8090714
This guide for modifying android policy might help

Yeah! That's the thread that got me started. But when it comes to using smali I'm not really sure, because the how to's I've read on that really only explain how to deodex files.
I'm trying to figure out what happens next. Because the OP of that thread doesn't go into detail.

Related

If you need XML assistance...

I am just getting rolling with Android developement and hacking so while I get my legs on the app developement and theming I thought I would offer my assistance with any xml editing that needs to be done as I noticed there were quite a few references to people needing help editing xml.
PM me with any assistance you need editing/modifying xml.
dashultz said:
I am just getting rolling with Android developement and hacking so while I get my legs on the app developement and theming I thought I would offer my assistance with any xml editing that needs to be done as I noticed there were quite a few references to people needing help editing xml.
PM me with any assistance you need editing/modifying xml.
Click to expand...
Click to collapse
What tools are you using? Once you pull a XML file from an APK what are you using to open, read, and edit the files? Thanks!
KenIzz said:
What tools are you using? Once you pull a XML file from an APK what are you using to open, read, and edit the files? Thanks!
Click to expand...
Click to collapse
Decompile using apk manager, then edit whatever xml using something like notepad++ or any other rich text editor. After done editing, compile and sign.

[Q] Searching for an automated way to deodex and zipalign

There are some ROMs around that are deodexed and zipaligned. The ROMs around here unfortnately are themed (not to my taste) and/or have removed Samsung stuff that i use. I want a nearly untouched FW (i remove a few Samsung apps on my own).
So i'm searching for an automated method (that can also be used for future FWs) to deodex and zipalign the files of my phone (maybe only some binaries or java applications and a batch file).
I can manage to pull/push all files from/to /system/app and /system/framework but i'm not able to do the rest...
Also very interested in this. Or a clean kitchen or a how to on making a kitchen to mod our roms.
dutchcow said:
Also very interested in this. Or a clean kitchen or a how to on making a kitchen to mod our roms.
Click to expand...
Click to collapse
I just wanted to create a thread about MODIFYING / CREATING CUSTOM ROMS FOR THE i9000.
Does anyone know how to modify (for example, Tayutama's JPM Full ROM) ROMs?
I googled and just found some HTC ROM HowTo's.
Check my signature for all the tools u shud need in terms of deodexing, editing apks, creating signed update.zip. Thats all you really need i think :\
A zipaligner is missing.
yes that'd be perfect! trying to optimize my device myself here too.
if there's no automated way could someone be so kind to post some instructions as to how?
found some stuff on the g1 forums but i'm not sure if it'll work...
Adevem said:
yes that'd be perfect! trying to optimize my device myself here too.
if there's no automated way could someone be so kind to post some instructions as to how?
found some stuff on the g1 forums but i'm not sure if it'll work...
Click to expand...
Click to collapse
+1, i want to do this myself too , and let devs do more imporant things
Could someone with more knowledge help us out with the basics?
+1 for me!! Now one has reply since last year, but proably there is some app that came out that does all this or nobody whant to doit any more...
So?? How to deodex/zipalign proper hand made roms??
PIRATA! said:
+1 for me!! Now one has reply since last year, but proably there is some app that came out that does all this or nobody whant to doit any more...
So?? How to deodex/zipalign proper hand made roms??
Click to expand...
Click to collapse
Quite an old topic, you'd be better off just creating a new thread.
Use this: http://forum.xda-developers.com/showthread.php?t=633246

help with deodexing gratiend 0.61 rom

i'm really enjoying the new gratiend 0.61 rom, works really great. but i have a little problem with the orientation of the hebrew langugae.
in hebrew we write from right to left so the numbers in the rom get mixed up and all of the hebrew text are alligned to the left instead to the right.
in previous versions i fixed it myself by fixing the framework.jar file that contained the classes.dex file.
in this version they used odex files and so BlaY0 suggested me to deodex all of the framework files.
the problem is that i'm a little new to phone hacking and everywere i look deodexing described as a long tiring procedure and everyone says it would just be better to use another rom, i thing i wouldn't like to do.
is there an easier way to do this or someone who could do it for me?
i would really appreciate any help on the matter.
edit:
i think i miss understood BlaY0, he said something about uploading it to a kitchen and deodex?
sorry for the very very noobish question, but what is the kitchen?
This is actually a Q for general discussion...
Kitchen is:
http://forum.xda-developers.com/showthread.php?t=633246
...deodexing using this Kitchen is like walk in a park...

[Q] .apk file editing

My knowledge about the android development is mediocre....I have Samsung galaxy tab 2 P3100.....I rooted that myself and i can flash different roms.....thats all i know about android....Any help will be appreciated...
Is there any way i can edit .apk file. I want to change the GUI of a particular application. The name of the application is 7notes with mazec.
the attachment contains 2 images.
1) This is how the original app looks like [red square]
2) I want the app to look like this...
I can send the .apk file or only instructions also will do...
Thanks in advance!!
Similarly can i edit the GUI of any application..
You can edit the .apk but you have to decompile with apktool and edit .xml files to accomplish this. I'm no programmer but I have learned how to decompile and recompile .apk and make minor adjustments. If you know how to write xml then it shouldn't be that difficult but first you should search the forums for how to use apktool.
Steeleio said:
You can edit the .apk but you have to decompile with apktool and edit .xml files to accomplish this. I'm no programmer but I have learned how to decompile and recompile .apk and make minor adjustments. If you know how to write xml then it shouldn't be that difficult but first you should search the forums for how to use apktool.
Click to expand...
Click to collapse
Thnx Steeleio....i will try that.....i dont know xml....i will search on that too.....can u suggest me some forums to learn apktool?
I have done THIS guide which should be of some help, but repositioning buttons and icons is something you'll need to Google for and experiment with.
AkshayGTP3100 said:
Thnx Steeleio....i will try that.....i dont know xml....i will search on that too.....can u suggest me some forums to learn apktool?
Click to expand...
Click to collapse
XperienceD said:
I have done THIS guide which should be of some help, but repositioning buttons and icons is something you'll need to Google for and experiment with.
Click to expand...
Click to collapse
Akshay, your welcome. The link Xperience provided seems to be an excellent guide to apk edits. Once you learn how to decompile and start relating the xml coding with how things are laid out in the UI, you should be able to figure out how to produce the output that you want. Good luck.
XperienceD said:
I have done THIS guide which should be of some help, but repositioning buttons and icons is something you'll need to Google for and experiment with.
Click to expand...
Click to collapse
I read your entire post and it was very helpful to get started.....I successfully decompiled the .apk using apktool.....found out where the .img images are.....now i guess i will have to edit the xml code related to the .imgs i want to be relocated....right?.... just point me in the right direction.... i can send you the apk file of the application....
AkshayGTP3100 said:
I read your entire post and it was very helpful to get started.....I successfully decompiled the .apk using apktool.....found out where the .img images are.....now i guess i will have to edit the xml code related to the .imgs i want to be relocated....right?.... just point me in the right direction.... i can send you the apk file of the application....
Click to expand...
Click to collapse
Great stuff. It is now about figuring out how to go about repositioning the images, but that task is something you're going to have to do I'm afraid as it can be a time consuming process, especially when learning, plus repositioning is above my skill set.
AkshayGTP3100 said:
I read your entire post and it was very helpful to get started.....I successfully decompiled the .apk using apktool.....found out where the .img images are.....now i guess i will have to edit the xml code related to the .imgs i want to be relocated....right?.... just point me in the right direction.... i can send you the apk file of the application....
Click to expand...
Click to collapse
Look in /res/layout/
Send me the APK, I'll see if I can guide you in the right direction.
DemonWav said:
Look in /res/layout/
Send me the APK, I'll see if I can guide you in the right direction.
Click to expand...
Click to collapse
Here is a link for the .apk file...... https://www.dropbox.com/sh/xnm0f7qax191raw/KZRRuJSsh-
I found the layout folder already.....i think the related xml code is in the /res/layout/keyboard_handwriting.xml file.... am i correct?
i dnt know anything about the xml.....mean while, i will try to find out how to relocate the layout for the buttons.....

Hide statusbar clock and battery, modify SystemUI.apk

This might be the completely the wrong place, but can someone do my a huge favor and modify my SystemUI.apk to remove the clock and possibly the battery. I have tried using baksmali and apktool but i must be doing something wrong, thanks.
Yep, it's the completely wrong place.
-> http://forum.xda-developers.com/showthread.php?t=2233991
Thanks guys, but thats the issue, I cant use Apktool.
nintendolinky said:
Thanks guys, but thats the issue, I cant use Apktool.
Click to expand...
Click to collapse
I can guide you on IRC
nintendolinky said:
This might be the completely the wrong place, but can someone do my a huge favor and modify my SystemUI.apk to remove the clock and possibly the battery. I have tried using baksmali and apktool but i must be doing something wrong, thanks.
Click to expand...
Click to collapse
Did you have a look there ? ( v-b-n thread)
http://forum.xda-developers.com/showthread.php?t=2233991
Cheers.
Yeah I looked at that, and i can decompile the apk, but i get errors, im thinking it might have something to do with, proprietary framework files i need, which i don't have. And thanks Mike1986, I will go on your IRC now.
Can anyone do me a huge favour, could someone please remove the clock and the battery from the statusbar. Looking at this Remove Clock it guides people through on how to do it, I cant as I seem to be unable too, can anyone help.
This isnt asking for help, this is asking for someone to do it for you which is different. If you dont wanna understand the process, you probably shouldnt be asking for the mod
Talk to mike on IRC to begin with
Make sure you install the framework files for the One (pull it from /system/framework) to apktool and THEN try decompiling it
Hi try this one.
Dont work mate, but thanks anyways.

Categories

Resources