[Q] Decompiling and compiling system app - Galaxy S I9000 Q&A, Help & Troubleshooting

I want to translate AriesParts.apk system app (Galaxy S Settings), but I noticed that after decompiling and compiling it (even without any changes), app doesn't show in app drawer and I can't install it ('Application not installed"), tried copying to \system\app and changing permissions.
Also tried zipalign, signed, without signing...
I'm wondering if it's something related to deodex/odex.
How I can edit this app?
Code:
http://speedy.sh/9nwTW/AriesParts.apk
Extracted from Team ICSSGS RC4.2.

Your rom must be deoxed

So, what can I do now (if I have odexed ROM) with this APK?

If I understand you must to deodex the rom;I use for this xUltimate and here is the link where is show to made:http://forum.xda-developers.com/showthread.php?t=1113937
Is useful the next link;http://forum.xda-developers.com/showthread.php?t=695701
sorry for my bad english

But is there an option to make ODEX from DEODEX?
I don't want to deodex my ROM, it can cause issues.

Related

[Q] modding APKs and ODEX files

Hi, just have a question regarding modding apks inside /app in odexed roms.
Have read a few threads regarding deodexing and decompiling apks, and just wish to clarify one thing:
For apks which have a corresponding odex file, is it possible to modify them without deodexing the whole rom? Intend to edit some xml files in the Contacts.apk file but wasn't sure of the exact procedure.
Here's what I tried:
1. Used xultimate to deodex
2. Used apktool to decompile apk
3. Edited xml
4. Used apktool to compile
5. Added META-INF and AndroidManifest.xml from original apk using 7zip
6. Deleted Contacts.apk and Contacts.odex
7. Copied Contacts.apk over
Thanks in advance!
ock said:
Hi, just have a question regarding modding apks inside /app in odexed roms.
(...)
For apks which have a corresponding odex file, is it possible to modify them without deodexing the whole rom? Intend to edit some xml files in the Contacts.apk file but wasn't sure of the exact procedure.
Click to expand...
Click to collapse
+1
I am also interested in the answer ...
I would like to theme some widgets and theme the statusbar on a stock ROM. I am not sure is it possible ? And what is the procedure with the odexed files ?

[Q] Theming an Odexed ROM Possibilities

Before I get started, I understand the difference between an odexed rom and de-odexed rom. I understand what that means for themes.
But my question is, is there way to rebuild the odex file for an apk?
The story is, I'm on a Stock 2.1 Rom on my Samsung Captivate. I've changed fonts around already. But I want to add some framework animations, similar to the ones found in a few custom ROMs. I understand that with APK manager I can decompile an apk so that changes can be made. I also understand that because my ROM is odexed that I can't just put the apk back on the phone and everything will be fine.
Isn't there a way to take a de-odexed apk and make an odex file for it so that it can work again?
i really wish someone had answered this.. because i'm in the same boat. I'm using Gingeritis... an odexed rom for my tbolt. LOVE it. but i want to theme it. and its odexed and idk wtf to do
traumahawk said:
i really wish someone had answered this.. because i'm in the same boat. I'm using Gingeritis... an odexed rom for my tbolt. LOVE it. but i want to theme it. and its odexed and idk wtf to do
Click to expand...
Click to collapse
In a odexed ROM (not sure if using properly the word, I mean a ROM with apk and odex files) You can change the apk and odex files of the file (delete both) and put in a deodexed apk (framework-res.apk for example) of a deodexed ROM (not just deleting the odex. You need to fins a deodexed ROM, then pick the .apk
It will probably work (most devs do that and I have done that too with framework-res.apk and other system apk. Just change apk and odex for a "full" apk of another deodexed ROM

re-odex apk

i am currently using an odexex rom, i deodexed the mms.apk + mms.odex to make some changes, after deodexing iam left with mms.apk..i have made the changes to the apk now how can i create mms.odex from this apk?..i have tried just using the apk but messaging force closes, i also know that my changes are fine because if i just try to use the unedited apk it also force closes..any help
well got the problem fixed, tried the latest apktool and it works, previously was using apk manager 4.9, maybe it cannot handle gingerbread apk's properly

[Q] ODEX ROM Mod

After trying several days to DEODEX an ODEXED ROM, I gave up because It's not working good for me, Bootloops, APK FC's and many more. So I decided to stick with ODEX Stock till someone does it properly. Im still new to this.
So since im on ODEX Stock -> I need to know whether its possible to -
* Mod PNG files inside APK's using Winzip
* Mod Framework-Res.APK to edit the XML "Bools" file to add CRT effect
* Use Deodexed APK's inside System/app folder
If the above is possible, are there things that I should keep in mind to not mess up the system ?
Thanks a lot guys !
Just download an already deodexed custom ROM. Most are.
Sent from my superior GT-N7000 using Tapatalk

[solved] Apktool not working?

This Problem solved by downloading apkmanager.
Hi guys.
I just have to make a small change in the Settings App.
I have done that before on official cm7 and even on stock.
Problem is that if i just decompile the apk using apktool, then even compile it with no change at all. Then Sign It, and copy it to system /app with permissions..It just doesn't show up in the app drawer even after a reboot..
This is surely a problem with apktool, coz i'm not even changing anything, just decompiling and compiling.
The same for cm7 themes. i try to compile cm7 themes but they just don't work when i copy them to system /app.
I copied it to sd card and tried to install from sd card. And it works, but not when it's included in system /app.
Problem solved by downloading apkmanager.
masterex567 said:
Hi guys.
I just have to make a small change in the Settings App.
I have done that before on official cm7 and even on stock.
Problem is that if i just decompile the apk using apktool, then even compile it with no change at all. Then Sign It, and copy it to system /app with permissions..It just doesn't show up in the app drawer even after a reboot..
This is surely a problem with apktool, coz i'm not even changing anything, just decompiling and compiling.
The same for cm7 themes. i try to compile cm7 themes but they just don't work when i copy them to system /app.
I copied it to sd card and tried to install from sd card. And it works, but not when it's included in system /app.
How do i fix this?
Please Reply Soon, as this is urgent.
Click to expand...
Click to collapse
Reboot ?
Sent from my GT-S5830 using xda premium
Nope not working...
Trying to make Settings.apk ICS Style for unofficial cm7. Making it work on the official cm7 was a left hand game. But I don't know what's the issue wid this one.
I tried apk manager, and it's getting errors at decompiling it.
Lemme see what else i can dig up. :/
Why is this flagged as urgent?
On: Which version of apktool do you use? The newer versions may not be compatible!
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________
Urgent because it's important and i need it for rom cooking.
Using 1.3.2.
Which version do you recommend?
masterex567 said:
Urgent because it's important and i need it for rom cooking.
Using 1.3.2.
Which version do you recommend?
Click to expand...
Click to collapse
Try apk multi-tools
http://apkmultitool.com/node/14
it works without problems for me
your problem is that you're signing the apk. Stock apps, like Settings and SystemUI, cannot be signed. You need to keep the original apk (the one you've decompiled) and change files inside it.
Take a look here: http://forum.xda-developers.com/showthread.php?t=1664292
Renan Lazarotto said:
your problem is that you're signing the apk. Stock apps, like Settings and SystemUI, cannot be signed. You need to keep the original apk (the one you've decompiled) and change files inside it.
Take a look here: http://forum.xda-developers.com/showthread.php?t=1664292
Click to expand...
Click to collapse
I tried.
Then just used apk manager.
Got errors on decompiling copied the apktool 1.4.3 files to the "other" folder.
Decompiled succesfully
followed instructions.
And it worked.
It's not urgent. I'm changing the title.
eagleeyetom said:
It's not urgent. I'm changing the title.
Click to expand...
Click to collapse
It was.
but now it's okk.
You can close this thread.

Categories

Resources