How to decompile / compile framework-res.apk stock 4.3 ? - Sony Xperia T, TL, TX, V

I've tried with apktool but I get errors at decompiling and I can't recompile...
Thanks in advance.

nreuge said:
I've tried with apktool but I get errors at decompiling and I can't recompile...
Thanks in advance.
Click to expand...
Click to collapse
update to newest apktool and appt.exe from android sdk

Related

Android 4.0.4 Not compatible with customizing?

I've tried multiple ways of decompiling and recompiling the systemui.apk, framework-res.apk aswell as add in custom carrier logo and custom status bar background, all of these mods worked on 4.0.3 but are not working with android 4.0.4, any suggestions?
I would try updating sdk and grab the latest aapt.exe from platform-tools and place it in your apktool folder
Sent from my Nexus S 4G using Tapatalk 2 Beta-4
I think I may have found a problem, fergie, in the SDK Manager, I only see SDK for Android 4.0.3, maybe they have not made an update because 4.0.4 has not been an official release???
patched apktool.jar
try this patched version of apktool.jar, this should help by decompiling and compiling some 403 and 404 version apk´s.
original thread is here :
http://code.google.com/p/android-apktool/issues/detail?id=291
FlatEric0074 said:
try this patched version of apktool.jar, this should help by decompiling and compiling some 403 and 404 version apk´s.
original thread is here :
http://code.google.com/p/android-apktool/issues/detail?id=291
Click to expand...
Click to collapse
Appreciate this but the version of apktool.jar I was using works better (1.4.3), with the version you provided above gets errors like crazy when decompiling the systemui.apk, decompiling the framework-res.apk works fine, recompiling shows too many errors to count :/
There is a specific apktool for 4.0.4 systemui which the guy attached. Its a modded version and works perfectly. Myself and others are using it.
Sent from my Nexus S using xda premium
I found out what I was doing wrong!!! Sorry about this guys I guess when I am building the SystemUI.apk I didn't realize that you only had to use the command "apktool b SystemUI" and it would build the apk in the dist folder thanks a lot guys

[Help]Modded MMS.apk to Facebook Style

Can someone help me to mod the background color of MMS.apk like the picture in my attach file (From black to blue) ? or show me how to do it?? thanks everybody in advance
P/s: i uploaded my original MMS.apk as well
here you go
http://rootzwiki.com/topic/19845-how-to-theme-your-mms-a-step-by-step-guide/
MrDSL said:
here you go
http://rootzwiki.com/topic/19845-how-to-theme-your-mms-a-step-by-step-guide/
Click to expand...
Click to collapse
Thanks so much guy! But do u or any know what the problems with my notepad++ is ??
ghost_boy1412 said:
Thanks so much guy! But do u or any know what the problems with my notepad++ is ??
Click to expand...
Click to collapse
yeah
you have to decompile the apk first
otherwise you cant edit the xml files
use apktool or apk manager for that
take this version of apkmanager if you are on ics
http://forum.xda-developers.com/showthread.php?t=1642224
ghost_boy1412 said:
Thanks so much guy! But do u or any know what the problems with my notepad++ is ??
Click to expand...
Click to collapse
i guess you just unzipped the xml's not decompiled them
how to decompile apk's
pa.pn2 said:
yeah
you have to decompile the apk first
otherwise you cant edit the xml files
use apktool or apk manager for that
take this version of apkmanager if you are on ics
http://forum.xda-developers.com/showthread.php?t=1642224
Click to expand...
Click to collapse
picard666 said:
i guess you just unzipped the xml's not decompiled them
how to decompile apk's
Click to expand...
Click to collapse
Thanks so much guys I know what to do now

[Q] Decompile and recompile apk

hello i am trying to edit my SystemUI.apk and when i decompile it i keep getting an errors when i come to re compile it :/
anyone have a good tutorial/program to decompile and recompile apk's
Thanks
MRL3GS

[SOLVED] Error while decompiling and building system apk file

