Error in decompiling framework-res.apk - Sony Xperia T, TL, TX, V

i want to decompile frame work-res.apk
but when i decopile i got errors
i install frame work-res.apk but i couldnt installSemcGenericUxpRes.apk
please help

Mactavish said:
i want to decompile frame work-res.apk
but when i decopile i got errors
i install frame work-res.apk but i couldnt installSemcGenericUxpRes.apk
please help
Click to expand...
Click to collapse
Use an updated/latest version of Apktool; install the framework first, and then the SemcGenericUxpRes.apk.

Related

Sign framework-res.apk on Windows 7

Hello,
how can i sign framework-res.apk on Windows x86????
a.woellert said:
Hello,
how can i sign framework-res.apk on Windows x86????
Click to expand...
Click to collapse
I forgot how you do it, search it. Search "Test sign windows"
a.woellert said:
Hello,
how can i sign framework-res.apk on Windows x86????
Click to expand...
Click to collapse
Why do u want to sign it ? if you are editing images you can simply open the apk as a zip file and drag the newly edited png's into the correct folders. Then adb push it to your phone. If you are compiling from source thats a different story, i havent done that so i would not know sorry.
Use Metamorph, but first try using the "SEARCH" option to get your answers. It's really not that hard.
Hi,
I try autosign.zip...Bootloop.
Then i try Win-sign.zip.....Bootloop
Next i will try metamorph
Why i become allways a bootloop.
I just editing one png picture (stat_sys_battery_charge_anim5.png)
The ROM is "SuperEclairv30BETA2.zip" and i want to port the xperia theme.
Here is the Original ROM:
http://sharebee.com/8a52ab3f
and here is my bootloop ROM:
http://sharebee.com/d93c1367
i change one .png picture, with the same pixel (25x25) and the same bit (8bit)
Best Regards
Andi
a.woellert said:
Hi,
I try autosign.zip...Bootloop.
Then i try Win-sign.zip.....Bootloop
Next i will try metamorph
Why i become allways a bootloop.
I just editing one png picture (stat_sys_battery_charge_anim5.png)
The ROM is "SuperEclairv30BETA2.zip" and i want to port the xperia theme.
Here is the Original ROM:
http://sharebee.com/8a52ab3f
and here is my bootloop ROM:
http://sharebee.com/d93c1367
i change one .png picture, with the same pixel (25x25) and the same bit (8bit)
Best Regards
Andi
Click to expand...
Click to collapse
Try making the rom by signing the entire ROM without signing the individual .apk. It should boot then.
An idea!
a.woellert said:
Hi,
I try autosign.zip...Bootloop.
Then i try Win-sign.zip.....Bootloop
Next i will try metamorph
Why i become allways a bootloop.
I just editing one png picture (stat_sys_battery_charge_anim5.png)
The ROM is "SuperEclairv30BETA2.zip" and i want to port the xperia theme.
Here is the Original ROM:
http://sharebee.com/8a52ab3f
and here is my bootloop ROM:
http://sharebee.com/d93c1367
i change one .png picture, with the same pixel (25x25) and the same bit (8bit)
Best Regards
Andi
Click to expand...
Click to collapse
Andi,
If you have Eclipse setup, you could use a sample apk for testing your png edit. Drop it in your res/drawable folder of the sample apk. Eclipse will tell you if your png is valid for the android version chosen or tell you it not going to work with the error code. You would be saving steps and headaches before your flash. I also recommend using MetaMorph for the job to further skip your steps in signing apk's or zips...
K dude, if ur editing a png you DONT need to sign framework-res.apk
All u have to do is open it in your favorite compressed archive viewer 7zip/winzip blah blah
Then go into appropriate folder, drag the picture u want to edit out of it to ur computer somewhere, edit it and drag it back into the zip n then push it to your phone. SIMPLE.
Not for nothin' fellas but this page is the #1 google return on "sign apk windows7" and though I know you're just talking themes here but ... throw the rest of us googlers a bone and copypaste some instructions pretty please
In the meantime I'll keep googling.
d0ugie said:
Not for nothin' fellas but this page is the #1 google return on "sign apk windows7" and though I know you're just talking themes here but ... throw the rest of us googlers a bone and copypaste some instructions pretty please
In the meantime I'll keep googling.
Click to expand...
Click to collapse
NewYork love! lol
There is a apk on the market called signapktic.apk it should be able to sign it for you.
To sign on windows, you must have java jre or jdk installed to use the signapk.jar or the testsign.jar .

[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

[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

need help about decompile framework-res.apk

hi all
i got these error when decompile homani framework-res.apk port for TX. please help. thanks
C:\apktool>apktool.bat d framework-res_homani_v2.apk
Exception in thread "main" java.lang.IllegalArgumentException: MALFORMED
at java.util.zip.ZipCoder.toString(Unknown Source)
at java.util.zip.ZipFile.getZipEntry(Unknown Source)
at java.util.zip.ZipFile.access$900(Unknown Source)
at java.util.zip.ZipFile$1.nextElement(Unknown Source)
at java.util.zip.ZipFile$1.nextElement(Unknown Source)
at brut.directory.ZipRODirectory.loadAll(ZipRODirectory.java:110)
at brut.directory.ZipRODirectory.loadFiles(ZipRODirectory.java:95)
at brut.directory.AbstractDirectory.getFiles(AbstractDirectory.java:39)
at brut.directory.AbstractDirectory.getFiles(AbstractDirectory.java:33)
at brut.directory.AbstractDirectory.containsFile(AbstractDirectory.java:66)
at brut.androlib.ApkDecoder.hasSources(ApkDecoder.java:197)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:83)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Click to expand...
Click to collapse
Post me your framework.
dully79 said:
Post me your framework.
Click to expand...
Click to collapse
OK. thanks in advanced
https://www.dropbox.com/s/1d5ttggidnch6ps/Xperia_i1_Full_Framework_Port_For_Xperia_TX%28No-Theme%29_v2.zip
Wheres it from and what have you done to it?
dully79 said:
Wheres it from and what have you done to it?
Click to expand...
Click to collapse
i've got it from http://sonyviet.vn/diendan/threads/25751/
And i want decompile to change something in it. please help. i dont know why can't decompile it. i modded many things and all good but only this file is not.
I asked owner thread but him dont want to help me. he is not kind enough
devilmaycry2020 said:
i've got it from http://sonyviet.vn/diendan/threads/25751/
And i want decompile to change something in it. please help. i dont know why can't decompile it. i modded many things and all good but only this file is not.
I asked owner thread but him dont want to help me. he is not kind enough
Click to expand...
Click to collapse
Have you tried installing it?
Code:
apktool if framework-res.apk
have you added things into the apk?
dully79 said:
Have you tried installing it?
Code:
apktool if framework-res.apk
have you added things into the apk?
Click to expand...
Click to collapse
yes, it did it already.
could you decompile it ? no, i hadn't put anything into that apk yet
It reports it as malformed, so it's probably been modified incorrectly.
Speak to whoever ported it.
dully79 said:
It reports it as malformed, so it's probably been modified incorrectly.
Speak to whoever ported it.
Click to expand...
Click to collapse
this framework work on my phone but still some bug so i want to edit it. i said i asked him but he didn't answer me. so no way ?
It wont allow me to decompile and i have my android sdk up to date and ive installed the framework.
Have you added any modifications AFTER installing?
If yes, then try the unmodified version.
If no, then you will have to wait for an answer or look for a work around.
When the new ICS versions were released we had to use older/modified versions of aapt and apktool.
See if you can find any and try that. I think i used wanams modified apktool from the sgs2 theme thread.
dully79 said:
It wont allow me to decompile and i have my android sdk up to date and ive installed the framework.
Have you added any modifications AFTER installing?
If yes, then try the unmodified version.
If no, then you will have to wait for an answer or look for a work around.
When the new ICS versions were released we had to use older/modified versions of aapt and apktool.
See if you can find any and try that. I think i used wanams modified apktool from the sgs2 theme thread.
Click to expand...
Click to collapse
thanks. i didn't add any modifications AFTER installing . i mean the apk is untouch. but couldn't decompile . that's all.
devilmaycry2020 said:
thanks. i didn't add any modifications AFTER installing . i mean the apk is untouch. but couldn't decompile . that's all.
Click to expand...
Click to collapse
please help.

How to decompile / compile framework-res.apk stock 4.3 ?

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

Categories

Resources