(Q)Apktool for 4.0.3+Sense 3.6 - Android Q&A, Help & Troubleshooting

Whats up?
Is there any apktool that decompie and compile an 3.6 and 4.0.3 apks?
I tried Apk Manager v4.9, getting errors.
Thanks!

I have looked for so long to be able to work apktool with 4.0.3 with no luck. I hope someone can help.
Sent from my GT-I9100 using xda premium

Hi,
Look here: http://forum.xda-developers.com/showthread.php?t=1511755

Thanks man.
but I tried it, it doesnt work on sense 3.6 just on android 4.0.3

thereupemi said:
Thanks man.
but I tried it, it doesnt work on sense 3.6 just on android 4.0.3
Click to expand...
Click to collapse
Ok here is the process:
Use apktool 1.4.3 to decompile the apk after loading the resource files obviously.
Then make all the modifications you want and recompile with apktool 1.4.2, now open original apk and modded apk with 7zip and replace "resource.arsc" file from modded one to the original one and you are done.
This is how it is done atleast in my case.
If you didn't understand I'll try to write a post with Screenshots if I find some time, hope it did helped you.
Sent from my HTC Vision using Tapatalk

Cool I will give it a try in the weekend, and let you know
Thanks Alot!

I wasn't successfully able to decompile/recompile stock framework-res.apk from HTC Vivid 4.03, but I was able to decompile/recompile the one from UOT Kitchen after I did a battery icon mod.
I'd try that if you guys still have problems. You may not actually have to even mod anything, just upload the required files, then download UOT's zip, then decompile/recompile using the tool in this thread.

Related

Trying to Modify launcher2.apk super slim less then 500kb help

Ok not sure if this is the correct place to post so if its not op please move it.
Ok im trying to mod the launcher2.apk to remove default wallpapers and some homescreen widgets i have used apktool to decompile and i have removed wallpapers and widgets plus all references then i compile using apktool if i push the file to my system dir and reboot all works fine but the problem is if i add this new launcher2.apk to my custom oxygen rom then flash the phone boots up but launcher2.apk does not load im sure this is a sign problem. Does any one know how to solve this problem and what sign keys does the oxygen system apks use.
The reason im trying to do this is i dont use any default wallpapers and i can get the launcher2.apk from 4.68mb to less then 500kb i will share the apk after its done. Thanks in advance.
Did you try installing it as a normal app ?
Forever living in my Galaxy Ace using XDA App
Yes it just says application not installed.
Sent from my HTC Desire using Tapatalk
Any one?
Sent from my HTC Desire using Tapatalk
If you recompiled the app, try resigning it.
With what ?i tryed sign it with testkeys and platform and still does the same thing.
Please delete.
Sent from my chameleonized SGS2 using my brain.
I was under the impression that if you're going to make changes to an .apk file, you had to decompile the .apk and make your changes, then take the folders you changed and push it to the regular launcher2.apk instead of recompiling and using the recompiled .apk. Doing it that way keeps the original signature intact.
I could be completely wrong though, so I would appreciate it if someone could confirm or deny this.
Edit: Just realized this thread was from 2011... My bad.
U shud have just zipaligned and batch optimized lol
Sent from my PG86100 using xda app-developers app

[Q] What is VRTHEME??

