[Q] How to decompile/recompile apks for Rezound ICS - HTC Rezound

I'm trying to learn more about modding my APKs (to change colors and little things) and I'm wondering if there is a good guide anyone knows of that will walk me through getting started. I've found several specific to a device but not for the reZound and am not sure what is the same and what is not. Any insight will be appreciated.

Go to the Android theming section. There are some good guides there.
Sent from my ADR6425LVW using xda premium

You need apktool and 7zip
Sent from my Dinc... I mean Rezound

Here's my APKtool setup(that works) LINK
The only other thing you'll need is 7-zip.
I have APKtool in my PATH to make life easier.
Start off by adding your current framework:
apktool if framework-res.apk
apktool if SystemUI.apk
apktool if com.htc.resources.apk
Decompile:
apktool d SystemUI.apk
Compile:
apktool b SystemUI (this is a directory not a file name)
or
apktool b SystemUI SystemUI.apk (specifies the apk name to build)

MrSmith317 said:
I have APKtool in my PATH to make life easier.
Start off by adding your current framework:
apktool if framework-res.apk
apktool if SystemUI.apk
apktool if com.htc.resources.apk
Click to expand...
Click to collapse
Do I need to pull those 3 apk's from the phone (in the system folder I think)? And then add the apk I want to edit as well?

pmterp said:
Do I need to pull those 3 apk's from the phone (in the system folder I think)? And then add the apk I want to edit as well?
Click to expand...
Click to collapse
you input which apks you want to decompile for edits which is like creating a format or template.
sent from my ICS flavored HTC Vigorous Vigor. If I helped please use the "thanks" option!

pmterp said:
Do I need to pull those 3 apk's from the phone (in the system folder I think)? And then add the apk I want to edit as well?
Click to expand...
Click to collapse
Yeah, apktool will make copies but you do need to pull them from the phone first
/system/app/SystemUI.apk
/system/framework/framework-res.apk
/system/framework/com.htc.resources.apk

Thanks for the help guys! Just changed my first icon!!!

Related

Decompiling DefaultThemes.apk

Hello,
I want to decompile the DefaultThemes.apk ! However,decompiling with apk manager 4.9 gives an error !
I dont want to just change the images,but add another theme !
What can be done ?
probably the best solution would be enable the cyanogenmod themes manager and install that theme...
nicom.mt said:
probably the best solution would be enable the cyanogenmod themes manager and install that theme...
Click to expand...
Click to collapse
But that isn't possible on stock ROM right ?? What to do for stock ROM ?
dont need to decompile, just change files using 7zip
metalrawk said:
dont need to decompile, just change files using 7zip
Click to expand...
Click to collapse
I want to add a theme,not replace existing !
defaultheme.apk need dependencies for being decompiled which is framework-res.apk and SemcGenericUxpRes.apk
you can find them on /system/framework
I do not use apkmanager so can't tell you the way to do it but with apktool i do this
Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
peexl said:
defaultheme.apk need dependencies for being decompiled which is framework-res.apk and SemcGenericUxpRes.apk
you can find them on /system/framework
I do not use apkmanager so can't tell you the way to do it but with apktool i do this
Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
Click to expand...
Click to collapse
Hello,thanks ! I was able to decompile the apk successfully. However,I added the desired files for new theme,added the ids,and edited the smali files ! I then recompiled it and signed it. However,after pushing it to the phone,it doesn't work,just a blank screen is displayed ! Here is my apk ! What shall I do to make it work ?
Thanks !
Edit : It is working after restarting phone,however new theme doesn't show up in themes menu,only old ones are shown !
i have this eror too...
decompile apkmanager v5.0 send log: cant find framework resourse of parkage of id:2.You must install proper framework file, see project wedsite for more info.??
How can i decompile this defaultthemes.apk?
sr my bad english..!
Solution?
What I do is using Root Explorer.apk I extract the file while on the phone (it automatically unfold it in a new folder called extracted). I copy the original files to a TMP folder in case I delete or make mistake with the original files when copy them over.
I then connect the phone via USB and change the files thats need to be changed and then I unplug the USB cable and again using the Root Explorer.apk I choose to zip it again. An from there I rename the new file to *.apk
Hope it helps
guys please help...i like too much defaultthemes but i did everything and they don't take effect to my phone...mini pro 2.3.7 mcm7 v21 i put them in the system/app change perm but nothing...maybe cause i have a theme from themechooser or something...in the start i didn't replace the default themes.apk there wasn't anything there... any ideas???thanks
nitsakh said:
Hello,thanks ! I was able to decompile the apk successfully. However,I added the desired files for new theme,added the ids,and edited the smali files ! I then recompiled it and signed it. However,after pushing it to the phone,it doesn't work,just a blank screen is displayed ! Here is my apk ! What shall I do to make it work ?
Thanks !
Edit : It is working after restarting phone,however new theme doesn't show up in themes menu,only old ones are shown !
Click to expand...
Click to collapse
how did yu decompile it? please tell me too.. i use apk manager!
Aarush said:
how did yu decompile it? please tell me too.. i use apk manager!
Click to expand...
Click to collapse
Use the following commands with apktool to decompile ::
Code:
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
apktool d DefaultThemes.apk

