yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

Cannot use cli in android environment

Open emmekappa opened this issue 7 years ago • 12 comments

When running the cli with python3 ./yowsup-cli demos -y -l XXXX:XXX -E android --debug

I get this

DEBUG:yowsup.layers.logger.layer:rx:
<challenge>
¨vš‘îJâÊT°à:KÂÔþV™
HEX3:b'a8769a91ee4ae2ca54b0e03a4bc2d4fe60085699'
</challenge>

DEBUG:yowsup.layers.logger.layer:tx:
<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
}Š•‰	fSèéÂÞäu¸á,À!—8ì?Ìu—{,sÈ iã}z(2†–1l„Ö
Ö¨Ç^{ì—@Ü1‚ŠvÉc
^g9¢µ»
HEX3:b'7d8a9589096653e8e9c2deb708e475b8e17f2cc01821973817ec3fcc759737087b2c73c8206919e37d7a28328696316c8406d60a10d6a8c75e7bec9740dc31821d8a76c9630a5e6739a281b58fbb'
</response>

DEBUG:yowsup.layers.network.layer:Disconnected, reason: Connection Closed

I did my registration using -E android and I'm worried to use the cli with S40 because yesterday I got another number banned.

emmekappa avatar Oct 18 '17 09:10 emmekappa

I'm getting the same error. I tried with S40 and it did work. Command line send works as expected without setting the -E android switch.

ghost avatar Oct 19 '17 02:10 ghost

same error

CoderJ avatar Oct 20 '17 08:10 CoderJ

Use the android env for registering, use the s40 env for everything else

PedroFcul avatar Oct 24 '17 10:10 PedroFcul

Same here

afonsolage avatar Oct 31 '17 17:10 afonsolage

Hi! Could you provide please S40 setting for successful log in? Mine is not working *( _VERSION = "2.16.12" _OS_NAME= "S40" _OS_VERSION = "14.26" _DEVICE_NAME = "302" _MANUFACTURER = "Nokia" _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}" _AXOLOTL = True

thatskriptkid avatar Nov 06 '17 15:11 thatskriptkid

pretty sure you need to use this https://coderus.openrepos.net/whitesoft/whatsapp_scratch for the _VERSION and _TOKEN_STRING

ghost avatar Nov 06 '17 15:11 ghost

@dvschramm Could you tell please, what is a right order of these variables or I should try all of them or just provide your S40 settings, because you can successfully log in? My problem that I can't log in using cli.

thatskriptkid avatar Nov 06 '17 15:11 thatskriptkid

if I remember correctly, "b" is _TOKEN_STRING and "d" is _VERSION

ghost avatar Nov 06 '17 16:11 ghost

@dvschramm Connection closed when I try to log in. Set vars as you said.

_VERSION = "2.17.393" _OS_NAME= "S40" _OS_VERSION = "14.26" _DEVICE_NAME = "302" _MANUFACTURER = "Nokia" _TOKEN_STRING = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1478194306452{phone}"

thatskriptkid avatar Nov 06 '17 16:11 thatskriptkid

Just use the default provided in this repo. They should work fine

Aragur avatar Nov 06 '17 17:11 Aragur

@AragurDEV Thanks! But it works only if I use it in script not in cli.

thatskriptkid avatar Nov 06 '17 19:11 thatskriptkid

https://github.com/tgalal/yowsup/issues/2413

qvs5010 avatar Jan 25 '18 12:01 qvs5010