solved - Verizon HTC One (M8)

nvrmnd Got the apktool working right... secret sauce =]

Related

Decompiling ICS 3.32.401.5 APK's using apktool.jar (APKMnanager) update

I have been playing arround with the issue of not being able to decompile the apks from OS 3.32 roms.
The issue seems to be when decompiling the systemui.apk you are getting the following errors:
--------------------------------------------------------------------------
|04/03/2012 -- 23:59:11.09|
--------------------------------------------------------------------------
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing)
Could Not Find C:\APKManager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk
Could Not Find C:\APKManager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:48)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
This points to erros in Backsmaling and the backsmali files being too old. I then hunted arround and found a neat little tool to deompile apks and the jar files to make them editable. This did not work either giving me the same error. I then found an update backsmali.jar and smali.jar ver 1.3.2 from here: and it decompiled the systemui.apk perfectly.
Can we intergrate the newer versions of the smali 1.3.2 files into apk manager to decompile ICS roms? This is a bit beyond me!
Progress update:
Ok I have download the source apktool using ubuntu. The next stage is to download API15 and add it into the source then rebuild, but not sure how to do that yet. I know I have API15 on my Windows PC but dont know what files I need to update apktool to API15. Will keep working on it though!
Yep, it's a problem right now. Check out this issue:
http://code.google.com/p/android-ap... Type Status Priority Milestone Owner Summary
Someone posted a hacked apktool.jar which seems to work but I'm not sure if I trust the results.
rmk40 said:
Yep, it's a problem right now. Check out this issue:
http://code.google.com/p/android-ap... Type Status Priority Milestone Owner Summary
Someone posted a hacked apktool.jar which seems to work but I'm not sure if I trust the results.
Click to expand...
Click to collapse
Can I ask why you do not trust the results?
I have tried with the hacked version and so far I am now able to decompile and compile the systemui.apk with out any problems! But still got errors compiling framework-res.apk so still some issues there! All I did was modify value.xml file to enable crt animation!
Hi, for to decompile all apk must remove classes.dex from this apk and decompile with apktool1.4.2.....after compile with 1.4.3 and reinsert classes.dex into the apk
same problem with me,also looking for help.
rmk40 said:
Yep, it's a problem right now. Check out this issue:
http://code.google.com/p/android-ap... Type Status Priority Milestone Owner Summary
Someone posted a hacked apktool.jar which seems to work but I'm not sure if I trust the results.
Click to expand...
Click to collapse
In this way,decomplie is ok,but re-complie still has problem
I ive noticed that you cant compile with this just yet. Looks as if we are going to have to wait for a rebuilt tool!
From what I can see the current apktool.jar was built with API14. ICS 4.03 is built with API15. What we need is to have the apktool.jar updated with API5. This involves building the apktool from source which I believe is available but I dont know how to do this
Source code link here:
Ok I have download the source apktool using ubuntu. The next stage is to download API15 and add it into the source then rebuild, but not sure how to do that yet. I know I have API15 on my Windows PC but dont know what files I need to update apktool to API15. Will keep working on it though!
where is this said hacked apktool?
oh nm i found it in that post...
says it only works 0n 4.0.3 tho hmmm i will try with the 4.0.4 gapps anyways and see
GhostXSeries said:
Ok I have download the source apktool using ubuntu. The next stage is to download API15 and add it into the source then rebuild, but not sure how to do that yet. I know I have API15 on my Windows PC but dont know what files I need to update apktool to API15. Will keep working on it though!
Click to expand...
Click to collapse
I don't know either
Unfortunately I chose to learn flash ActionScript 2 years ago (it was useful at the time - I had Samsung Tocco Lite and made flash themes for it) but since moving to Android I realised flash doesn't do a lot of good when working with java so at some point I really need to learn java
Sent from my HTC Sensation XE with Beats Audio Z715e using xda premium
I dont know what to do here, I have updated my sdk, made sure i installed theright framework. done everything from replacing the aapt file to replacing the apktool file. Its ridiculous that compiling the SystemUI.apk has to be this difficult, if it can be decompiled easily why cant the reverse be just as simple??
I cant get SystemUI.apk to compile, it starts the process then just errors out.
Has anybody found a workaround for this? Updating my SDK and aapt and apktool didn't work for me.
Sent from my HTC Sensation using Tapatalk
It looks as if we need to download the source of apktool from git. Add in API15 and the updated smali and backsmali tools, then recompile the apk tool. Unfortunitly this is a little out of my leauge.
If anybody is able to do this it would be awsome!
Out of my skill range as well
Sent from my HTC Sensation using Tapatalk
Do you think it would be possible to simply edit the pngs of systemui without decompiling and recompiling by taking out the .9 pngs to edit those with the .9 editor?
Sent from my HTC Sensation using Tapatalk
GhostXSeries said:
It looks as if we need to download the source of apktool from git. Add in API15 and the updated smali and backsmali tools, then recompile the apk tool. Unfortunitly this is a little out of my leauge.
If anybody is able to do this it would be awsome!
Click to expand...
Click to collapse
Maybe PM leedroid, I think he already done it but I'm not sure so don't take that as gospel truth, just he hinted at it in a post
Sent from my HTC Sensation XE with Beats Audio Z715e using xda premium

Theme Question. Please Help.

CM10. I can't for the life of me figure out how to theme these blue parts in the Contacts.apk without the Phone app FCing. Everytime I edit anything in the colors.xml for the Contacts.apk the Phone app FC's. I've edited other app xml's just fine with no fc's. I've managed to successfully change the blue parts in this picture to red by editing this line in colors.xml <color name="people_app_theme_color">#ff33b5e5</color> but whenever I do that, like I said, the Phone app FC's and I have to change it back. I'm trying to change the #ff33b5e5 which is blue to #ffcc0000 which is red. It's the only part of my theme I haven't been able to fix. Can someone with the know-how PLEASE help me. I'm so frustrated lol. I've been trying to figure this out for 5 days now.
You had to make the edit to the source file before the apk is built. This has been an issue for a long time.
Sent from the Bat Cave
zelendel said:
You had to make the edit to the source file before the apk is built. This has been an issue for a long time.
Sent from the Bat Cave
Click to expand...
Click to collapse
Thank you. Someone finally answered lol.
I don't understand tho. This is what I did:
-Decompiled the Contacts.apk with apktool
-edited the colors.xml in Contacts > res > values
-Saved the color.xml with the new changes
-Recompiled Contacts.apk with apktool
Now the Phone app fc's. How come there is a problem with this but no problems with any of the other apks I edit?
You can't edit ICS/jb contacts that way anymore. You have to do it in the source file and then build the apk. I also faced this issue and had to build the apk from scratch to make it work.
Sent from the Bat Cave
zelendel said:
You can't edit ICS/jb contacts that way anymore. You have to do it in the source file and then build the apk. I also faced this issue and had to build the apk from scratch to make it work.
Sent from the Bat Cave
Click to expand...
Click to collapse
I see. That must be why there are so many blue themes lol. I thought I've seen some red ones tho.
Can you show me how? Or lead me in the right direction?
Also, is that the only apk that you need to do that for?
Sent from my One X using xda app-developers app
SkizzMcNizz said:
I see. That must be why there are so many blue themes lol. I thought I've seen some red ones tho.
Can you show me how? Or lead me in the right direction?
Also, is that the only apk that you need to do that for?
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
What I had to do was set up a build environment and then sync with the the ROMs git hub and then sync the repo and then made my edits and built the whole ROM.
The phone apk is also like this
Sent from the Bat Cave
zelendel said:
What I had to do was set up a build environment and then sync with the the ROMs git hub and then sync the repo and then made my edits and built the whole ROM.
The phone apk is also like this
Sent from the Bat Cave
Click to expand...
Click to collapse
Damn that's so much work just to theme one line. Does the same thing happen if I use Theme Chooser?
Is it only CM10 roms that have that problem? I'm wondering if the same thing would happen if I try to make a Sense theme.
Sent from my One X using xda app-developers app
I wonder if it's because the colors of those apps are inverted. The background of the phone app is dark and the one in the contacts app is white. Maybe that's why there is a problem?
Sent from my One X using xda app-developers app
SkizzMcNizz said:
I wonder if it's because the colors of those apps are inverted. The background of the phone app is dark and the one in the contacts app is white. Maybe that's why there is a problem?
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
The problem is from the apktool jar file. It decodes a few apks badly. Not sure what set up your using but seems The newest apktool from ibots fixed this issue.
zelendel said:
The problem is from the apktool jar file. It decodes a few apks badly. Not sure what set up your using but seems The newest apktool from ibots fixed this issue.
Click to expand...
Click to collapse
Awesome do you have a link?
Sent from my One X using xda app-developers app
SkizzMcNizz said:
Awesome do you have a link?
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
A search would have found it easy enough lol. Here is a link. I have been able to edit all the xmls without an issue.
http://forum.xda-developers.com/showthread.php?t=1755243
zelendel said:
A search would have found it easy enough lol. Here is a link. I have been able to edit all the xmls without an issue.
http://forum.xda-developers.com/showthread.php?t=1755243
Click to expand...
Click to collapse
Thanks man. You have been such a great help. I appreciate it.
What should I download? Just the apktool.jar or the updated aapt also? It says on one page that the aapt is only required for Linux but on the OP it says that the patched aapt is required. It says it under previous versions.
Sent from my One X using xda app-developers app
I use a modded version of apkmultitool and all I did was tale the apktool jar file
Sent from the Bat Cave
zelendel said:
I use a modded version of apkmultitool and all I did was tale the apktool jar file
Sent from the Bat Cave
Click to expand...
Click to collapse
Can you send me your apktookmultitool? I'm still getting a fc when I try to open the Phone app. The only thing I changed is the line in the colors.xml in the Contacts apk that said "People app theme color". I changed it to #ffcc0000. Whenever I decompile the Phone.apk it decompiles fine but I get a bunch of errors when I recompile even if I dont' change anything. I'm not using apkmultitool or apkmanager. I'm just using apktool and these commands: java -jar apktool.jar d Contacts.apk and to recompile I use: java -jar apktool.jar b Contacts.
EDIT: Holy Sh*t, Nevermind I got it. I didn't need to change anything in the Phone.apk at all just the Contacts.apk. But I'd still like to know how come my Phone.apk gives errors every time I try to recompile.
I can finally move on now! lol
SkizzMcNizz said:
Can you send me your apktookmultitool? I'm still getting a fc when I try to open the Phone app. The only thing I changed is the line in the colors.xml in the Contacts apk that said "People app theme color". I changed it to #ffcc0000. Whenever I decompile the Phone.apk it decompiles fine but I get a bunch of errors when I recompile even if I dont' change anything. I'm not using apkmultitool or apkmanager. I'm just using apktool and these commands: java -jar apktool.jar d Contacts.apk and to recompile I use: java -jar apktool.jar b Contacts.
EDIT: Holy Sh*t, Nevermind I got it. I didn't need to change anything in the Phone.apk at all just the Contacts.apk. But I'd still like to know how come my Phone.apk gives errors every time I try to recompile.
I can finally move on now! lol
Click to expand...
Click to collapse
Yeah then only changes that need to be done in the dialer is for the in call screen. I will upload my apkmultitool as soon as I can. My PC is hooked up to the TV and better half has control
Sent from the Bat Cave
zelendel said:
Yeah then only changes that need to be done in the dialer is for the in call screen. I will upload my apkmultitool as soon as I can. My PC is hooked up to the TV and better half has control
Sent from the Bat Cave
Click to expand...
Click to collapse
Ok sounds good. Thanks.
Btw would you know why I would get a fc when I try to theme the Swiftkey 3 keyboard? I themed it and then put it on my sdcard and tried to install it but it said "app not installed." That happened when I tried to theme the Facebook app but I put it in System/app and it worked but when I put Swiftkey 3 in System/app it just fc's. I know its not because of the 9.png's because I themed them correctly. I'm wondering if its maybe because its a paid app that I purchased? Do you think I'll have that problem with all the apps that aren't in System/app such as Chrome, Play Store, etc.?
SkizzMcNizz said:
Ok sounds good. Thanks.
Btw would you know why I would get a fc when I try to theme the Swiftkey 3 keyboard? I themed it and then put it on my sdcard and tried to install it but it said "app not installed." That happened when I tried to theme the Facebook app but I put it in System/app and it worked but when I put Swiftkey 3 in System/app it just fc's. I know its not because of the 9.png's because I themed them correctly. I'm wondering if its maybe because its a paid app that I purchased? Do you think I'll have that problem with all the apps that aren't in System/app such as Chrome, Play Store, etc.?
Click to expand...
Click to collapse
It could be that the app developer has it set not to work if decompiled. Hand cent is that way (and pisses me off as I am stuck with bob issues due to their lazy theming lmao.) I have edited a few apps and have no issues. Like tapatalk and what not. But some just won't work.
Sent from the Bat Cave
zelendel said:
It could be that the app developer has it set not to work if decompiled. Hand cent is that way (and pisses me off as I am stuck with bob issues due to their lazy theming lmao.) I have edited a few apps and have no issues. Like tapatalk and what not. But some just won't work.
Sent from the Bat Cave
Click to expand...
Click to collapse
Yea that sucks lol. I wanna add some red to the Swiftkey 3 keyboard. =(
Here is a link to my version of the apkmultitool. You can unzip it anywhere and it will work. At least it does for me lol
https://dl.dropbox.com/u/7544625/apktool test.7z
zelendel said:
Here is a link to my version of the apkmultitool. You can unzip it anywhere and it will work. At least it does for me lol
https://dl.dropbox.com/u/7544625/apktool test.7z
Click to expand...
Click to collapse
Thanks. I'll try it out. Just wondering, is there any reason you don't just use apktool? Also, what did you change in the apkmultitool?
Sent from my One X using xda app-developers app

[Q][OffTopic] Basic requirements for decompiling and recompiling apks

Hey guys what are the basic things we need to decompile and recompile apk? And which is the best tool for this task?
Please tell in detain
Thanks annoying bee
Sent from my HTC powered with Minimilised ROM
Annoying Bee said:
Hey guys what are the basic things we need to decompile and recompile apk? And which is the best tool for this task?
Please tell in detain
Thanks annoying bee
Sent from my HTC powered with Minimilised ROM
Click to expand...
Click to collapse
Hi..
Best tool will be apktool.. on windows or on linux..
Apktool for it.. Check details on the original thread for it..
Its pretty simple..
with latest apktool you can not only decompile and recompile apks but also jar files using apktool ... by
Code:
apktool d <nameofile>
or
Code:
apktool b <nameoffile>
Annoying Bee said:
Hey guys what are the basic things we need to decompile and recompile apk? And which is the best tool for this task?
Please tell in detain
Thanks annoying bee
Sent from my HTC powered with Minimilised ROM
Click to expand...
Click to collapse
Check this:
http://stackoverflow.com/questions/1249973/decompiling-dex-into-java-sourcecode
akshat.shenoy said:
Hi..
Best tool will be apktool.. on windows or on linux..
Apktool for it.. Check details on the original thread for it..
Its pretty simple..
with latest apktool you can not only decompile and recompile apks but also jar files using apktool ... by
Code:
apktool d <nameofile>
or
Code:
apktool b <nameoffile>
Click to expand...
Click to collapse
Yeah i used it but problems in recompiling apks! So i modded apktool on my own.

(Q) how to compile and decompile apk???

There is so many guides in xda forum about compiling and decompiling apk.. but none of that working 100% easy way.. i tried apktool, apkmulti tool, Virtuous Ten Studio (VTS) and some other tool... developers please give a link.. or guide me how to decompile and compile an apk easy steps..
Here is the link of apktool which runs straight on your phone http://code.google.com/p/apktool/downloads/list, download the apktool4.1_armhf.zip for faster decompiling and reompiling
Dark Nexus
Dark Nexus said:
Here is the link of apktool which runs straight on your phone http://code.google.com/p/apktool/downloads/list, download the apktool4.1_armhf.zip for faster decompiling and reompiling
Dark Nexus
Click to expand...
Click to collapse
All aside from the apk tool is not downloading. Any other option?
Sent from SgY Evo-x 4.2 using xda-developers app .... btw, i'm a girl, don't call me sir... ;p
Here is direct download link http://apktool.googlecode.com/files/apktool4.1_armhf.zip
Hit thanks if you like
Dark Nexus
with apktools i can easyly decompiling apk.. but problem in compiling.. can anyone guide me how to compile apk..

Guys teach me how to recompile framework.jar

Hi Guys!
Im having promblem recompiling my framework2.jar im using apktool
When im recompiling its giving me an error i'ved have tried all of the apktools
old version latest version but still doesn't work it's just totally giving me an error
i dont really know about this apktool this is the first time im using it
I can't attached a screenshot im a new member at xda developers so i cant show you the error

Categories

Resources