yashsingh1/xdaforums huggingface dataset:
[Android General] robba16296:
Hey Yorzua, first of all thank you for this tutorial!!

When i am trying to sign my version of whatsapp (java -jar SignApk.jar testkey.x509.pem testkey.pk8 whatsapp.apk

whatsapp_signed.apk) it says: "Error: Unable to access jarfile SignApk.jar". I have all your files from the kit in the C:\android-sdk\platform-tools\ folder (apktool etc works great :)).

I don't know what i'm doing wrong, can you help me?
[Android General] brantje:
Is it possible to modify whatsapp so it can be installed on tablets?
[Android General] Yorzua:
feedback = improvements

Please post the full log in order to help you :cool:

I dont have any tablet to test it but i guess whatsapp works on tablets with 2.3 ( not sure about 3.0 and 4.0 ) but everything is possible if i had a device to work on ...

If users can add their feedback on this, would be nice :)
[Android General] Tyrol:
I don't know about tablets, but I think Whatsapp only works for devices that have the telephony function. For example, it shows up in Google Play and works perfectly for my Samsung Galaxy S II, but it doesn't show up in Google Play for my Samsung Player 5.0, which is like a mini-tablet/PMP. I did try installing the APK anyway, but I got some error message instead of the screen asking me to input my phone number at first start; I don't have the exact error 'cause I tried that a few months ago lol.

-----------------------

サンソングガラクシS II からタパトクで書いた。
[Android General] robba16296:
i'm sorry but i don't really know how to pull the log, searched a bit and tried:

java -jar SignApk.jar testkey.x509.pem testkey.pk8 whatsapp.apk whatsapp_signed.apk -t >C:\android-sdk\log.txt

but it created a empty 0mb txt.
[Android General] Yorzua:
apktool log

I meant the log you get into signing in your case :rolleyes:

If you don't feel confident by doing that copy/paste, just add me the screenshot of your cmd screen and i will tell you what is wrong or not, and what to do or not ;)

MVG Meneer ☺☼
[Android General] robba16296:
Here is the screenshot :o.

Also for your information, I have put the SignApk.jar, testkey.x509.pem and testkey.pk8 files in the same folder as apktool.
[Android General] Yorzua:
Wrong path

Your classpath is not set up correctly.

You need to add java to your path, or (from the command prompt) browse to the folder where java.exe is installed and run the command from there.

Which means that you may had use my folder but not all the files in the same.

Place your apk in the same folder as SignApk.jar :

example :

C:\Users\Android\Yorzua Easy Manager package>java -jar SignApk.jar testkey.x509.pem testkey.pk8 Whatsapp.apk Whatsapp_signed.apk

Hope it helps you
[Android General] robba16296:
Thanks!

I got it working now :D, added the path and class and instead of typing SignApk.jar etc I dragged the files to cmd.

Thank you for your help!!
[Android General] pandu15:
It's easy tutorial for noob like me.. :p

thanks dude now I can decompile and compile apk to get enter key for my mms.apk.. :D
[Android General] ablivian:
I'm using this method for the first time.

After i've decompiled the apk:

apktool d com.nlucas.popupnotifications.theme.honeycomb-1.apk

I've changed everything what was named honeycomb to ablivian.

Also I've changed all the values for the colors, so I can have my own theme.

After that I did:

apktool b com.nlucas.popupnotifications.theme.honeycomb-1.apk

and then i did:

java -jar SignApk.jar testkey.x509.pem testkey.pk8 com.nlucas.popupnotifications.theme.honeycomb-1.apk ablivian_signed.apk

After that I checked if everything went well. I do this with: apktool d ablivian_signed.apk

And then, I see that everything is like the original com.nlucas.popupnotifications.theme.honeycomb-1.apk, and nothing that I've changed is in this file.

I think I'm doing something wrong with apktool b... or the java... because i choose the original file, but I didn't change anything in the original file, I only changed some things in de folder com.nlucas.popupnotifications.theme.honeycomb-1.

Could somebody help me?

EDIT: Nevermind, I know what I did wrong ;)
[Android General] Yorzua:
Thanks

None of you did pressed the thanks button in OP for this thread i made ... :rolleyes:

Nice........
[Android General] neutronz:
not work with the latest version of whatsapp, decompile success.. but cannot recompile
[Android General] Yorzua:
decompile

sorry for the delay,

i will take a look at it as soon as possible and post the soluce :cool:
[Android General] The_SJ:
Same. But when I recompile WhatsApp without doing any changes it works! Only when changing pictures or editing xml files...
[Android General] Elessar76:
I'm trying to add new emojis present in latest official version to whatsapp plus copying all emoji png files under drawable-hdpi, but after install the apk it doesn't show any new emoji. Are they stored or listed in any other file?
[Android General] praveen22:
This is some excellent work. I was looking to learn something like this to make my apps look better on Android, the ones that I don't like. I am a newbie to app development world. Let's see how it will work out for me. Sorry if its off topic. I usually don't post on xda a lot.
[Android General] SeaFargo:
WhatsApp 2.9.378 can not recompile Apk Manager 502

I've tryed apktool - Yorzua Kit and seems able to re-compile a not-at-all modified WhatsApp 2.9.378.

Unfortunately seems impossible to recompire WhatsApp (I am working with the version 2.9.378), with Apk Manager 502. :crying:

By the way I am using the latest jdk-7u11-windows

The error log recompiling even a not-at-all modified WhatsApp with Apk Manager 5.0.2 is:

--------------------------------------------------------------------------
|16/01/2013 -- 7.43.54,96|
--------------------------------------------------------------------------
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode, sharing)
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" java.lang.NullPointerException
at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2569)
at org.jf.smali.smaliFlexLexer.getErrorHeader(smaliFlexLexer.java:2661)
at org.jf.smali.smaliFlexLexer.nextToken(smaliFlexLexer.java:2530)
at org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenStream.java:119)
at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.java:238)
at org.jf.smali.smaliParser.smali_file(smaliParser.java:430)
at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:71)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)

Do you have any suggestion?

Kind regards to you all :)

---------- Post added at 12:14 PM ---------- Previous post was at 11:46 AM ----------

The problem seems to be solved if I use your framework!

With it even Apk Manager 502 re-compile :D Yes!

Thanks a lot, Yorzua :)
[Android General] Chirtagh:
Need help, i decopmiled systemui.apk and made a modification in drawble-ldpi folder.

Then i recompiled it and replaced it in system/app, but status bar wont show up.

Am i forgettting any thing here while recompiling?

And after recompiling the apk size decreased a bit than original??

Can anybody tell whats wrong??
[Android General] Yorzua:
9.png issue

Glad you could solve it using my framework-res ;)

well, this seems to me a wrong manip with some 9.png included generally in systemUI.apk drawable folders

double check that, replace again your recompiled apk with the original and keep replacing until you find the file who gives you this issue

by experience, if the status bar doesnt show up, you made a wrong manip with the graphics if you didnt touch the xml/smali code.

hope it helps
[Android General] Chirtagh:
"quickpanel_icon_data_on.png"

i changed the color of this png from green to blue din't do anything else, do i've to edit xml's for changing the color of png's??
[Android General] Yctos:
I dont get an .apk file when i compile.the folder 'apk' contains only classes.dex.:confused:
[Android General] DreamFlasher:
With the latest WhatsApp.apk I get the following exception when decompiling:

I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010102cd
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:51)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)

I found a solution in a different thread, one needs the framework-res.apk from the system/framework folder and then needs to install it with the following command:

apktool if framework-res.apk
[Android General] counterfear1014:
Downloaded the KIT and Notepad++ but..

How do I Actually edit the Xml files in the "colour" folder? I opened the xml file with Notepad++ as I wanted to change the text colour of my whatsapp apk file. But all I see is some strange text inside.

Basically How do I change the colour of the text in whatsapp? How and with what program do I edit the xml files and how do I edit the colour codes inside? :confused:

Sorry for asking such a noob question :silly:

Thanks in advance
[Android General] Yorzua:
apk must be decompiled to read/edit xml files

Well, i will not look at your stats here in xda and give you a little help >>> READ THE 1ST POST !!!

you may find your answer in this thread which took me time so do you to read it CAREfullY ! :cool:

thank you
[Android General] shanmukhateja:
Thanks and some questions

Firstly thank you so much for your mods. Have been looking for them for so long