I saw lots of theme which has this in their title. but I can't find any guide or tutorial about this. So, what is this? how could I use it? has it any benefit over usual "decompile/theme/recompile/replace"ing an apk?Is there any script to implement it like apktool?
Its the universal theme flasher created by Villain ROM.
As for all your other questions I'm not sure.
Sent from my GT-I9100 using XDA
thanks,
correct me if I'm worng pls.
Universal theme flasher, is kind of template. and I should extract compiled PNGs and xmls from apk file and paste theme into that. and for editing theme, I need to paste and replace those files into the apk file and then decompile that apk.
then what should I do if I changed something in "values" folder? cause it just appears in decompiled apps and It can't be seen in a compiled app.
sam5154 said:
thanks,
correct me if I'm worng pls.
Universal theme flasher, is kind of template. and I should extract compiled PNGs and xmls from apk file and paste theme into that. and for editing theme, I need to paste and replace those files into the apk file and then decompile that apk.
then what should I do if I changed something in "values" folder? cause it just appears in decompiled apps and It can't be seen in a compiled app.
Click to expand...
Click to collapse
I think after compiling the apk, you should copy the "classes" and the other file *-) I can remember its name, and add them there.
Am not sure *-) I had this question too but I thought abt trying it first and if it doesnt work I wld ask. I have no time to try I have exams
Ba7rani123 said:
I think after compiling the apk, you should copy the "classes" and the other file *-) I can remember its name, and add them there.
Am not sure *-) I had this question too but I thought abt trying it first and if it doesnt work I wld ask. I have no time to try I have exams
Click to expand...
Click to collapse
classes.dex is for the smali that has been edited if there was any.
I assume that if the xmls were edited and they point to new PNG images/objects then the resources has been changed. I would say that in this case you would need to have an updated resources file for these adjustments? This could be pulled from your newly compiled .apk that you want to base your flashable theme off?
I am unsure if resources needs to be updated though for certain? I have flashed in the past new xmls and they worked fine, however these were not referencing any new sources or images...so my thoughts are that these mods I made didn't require this additional file?? I could be wrong. I really should read the thread about it here on XDA. I did a long time ago, but have come a long way since then.
I diverse. Try using it without new resources file and see what happens?
You may also like to looking into Morphing as well (very similar concept).
James
i would also like a explanation to what vrtheme is, all i know is that when i flash it IT NEVER WORKS!
xdarkmario said:
i would also like a explanation to what vrtheme is, all i know is that when i flash it IT NEVER WORKS!
Click to expand...
Click to collapse
is your ROM deodexede? It only works on deodexed Rom?
Sent from my GT-N7100 using Tapatalk 2
sam5154 said:
is your ROM deodexede? It only works on deodexed Rom?
Sent from my GT-N7100 using Tapatalk 2
Click to expand...
Click to collapse
yep, both my phones i tried them on are deodexed.

[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.

[How-To]Change Grey Status Bar Color to Black

This Is Just a Small How To Change Status Bar Color To Black For Those Who Are Having Problems With Grey Status Bar :
Things Needed :
Code:
Basic Knowledge Of Compiling/decompiling
notepad ++ get it from [URL="http://notepad-plus-plus.org/"]Download[/URL]
First Decompile Your SystemUI.apk
Use Any Of The Preferred Methods
Code:
Then Browse To res > Values >drawables.xml
open the xml in notepad++ and search for
Code:
and search for
<item type="drawable" name="status_bar_background">
and change the codes you get with that to
Code:
[COLOR="Red"]#ff000000[/COLOR]
#FF000000 is your code for black
save it and recompile
Then Either Place It In Your System/app/
and change the permissions rw-r-r- or make a flashable zip and your good to go
If Someone wants to Make a request For The Black Status Bar Please Post Your :
SystemUI.apk
Framework-res.apk
twframework-res.apk​
PS: hit thanks if you think its not hard to hit it
Guys il Post The Grey Status Bar Fix Flashable Zip Here :
For XXDMA5 -- > Flashable Zip
For XXDLJ2 4.1.2 -- > Flashable Zip
For XXDLL4 4.1.2 -- > Flashable Zip​​
what are you using to recompile? apktool? i haven't done any compiling in a while. last i knew was apktool wouldn't work on JB.
na7q said:
what are you using to recompile? apktool? i haven't done any compiling in a while. last i knew was apktool wouldn't work on JB.
Click to expand...
Click to collapse
Apktool works....
Fired From My FireDevice.
na7q said:
what are you using to recompile? apktool? i haven't done any compiling in a while. last i knew was apktool wouldn't work on JB.
Click to expand...
Click to collapse
exactly like sahil said apktool works and if you still face any isdue just let me know
Awesome Post.thanks for share.
Warren87 said:
Awesome Post.thanks for share.
Click to expand...
Click to collapse
no problem my friend
Any chance for a flashable zip file? W
wmfreak said:
Any chance for a flashable zip file? W
Click to expand...
Click to collapse
+1 with many thanks
If someone who already done this could share the zip with us it would be awesome. Thanks..
Sent from my GT-N7100 using xda premium
guys just you guys wanted if you guys can post your version of Rom your using i can upload it for you
i can't get it to recompile. i've tried everything. recompiling works great. maybe it needs some updating or something? happen to have an entire linux or windows update of apktool that i can use?
na7q said:
i can't get it to recompile. i've tried everything. recompiling works great. maybe it needs some updating or something? happen to have an entire linux or windows update of apktool that i can use?
Click to expand...
Click to collapse
upload your systemUI.apk framework-res.apk and tw framework-res.apk
and also firmware version so that it can be helpful for other users as well
here you are my friend! thanks much for helping out!
i'm running the ALJC firmware on the USCC note 2 but running Sprints ALJC firmware.
i modified it to work on the USCC note 2 in case you were wondering.
USCC hasn't gotten any updates :/ so i've gone ahead and made my own you could say.
http://d-h.st/MyT
http://d-h.st/nDs
http://d-h.st/vn8
na7q said:
here you are my friend! thanks much for helping out!
i'm running the ALJC firmware on the USCC note 2 but running Sprints ALJC firmware.
i modified it to work on the USCC note 2 in case you were wondering.
USCC hasn't gotten any updates :/ so i've gone ahead and made my own you could say.
http://d-h.st/MyT
http://d-h.st/nDs
http://d-h.st/vn8
Click to expand...
Click to collapse
no problem my friend il just take a look at it
thanks again! i'm just a wittle bit sad i can't decompile/recompile it myself
who knew decompiling, editing and then recompiling classes.dex were easier than apk's
boggles my mind....
na7q said:
thanks again! i'm just a wittle bit sad i can't decompile/recompile it myself
who knew decompiling, editing and then recompiling classes.dex were easier than apk's
boggles my mind....
Click to expand...
Click to collapse
here mate try this
and report back
ALJA please
Here are my files. I'm on alj3 odex stock.
http://db.tt/USwdDmLv
I tried De compiling myself by failed miserably
Sent from my GT-N7100 using xda premium
MohJee said:
Here are my files. I'm on alj3 odex stock.
http://db.tt/USwdDmLv
I tried De compiling myself by failed miserably
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
try this mate and revert hope everything turns out well

[Q] how to modify status bar and status bar icons?

Hi all,
Someone can tell me which apk or framework i have to edit to modify status bat color , battery icon, Wi-Fi icon etc... ?
Thank you
SystemUI.apk and framework-res.apk
Sent from my awesome fridge
darxsen said:
Hi all,
Someone can tell me which apk or framework i have to edit to modify status bat color , battery icon, Wi-Fi icon etc... ?
Thank you
Click to expand...
Click to collapse
Can't remember exactly which one but you want to mod these apks - settings, framework, lidroid, system ui, & if I remember right from htc devices.... also the Rosie.apk too. You're know which one controls what when you start searching!
Hope this helps & if so.... Press that thanks button :thumbup:
sent from my super modded Samsung Galaxy S3
deanr1977 said:
Can't remember exactly which one but you want to mod these apks - settings, framework, lidroid, system ui, & if I remember right from htc devices.... also the Rosie.apk too. You're know which one controls what when you start searching!
Hope this helps & if so.... Press that thanks button :thumbup:
sent from my super modded Samsung Galaxy S3
Click to expand...
Click to collapse
Those aren't needed, just the one I posted above.
Sent from my awesome fridge
MaartenXDA said:
Those aren't needed, just the one I posted above.
Sent from my awesome fridge
Click to expand...
Click to collapse
Just pull the 1 zip or 2 zips from the rom, & explore for you're self, I think its the system ui but could be wrong, I'm not near my computer at the moment to check so I can't say exactly which one it is? If you're gonna mod the battery icons you're gonna look inside anyway & I takes like 10secs to extract & search the apk? If you don't wanna do that, there are various apps in the playstore you can download for free to look at the framework pics from inside the apks without opening them! Hope this helps.... press thanks if it did
sent from my super modded Samsung Galaxy S3
deanr1977 said:
Just pull the 1 zip or 2 zips from the rom, & explore for you're self, I think its the system ui but could be wrong, I'm not near my computer at the moment to check so I can't say exactly which one it is? If you're gonna mod the battery icons you're gonna look inside anyway & I takes like 10secs to extract & search the apk? If you don't wanna do that, there are various apps in the playstore you can download for free to look at the framework pics from inside the apks without opening them! Hope this helps.... press thanks if it did
sent from my super modded Samsung Galaxy S3
Click to expand...
Click to collapse
Is this post meant for me?
Sent from my awesome fridge
darxsen said:
Hi all,
Someone can tell me which apk or framework i have to edit to modify status bat color , battery icon, Wi-Fi icon etc... ?
Thank you
Click to expand...
Click to collapse
As Maarten already pointed out SystemUI.apk and framework-res.apk. And if you want to use them in apktool you'll also need com.htc.resources.apk.
Just out of curiosity: are you going to use UOT or apktool? Been trying to change status bar clock colour on half-sense and fulmix (see my post in his thread) with apktool but haven't succeeded yet.
What are your plans on theming?
Just pull the zips & open using winrar? Thts what I've been doing for around 4yrs now
sent from my super modded Samsung Galaxy S3
deanr1977 said:
Just pull the zips & open using winrar? Thts what I've been doing for around 4yrs now
sent from my super modded Samsung Galaxy S3
Click to expand...
Click to collapse
That's just image editing.
If you want to theme it even further, you need to decompile it and edit .xml's and .smali's.
Sent from my awesome fridge
I want to modify just some png , i would a complete BuuF theme on my desire X..
However i would use apktool, because i always used it, but i think i have to try something else, because when i try to debuild Rom's apk it says: "bad magic number" or something similar..
R: [Q] how to modify status bar and status bar icons?
darxsen said:
I want to modify just some png , i would a complete BuuF theme on my desire X..
However i would use apktool, because i always used it, but i think i have to try something else, because when i try to debuild Rom's apk it says: "bad magic number" or something similar..
Click to expand...
Click to collapse
It gives you this errors because there is classes.dex file on it. Delete it and than decompile.
Dex files are most of them added by phone's company; for us HTC.
Sent from my HTC Desire X using xda premium
fulmix said:
It gives you this errors because there is classes.dex file on it. Delete it and than decompile.
Dex files are most of them added by phone's company; for us HTC.
Click to expand...
Click to collapse
Ok, but if i delete dex files when i rebuild the package will it work ?
Is there any room that allow to edit it theme? With a simple apk?
I hate work on others apk, mostly if these apk are HTC's apk U.U
darxsen said:
Ok, but if i delete dex files when i rebuild the package will it work ?
Is there any room that allow to edit it theme? With a simple apk?
I hate work on others apk, mostly if these apk are HTC's apk U.U
Click to expand...
Click to collapse
Open with WinRAR or 7-Zip delete classes.dex and than decompile with apktool.
Note: you do not have to extract apk to delete classes.dex file.
fulmix said:
Open with WinRAR or 7-Zip delete classes.dex and than decompile with apktool.
Note: you do not have to extract apk to delete classes.dex file.
Click to expand...
Click to collapse
Why would there be a need of deleting classes.dex? I've decompiled lots of HTC apps and they all worked fine.
Sent from my awesome fridge
MaartenXDA said:
Why would there be a need of deleting classes.dex? I've decompiled lots of HTC apps and they all worked fine.
Sent from my awesome fridge
Click to expand...
Click to collapse
Bad Mugic Number error is usually for this file.
Samsung, HTC, etc. have different dex files.
fulmix said:
Bad Mugic Number error is usually for this file.
Samsung, HTC, etc. have different dex files.
Click to expand...
Click to collapse
have i to put back .dex files ? or not?
darxsen said:
have i to put back .dex files ? or not?
Click to expand...
Click to collapse
It's not necessary.
But deleting it avoid the Bad Magic Number errors.
People, cause my brother has my same account I have to create my new one, so your fulmix now is xpirt
Sent from my HTC Desire X using xda premium
fulmix said:
It's not necessary.
But deleting it avoid the Bad Magic Number errors.
Click to expand...
Click to collapse
Can you prove this ??
Make a SystemUI.apk without classes.dex and put that in you ROM and release to all users to test. If it works, I will resign from making ROMs.
---------- Post added at 04:27 PM ---------- Previous post was at 04:24 PM ----------
darxsen said:
I want to modify just some png , i would a complete BuuF theme on my desire X..
However i would use apktool, because i always used it, but i think i have to try something else, because when i try to debuild Rom's apk it says: "bad magic number" or something similar..
Click to expand...
Click to collapse
Use latest apktool, bad magic value errors fixed in new version.
Refer to this for more info : http://forum.xda-developers.com/showthread.php?t=1642224
BTW... if it just some icons png that you need to change, just replace the pngs, decompile/recompile is not needed.
---------- Post added at 04:28 PM ---------- Previous post was at 04:27 PM ----------
darxsen said:
have i to put back .dex files ? or not?
Click to expand...
Click to collapse
SystemUI must have classes.dex; there is where all the instructions (the smali files) come from for the apk to work. Like what to run for the EQS and many more.
As mentioned on the link given above
Code:
b) If you are using apkmanager, you can just export classes.dex, then delete classes inside the apk. Then decompile, edit, compile and add classes.dex back when ready.
MaartenXDA said:
That's just image editing.
If you want to theme it even further, you need to decompile it and edit .xml's and .smali's.
Sent from my awesome fridge
Click to expand...
Click to collapse
Yeah you're right you can edit the xmls & smalis, I have never got the hang of that yet? I just do it the other way
darxsen said:
I want to modify just some png , i would a complete BuuF theme on my desire X..
However i would use apktool, because i always used it, but i think i have to try something else, because when i try to debuild Rom's apk it says: "bad magic number" or something similar..
Click to expand...
Click to collapse
I have made wicked themed roms on the desire hd & now on the samsung galaxy s3! I just pull the res folder then mod the pngs with photoshop & then push back to the zip & flash.... ok its not perfect but I've made sum sweet looking ui & systems by doing it that way
sent from my super modded Samsung Galaxy S3

Categories

Resources