Are the SecPhone.apk corrupt? I can decompile the apk perfectly fine but I cannot get it to recompile after making changes to the xml files. I have tried different SecPhone.apk from different stock ROMs including stock ROMs from the SIII and still same thing. I am currently on XXLSJ stock ROM. If anyone can recompile the SecPhone.apk without any errors please help. Thanks.
princeferoz said:
Are the SecPhone.apk corrupt? I can decompile the apk perfectly fine but I cannot get it to recompile after making changes to the xml files. I have tried different SecPhone.apk from different stock ROMs including stock ROMs from the SIII and still same thing. I am currently on XXLSJ stock ROM. If anyone can recompile the SecPhone.apk without any errors please help. Thanks.
Click to expand...
Click to collapse
Excuse me, how do you solved it?
littlethings said:
Excuse me, how do you solved it?
Click to expand...
Click to collapse
When you try to recompile the APK, go to the log and find out which XML files having bad lines and just delete those lines. This has at least worked for me. But you can always send me the APK and I'll recompile them for you.
Related
Hello everyone.I would like to ask something and i hope someone will answer.
I'm fan of some themes.But in one theme i like that and in the other i like that.
Is there a way to make a mix of them and how?
Thanks in advance!!!
Yes, it is possible.
https://docs.google.com/Doc?docid=0AcdxIJRSH9ypZGZzc2pxNDlfMjdnazk4OHNxZA&hl=en
http://forum.xda-developers.com/showthread.php?t=916814
Thanks a lot.Now i need a lot of study to accomplise that!!!
you can easily change the png files in the framework-res.apk and the twframework-res.apk of any theme's zip.just take any theme as a base and change the pngs within opening the theme and then the apks by winrar or something like it.the pngs are stored in the drawable-hdpi and/or drawable-hdpi-v4 folders.
Whenever I try to change framework res, and replace the old edited frameworkres I get bootloops. After that I have to flash a stock rom with odin and then flash my cooked rom. Even if I push the original framework res.apk, that doesn't solve the problem. No issue with twframework res.apk. I can edit twframework res .APK and works fine.
Please help.
try using 7zip instead, its better at replacing files
aditya104 said:
Whenever I try to change framework res, and replace the old edited frameworkres I get bootloops. After that I have to flash a stock rom with odin and then flash my cooked rom. Even if I push the original framework res.apk, that doesn't solve the problem. No issue with twframework res.apk. I can edit twframework res .APK and works fine.
Please help.
Click to expand...
Click to collapse
reflashing a whole rom shouldn't be necessary
first of all, you should make a backup of your system, just in case
and you should always keep a working theme on your phone so that if you get stuck at boot, you just boot into CWM and flash the working one and everything should be fine again
and for your basic problem of editing themes, have a look at R64s guide:
http://forum.xda-developers.com/showpost.php?p=10383323&postcount=577
explains all the basic stuff and works great for me
Hi! I noticed this bug in ock's theme originally and then when I was trying to make my own theme banged heads with it myself.
The issue is that in the browser the combobox button seems to spill over into the text and generally is stretched poorly.
Like this:
I tried at first simply creating a .9.png version and removing the originals and replacing with the .9s. This made the bar vanish completely.
Eventually I got it working with a bit of a work-around, by compiling the .apk twice and extracting the images.
Having to explain that process recently lead me to the real answer though.
combobox_disabled.png and combobox_nohighlight.png ARE .9.pngs even though they do not have the .9.png extension.
apkmanager won't decompile (or compile) them as .9's because they don't have the right extension (and the right extension 'breaks' the theme).
Attatched are my .9.png versions of both images. I added the guidelines from scratch, but they seem to be correct. If your theme has this issue and you need to fix it, just drop the 'compiled' versions into your res/drawable-hdpi and apk-manager should happily compile it and the issue should be resolved.
tried both versions to just replace the ones in my framework-res.apk (didn't decompile the file but just replaced the files) and both didn't solve the problem.
XlAfbk said:
tried both versions to just replace the ones in my framework-res.apk (didn't decompile the file but just replaced the files) and both didn't solve the problem.
Click to expand...
Click to collapse
That -may- not work. That was one of the first things I tried to do - replace with .pngs straight from stock without a decompile/recompile of the whole apk.
The format of the zip file might be slightly ambiguous.
9s - are the raw pngs with draw9patch guidelines.
compiled - are the compiled draw9patch pngs. If you use a draw9patch compiler on the files in the 9s directory you get these.
Even though the pngs are compiled you still need to go through the decompile/recompile procedure with apk manager. (using the 'compiled' pngs).
sargorn, I've tried several times to decompile and recompile the framework with no luck. The new framework is ok, except this damn combo box rendering.
I personally gave up trying :|.
Toss me the framework and I'll give it a shot.
here's mine, based on JVB. thx fo giving it a try
XlAfbk said:
here's mine, based on JVB. thx fo giving it a try
Click to expand...
Click to collapse
Hi,
I tried decompiling and then recompiling your framework and it does not recompile.
zzzzz_tw_quickcontact_slider_btn_pressed.9.png and zzzzz_tw_quickcontact_slider_btn_selected.9.png were both 0 bytes.
If you've just been replacing images this probably won't work
Here it is decompiled and recompiled with stock copies of those two files and the combo box 'fix'.
The filesize seems very 'off' so I'm not sure if it'll work or not.
ro_explorer said:
sargorn, I've tried several times to decompile and recompile the framework with no luck. The new framework is ok, except this damn combo box rendering.
I personally gave up trying :|.
Click to expand...
Click to collapse
I've just de/recompiled JVH's framework-res and the combobox fix still seems to work. (Although maybe it's not needed in JVH, didn't test it!).
I tried it again with JVH and failed again. What I did:
1. decompile framework-res.apk with apkmanager
(2. make some of my changes to some xml files)
3. place the 2 files from compiled in drawable-hdpi-v4
4. recompile the apk
Everything but the comboboxes works as expected.
I'm attaching the apk, maybe you could have a look at it. If you can make it work please tell me what I did wrong. Many thx
XlAfbk said:
I tried it again with JVH and failed again. What I did:
1. decompile framework-res.apk with apkmanager
(2. make some of my changes to some xml files)
3. place the 2 files from compiled in drawable-hdpi-v4
4. recompile the apk
Everything but the comboboxes works as expected.
I'm attaching the apk, maybe you could have a look at it. If you can make it work please tell me what I did wrong. Many thx
Click to expand...
Click to collapse
As im here looking for the fix for my dhd I thought I might be able to help
Looking at your framework I can clearly see that those images in there are not fixed.
Try simply dragging and dropping the fixed pngs straight into your framework
liamstears said:
Try simply dragging and dropping the fixed pngs straight into your framework
Click to expand...
Click to collapse
that won't work, was said before, needs to be compiled in
Try out the jvo rom - I think this issue may be resolved in that framework.
Sent from my GT-I9000 using XDA Premium App
I still have that issue with my JVO theme
This mod is very popular in there, doesn't need to explain that.
My Base "Phone.apk" file is on Deodexed JVZ |2.3.6| firmware.
Installation Guide:
Download the attached file.
Extract it
Copy "Phone.apk" File into "System/App" Folder.
Restart your Phone.
Done.
Updates:
12/16/2011: No any differences between JVZ and JW1, you can use it on JW1
Best Regards.
Thank you, was going to attempt this myself but you beat me to it lol.
I was always having problems decompiling the phone.apk, any chance you could let me know what tools you used to decompile / recompile the apk?
djb77 said:
Thank you, was going to attempt this myself but you beat me to it lol.
I was always having problems decompiling the phone.apk, any chance you could let me know what tools you used to decompile / recompile the apk?
Click to expand...
Click to collapse
0- Notepad ++
1- Baksmali
2- Smali
3- 7 Zip
or simply use Apk Manager.
you need to change below smali file.
Code:
com\android\phone\Ringer$1.smali
* Very Important
And if you want don't face to any fc error, you need to use low compression or better to use NoCompression mod.
djb77 said:
Thank you, was going to attempt this myself but you beat me to it lol.
I was always having problems decompiling the phone.apk, any chance you could let me know what tools you used to decompile / recompile the apk?
Click to expand...
Click to collapse
Make sure you are decompiling it with dependencies (twframework-res.apk), decompiled /res/drawable-hdpi should not have any corrupted file (such as corrupted 9patch)
Rahulrulez said:
Make sure you are decompiling it with dependencies (twframework-res.apk), decompiled /res/drawable-hdpi should not have any corrupted file (such as corrupted 9patch)
Click to expand...
Click to collapse
Thank you for that, that's something I actually did want to know.
I had a look at APK Manager a while ago and didn't end up having any luck decompiling properly, so I went to straight Smali / Baksmali scripts. Only ever had luck with .jar files though.
---------- Post added at 07:54 AM ---------- Previous post was at 07:50 AM ----------
Also, is it possible that it's framework-res.apk that it uses and not twframework-res.apk ?? I tried twframework-res and it just sat there and did nothing, framework-res decompiled it properly.
djb77 said:
Thank you for that, that's something I actually did want to know.
I had a look at APK Manager a while ago and didn't end up having any luck decompiling properly, so I went to straight Smali / Baksmali scripts. Only ever had luck with .jar files though.
---------- Post added at 07:54 AM ---------- Previous post was at 07:50 AM ----------
Also, is it possible that it's framework-res.apk that it uses and not twframework-res.apk ?? I tried twframework-res and it just sat there and did nothing, framework-res decompiled it properly.
Click to expand...
Click to collapse
framework-res.apk doesn't depends upon twframework-res. It should be decompiled without any dependency.
Rahulrulez said:
framework-res.apk doesn't depends upon twframework-res. It should be decompiled without any dependency.
Click to expand...
Click to collapse
No I meant for when decompiling phone.apk I use framework-res instead of twframework-res
Is this phone-apk also working with an odexed JVZ?
Deacon-Frost said:
Is this phone-apk also working with an odexed JVZ?
Click to expand...
Click to collapse
NO! its just for deodex
Ehy M_J_Nazari, since you're very smart, you want to give me a hand?
http://forum.xda-developers.com/showpost.php?p=20222307&postcount=65
i tried this on a jvt rom i'm using and it worked..
thanks
M_J_Nazari said:
NO! its just for deodex
Click to expand...
Click to collapse
It works great with odexed roms too, you just have to delete phone.odex from your /system/app.
Can you please tell us what you patched to disable the increasing ringtone? I want to be able to do this for the latest ROMs.
Can anybody make black contact & phone.apk attached here. Or else let me know the step by step procedure to make the Black themed Contacs.apk & Phone.apk
I Know we need to edit some XML files like styles.xml , call_background.xml, background_dial_holo_dark.xml and also have tried but able to get the success. So please help me.
Its not that easy...
apktool-1.4.3 wont decompile Contacts.apk properly so when you recompile, it will most likely crash the Phone.apk
I am able to decompile and recompile it without any problems.
You have to just decompile with 1.4.2 apktool and compile it with 1.4.3 apktool.
Before decompiling you have to delete classes.dex from contacts.apk.
If it was not possible then how other themers are modifying contacts.apk. So themers please help me.
I would do it for you, how exactly do you want it to look?
manikant_009 said:
I am able to decompile and recompile it without any problems.
You have to just decompile with 1.4.2 apktool and compile it with 1.4.3 apktool.
Before decompiling you have to delete classes.dex from contacts.apk.
If it was not possible then how other themers are modifying contacts.apk. So themers please help me.
Click to expand...
Click to collapse
How many "themer's" are changing XML? show me one please...
shayne77 said:
How many "themer's" are changing XML? show me one please...
Click to expand...
Click to collapse
Most just change images, just swap out the images using 7-zip
OriginsOfLewis said:
Most just change images, just swap out the images using 7-zip
Click to expand...
Click to collapse
Exactly my point... Contacts.apk has been a pain the bum since ICS got here... (with APKTOOL-1.4.3 anyway)
hence why no-one has really changed XML too much...
I think managed to get it to work though...
OriginsOfLewis said:
I would do it for you, how exactly do you want it to look?
Click to expand...
Click to collapse
Thanks for trying to help me i want black dialler with blue text numbers, transparent buttons. and also pleas let me know how to make the transparent notification in the below image attached.
shayne77 said:
Exactly my point... Contacts.apk has been a pain the bum since ICS got here... (with APKTOOL-1.4.3 anyway)
hence why no-one has really changed XML too much...
I think managed to get it to work though...
Click to expand...
Click to collapse
I thinks for this we need to install framework-res then decompile contacts.apk with 1.4.2 and recompile with 1.4.3
manikant_009 said:
I thinks for this we need to install framework-res then decompile contacts.apk with 1.4.2 and recompile with 1.4.3
Click to expand...
Click to collapse
My bet is: Contacts.apk will work fine but Phone.apk will crash.
shayne77 said:
My bet is: Contacts.apk will work fine but Phone.apk will crash.
Click to expand...
Click to collapse
See i am not a themer but i have tried contacts.apk by this method not tried phone.apk so i can't tell about it.
I just need the info about the xml files that needs to be edited so please help me.
manikant_009 said:
See i am not a themer but i have tried contacts.apk by this method not tried phone.apk so i can't tell about it.
I just need the info about the xml files that needs to be edited so please help me.
Click to expand...
Click to collapse
You're missing my point, the 2 apk's talk to each other... you change Contacts and it crashes Phone.
sent from SGS2 using XDA app.
shayne77 said:
You're missing my point, the 2 apk's talk to each other... you change Contacts and it crashes Phone.
sent from SGS2 using XDA app.
Click to expand...
Click to collapse
But their should be some way to change it because Vertumus and other themers have done that
For example you can see here
http://forum.xda-developers.com/showthread.php?t=1564209
http://forum.xda-developers.com/showthread.php?t=1517344
manikant_009 said:
But their should be some way to change it because Vertumus and other themers have done that
For example you can see here
http://forum.xda-developers.com/showthread.php?t=1564209
http://forum.xda-developers.com/showthread.php?t=1517344
Click to expand...
Click to collapse
I think you'll find they're only changing PNGs in Contacts.apk... could be wrong but I am thinking that is the case...
Will see if any "themers" offer you some advice in this thread then...
shayne77 said:
How many "themer's" are changing XML? show me one please...
Click to expand...
Click to collapse
Me , for my theme (Black&Blue for HyDrOG3N-ICS)
I change the pictures, but also some XML files
el_liberator said:
Me , for my theme (Black&Blue for HyDrOG3N-ICS)
I change the pictures, but also some XML files
Click to expand...
Click to collapse
Oh so you'll share your method to manikant/us then? good-o
---------- Post added at 12:28 AM ---------- Previous post was at 12:24 AM ----------
el_liberator said:
Me , for my theme (Black&Blue for HyDrOG3N-ICS)
I change the pictures, but also some XML files
Click to expand...
Click to collapse
Can you share with us also i like the MMS.apk of your theme so please try to share with us.
Didn't think so...
either he doesn't change XML or he steals someone else work or he's just plain selfish.
not in the spirit of xda anyway.
That's the problem with this place, ego's get in the way of development.
manikant_009 said:
Thanks for trying to help me i want black dialler with blue text numbers, transparent buttons. and also pleas let me know how to make the transparent notification in the below image attached.
Click to expand...
Click to collapse
Okay I've done it, I haven't tested it so it's at your own risk. Remember to set permissions! This is at 50% transparency
http://dl.dropbox.com/u/43639041/framework-res.apk
I had errors with the Contacts.apk when making any XML edits, I ended up having to grab it from the source.
...but I'm having issues installing the required java & android sdk files to my PC so I'm unsuccessful when trying to decompile the SystemUI.apk. Has anyone done that mod to a TW 4.1.2 ROM (Im on JMTJB v6 btw). If so think you could share the edited xml file(s) or the SystemUI apk? I also posted a link of my SystemUI.apk to see if anyone is willing to edit the needed xml files. Just name your price Thx ahead.
I can't be the only one wanting this mod, right? There has to be someone else who got it done on TW 4.1.2
http://forum.xda-developers.com/showthread.php?t=2109973 this should help you out
krazierokz said:
http://forum.xda-developers.com/showthread.php?t=2109973 this should help you out
Click to expand...
Click to collapse
Thank you...but as you see (and I stated on the o.p.) I have problems with my old-ass pc and I can't get the necessary files installed for me to decompile any apk. I have tried and tried but it just won't do it and I'm left unable to decompile crap. I know EXACTLY what I need to do but I CAN'T DECOMPILE the SystemUI.apk to do it. . That's the reason I'm asking if someone (that knows how to decompile, edit the status_bar.xml & tw_status_bar.xml, & compile again) could hook me up...and of course I'm willing to pay for their time.