[Q] apktool

Hey guys just wondering if you guys can point me in the right direction to a apktool that is working on the s3.
I've attempted to extract and set the framework.apk and decompile systemui.apk, which worked fine but when compiling the modded file I'm getting errors..
Wont compile with out any modifications either..
Any tips and comments will be appreciated... excuse my grammer as I'm writing this on my phone.
I managed to recompile framework-res.apk with apk tool however it boot looped so not convinced.
Do you have to decompile with dependencies with samsung frameworks?
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
I managed to recompile framework-res.apk with apk tool however it boot looped so not convinced.
Do you have to decompile with dependencies with samsung frameworks?
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
I'm not sure to be honest... hopefully someone can clear this up for us !
https://docs.google.com/open?id=0Bx7xmGB4IFU7bHNSdUtaWjFTOVMtN1VjZnJBcUFWUQ
framework-res.apk won't compile with samsung based roms...i don't know why but in most cases it doesn't.
Make sure to press the thanks button.!!!!
Thanks for the tip, although not being able to recompile SystemUI.apk is a different issue all together..
Iv tried setting framework.apk & twframework-res.apk from the stock firmware which came with my phone.. attempted to compile.. fails.
Iv got a feeling this is going to be something silly..
EDIT: Something has come to mind, iv only ever been able to decompile systemUI for CM9 based roms.. forgot were working with stock Samsung.. last time I had this issue I hit a brick wall pretty much apktool couldnt decompile sammy systemUI .. this may have changed.
rohan999 said:
https://docs.google.com/open?id=0Bx7xmGB4IFU7bHNSdUtaWjFTOVMtN1VjZnJBcUFWUQ
framework-res.apk won't compile with samsung based roms...i don't know why but in most cases it doesn't.
Make sure to press the thanks button.!!!!
Click to expand...
Click to collapse
There was a way of doing it where there was one apktool.jar for decompile and another for recompile. It seemed to work for me but it was not successful.
I'll create my own thread.
I need some help on this too. APKTOOL is not taking if apktool framework-res.apk in CMD. Any ideas? I'm just trying to decompile SystemUI.apk, lol. It shouldn't be this hard.
I have a big problem.
When i use untouched original framework-res and systemui, i can decompile and compile but only when i made no changes.
when i got the framework-res and systemui from my checkrom to mod some xmls ican decompile. but i can not compile
I`ve a look to my pathes but there correct.
My phone SGS3 with checkromV4
AndroidGraphix said:
I need some help on this too. APKTOOL is not taking if apktool framework-res.apk in CMD. Any ideas? I'm just trying to decompile SystemUI.apk, lol. It shouldn't be this hard.
Click to expand...
Click to collapse
apktool work fine here!
i guess you should mount twframework-res.apk in apktool
Code:
apktool if twframework-res.apk
apktool if framework-res.apk
I've managed to compile both SystemUI and framework-res using APK manager for ICS.
Sometimes when you try to use a FW res or system ui from a custom or themed rom you will get errors because of the customizations they made to them. That's why a lot of time they will tell you to start with a stock fw or systemui.
For example, when I tried to recompile a themed FW res (JB domination) I got errors, when I used a stock "virgin" copy it was fine.

[team d.i.r.t] how to properly de/recompile apks on all android versions!

There is now a new person taking over the apktool project, his name is ibotpeaches.. His apktool works with every android version up to date.. This thread will now be a basic guide on how to use apktool
iBotPeaches' APKTOOL THREAD
What I do is create a folder to work in and call it for example:
Code:
c:\apktools
1) Take the apktool.jar from ibot's OP and the modded aapt he provided and place them in the folder.
2) You will need to pull the framework-res.apk from the rom you are working on. Copy it to c:\apktools.
4) Open a command window and navigate to your apktool folder
cd c:\apktools
5) We now need to install the framework and type the following:
java -jar apktool.jar if framework-res.apk
If you are decompiling any framework other that AOSP ie: sense, touchwiz, ect you will have to install the framework and systemui.apk for them as well, ie: for miui it's framework-miui-res.apk
You only need to do this once, unless you are working on a different Rom, then you will need to copy the framework-res.apk from that Rom and run the above command again.
6) We can now decompile framework-res with apktool
java -jar apktool.jar d framework-res.apk (here you can add the folder you'd like to have your extracted apk save to)
it will create a folder by the name of the .apk or .jar by default but say you wanted it just to go to a folder called "frameres" (just to be a lil more convienent while typing your command would look like this
java -jar apktool.jar d framework-res.apk frameres
the d option stands for decompile and you will now see a folder under c:\apktools\frameres (in my case, yours will be whatever your output folder's name is). Here is all the output and can make any changes you want, and then can recompile. I would test to make sure you can recompile before making a lot of changes though.
6) We will now compile framework-res.apk
java -jar apktool.jar b frameres NEWframework-res.apk
I always put something different in the new apk name for instance i always put NEWapk.apk some people use numbers like apk1.apk ect.. whatever you feel is comfortable for you.. But once you enter the command it will take a few minutes and it should complete without any errors.
7) Once it is done compiling you will need to go to c:\apktools\ and you will now see your new framework-res.apk in my case titled "NEWframework-res.apk"
IMPORTANT LAST STEP
Once you recompile the apk you're going to wanna use 7-zip to open both the original UNMODDED apk and the newly compiled apk
you wanna copy the META-INF folder and the AndroidManifest.xml from the ORIGINAL into the NEWLY compiled apk otherwise your apk won't work
Just remember to copy any apk you want to decompile right into the root of c:\apktools, run the decompile command and it will create a folder of the output that has the same of the apk file.
Thanks for sharing and posting this! (I know there are similar threads scattered all over, but it's nice to see it fresh again). I am still on GB, but eagerly awaiting the update for ICS... Moto & AT&T - not quite a dynamic duo unfortunately...
And just to clarify a few things - what about the oem framework files, like moto/blur, touchwiz, etc..? I believe some apks require those to also be installed with apktool... and I've also read somewhere to install SystemUI.apk as well.. not sure if they are needed, but it doesn't hurt.
And at the end you mention for any xml edits to just copy the resources.arsc over to the old apk - but I think that is only for xml edits in the /values folders, that's what gets tucked in to the resources.arsc - one would still need to copy the edited and compiled xml from any other folder (like layout, anim, etc..), along with any other res changes...
Again, this is just my understanding, and I have my own ways that work well for me so far... and thanks for taking the time to put this thread together. Maybe it will serve as a sort of question and answer thread on the subject, as I have also seen many having troubles/questions..
Sent from my phone's mind
Okay fully got it but download link is broken can anyone share it with us if he has?
Regards
Sent from my GT-I9000 using Tapatalk 2
dreamer94 said:
Okay fully got it but download link is broken can anyone share it with us if he has?
Regards
Sent from my GT-I9000 using Tapatalk 2
Click to expand...
Click to collapse
It's working fine for me.
alteredlikeness said:
Thanks for sharing and posting this! (I know there are similar threads scattered all over, but it's nice to see it fresh again). I am still on GB, but eagerly awaiting the update for ICS... Moto & AT&T - not quite a dynamic duo unfortunately...
And just to clarify a few things - what about the oem framework files, like moto/blur, touchwiz, etc..? I believe some apks require those to also be installed with apktool... and I've also read somewhere to install SystemUI.apk as well.. not sure if they are needed, but it doesn't hurt.
And at the end you mention for any xml edits to just copy the resources.arsc over to the old apk - but I think that is only for xml edits in the /values folders, that's what gets tucked in to the resources.arsc - one would still need to copy the edited and compiled xml from any other folder (like layout, anim, etc..), along with any other res changes...
Again, this is just my understanding, and I have my own ways that work well for me so far... and thanks for taking the time to put this thread together. Maybe it will serve as a sort of question and answer thread on the subject, as I have also seen many having troubles/questions..
Sent from my phone's mind
Click to expand...
Click to collapse
Yes your right for htc , Motorola, touchwiz and some others you do have to install the appropriate frameworks and in those cases systemui as well but most of them do not have 4.0.4 if I'm not mistaken.. I know HTC is on 4.0.3 but that's all I can truly account for.. but about copying resources.arsc is only if you made XML edits in the values folders, it does state that if other changes were made you'd have to copy those as well.. I will clarify that better thanks for pointing that out
Sent from my Nexus S 4G using xda premium
evol4g said:
Yes your right for htc , Motorola, touchwiz and some others you do have to install the appropriate frameworks and in those cases systemui as well but most of them do not have 4.0.4 if I'm not mistaken.. I know HTC is on 4.0.3 but that's all I can truly account for.. but about copying resources.arsc is only if you made XML edits in the values folders, it does state that if other changes were made you'd have to copy those as well.. I will clarify that better thanks for pointing that out
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
Yea, Moto & Verizon just started last weekend - my buddy with a RAZR got the 4.0.4 update. I had a chance to do a system dump right away, then I decompiled the homescreen.apk just to take a look (I installed all 4 .apks in to apktool as I listed above for his system).
But, after I decompiled homescreen.apk I noticed that there were broken 9patch files already!! Before I even touched it. And that obviously messes up the compiling process - so I had to correct 6 or so broken .9.pngs - broken by Moto or Verizon, I can only assume - and after I repaired them everything compiled normally..
Just a heads-up that the "professional" devs mess up things also - and broken .9.pngs are often the cause for compiling errors..
Well, this is very handy.
I'd thought I'd chip in and say that resources.arsc often needs to be compressed at the right rate as well. If it's not at 'store', in other words if the file in the apk is smaller than normal, the app might not work correctly.
Thanks for the useful information! Here is an archive of batch files that simplify the process. Enough to drag needed file or folder with mouse at appropriate batch file:
apktool-if.cmd - installation of framework-res, SystemUI, etc.
apktool-d-1.4.2.cmd - decompiling with apktool.jar.1.4.2.
apktool-d-1.4.3.cmd - decompiling with apktool.jar.1.4.3.
apktool-b.cmd - building.
Correct version of apktool is selected automatically.
Link: ApkTools-ICS-Simple.rar
Thanks for sharing this info. I know a lot of people have been frustrated lately getting apks to properly decode and rebuild in ICS.
I took your great instructions and refined them a bit to reduce the workflow, having to rename the apktool.jar between decoding and building. You can download what I am using here.
First register framework-res by placing the framework-res.apk from your rom into the extracted apktool zip directory, then execute 0-FRAMEWORK-IF.BAT:
Code:
C:\Test\Test1.4.2-1.4.3>0-FRAMEWORK-IF.bat
I: Framework installed to: C:\Users\Derek\apktool\framework\1.apk
Next decode the apk, 1-DECODE.BAT SystemUI.apk . A new output sub-directory will automatically be created based on the apk name (SystemUI.apk_out):
Code:
C:\Test\Test1.4.2-1.4.3>apktool-1.4.2.bat d SystemUI.apk ./SystemUI.apk_out
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Derek\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Make your edits and build. 2-BUILD.BAT SystemUI.apk:
Code:
C:\Test\Test1.4.2-1.4.3>2-BUILD.bat SystemUI.apk
C:\Test\Test1.4.2-1.4.3>apktool-1.4.3.bat b -f -d SystemUI.apk_out
I: Smaling...
I: Building resources...
I: Building apk file...
Download zip package
a-id said:
Thanks for the useful information! Here is an archive of batch files that simplify the process. Enough to drag needed file with mouse at appropriate batch file:
apktool-if.cmd - installation of framework-res, SystemUI, etc.
apktool-d-1.4.2.cmd - decompiling with apktool.jar.1.4.2.
apktool-d-1.4.3.cmd - decompiling with apktool.jar.1.4.3.
apktool-b - building.
Correct version of apktool is selected automatically.
Link: ApkTools-ICS-Simple.rar
Click to expand...
Click to collapse
Awesome! Looks like we had the same idea in mind!
myn said:
Awesome! Looks like we had the same idea in mind!
Click to expand...
Click to collapse
It's not my merit, I just edited files a bit...
a-id said:
It's not my merit, I just edited files a bit...
Click to expand...
Click to collapse
Awesome thank you guys both, seriously the lack of support for the editing of 4.0.4 apks was really limiting the possibilities of ics, nice to see support from you guys
Sent from my Nexus S 4G using Tapatalk 2
Originally Posted by a-id
It's not my merit, I just edited files a bit...
Click to expand...
Click to collapse
Awesome thank you guys both, seriously the lack of support for the editing of 4.0.4 apks was really limiting the possibilities of ics, nice to see support from you guys
Sent from my Nexus S 4G using Tapatalk 2
Click to expand...
Click to collapse
Apktool and ICS haven't been friends for ages..but there's a new version out now. Head here:
http://forum.xda-developers.com/showthread.php?p=28366939#post28366939
This is designed to work with most ICS files. Some Sense files don't decompile properly but that's something HTC have done. That's nothing we can do about it.
Ticklefish said:
Apktool and ICS haven't been friends for ages..but there's a new version out now. Head here: http://forum.xda-developers.com/showthread.php?t=
This is designed to work with most ICS files. Some Sense files don't decompile properly but that's something HTC have done. That's nothing we can do about it.
Click to expand...
Click to collapse
Well that link doesn't work
Sent from my Nexus S 4G using Tapatalk 2
evol4g said:
Well that link doesn't work
Sent from my Nexus S 4G using Tapatalk 2
Click to expand...
Click to collapse
Yeah, the app didn't copy/paste correctly. I've updated the post.
Decompile Contacts.apk
I am trying o decompile any of the contacts.apk, logsprovider.apk or mms.apk to figure out a way to remove the SMS from call logs...anyone with an ideea how to accomplish this mission?
I have SGS2 with the new ICS 4.0.4 , XXLQ5
nice! thanks for redoing guide a guide like this!
---------- Post added at 12:41 AM ---------- Previous post was at 12:38 AM ----------
cristeaflorin2000 said:
I am trying o decompile any of the contacts.apk, logsprovider.apk or mms.apk to figure out a way to remove the SMS from call logs...anyone with an ideea how to accomplish this mission?
I have SGS2 with the new ICS 4.0.4 , XXLQ5
Click to expand...
Click to collapse
your going to need to provide more info about your setup... custom rom or stock rom? and have you google'd this question yet?
edit:
ive found this app, will it work for you? Call Log & SMS Clear
hmmm .. this is work for ICS 4.0.3 sir ??
Hmmmm using my easyapktool and decompiling & recompiling for ICS seems fine. I'm using the modded apktool from wanam...
Not working for odexed ROMS
da-pharoah said:
nice! thanks for redoing guide a guide like this!
---------- Post added at 12:41 AM ---------- Previous post was at 12:38 AM ----------
your going to need to provide more info about your setup... custom rom or stock rom? and have you google'd this question yet?
edit:
ive found this app, will it work for you? []
Click to expand...
Click to collapse
That ROM is fully stock and, ofcourse, odexed.It is rooted...i have google it for more than a week and tried all methods but nothing worked.That application u mentioned is doing the job(maybe) but manually.What i want is to find a method to remove from start the sms from call log, without any other further action.
I moved from that ROM to this one :WanamLite ICS UHLPS V12.2 Android 4.0.3 Stable Blue ICS & Stock Themed ...deodexed and he replaced the default option "View by - All logs" with "View by - All calls".Still not what I was looking for but is better than the stock.

[Q] How to MOD APPS ?

HI Guys !
I am new to this developer world.I recently joined XDA and i am seeing here that there are many developers modding apps ...like [MOD][APP]WALKMAN APP FOR XPERIA P FROM XPERIA V..
My question is how they make it able to run on other devices?...How i can mod ? answer my question take me as a noob.
plz help me ..
it is only for developer i think,
mod app is not easy for common user,
if you do not know well about development .you will find mod some application is a very difficult thing.
timgreen123 said:
mod app is not easy for common user,
if you do not know well about development .you will find mod some application is a very difficult thing.
Click to expand...
Click to collapse
Don't worry i know java programming....You only tell me method and what i have to download....what procedure.
P.fever said:
Don't worry i know java programming....You only tell me method and what i have to download....what procedure.
Click to expand...
Click to collapse
Well first things first, you need the apps you're going to mod...
Pull them from your ROM.
Decompile
You need apktool for this...
First things first, you need the framework-res.apk in the apktool folder.
Open a command script and install it with: apktool if framework-res.apk
Then decompile your app ( ex: SystemUI.apk ) with: apktool d SystemUI.apk
Make your changes
Change the images, do some XML editing, some smali things....
Recompile
If you want to recompile it to an .apk file use this in the command: apktool b SystemUI
DO NOT ADD APK, cuz you're building the SystemUI folder contents into an .apk
Jeroenvk94 said:
Make your changes
Change the images, do some XML editing, some smali things....
Recompile
If you want to recompile it to an .apk file use this in the command: apktool b SystemUI
DO NOT ADD APK, cuz you're building the SystemUI folder contents into an .apk
Click to expand...
Click to collapse
Is this just an posibility 4 Layout and ui (XML) changes or can i even look & change @ the java Code and underling activities?

twframework-res.apk

Hi everybody
I've used apktool V2.0.3 for decompiling and compiling my
framework-res.apk
SystemUI.apk
SecSettings.apk
ClockPackage_Osup.apk
MultiWindowTrayService.apk
SecContacts_Phone_OSup.apk
SecMms_Candy.apk
SamsungMusic_20.apk
without any problem.
But now I want to make afew changes to "twframework-res.apk" and I'm getting a huge list of error while compiling this apk ( I posted the error log at end of the post)
I use twframework-res of two different rom but still getting the same error
I think it can not locate or read the Values folder when compiling because all those resource that Apktool claimed not there is actually there (all those value are present at "Colors" and "drawables" at "values" folder)
when I enter the hex color directly at "color" folder files, the error for colors at compiling disappeared but there are too much error at drawable for fixing manually
when I remove (( forced-package-id: '2' )) line from the "apktool.yml" file, apk compile ok with just a few error in "Style" but when I use this compiled apk on my phone it won't boot
does anybody have any idea how I can fix this issue because I really need to modify this apk file
My phone is Samsung Galaxy Note 3 SM-N900 on Lollipop 5.0 (Deodexed Rom)
Log.txt:
http://s000.tinyupload.com/download.php?file_id=22857363641838387918&t=2285736364183838791824181
Go here....http://forum.xda-developers.com/showthread.php?t=1633333
I cant remember exactly, but you decompile with one apktool.jar and compile with a different one. There are like 5 different apktool.jar.
Try searching that thread.
The Sickness said:
Go here....http://forum.xda-developers.com/showthread.php?t=1633333
I cant remember exactly, but you decompile with one apktool.jar and compile with a different one. There are like 5 different apktool.jar.
Try searching that thread.
Click to expand...
Click to collapse
Thanks alot
It really worked
Thank you so much for your help
I use Apktool V2.0.3 for decompile the apk and Apktool V2.0.0rc2 for compile it
again thank you:good::good::good::good:
badboy_6120 said:
Thanks alot
It really worked
Thank you so much for your help
I use Apktool V2.0.3 for decompile the apk and Apktool V2.0.0rc2 for compile it
again thank you:good::good::good::good:
Click to expand...
Click to collapse
what framework did you use I can decompile it with 2.1.1 only but wont recompile with Apktool V2.0.0rc2 or any other one I have tried

Categories

Resources