[Q] What apktool to decompile Sense 5 - One (M7) Q&A, Help & Troubleshooting

What do themers use to decompile/recompile sense 5? I've used apktool, autoapktool and none of them seem to successfully decompile and/or recompile systemui.apk, etc

F4M0U569 said:
What do themers use to decompile/recompile sense 5? I've used apktool, autoapktool and none of them seem to successfully decompile and/or recompile systemui.apk, etc
Click to expand...
Click to collapse
I'd like to know this as well, I tried Virtous 10 Studio and it also gives errors and won't decompile properly...

I used this one and check out this post I only had problems with com.htc.resources
http://www.mediafire.com/download.php?3y34cge7kcpr76e
http://forum.xda-developers.com/showthread.php?t=2229230

HTC is still using m10 to encrypt their graphics? as far as I see in the One apks like prism, graphics are open, like normal png in an apk file! anyone knows if some graphics are encrypted or not?

Tabtoub said:
HTC is still using m10 to encrypt their graphics? as far as I see in the One apks like prism, graphics are open, like normal png in an apk file! anyone knows if some graphics are encrypted or not?
Click to expand...
Click to collapse
You can easily change pngs will no problem. The reason for apktool is to decode an apk file back to its original form and then rebuilds it after modifcations have been made to smali code or xmls.

benny3 said:
I used this one and check out this post I only had problems with com.htc.resources
http://www.mediafire.com/download.php?3y34cge7kcpr76e
http://forum.xda-developers.com/showthread.php?t=2229230
Click to expand...
Click to collapse
VERY COOL, this should really help! THANKS!

Tabtoub said:
HTC is still using m10 to encrypt their graphics? as far as I see in the One apks like prism, graphics are open, like normal png in an apk file! anyone knows if some graphics are encrypted or not?
Click to expand...
Click to collapse
I use VTS for M10 it works real well

Related

[Q] xml edditor