Can anyone please give me a solution to fix this problem? Thanks.
PS: I have searched around but some are a bit different with mine and some are not answered.
You have to install framework files, not SystemUI.
Code:
apktool if framework-res.apk
..
NuriJ said:
You have to install framework files, not SystemUI.
Code:
apktool if framework-res.apk
..
Click to expand...
Click to collapse
Oh I see. LOL-ed at myself haha. Thanks!
NuriJ said:
You have to install framework files, not SystemUI.
Code:
apktool if framework-res.apk
..
Click to expand...
Click to collapse
Just tried. The error still exist.
Can't find the apktool.yml file in the decompiled folder.
exeon said:
Oh I see. LOL-ed at myself haha. Thanks!
Click to expand...
Click to collapse
I always install them manually, to make sure of it.
Delete all installed .apk's in C:/users/<name>/apktool/*.apk
Then pull out framework-res.apk, into C:/users/<name>/apktool/1.apk
And SemcGenericUxpRes.apk into C:/users/<name>/apktool/2.apk
..
---------- Post added at 11:30 AM ---------- Previous post was at 11:28 AM ----------
exeon said:
Just tried. The error still exist.
Can't find the apktool.yml file in the decompiled folder.
Click to expand...
Click to collapse
Apktool generates that file, make sure it isn't a problem with your apktool.
..
NuriJ said:
I always install them manually, to make sure of it.
Delete all installed .apk's in C:/users/<name>/apktool/*.apk
Then pull out framework-res.apk, into C:/users/<name>/apktool/1.apk
And SemcGenericUxpRes.apk into C:/users/<name>/apktool/2.apk
..
---------- Post added at 11:30 AM ---------- Previous post was at 11:28 AM ----------
Apktool generates that file, make sure it isn't a problem with your apktool.
..
Click to expand...
Click to collapse
Redownload the apktool, decompile again, error still popping out, no luck.. Vomit blood.
I searched on google just now and I found some thread saying that pulling out com.htc.resources.apk file from the system and install it through apktool can solve the problem but I can't find the file in my system. Sigh.
Edit: Oh wait wait, I think I found the source problem. Is it deodexed SystemUI.apk cannot be decompile? Because I tried to use the odexed SystemUI.apk for decompiling and it decompile successfully. Ahh how should I mod my SystemUI.apk then??
exeon said:
Redownload the apktool, decompile again, error still popping out, no luck.. Vomit blood.
I searched on google just now and I found some thread saying that pulling out com.htc.resources.apk file from the system and install it through apktool can solve the problem but I can't find the file in my system. Sigh.
Edit: Oh wait wait, I think I found the source problem. Is it deodexed SystemUI.apk cannot be decompile? Because I tried to use the odexed SystemUI.apk for decompiling and it decompile successfully. Ahh how should I mod my SystemUI.apk then??
Click to expand...
Click to collapse
Did you try try this?
http://forum.xda-developers.com/showthread.php?p=43258702
The SystemUI have to be deodexed.
If you decompile the odexed SystemUI you'll get nothing useful, because the resources is in the .odex file.
"com.htc.resources" is "SemcGenericUxpRes" for us.
NuriJ said:
Did you try try this?
http://forum.xda-developers.com/showthread.php?p=43258702
The SystemUI have to be deodexed.
If you decompile the odexed SystemUI you'll get nothing useful, because the resources is in the .odex file.
"com.htc.resources" is "SemcGenericUxpRes" for us.
Click to expand...
Click to collapse
Hmm I think the problem is not at building, it's at decompiling there.
Every time when I decompiling an apk, it shows this error:
Code:
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a0124
and inside the decompiled folder doesn't have apktool.yml file which lead to the failure of building.
Really hard to find a solution for this problem.
exeon said:
Hmm I think the problem is not at building, it's at decompiling there.
Every time when I decompiling an apk, it shows this error:
Code:
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010a0124
and inside the decompiled folder doesn't have apktool.yml file which lead to the failure of building.
Really hard to find a solution for this problem.
Click to expand...
Click to collapse
Some resources is not found, which could be because the framework files isnt installed/properly installed.
Can try to install them, like i said in post #5?
..
NuriJ said:
Some resources is not found, which could be because the framework files isnt installed/properly installed.
Can try to install them, like i said in post #5?
..
Click to expand...
Click to collapse
Found the solution, which is to decompile with original unmodified deodexed apk.
Once the apk is modified, it cannot be decompile again. LOL

How to decompile and recompile framework-res.apk

Hi please I want to know how to decompile and recompile (framework-res.apk) thanks:good:
Hi Someone can help me
First you need to Deodex your system. Then you can decompile apks. Use this tool for Windows: https://forum.xda-developers.com/showthread.php?t=1633333
Thank you

Categories

Resources