yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Use yowsup Library and Android APP at same time

Open tommyrach opened this issue 13 years ago • 58 comments

Sorry all,

but i have a question can i use this library and at same time use whatsapp from my android without problem?

If the answer is yes, when i receive a message i read the message from both PC and Android APP?

THANKS.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

tommyrach avatar Jan 25 '13 15:01 tommyrach

you cant.

CODeRUS avatar Jan 25 '13 15:01 CODeRUS

You could in reality, but you would need to set the same password to both the device and the PC to auth whatsapp.

ghost avatar Jan 25 '13 16:01 ghost

@AntonioL dont lie peoples.

CODeRUS avatar Jan 25 '13 16:01 CODeRUS

Thanks!

Sorry, but is the first time, i'm trying to use yowsup Library, another question what do you mean for "password"....?

tommyrach avatar Jan 25 '13 17:01 tommyrach

snce v2 password generated on server side and you can't use same login on official whatsapp client and yowsup.

CODeRUS avatar Jan 25 '13 17:01 CODeRUS

@CODeRUS what I meant is, you get the password the first time then you say to both the client and yowsup to use that. And yes it is possible ;)

ghost avatar Jan 25 '13 20:01 ghost

how??

On Sat, Jan 26, 2013 at 2:12 AM, AntonioL [email protected] wrote:

@CODeRUS https://github.com/CODeRUS what I meant is, you get the password the first time then you say to both the client and yowsup to use that. And yes it is possible ;)

— Reply to this email directly or view it on GitHubhttps://github.com/tgalal/yowsup/issues/71#issuecomment-12719816.

brittson avatar Jan 25 '13 20:01 brittson

If you decide to use the password set on the phone, you should find out what is (it is stored in a sqlite db file) and then write that in the config file of yowsup

ghost avatar Jan 25 '13 20:01 ghost

then u can send unlimited msgs ??

On Sat, Jan 26, 2013 at 2:16 AM, AntonioL [email protected] wrote:

If you decide to use the password set on the phone, you should find out what is (it is stored in a sqlite db file) and then write that in the config file of yowsup

— Reply to this email directly or view it on GitHubhttps://github.com/tgalal/yowsup/issues/71#issuecomment-12719995.

brittson avatar Jan 25 '13 20:01 brittson

We were talking about using the same account for both yowsup and the official client. It is possible you should generate the password first time and find out what it is and then you write accordingly the config file.

ghost avatar Jan 25 '13 20:01 ghost

ohh ok thanks

On Sat, Jan 26, 2013 at 2:20 AM, AntonioL [email protected] wrote:

We were talking about using the same account for both yowsup and the official client. It is possible you should generate the password first time and find out what it is and then you write accordingly the config file.

— Reply to this email directly or view it on GitHubhttps://github.com/tgalal/yowsup/issues/71#issuecomment-12720191.

brittson avatar Jan 25 '13 20:01 brittson

@AntonioL I understand the principle of taking the password from the client. But can you explain how to do it? Try to be more specific...

Akuka avatar Jan 25 '13 21:01 Akuka

We were talking about using the same account for both yowsup and the official client. It is possible you should generate the password first time and find out what it is and then you write accordingly the config file.

WTF?

alejandro-amo avatar Jan 25 '13 23:01 alejandro-amo

I think I've been clear, so this will be my last time I write about the subject. It is possible if you make sure both Android client and yowsup use the same password.

First you generate a password and then you fetch that and say to the other to use that.

I think being more clearer is impossible, this is an Issue Tracker, not a forum, I gave input, do your research.

Best Regards

ghost avatar Jan 26 '13 02:01 ghost

@AntonioL I understand the principle of taking the password from the client. But can you explain how to do it? Try to be more specific...

+1

@AntonioL : a man has to be accountable for his words. If you complain about what is being requested, you should rethink about what the heck are you doing here.

There is no colder thing that a piece of advice which application is impossible ~ Confucious

just sayin'..

PS: I know that reverse engineering / forensics / sniffers exist, but please, don't be so pedantic assuming everyone does. at least, point to an article that explains how to do it. there are one or two over there... :)

alejandro-amo avatar Jan 26 '13 02:01 alejandro-amo

WhatsApp uses single sign-on, so they will both keep signing in and it will be a tug of war between your Android client and Desktop client on who will receive the messages first.

Been there, done that (in the past). You will also appear to be blinking online/offline several times a second, which can be confusing for your friends :')

shirioko avatar Jan 28 '13 09:01 shirioko

@AntonioL: Any chance one could continue this discussion in some kind of forum?

I'd like to use the password from my phone, too, in order to send messages from my workstation. I documented what I found out so far (albeit in German) on the following page:

http://www.android-hilfe.de/whatsapp/373702-whatsapp-passwort.html

oleid avatar Feb 04 '13 18:02 oleid

Ok, I tried to do what's in there ... So I took Android with whatsapp client and i register with my number, after that I installed file explorer on my android and i went to: "/data/data/com.whatsapp/files/pw" (* the android must be rooted so that you can get to this path...) i take this file to my pc (share with email, dropbox ect...) i run this code:

import java.io.FileInputStream; import java.io.ObjectInputStream; import java.io.Serializable;

public class DecodeByteArray { public static void main(String[] args) throws Exception { ObjectInputStream in = new ObjectInputStream(new FileInputStream("pw")); byte[] array = (byte[]) in.readObject(); in.close();

    System.out.printf("Contents: %02X", array[0]);
    for (int i=1; i<array.length; i++) {
        System.out.printf("%02X", array[i]);
    }
    System.out.println();
}

}

and i get a output this: 0001F05DC538CADB76759252A49466577C962A6FD431F39F824B491AEA5CFC28DF06D12ECB1C5BC807FC now, i dont know what i need to do with this... any suggestions?

Akuka avatar Feb 08 '13 14:02 Akuka

Try taking the raw byte array (not hex encoded) and base64 encode it to make it more readable. Then put the base64 encoded string in your config file and try to log in.

I personally don't think that it will be that easy and that the password is somehow encrypted..

shirioko avatar Feb 08 '13 14:02 shirioko

that what i get :AAHwXcU4ytt2dZJSpJRmV3yWKm/UMfOfgktJGupc/CjfBtEuyxxbyAf8 its still not look like whatsapp password...

Akuka avatar Feb 08 '13 14:02 Akuka