secondly i have 3 questions for you:

1) Can I install and run your mods in tablets [wifi or 3g whatsoever]

2) if not can you do that in the next release of yours?
[Android General] blackrain955:
Modify Whatsapp

Is it possible to modify whats app backup so that we can change profile pics and status without accessing internet or without changing last online seen status...??
[Android General] nrod96:
The most easiest way to decompile is to use this site http://www.decompileandroid.com/

just upload the apk

the site will decompiled it

and just download the decompiled apk

easy as that............

sadly the site cant recompile so that is the disadvantage:(

hit the thanks button if i helped you'll
[Android General] w arun kumar:
cant sign!

im having problem while signing the apk. could you help me please. :crying:and how to generate my own key and where i can get this openssl things ? :confused: thanks
[Android General] tapsey:
getting an error on compiling

i am getting the error shown in the screenshot when i try to compile.
[Android General] tapsey:
failing to compile

getting en error when i try to compile see attached pic:crying:
[Android General] abdulkerimeski:
i have an error

i can decompile and edit my apk but i cant compile it . it is gave me that error "Exception in thread 'main' brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

Thanks for reply.
[Android General] bharath_58:
it might sound foolish but can I know where to type those codes to compile/decompile??
[Android General] bharath_58:
Got it....
[Android General] abo hani:
Hi mate ! i cant compile the apk , it gives me error , so what is the best framework api should i install ?

my framework api is 16 , do you recommend in other to solve the problem ? [MENTION=2863152]Yorzua[/MENTION]
[Android General] fatemeh_187:
Error

Hi,

Thank you for your tutorial,

But when I try to decompile WhatsApp.apk with your tool , the following error occures :(

So , I changed your apktool with the apktool2.0.0.3rc version and tried again , It successfully decompiled the .apk file , but there was following error in recompiling it :

Would you please help me?:crying:
[Android General] bharath_58:
What did u change?
[Android General] fatemeh_187:
I replaced apktool.jar file with the latest version of it "apktool.2.0.0.3rc.jar"
[Android General] bharath_58:
I'm asking, what did u change in whatsapp?

It says you've changed something in Res/layout which u shouldn't have..
[Android General] fatemeh_187:
Sorry:D

I changed nothing ! I just decompiled it , and then tried to recompile it without any changes:rolleyes:

If I be successful in recompiling it , then I will make my changes.:rolleyes:
[Android General] bharath_58:
Then the problem is with your "aapt".. try changing that..
[Android General] fatemeh_187:
What is aapt.exe? Where can I get it from?

I searched these questions before, but I did not understand:(

What should I do with it? Yorzua did not used it in his tutorial!:confused:

Would you do me a favor please?

Would you decompile and recompile the new version of WhatsApp.apk and tell me if you were successful or not?
[Android General] bharath_58:
I just did it yesterday...

i had no problem...
[Android General] fatemeh_187:
So what is wrong with me:mad:

Which version of tools did you use?

Java ? Apktool.jar? aapt.exe?

How can I get exactly the tools that you have?

Could you email them for me please?
[Android General] bharath_58:
I just use 3 tools.. apktool(2.0.0rc3),aapt(found along with tool ) and apktool.bat...

I just decompile,make changes,then recompile back...
[Android General] riyasopr:
Thanks.

I decompiled and signed. Then installed. Force closed if mobile data enabled else application exit without force close message.

Error in logcat: Class not found "com.amazon.device.messaging"

Class not found "com.whatsapp.adm....".

any solution?
[Android General] Udzi:
Same here. I just tried to replace some png's inside the apk, resigned with apk tool, installed and then run the app. It force closes directly after start...logcat says:

Unable to resolve superclass of Lcom/whatsapp/adm/ADMMessageHandler; (1245)

Link of class 'Lcom/whatsapp/adm/ADMMessageHandler;' failed

Someone a Idea why it crashes? Just replacing png's shouldn't be that hard!?
[Android General] bharath_58:
I didn't face any such problem... I'm using it from almost 8-10 months...
[Android General] hanschke:
anyone knows a solution? the guy who had done whatsapp+ for example do it too ;)
[Android General] bharath_58:
Solution for what?
[Android General] hanschke:
to decompile whatsapp - I got a signature error :rolleyes:
[Android General] simoconfa:
Thanks for the guide, which is well done. :)

When i decompile whatsapp i got this error:

I see that many files are decompiled but others not. How can I solve?
[Android General] bharath_58:
Well... it happens mainly with improper "framework-res.apk" in your C:Users/(username)/apktool/framework

I suggest u to try deleting that folder and then decompile... Provided you have latest version of apktool installed...
[Android General] simoconfa:
:)

You are a genius! It works. Thanks.

Edit: I searched around the web but i did not find anything. Does someone learn how to posticipate the expiration of the version?

I noticed that moving back the clock of some days i don't need to update and i can receive message, but if i set correctly the clock i can't use it.
[Android General] bharath_58:
No... That task is kinda hard to do.. Smali files have to be edited..

Why dont u use a simple Xposed mod(if you're rooted) to bypass expiration of version?
[Android General] simoconfa:
I installed a mod of xposed installer called "per app hacking".

I set the clock and it works but whatsapp continously crash.

In details:

-I open Whatsapp

-Wait a long time

-Crash

-Open again it

-It works for about 1 minute

-Crash

-Etc.

How can I solve?

Thanks again for the helping.

Inviato dal mio citofono supertecnologico usando Tapatalk
[Android General] iamkrish:
I got a error, When I try to decompile whatsapp

Respected member,

When I try to decompile whatsapp.apk, I got this error. Please help me.

Thanks.

here is the screenshot.

Please help me.
[Android General] simoconfa:
Have you tried what suggested a few posts ago? Deleting android folder usually installed in c://users/"your_username"

Inviato dal mio citofono supertecnologico usando Tapatalk
[Android General] jinshah:
Hi Yorzua,

If you see the sending text message animation on ios or any iphone it is

awsome and smooth sliding effect and message goes upper side with

sliding... I want to do same animation on my android phone... but the

problem is when i decompile WhatsApp apk i can not found folder of

animation. Can you plz tell me or show me how can I do that???

Plz do needfull.
[Android General] hellakarsh:
Hey!!

Can anyone tell me how to sign the apk so that in future, the original whatsapp version will install over it.. I mean it will not show signature conflict error…?
[Android General] robrazil:
It is not working to recompile.

I decompiled the whatsapp 2.12.391 but when i tried to recompile, some error messages appeared.

I only want install 2 whatsapp on my phone because it has 2 chips.

I used the GBwhastapp but since v3.50 it not installs anymore on the Android 2.3.6.

Now I am using "2lines for whatsapp" but the bad is that only 1 line remains online of each time.

I wanted decompile the whatsapp to change the folder instalation to /GBwhatsapp or other any folder name, and recompile it. I don't wnat change anything, only to have 2 whatsapp installed.

Someone could help me with this? :(
[Android General] bharath_58:
If you can tell me the exact errors i might be able to help you...

And the problem with gb whatsapp installation on 2.3.6 is that the app does not have armeabi libs...

You can add it,compile it and use it...
[Android General] josito_theDH:
Anyone can help me to add more privacy options like VPWhatsApp? Some people say that I need to make changes in smali, but don't explain me more

Regards

Enviado desde mi Nexus 5 mediante Tapatalk
[Android General] bharath_58:
You need "armeabi" libs and not "armeabi-v7a" if it should work on 2.3.6..

Regarding your recompile error,check if the style "alertdialog" and "dialogwindowtitle" is present in res/values-v23/styles.xml .

If yes,then delete the framework folder in c/users/(username)/apktool.
[Android General] robrazil:
Dude... I apprecuiate your help but like I said before, the original whatsapp v.2.12.361 only has /lib/armeabi-v7a folder. So, from where I will catch the /lib/armeabi folder to put in GBwhatsapp /lib folder ?

I copied the /lib/armeabi from whatsapp v.2.12.399 and pasted on whatsapp v.2.12.361 but when installed it appeared again the message:

"This app is not installed".

Below are the lines on the file \res\values-v23\styles.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.Theme.AppCompat" parent="@style/Base.V23.Theme.AppCompat" />
<style name="Base.Theme.AppCompat.Light" parent="@style/Base.V23.Theme.AppCompat.Light" />
<style name="Base.TextAppearance.AppCompat.Widget.Button.Inverse" parent="@android:style/AlertDialog" />
<style name="Base.Widget.AppCompat.Button.Colored" parent="@android:style/DialogWindowTitle" />
<style name="Base.V23.Theme.AppCompat" parent="@style/Base.V22.Theme.AppCompat">
<item name="actionBarItemBackground">?android:actionBarItemBackground</item>
<item name="actionMenuTextAppearance">?android:actionMenuTextAppearance</item>
<item name="actionMenuTextColor">?android:actionMenuTextColor</item>
<item name="controlBackground">@drawable/abc_control_background_material</item>
</style>
<style name="Base.V23.Theme.AppCompat.Light" parent="@style/Base.V22.Theme.AppCompat.Light">
<item name="actionBarItemBackground">?android:actionBarItemBackground</item>
<item name="actionMenuTextAppearance">?android:actionMenuTextAppearance</item>
<item name="actionMenuTextColor">?android:actionMenuTextColor</item>
<item name="controlBackground">@drawable/abc_control_background_material</item>
</style>
</resources>
</resources>

I deleted the c:/users/(username)/apktool/framework folder like you said but when I type to recomplie the /Framework folder is automatically created again.

Thank you to try help me but we don't find the solution yet. :(
[Android General] robrazil:
CONCLUSION:

Like I suspected, the video https://www.youtube.com/watch?v=9RafyK_mQxA was posted on 27/apr/2015.

In 01/apr/2015 the version of whatsapp launched was 2.12.23(see here - http://www.apkmirror.com/uploads/page/9/?app=whatsapp).

If you download the whatsapp v2.12.23 and do the procedure described on the video, so all will work fine, without error messages.

Do the test.

So,

the instructions discribed on the initial post are very old and not works to the current versions of whatsapp

.﻿
[Android General] robrazil:
Got it!!! :p

For the last whatsapp version 2.12.405 I used the Apktool v2.0.3 Released - http://connortumbleson.com/2015/12/31/apktool-v2-0-3-released/

After donwload, I renamed the file to apktool.jar.

To decompile I used the command apktool d -s AppName.apk.

To recompile without change any thing, I used the command apktool b AppFolder.

The procedure to decompile and recompile worked fine, without messages error,

but after sign the file and try install appeared the message "This app is not installed"

.

My Android version is 2.3.6.

Someone could help with this issue ?

Thank you. :(
[Android General] bharath_58:
Signature error... Copy the two files in original folder to build/apk folder and recompile it...

Or use signapk to sign the app or other method to sign the app..
[Android General] robrazil:
Got it!

But only pasting the META-INF folder inside of \build\apk, moving the \dist\file.apk to Android and there using the ZipSigner.apk to sign.

Using signapk.jar on PC

not worked

.

Now, I need to learn how can I install the mod whatsapp on GBwhatsapp folder and have Whatsapp for the line 1 and GBwhatsapp for the line 2.

Do you know how do that?

Thank you.
[Android General] salmanalikhan:
How Can i Hide my Online Status to Others

I have decomplied the WhatsApp.apk to smali and then java source codes....... So can you please guide me how can i Modify it so that nobody can see me when I am online. As WhatsApp Plus Does. :) :) :) :) :)

Any help would be appreciated.
[Android General] bharath_58:
Its not easy... You need a good knowledge of smali... If you're ready,then i can help you.
[Android General] salmanalikhan:
Ya sure ..... I have experience in JAVA and also some knowledge of smali, So it will be great if you can help me. :o
[Android General] bharath_58:
First,just try my app which can be found hereunderclassblog.com/2016/01/whatsapp-by-b58.html....

Then decompile it...
[Android General] salmanalikhan:
Okay i have decompiled the apk you've sent... now what's next?
[Android General] isimsizkullan:
I was able to decompile and recompile&sign WhatsApp which version was 2.12.449.

But now i can decompile and recompile&sign WhatsApp which version is 2.12.556, but WhatsApp crashes on the phone, what should i do?

What has changed? I just want to make some little color mods but now i can't.
[Android General] yash92duster:
with the latest whatsapp apk after decompiling, changing res values colors and signing and

then installing it on device

its not allowing to get pass the enter pin to activate

it says " something wrong with your version so download latest from play store ":crying: