FORUMS

[Tutorial]How to decompile/recompile/Sign Whatsapp.apk

1,816 posts
Thanks Meter: 4,114
 
By Yorzua, Senior Member on 30th January 2012, 12:32 PM
Post Reply Email Thread
Hi everyone,

Working around in some apk's, I noticed that some apps are more tricky to work with.
I will show you in this tutorial how to decompile/recompile/Sign Whatsapp.apk

Requirements :
My Apktool -Yorzua Kit
Notepad++

I just added a complete KIT including all the tools in one folder.
no need anymore to use Openssl or change/move to another program.



to decompile :

Code:
apktool d <yourwhatsappname>.apk ( can be whatever name you give to your apk )
edit the xml/smali you want :
see my tuto here to give an idea how to edit the xml files and smali files with Notepad++ (Written on C++ and using Win32API, you will be able to easily change, copy, trace, find all the codes you will find in this guide ).

to compile :

Code:
apktool b <yourwhatsappname> ( can be whatever name you give to your apk )
to sign :

Code:
java -jar SignApk.jar testkey.x509.pem testkey.pk8 <yourwhatsappname>.apk <yourwhatsappname>_signed.apk

Those following screenshots are some examples of what you can achieve by decompiling - editing at your taste - compiling - signing an apk like Whatsapp











Or even the 1st Whatsapp Transparent in the web !!!



I am quite busy at the moment but if you are interested on my work,
please visit my Whatsapp MODS Thread

Or my new tuto "Create your 9.png !"
http://forum.xda-developers.com/show....php?t=1511537

I thought it is a good addition to this whatsapp tuto, especially for the bubbles.9.png's


Click on the thanks if it helps you as i do for each of you

If you come by my thread and like my work, i ask nothing more than a little thanks for the effort.
If you dont, then just give me credits if you use it.
Thanks for reading, i wish you a great day ☼
The Following 98 Users Say Thank You to Yorzua For This Useful Post: [ View ] Gift Yorzua Ad-Free
30th January 2012, 12:33 PM |#2  
antonda's Avatar
Senior Member
Flag between here and over there
Thanks Meter: 637
 
Donate to Me
More
Thanks bro

Sent from my GT-I9000 using Tapatalk
30th January 2012, 08:01 PM |#3  
cybermessiah's Avatar
Senior Member
Flag Panciao City Taipei County
Thanks Meter: 1,156
 
More
There is another way to sucessfully sign the apk without use of Open SSL to generate the key.p8 and certificate.pem files and without having to use SignApk.jar.

Auto-sign is another tool that eliminates the use of those steps.

First copy the official WhatsApp.apk into the Autosign folder
Change extension to zip and replace your pngs in the drawable folders
Be sure to delete the META_INF from the apk
Extract the edited and recompiled xmls from the modded apk created in Apk tool (res>layout)
Overwite the xml into the WhatsApp.zip in the Auto-sign folder
Return the Whatsapp extension to apk
Use sign.bat to sign the apk and you are good to go!

Auto-sign generates the key.pk8 and certificate.pem files automatically and applies them automatically to the apk, hence eliminating the necessity for Openssl and SignApk.jar... basically saves an extra step.

Works for me well
Attached Files
File Type: zip Auto-Sign.zip - [Click for QR Code] (12.1 KB, 2457 views)
The Following 3 Users Say Thank You to cybermessiah For This Useful Post: [ View ] Gift cybermessiah Ad-Free
30th January 2012, 08:22 PM |#4  
Yorzua's Avatar
OP Senior Member
Flag Gotham City
Thanks Meter: 4,114
 
Donate to Me
More
Wink Easy Kit
Quote:
Originally Posted by cybermessiah

There is another way to sucessfully sign the apk without use of Open SSL to generate the key.p8 and certificate.pem files and without having to use SignApk.jar.

Auto-sign is another tool that eliminates the use of those steps.

First copy the official WhatsApp.apk into the Autosign folder
Change extension to zip and replace your pngs in the drawable folders
Be sure to delete the META_INF from the apk
Extract the edited and recompiled xmls from the modded apk created in Apk tool (res>layout)
Overwite the xml into the WhatsApp.zip in the Auto-sign folder
Return the Whatsapp extension to apk
Use sign.bat to sign the apk and you are good to go!

Auto-sign generates the key.pk8 and certificate.pem files automatically and applies them automatically to the apk, hence eliminating the necessity for Openssl and SignApk.jar... basically saves an extra step.

Works for me well


Way more simple than that >

I just added a complete KIT including all the tools in one folder
no need anymore to use Openssl or change/move to another program

I also includes Command.shell file which will allow you to directly type the commands from the folder directory ( very easy even if you are a noob )

Just follow the OP
The Following 5 Users Say Thank You to Yorzua For This Useful Post: [ View ] Gift Yorzua Ad-Free
1st February 2012, 07:34 AM |#5  
Yorzua's Avatar
OP Senior Member
Flag Gotham City
Thanks Meter: 4,114
 
Donate to Me
More
Exclamation Verba volant, scripta manent !!!!
More crap for this piece of s....

Quote:
Originally Posted by cybermessiah

@ Morrancos ... maybe read the actual posts prior to his comment.

One screenshot of the decompiling tool he uses and one screenshot of a successfuul modification AFTER I told him exactly what xmls needed modifying make him responsibile for me gaining a deeper comprehension of theming?

YOu told me which xml ? is it a ****ing joke ?
Since when i need you to know which xml to edit ?

I posted my screenshot here = 30th January 2012, 04:43 PMway before your post about xml ... here = 30th January 2012, 05:03 PM

And you wrote "told him exactly" ?
Quote:
Originally Posted by cybermessiah

FINALLY.
I was correct about it being those xmls!
Used APKtool to decompile and recompile with edits to those two xmls I suspected.

Here is my BLACK Whatsapp which required not less than 34 xmls in layout/drawable hdpi/values and 4 smalis to make it



YOU ARE TRULLY PATHETIC INSULTING ME AGAIN AS your "girlfriend" ....
I HOPE MODS WILL SEE THAT YOU ARE NOT HERE TO SHARE BUT ON YOUR OWN SELFISH ....

=====================================
just kept as we never know with those guys ...
The Following 6 Users Say Thank You to Yorzua For This Useful Post: [ View ] Gift Yorzua Ad-Free
2nd February 2012, 12:18 AM |#6  
Senior Member
Thanks Meter: 126
 
More
how to use your easy manager package?
because in tutor you type "apktool d whatsapp.apk"

but in zip, no apktool.exe beside apktool.jar
I use "apktool.jar d whatsapp.apk" and it works..new folder created with res and smali inside it

But how to compile ?
Using "apktool.jar b whatsapp.apk" nothing happened

thanks
2nd February 2012, 07:25 AM |#7  
Yorzua's Avatar
OP Senior Member
Flag Gotham City
Thanks Meter: 4,114
 
Donate to Me
More
Cool More clear
Quote:
Originally Posted by j1po

how to use your easy manager package?
because in tutor you type "apktool d whatsapp.apk"

but in zip, no apktool.exe beside apktool.jar
I use "apktool.jar d whatsapp.apk" and it works..new folder created with res and smali inside it

But how to compile ?
Using "apktool.jar b whatsapp.apk" nothing happened

thanks

We can always improve OP updated to be more clear for everyone

to decompile :

Code:
apktool d <yourwhatsappname>.apk ( can be whatever name you give to your apk )
edit the xml/smali you want :
see my tuto here to give an idea how to edit the xml files and smali files with Notepad++ (Written on C++ and using Win32API, you will be able to easily change, copy, trace, find all the codes you will find in this guide ).

to compile :

Code:
apktool b <yourwhatsappname> ( can be whatever name you give to your apk )
to sign :

Code:
java -jar SignApk.jar testkey.x509.pem testkey.pk8 <yourwhatsappname>.apk <yourwhatsappname>_signed.apk
The Following 7 Users Say Thank You to Yorzua For This Useful Post: [ View ] Gift Yorzua Ad-Free
2nd February 2012, 02:28 PM |#8  
Senior Member
Thanks Meter: 126
 
More
Thanks, I got it

can you share, which xml that handle "group bubble" color in group chat?
which your black mod show grey

and also gradient bubble border (red-blue) ?

thanks
2nd February 2012, 03:25 PM |#9  
Yorzua's Avatar
OP Senior Member
Flag Gotham City
Thanks Meter: 4,114
 
Donate to Me
More
Wink
Quote:
Originally Posted by j1po

Thanks, I got it

can you share, which xml that handle "group bubble" color in group chat?
which your black mod show grey

and also gradient bubble border (red-blue) ?

thanks


Do you mind to point me what you need by a screenshot, please ??
Would be more easy for me

recent changes

The Following 4 Users Say Thank You to Yorzua For This Useful Post: [ View ] Gift Yorzua Ad-Free
2nd February 2012, 04:27 PM |#10  
Senior Member
Thanks Meter: 126
 
More
Quote:
Originally Posted by Yorzua

Do you mind to point me what you need by a screenshot, please ??
Would be more easy for me

Where can I change contact list background color to black like picture above ?





1. Group chat "group bubble" color --> public/colors.xml ??
2. Bubble border gradient color -->forget it, found it on high-res/



thanks a lot man
2nd February 2012, 04:51 PM |#11  
Senior Member
Thanks Meter: 189
 
Donate to Me
More
Please ignore.......
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes