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

Search This thread

Yorzua

Senior Member
Aug 19, 2010
1,816
4,077
Gotham City
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 :rolleyes:

whatsappdesign.png


whatsapp+XL+design.png


whatsappicsnexus.png


whatsapp+ICS+XL+design.png


whatsapp+RedYorzua+small.png


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

whatsapp+274538+dark+transparent.jpg


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://xdaforums.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 :rolleyes:

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 ☼
 
Last edited:

cybermessiah

Senior Member
Jul 6, 2010
341
1,144
Panciao City Taipei County
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:D
 

Attachments

  • Auto-Sign.zip
    12.1 KB · Views: 2,517

Yorzua

Senior Member
Aug 19, 2010
1,816
4,077
Gotham City
Easy Kit

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:D


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 :D
 
Last edited:

Yorzua

Senior Member
Aug 19, 2010
1,816
4,077
Gotham City
Verba volant, scripta manent !!!!

More crap for this piece of s....

@ 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" ?
FINALLY.
I was correct about it being those xmls!:)
Used APKtool to decompile and recompile with edits to those two xmls I suspected.:D

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

generalwhatsappdarkyorz.jpg


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 .... :cool:

=====================================
just kept as we never know with those guys ...
 

j1po

Senior Member
Feb 28, 2010
355
126
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
 
Last edited:

Yorzua

Senior Member
Aug 19, 2010
1,816
4,077
Gotham City
More clear

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
 

j1po

Senior Member
Feb 28, 2010
355
126
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 :D
 

j1po

Senior Member
Feb 28, 2010
355
126
Do you mind to point me what you need by a screenshot, please ??
Would be more easy for me

generalwhatsappdarkyorz.jpg

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



Screenshot_2012_02_02_23_23_03.png


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:p
 
Last edited:

Yorzua

Senior Member
Aug 19, 2010
1,816
4,077
Gotham City
Where can I change contact list background color to black like picture above ?



Screenshot_2012_02_02_23_23_03.png


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:p

Thanks for the screenshot.
Both are 9.png files _ you cannot change the background of the group bubble with an xml, same story for the border of the bubble

I did from scratch those bubbles.9.png ( nightmare of some themers )
I will have to publish in xda a real, clear, short, illustrated TUTO "how to create 9.png files" but i am missing time actually.

Maybe i can change them for you tomorrow if you post your wishes :D
 

Yorzua

Senior Member
Aug 19, 2010
1,816
4,077
Gotham City
thanks

people asked me for more panoramic view of my dark theme so here it is ;)

whatsappdarkyorzua27316.jpg


Thanks guys for your support _ feel free to post your questions in my tuto to make benefit all the coming members :rolleyes:
 
  • Like
Reactions: Anonymouser

DirkTeur Velserbroncx

Senior Member
Oct 26, 2011
120
28
VelserBroncx
Recent work on the latest version : WhatsApp_DARKYorzua_2-7-3169 :D

whatsappdarkyorzua27316.jpg

Man, you've gotta good thing going overhere, (Carbon Fibre look) went to your site this is realy, realy awesome finally some great explanation about theming and such.

Dude you just rocked my world and i'll be reading and trying now for a while.
thanks for your effort and please go on doing what you do.
 
  • Like
Reactions: Yorzua

Yorzua

Senior Member
Aug 19, 2010
1,816
4,077
Gotham City
Thanks

Man, you've gotta good thing going overhere, (Carbon Fibre look) went to your site this is realy, realy awesome finally some great explanation about theming and such.

Dude you just rocked my world and i'll be reading and trying now for a while.
thanks for your effort and please go on doing what you do.

Thanks a lot for your appreciation :)
Feel free to ask me any help you need.
I am living in Delft actually so if we meet in the trains, could share my dark mod with you :rolleyes: ( screenshot updated just below )

I like to share my recent work screenshots ;)
screenshot-1328537313137.png


Fijne dag meneer ☼
 
Last edited:

seimu

Member
Dec 26, 2009
38
39
amazing theme, a very good job.

as you do to change the background and font color of your chat list ¿? also with the xml ¿?

I applaud you :eek:
 

Yorzua

Senior Member
Aug 19, 2010
1,816
4,077
Gotham City
xml code

amazing theme, a very good job.

as you do to change the background and font color of your chat list ¿? also with the xml ¿?

I applaud you :eek:

thanks for your appreciation but no need to applaud me, your themes are good too ;)

You can edit few xml in order to set the background as a unique color :

android:background="#<hexadecimal color code you want to display>"

or as a png you create and place in drawable-hdpi :

android:background="@drawable/<the png name you want>"

or as a predefined style :

android:background="@style/<name of your style>"

For the font color of the chat list, just edit the color in :

conversation_text_row_left
conversation_text_row_right

date/name/font color of you/answering contact can be setup as well in the same section

Hope it helps you and unfortunately those bastards who are now enjoying my tuto and insulting my name at the same time :cool:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 98
    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 :rolleyes:

    whatsappdesign.png


    whatsapp+XL+design.png


    whatsappicsnexus.png


    whatsapp+ICS+XL+design.png


    whatsapp+RedYorzua+small.png


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

    whatsapp+274538+dark+transparent.jpg


    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://xdaforums.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 :rolleyes:

    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 ☼
    7
    More clear

    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
    6
    Verba volant, scripta manent !!!!

    More crap for this piece of s....

    @ 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" ?
    FINALLY.
    I was correct about it being those xmls!:)
    Used APKtool to decompile and recompile with edits to those two xmls I suspected.:D

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

    generalwhatsappdarkyorz.jpg


    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 .... :cool:

    =====================================
    just kept as we never know with those guys ...
    5
    Thank you all

    Back to this forum, i would like to take the oportunity to apologize for those i couldnt help, i am very sorry for all those pm's i couldnt answer in time.
    I was banned for 14 days : reason mods gave me => "multiple accounts created" :confused:

    I sent them few pm's and filled the proper request to defend my point but never got an answer....

    Anyway, thank all of you who wrote kind words and supported my cause.
    Very sad to read some other posts which i couldnt defend myself against but forums will be always forums...

    I did my best to send as fast and as more as possible my releases for those who kindly requested by email.

    i kept working in the meanwhile _ here is my last work as an example of what you can achieve by decompiling, compiling, editing at your taste and signing an apk like whatsapp :

    whatsapp+ICS+XL+design.png



    I wish you a great week to everyone :rolleyes:
    5
    Easy Kit

    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:D


    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 :D