what is a good xml editor
Eclipse
Sent from my HERO200 using XDA App
aaronpoweruser said:
Eclipse
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
im on the site witch one
Eclipse, Notepad++ or gedit
Use apk manager to decompile the apk then notepad++ to edit the XML then recompile the apk.
For editing just use notepad++ if you want an ide to manage a project and also do xml edit go the eclipse route... preferably Myeclipse.
Papa Smurf151 said:
Use apk manager to decompile the apk then notepad++ to edit the XML then recompile the apk.
Click to expand...
Click to collapse
Would this be a way to use an evo's 4g icons in place of my 3g ones? I thought it would be fun to try...
I assume I can't simply unzip framework-res.apk, paste them in and zip it back up and actually expect it to work...
Sent from my HTC Hero with Froyo...
Vandelay007 said:
Would this be a way to use an evo's 4g icons in place of my 3g ones? I thought it would be fun to try...
I assume I can't simply unzip framework-res.apk, paste them in and zip it back up and actually expect it to work...
Sent from my HTC Hero with Froyo...
Click to expand...
Click to collapse
I personally don't use apk manager for PNG edits. Never had good luck getting the apk to recompile correctly. I mainly use it to edit XML files, do Smali edits, do resources.arsc(which when decompiled is converted to values folder in the Res folder), and android manifest edits.
Eclipse is to much to confusing for a lot of people to use. I personally can't stand it. Well except to recompile .9 files.
But who am I to tell someone what to use. I've only edited a bunch of XML files and resources.arsc file and Smali edits....etc and put stuff out on the market. So I really have no idea what should be used. Lol
Simply replacing the PNG files should give u the result ur looking for. No need to decompile the apk to do that. Just make sure u change the PNG file name to the file u want to use as a replacement
Papa Smurf151 said:
I personally don't use apk manager for PNG edits. Never had good luck getting the apk to recompile correctly. I mainly use it to edit XML files, do Smali edits, do resources.arsc(which when decompiled is converted to values folder in the Res folder), and android manifest edits.
Eclipse is to much to confusing for a lot of people to use. I personally can't stand it. Well except to recompile .9 files.
But who am I to tell someone what to use. I've only edited a bunch of XML files and resources.arsc file and Smali edits....etc and put stuff out on the market. So I really have no idea what should be used. Lol
Simply replacing the PNG files should give u the result ur looking for. No need to decompile the apk to do that. Just make sure u change the PNG file name to the file u want to use as a replacement
Click to expand...
Click to collapse
I agree with you totally on Eclipse... I use it on a daily bases and sometimes its easier to just use notepad++ for smaller things.. even tho I love Eclipse.
Smali is annoying to look at and I can't stand the decompiled code... I'd love to contribute to Cyanogens or Darch Repo but I don't have the setup to do it at the moment, I have a nice box but the family would be pissed if I tried to convert them to Linux and I deplore dual boot.
So I'm happy for now with f-ing around in GIMP and doing some stuff I dont get to do in my professional life.
ASimmons said:
I agree with you totally on Eclipse... I use it on a daily bases and sometimes its easier to just use notepad++ for smaller things.. even tho I love Eclipse.
Smali is annoying to look at and I can't stand the decompiled code... I'd love to contribute to Cyanogens or Darch Repo but I don't have the setup to do it at the moment, I have a nice box but the family would be pissed if I tried to convert them to Linux and I deplore dual boot.
So I'm happy for now with f-ing around in GIMP and doing some stuff I dont get to do in my professional life.
Click to expand...
Click to collapse
Agreed. Eclipse is a pita. That's why I love apk manager. I can almost do everything with that as I can with eclipse without all the excess steps eclipse runs u through.
I have dual boot on my laptop and it works great. I mainly stay on windows but use Linux every once in a blue moon.
I also use Photoshop rather than gimp. Gimp has always seemed very not user friendly.
I hate Smali code but I'm learning how to edit it and create my own as it is the root of the apks and there r just somethings that have to be played around with in there.
The one thing I have learned is that everything is so much easier when decompiled.
I tried to edit bianary XML. I'd almost rather take a bullet in the head. LOL
Papa Smurf151 said:
Agreed. Eclipse is a pita. That's why I love apk manager. I can almost do everything with that as I can with eclipse without all the excess steps eclipse runs u through.
I have dual boot on my laptop and it works great. I mainly stay on windows but use Linux every once in a blue moon.
I also use Photoshop rather than gimp. Gimp has always seemed very not user friendly.
I hate Smali code but I'm learning how to edit it and create my own as it is the root of the apks and there r just somethings that have to be played around with in there.
The one thing I have learned is that everything is so much easier when decompiled.
I tried to edit bianary XML. I'd almost rather take a bullet in the head. LOL
Click to expand...
Click to collapse
No blasphemy against Eclipse And I love Gimp its a little flaky on Windows but its free. What APK manager are you using?
ASimmons said:
No blasphemy against Eclipse And I love Gimp its a little flaky on Windows but its free. What APK manager are you using?
Click to expand...
Click to collapse
Its a program call apk manager. U can find it on xda for free. Or u can download my everything android zip in the dev section. I put it in there. It let's u decompile Apks. Recompile apks. Sign apks optimize apks and zip align apks. All in one program. Its great.
I use apk manager 4. Something that has a script in it. Thought maybe you were using something else. Thanks for the info.
Sent from my HERO200 using XDA App
ASimmons said:
I use apk manager 4. Something that has a script in it. Thought maybe you were using something else. Thanks for the info.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Yeah same program I'm using. 4.8 is the newest version. I swear by it

Need help porting theme.

If anyone can help, please take this zip and make it compatible for the Hero. right now it's for the Droid running Cm6. http://www.multiupload.com/BHME414DUC
Thanks
abu_noah said:
If anyone can help, please take this zip and make it compatible for the Hero. right now it's for the Droid running Cm6. http://www.multiupload.com/BHME414DUC
Thanks
Click to expand...
Click to collapse
Its not something you do in a few minutes.
He's been working on it for a bit, think he needs help with the finishing touches
Sent from my HERO200 using XDA App
MrSpradlen said:
He's been working on it for a bit, think he needs help with the finishing touches
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
I have been working on this for a bit, but this is just the Full on flashable zip, made for the Droid. I got three kids and not alot of time to resize every image to mdpi. plus this is coming from the a droid theme, so I'm not sure what to do with the drawable-nodpi images and other if any nopi images. anyway, i'm just asking for help, not for "I can't help you" or "Alot of work" answers. I know it's alot of work as i have driving myself crazy on how to do it. Thanks.
I tried using the theme porter to save time but it will not recognize 9.pngs and I'm pretty sure that's why it's not porting.
abu_noah said:
I tried using the theme porter to save time but it will not recognize 9.pngs and I'm pretty sure that's why it's not porting.
Click to expand...
Click to collapse
What errors are you getting, what issues are you having? sorry to be so coarse.
ASimmons said:
What errors are you getting, what issues are you having? sorry to be so coarse.
Click to expand...
Click to collapse
I have converted the hdpi to mdpi now I think. before I used the theme porter, but it kept saying system file cannot be specified. well i got the pngs converted and the folders renamed, but I don't have a hero to test it on. I use my wife's when she's here. Don't know if this will work or not.
I also need to know if the images in the framework-res are the only thing I need to change, and then I can flash that same package that was meant for the droid or if I need to transfer those over to the Hero's framework-res?
abu_noah said:
I have converted the hdpi to mdpi now I think. before I used the theme porter, but it kept saying system file cannot be specified. well i got the pngs converted and the folders renamed, but I don't have a hero to test it on. I use my wife's when she's here. Don't know if this will work or not.
Click to expand...
Click to collapse
I almost positive you cant just rename folders like drawable-hdpi to draw-mdpi as theres more in the apk that specifies that the apk is built for an hdpi phone.
This is how I do it (short version cause I'm working out kinks). basically just copy over the pngs from the hdpi folders to the mdpi folders. Basically the difference in size from hdpi to mdpi is about 66% the size of an hdpi png so in the process of copying them I also shrink them. 9 patch pngs are a alot harder to get right and I currently working through some ways to port those now, but for a basic port you can just leave them as is. If you wanted to fix the 9 patch you basically have to decompile the apk and then use the 9patchDrawable tool in the android sdk and gimp to shrink them and then redraw the patch borders.
Your problem is most likely trying to rename the file folder. The port should only bring over the pngs and maybe ( i never do) some minor xml tweaks and put those in the rom your porting to you can't use anything from the ported rom except the pngs unless you want a buncha headaches.

Help, any alternative to apktool

Hi can anyone suggest an alternative tool for apktool. It just doesn't work for me. Whatever I do either gives compiling errors or just a bootloop. Thanks guys.
It's nice to know I'm not the only one. Anything past extract optimize and zip is useless for me. I have never had it actually compile an .apk without an error.
I'm having serious problems compiling the framework-res from a CM6.1 based ROM. It decompiles fine, but won't recompile I get hundreds of errors about missing referances.
I only wanna edit a few XML's :sad:
Sent from my HTC Hero using Tapatalk
l0st.prophet said:
I'm having serious problems compiling the framework-res from a CM6.1 based ROM. It decompiles fine, but won't recompile I get hundreds of errors about missing referances. I only wanna edit a few XML's :sad: Sent from my HTC Hero using Tapatalk
Click to expand...
Click to collapse
Which xmls do you want to edit, and what are you wanting to change?
dean.d said:
Which xmls do you want to edit, and what are you wanting to change?
Click to expand...
Click to collapse
Thanks for replying, but I worked it out. I had some dodgy .9.png's that were breaking the compile, so I just had to remove them before compiling.
For anyone else having trouble, check the logs after you decompile to see if there are any messages about .9.pngs. If there are, remove them from the decompiled folder, compile when you are finished, then just add the .9.png's back in afterwards with WinRAR.
I was tryna change the color of the text and the border in the bottom popup menu for my Gingerbread theme
l0st.prophet said:
Thanks for replying, but I worked it out. I had some dodgy .9.png's that were breaking the compile, so I just had to remove them before compiling.
For anyone else having trouble, check the logs after you decompile to see if there are any messages about .9.pngs. If there are, remove them from the decompiled folder, compile when you are finished, then just add the .9.png's back in afterwards with WinRAR.
I was tryna change the color of the text and the border in the bottom popup menu for my Gingerbread theme
Click to expand...
Click to collapse
The reason that happens is the original "dev" who themed the framework did not decompile/modify/recompile. He merely dragged and dropped the modified .9.png
Hence when u decompile, apktool cannot find the necessarry data within resources.arsc to decompile the .9.png and hence when u go to recompile, it complains. Ur safest bet is to always decompile an apk as close to stock as possible.
Where do you place your framework-res.apk I placed mine in the platform tools folder but apktool can not find it

editing rosie.apk sense 3.5

Hi I have an issue with the rosie.apk for sense 3.5.
I'm using apk multi tool, latest version.
i'm decompiling with dependencies using com.htc.resource.apk.
(i'm not trying to edit any m10 or smali)
I'm changing colors.xml. and some png's.
all goes through without any errors.
I then use adb to push to my htc raider.
and no images have changed and the new high light color has not changed.
is this an issue editing rosie from sense 3.5?
as I have edited rosie before and had no issue's, but it was a rosie from sense 3.0
Thanks for any guidance.
hackit said:
Hi I have an issue with the rosie.apk for sense 3.5.
I'm using apk multi tool, latest version.
i'm decompiling with dependencies using com.htc.resource.apk.
(i'm not trying to edit any m10 or smali)
I'm changing colors.xml. and some png's.
all goes through without any errors.
I then use adb to push to my htc raider.
and no images have changed and the new high light color has not changed.
is this an issue editing rosie from sense 3.5?
as I have edited rosie before and had no issue's, but it was a rosie from sense 3.0
Thanks for any guidance.
Click to expand...
Click to collapse
Did you clear dalvik and cache after installing?
No trying that now.
Thanks
you have probably seen this before but if you havent:
http://forum.xda-developers.com/showthread.php?t=1210143
Sense 3 Dock
This is the frustrating part in Sense 3.0 - you edit the usual suspects - and nothing happens after the flash. The reason is, that large parts of button press effects and other details are now controlled by fusion.apk. This replaces a lot of the button presses from com.htc.resources.apk and parts of Rosie like the complet dock.
1. You need to decompile fusion.apk with m.10 editor (How-To`s are all over the place), make sure you tick the "decode images" box. You will then find all pngs ether in the editor (which is a pain, if you edit fusion.apk with plenty of pngs) or in c://user/yourname/appdata/roaming/m10editor
2. You need to identify the pngs by sight, since the decompile does not give the correct png names to the pics. Note that all pngs are turned by 180 degrees after the compile.
3. Edit the pngs and zip Rosie in m.10 editor
That`s it - makes it tougher, but at least the devs behind m.10 editor like flemmard or diamondback offered us the option to theme Sense 3.0
Click to expand...
Click to collapse
Hey Jirv311,
Do you have any ideas why i'm unable to pull the HTC_IME.apk from the zip download, the one for sense 3.5 and edit it.
Then adb push to my raider, then i have no keyboard, no keyboard under settings either.
But i can adb push the HTC_IME.apk that i have edited (the one in the rom folder) no problem.
It's killing me not being able to use the new keyboard with arrows and have it modded the way i want.
Pirateghost said:
you have probably seen this before but if you havent:
http://forum.xda-developers.com/showthread.php?t=1210143
Click to expand...
Click to collapse
Yes I did come across that and saw it is for sense 3.0, would it work on sense 3.5?
editing the m10 is what i mean.
Thanks Pirateghost
Jirv311 said:
Thanks for any guidance.
Did you clear dalvik and cache after installing?
Click to expand...
Click to collapse
Thanks for the suggestion and the time responding to my query, but no luck.
Just spent some time trying to decode fusion.apk to no avail. I believe the problem is this:
Code:
Got an unhandled image: Size=40:40 File=0x00011639.dat type=14
Type 14, I "think", is the same that Sense 3.5 uses (I'm on Sense 3.0) and as far as I've found, there is no way to decode them yet.
As for the keyboard, are you signing it after you make your edits? If so, you shouldn't.
Jirv311 said:
Just spent some time trying to decode fusion.apk to no avail. I believe the problem is this:
Code:
Got an unhandled image: Size=40:40 File=0x00011639.dat type=14
Type 14, I "think", is the same that Sense 3.5 uses (I'm on Sense 3.0) and as far as I've found, there is no way to decode them yet.
As for the keyboard, are you signing it after you make your edits? If so, you shouldn't.
Click to expand...
Click to collapse
Thanks foir the reply, no i'm not signing the HTC_IME.apk, i decompliled it with dependencies so i added com.htcresource.apk.
.maybe i should try option 9 just decompile it
I have been searching and searching and it appears we are unable to edit sense 3.5 and m10 files yet.
If I find anything new I'll post it here.
hackit said:
Thanks foir the reply, no i'm not signing the HTC_IME.apk, i decompliled it with dependencies so i added com.htcresource.apk.
.maybe i should try option 9 just decompile it
I have been searching and searching and it appears we are unable to edit sense 3.5 and m10 files yet.
If I find anything new I'll post it here.
Click to expand...
Click to collapse
Yup, that's what I've found too, unfortunately.
Can we still mod com.htc.resources.apk?
I have a modded one but am lery of installing as i'm afraid it will mess something up, plus maybe there's not much to be changed with just the com.htc.resources.apk.
any ideas?
hackit said:
Can we still mod com.htc.resources.apk?
I have a modded one but am lery of installing as i'm afraid it will mess something up, plus maybe there's not much to be changed with just the com.htc.resources.apk.
any ideas?
Click to expand...
Click to collapse
FYI, i just adb the com.htc.resources.apk to my raider and no issue's, so as soon as i figure out how to zip my theme for easy install i will post it...
Please if you know of a good guide for zipping a theme for the raider let me know. I'm thinking because of the internal sd card it needs to be different. otherwise i would just use a theme zip from another device and add my apk's.
hackit said:
FYI, i just adb the com.htc.resources.apk to my raider and no issue's, so as soon as i figure out how to zip my theme for easy install i will post it...
Please if you know of a good guide for zipping a theme for the raider let me know. I'm thinking because of the internal sd card it needs to be different. otherwise i would just use a theme zip from another device and add my apk's.
Click to expand...
Click to collapse
thats all you need to do. you need to make sure the updater-script mounts the system properly.
just use my CWM_ROOT script, VER2, as it has the proper binary included as well.
Pirateghost said:
thats all you need to do. you need to make sure the updater-script mounts the system properly.
just use my CWM_ROOT script, VER2, as it has the proper binary included as well.
Click to expand...
Click to collapse
Thanks Pirateghost, can you post a link to your CWM_ROOT script, VER2?
I just want to make sure i use the right one.
Thanks
hackit said:
Thanks Pirateghost, can you post a link to your CWM_ROOT script, VER2?
I just want to make sure i use the right one.
Thanks
Click to expand...
Click to collapse
http://forum.xda-developers.com/attachment.php?attachmentid=837000&d=1325354373

[Q] OnOffTools background ?

I've decompiled OnOffTools.apk but I don't find the png image of the widgets background in drawable-xhdpi...
Any idea where I can fing this png ?
Thanks in advance.
how does your /res/...folders look?
there should be the pngs...hdpi,mdpi,xhdpi folder and more
i tried it out,i see them
i see there pngs like minimised_plate.png, plate.png, plate_pressed.png and all the icon.png's
see my png file,thats in drawable-xhdpi folder
is it, what you ask for?
edit:
i saw you asked the same in the honami home thread? so i guess you mean the onofftools.apk from that honami.zip?
i decompiled, and there isnt plate.png's...you are right.
is it transparent?
immerblind said:
how does your /res/...folders look?
there should be the pngs...hdpi,mdpi,xhdpi folder and more
i tried it out,i see them
i see there pngs like minimised_plate.png, plate.png, plate_pressed.png and all the icon.png's
see my png file,thats in drawable-xhdpi folder
is it, what you ask for?
edit:
i saw you asked the same in the honami home thread? so i guess you mean the onofftools.apk from that honami.zip?
i decompiled, and there isnt plate.png's...you are right.
is it transparent?
Click to expand...
Click to collapse
Yes, I use the honami onofftools.apk. The widget backgroung is white. There's plate.9.png in /res/drawable/nodpi. I hope it's the good one.
Thanks.
OnOffTools.apk\res\drawable-nodpi\plate.9.png
dully79 said:
OnOffTools.apk\res\drawable-nodpi\plate.9.png
Click to expand...
Click to collapse
Thanks.
I've modified plate.9.png (just applied negative filter on the white part), refashed OnOffTools.apk, but Xperia home FC when I try to add the widgets.
However, since it is a 9 patch png, I've left the image border unchanged...
When you saved the image did you save it as a .9.png and not a standard .png?
It works fine in my UFT zip
dully79 said:
When you saved the image did you save it as a .9.png and not a standard .png?
It works fine in my UFT zip
Click to expand...
Click to collapse
No. I use Gimp 2.8 or PaintShop Pro and they don't propose saving as .9.png...
nreuge said:
No. I use Gimp 2.8 or PaintShop Pro and they don't propose saving as .9.png...
Click to expand...
Click to collapse
A lot of the time photoshop doesn't.
I usually copy out the images im editing to another folder, make my edits and then when saving double click the image in the new folder to pick up the full name including .9
I use a USB stick as my workbench so i can drag and drop without moving and overwriting things unless i want to.
dully79 said:
A lot of the time photoshop doesn't.
I usually copy out the images im editing to another folder, make my edits and then when saving double click the image in the new folder to pick up the full name including .9
I use a USB stick as my workbench so i can drag and drop without moving and overwriting things unless i want to.
Click to expand...
Click to collapse
Yes, I've renamed my new image with .9.png extention and I'm really think that my new .9.png is good. Then, I've use Winrar to replace the png in OnOffTools.apk. Actually, Xperia home FC because my new OnOffTools.apk does not want to install...
I'll try to recompile OnOffTools.apk instead of using Winrar.
oh you not use apktool for decompile and recompile?
i recommend using it. its quiet easy after you setup everything
i normally open the 9.png with photoshop,then i edit and keep the black borders like it was, i not touch frame.just change color or whatever.then i just save it. (same file) its the best to edit the stock files. i think better than replace with others. just my experience
(for example open stock.9.png in drawable folder, then edit it, and override/save the file same place...)
oii,im not sure, was that understandable english?
also at beginning i got errors, only while i painted wrong accidentally some pixels in 9.png files. you sure you not touch the borders?
edit: i read u tried recompiling? have some errors while recompiling?
more edit: i remember something, after recompiling you put META-INF and AndroidManifest.xml from the stock OnOffTools.apk inside your new compiled apk?
nreuge said:
Yes, I've renamed my new image with .9.png extention and I'm really think that my new .9.png is good. Then, I've use Winrar to replace the png in OnOffTools.apk. Actually, Xperia home FC because my new OnOffTools.apk does not want to install...
I'll try to recompile OnOffTools.apk instead of using Winrar.
Click to expand...
Click to collapse
Dont bother messing with apks, use UFT.zip, you can find a link and details in my thread in the theme section(basic theming guide).
immerblind said:
oh you not use apktool for decompile and recompile?
i recommend using it. its quiet easy after you setup everything
i normally open the 9.png with photoshop,then i edit and keep the black borders like it was, i not touch frame.just change color or whatever.then i just save it. (same file) its the best to edit the stock files. i think better than replace with others. just my experience
(for example open stock.9.png in drawable folder, then edit it, and override/save the file same place...)
oii,im not sure, was that understandable english?
also at beginning i got errors, only while i painted wrong accidentally some pixels in 9.png files. you sure you not touch the borders?
edit: i read u tried recompiling? have some errors while recompiling?
Click to expand...
Click to collapse
Sucess!!
Firstly, I didn't succeed in recompliling because my 9.png was wrong. Now, the recompiling is working so the 9.png is ok.
The Winrar method don't seem to work all the time because I've use it with the good 9.png and then after fashing Xperia home FC.
Thanks for your help.
I would also suggest using apkmanager or multitool as they provide an log to check for errors.

Categories

Resources