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.
Related
hey guys..
Lately everything's been slowing me down, my beloved HD2 still under repair (it's already been 5 days)
My PC is low end piece of crap, can't even run emulator properly.
Just now finnished on modding SystemUI.apk , and I need tester and feedback.
Recommended only for experienced fellow developers.
Its a apk,still not a flashable-zip(Still haven't learn to do this)
manually move to sysstem/app/
don't forget back-up original SystemUI
Nice job man, looks great. Hopefully someone will be able to assist you with this
chrisrj28 said:
Nice job man, looks great. Hopefully someone will be able to assist you with this
Click to expand...
Click to collapse
thanks for the compliment.
hopefully, yea.. right now i'm trying to fix the problem with what i'm facing first.
afterward making this theme into zip for recovery,but still dunno how to do it..
Indeed such a nice job, would be even more awesome if you made more colours .
And there are many tuts on how to make a flashable zip, I can even help you with that.
Marvlesz said:
Indeed such a nice job, would be even more awesome if you made more colours .
And there are many tuts on how to make a flashable zip, I can even help you with that.
Click to expand...
Click to collapse
yea..would like to make more colours too,but too bad that my beloved HD2 is currently under repair cuz of power issue
NWY will search on making flashable zip later on when my theme is complete then
Need tester for systemUI..
anyone??
DoctorGore said:
Hey dude. I replaced your SystemUI over mine in V0.4 of the ROM, and rebooted, yet nothing changed. I also tried installing the .apk from inside /system/app but it wouldn't yet me. What am I doing wrong?
I'm about to install V0.5 of the ROM now anyways, but it'd be cool to see an updated version with more colour options.
Click to expand...
Click to collapse
Did u change the apk permission to rw-r-r??
If still nothing happen, let me know..
DoctorGore said:
Doesn't it come with the correct permissions it needs?
I just replaced it again, this time it 'worked', but now I have no status bar or nav bar. Tried giving it all the permissions, same thing.
Click to expand...
Click to collapse
Not really sure about that, I guess there is some problem with the mod I've made
and it does not come with set permissions as I only decompiled & recompiled the file and modded it.
Anyway thanks for the feedback.
Currently having hard time on testing out the theme without my HD2, for now will stop uploading files and just making mod with the updated ROM.
will be back after finished modding & testing with it.
my latest work for the theme are attached, but i don't know if it's working or not, I'm still new in almost everything here.
hope this time everythings went well.
oroo708 said:
Not really sure about that, I guess there is some problem with the mod I've made
and it does not come with set permissions as I only decompiled & recompiled the file and modded it.
Anyway thanks for the feedback.
Currently having hard time on testing out the theme without my HD2, for now will stop uploading files and just making mod with the updated ROM.
will be back after finished modding & testing with it.
my latest work for the theme are attached, but i don't know if it's working or not, I'm still new in almost everything here.
hope this time everythings went well.
Click to expand...
Click to collapse
think you might need framework.apk as well
wis1152 said:
think you might need framework.apk as well
Click to expand...
Click to collapse
Framework.apk?as in for what might that be?
more detail please.
I've already included framework-res.apk on my latest mod in this post here
oroo708 said:
Framework.apk?as in for what might that be?
more detail please.
I've already included framework-res.apk on my latest mod in this post here
[/QUOT
So you have,silly me.feedback no change apart from no top bar or soft keys:-(
Sent from my HTC HD2 using xda premium
Click to expand...
Click to collapse
You play only with pictures? Or replaced the code? can do for Tosti 0.6? I can help with development. I can rewrite the whole framework-res.apk =)
jack_nuclear said:
You play only with pictures? Or replaced the code? can do for Tosti 0.6? I can help with development. I can rewrite the whole framework-res.apk =)
Click to expand...
Click to collapse
sure, if that is ok with you.
for now, only mod with pictures. haven't got the time to touch on the code yet.
can you make it for 0.6 Thanks it looks wonderfull
jirka607 said:
can you make it for 0.6 Thanks it looks wonderfull
Click to expand...
Click to collapse
Mostly there's no change for 0.5 and 0.6, only just the launcher. will upload with some other stuff later.
now just finished fixing SystemUI which have some problem before.
hopefully this time its working
update2.zip
You did everything wrong!
1) with install (you must use updater-script and update-binary in META-INF\com\google\android\)
2) With apk (Where is AndroidManifest.xml?)
3) Cant unpack apk (i need for my rom)
If you give me pictures (and changes in the code) i will help you! Wait for you response here, PM, [email protected]
p.s. You will remake Settings.apk for red icons? You draw the icons yourself? If not then tell where you take them, please
Hope you dont mind, I put your theme in a zip you can run from CWM forgot to sign them.. So sig verify off to flash. If you cant figure out what i did, or where to add more changes pm me. Dont be mad its all your work I take no credit, just put in a package I used. Both zips work with IceCreamTosti M3, v0.6, v0.7 and should work with any AOKP ICS build. If any of you try on another ICS build please confirm
Well I made another, your theme + red inside settings.apk. Again these should work on any ICS rom. They work with IceCreamToasti v0.6 for sure
jack_nuclear said:
You did everything wrong!
1) with install (you must use updater-script and update-binary in META-INF\com\google\android\)
Click to expand...
Click to collapse
Guess I have to learn through making zip again
jack_nuclear said:
2) With apk (Where is AndroidManifest.xml?)
Click to expand...
Click to collapse
Thanks, just realize missed it out
jack_nuclear said:
3) Cant unpack apk (i need for my rom)
Click to expand...
Click to collapse
Its working for me.
jack_nuclear said:
If you give me pictures (and changes in the code) i will help you! Wait for you response here, PM, [email protected]
p.s. You will remake Settings.apk for red icons? You draw the icons yourself? If not then tell where you take them, please
Click to expand...
Click to collapse
Any help would be great.
At the first time I saw these thread [CLOSED] Red Sensation Final [AOKP B20/CM9 CDMA+GSM/Gummy 0.6.6]
when googling on theme. then try porting it with IceCreamTosti which you can see on the first post screenshot.
Then just thought about creating my own mod and took some nice looking icon in Sensation's and still using it with just lil mod.
credit should go to qasimzia512
ThdDude said:
Hope you dont mind, I put your theme in a zip you can run from CWM forgot to sign them.. So sig verify off to flash. If you cant figure out what i did, or where to add more changes pm me. Dont be mad its all your work I take no credit, just put in a package I used. Both zips work with IceCreamToasti v0.6 and should work with any ICS build. If any of you try on another ICS build please confirm
Click to expand...
Click to collapse
Awesome
could u just tell me how u did it exactly??
ThdDude said:
Well I made another, your theme + red inside settings.apk. Again these should work on any ICS rom. They work with IceCreamToasti v0.6 for sure
Click to expand...
Click to collapse
Nice~ just about to do on that for today.
oroo708 said:
Awesome
could u just tell me how u did it exactly??
.
Click to expand...
Click to collapse
Download one and open with winrar or whatever and look at it go into the folder and make changes to it where you want for a blue green pink whatever color theme. If you cant figure out where and what to replace pm me
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
Might as well start this off as many of us would love to customise our roms even further by creating and modding our roms but dont know where and how to start , hopefully this can be a general guide to de-compiling apk's /re-compiling modifying customising colours etc on most devices .
Website i use for changing and finding out HTML colour codes to change the basic colours in roms here great help especially when you cant find the correct colour code and name or need to use when theming .
I also use this website to re-size my PNG's etc to the sizes i need when modding or replacing pictures.
Android APK tool is a great start for most to learn and figure things out, link to site here
Hopefully this thread can be useful for ALL as with so many devices and different ways to theme mod and customise each individual device we can collectively help each other with the simple and basic stuff to get everyone learning and heading in the right direction .
:good:
Apktool is the only one I have been able to get working with 4.2 framework so it is a very helpful tool and dose have support on how to install and use but I wish there was some way to have a brake down of what is what with the .XML files like what to change and where to change backgrounds and text colors
Sent from my GT-N7000 using XDA Premium HD app
Hi.
I've already started a thread on theming. [Guide/Tools] Simple APK Modding - Basic Android Theming
I still use APK MANAGER, what you have to do is replace some files in the OTHER folder. I'll make it sinple for everyone to use.
I'll upload my version for people to use in link below.
This works for 4.2.1 apks
APK MANAGER 5.0.2
Annex1 said:
I still use APK MANAGER, what you have to do is replace some files in the OTHER folder. I'll make it sinple for everyone to use.
I'll upload my version for people to use in link below.
This works for 4.2.1 apks
APK MANAGER 5.0.2
Click to expand...
Click to collapse
Thanks for that, I'll add a link to this post if that's alright?
XperienceD said:
Thanks for that, I'll add a link to this post if that's alright?
Click to expand...
Click to collapse
Of course you can.
Which is better for theming GB apk ? Apktool or apkmanager ?
Thanks in advance
Sent from my GT-S6500D
EvolutionHybrid said:
Which is better for theming GB apk ? Apktool or apkmanager ?
Thanks in advance
Sent from my GT-S6500D
Click to expand...
Click to collapse
Preference really, I prefer apktool for what I do although been a while since I was working on GB .
charlescaz said:
Preference really, I prefer apktool for what I do although been a while since I was working on GB .
Click to expand...
Click to collapse
Thanks.. I'll try.. :beer:
Sent from my GT-S6500D
EvolutionHybrid said:
Which is better for theming GB apk ? Apktool or apkmanager ?
Thanks in advance
Sent from my GT-S6500D
Click to expand...
Click to collapse
Apkmanager uses apktool so..lol
Sent Using XDA Premium..
Have you Tickled Your Android lately?
(tinyurl.com/ticklemyandroid)
I am making a rom using the ofiicial sammy JB as base rom....but the problem is i cant find a boot.img file...if any one could help me with that it would be good!
You don't need a boot.img ... If you make a ROM with no boot.img, the kernel isn't overridden, and the person who flashes it stays with his previous kernel.
thank you
If you use dxisda's kitchen, add null boot.img, and the kitchen will remove it when repackaging
ok i got few questions!!
1. do i need to upload systemui.apk for UOT kitchen?
2.Which is a better app to edit apk's: APKTOOL or APK MANAGER
3. How to remove the touchwiz launcher and replace it with apex launcher.
4. Is there an easy noobish guide to use aroma installer....??
nlygamz said:
ok i got few questions!!
1. do i need to upload systemui.apk for UOT kitchen?
2.Which is a better app to edit apk's: APKTOOL or APK MANAGER
3. How to remove the touchwiz launcher and replace it with apex launcher.
4. Is there an easy noobish guide to use aroma installer....??
Click to expand...
Click to collapse
1. Yes
2. Apktool if you are a pro. Apk manager if you are a newb..
3. Remove seclauncher from system/app and put the apex apk over there.
4. Aroma is a complex shizz..
I do not respond to tech support via PM
i made a new systemui.apk and i wanna know how do i add it to my rom? do i need a META-INF folder? i have one already in my rom do i need to edit it in some way?
and also what is deodex and odex roms? i have an option like it in kitchen!
nlygamz said:
and also what is deodex and odex roms? i have an option like it in kitchen!
Click to expand...
Click to collapse
Read my thread from signature. There is some explanations.
and also while using kitchen i am getting the following errors....tried googling but got no answer
Error: No updater script found
working folder found
Error:boot.img not found
Click to expand...
Click to collapse
nlygamz said:
and also while using kitchen i am getting the following errors....tried googling but got no answer
Click to expand...
Click to collapse
You my friend need to do a lot of reading!
Head over to xda-u
I do not respond to tech support via PM
ok....another question.... i solved the updater script problem but i am getting the boot.img error again.
How do I get the boot.img?
ok....i was done making it and it got stuck on splash screen ... the one where it shows
Samsung Galaxy S advance GT-I9070
Click to expand...
Click to collapse
any idea what might be the cause?
tried taking logcat ..... could not take logcat!
Just a heads up, when you re-pack a ROM with kitchen... If you get an error saying "header mismatch" while zipaligning, then know that your ROM will not boot.
no error
panda00 said:
Just a heads up, when you re-pack a ROM with kitchen... If you get an error saying "header mismatch" while zipaligning, then know that your ROM will not boot.
Click to expand...
Click to collapse
no error!!
Ok....now it goes past the splash screen and but goes directly into recovery!! -_-
nlygamz said:
Ok....now it goes past the splash screen and but goes directly into recovery!! -_-
Click to expand...
Click to collapse
Protip : stop using the kitchen. It's made for older devices!
I do not respond to tech support via PM
Shaaan said:
Protip : stop using the kitchen. It's made for older devices!
I do not respond to tech support via PM
Click to expand...
Click to collapse
you talking about dxsida's kitchen or UOT? beacuse i am not using UOT!
And if you are talking about dsxida's kitchen can you help me out with how to do stuff myself?
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