Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for camera images #130

Open
joa77 opened this issue Sep 10, 2019 · 14 comments
Open

Support for camera images #130

joa77 opened this issue Sep 10, 2019 · 14 comments

Comments

@joa77
Copy link

joa77 commented Sep 10, 2019

I love to see, that sending images is now supported. Will there be a way of sending images as camera images?

@tomer8007
Copy link
Owner

@bluemods If you know exactly how to get it right you are more than welcome to submit a PR.

@MisterWorld
Copy link

@bluemods Your python code is very good. Can you help to solve this problem?

@tomer8007
Copy link
Owner

@bluemods The signed, lang, sid, ts, v, cv, conn, dev, n generation code is already here at EstablishAuthenticatedSessionRequest, right?

So all you're saying is we need to replace anon="" with anon="1" and use this code even when self.username is None and self.password is None here?

@tomer8007
Copy link
Owner

OK, sounds sensible. Why is the sorting incorrect? Isn't the code at sort_kik_map correct?

Also why leaving the currect state would prevent sending camera images? The authentication stanza is working right now.

@tomer8007
Copy link
Owner

I agree we can't send camera images, the question is why would changing the anonymous stanza fix it (did you try it?).

@tomer8007
Copy link
Owner

Also the sorting of the map is fine, right?

@tomer8007
Copy link
Owner

So finally, what needs to be changed so that com.kik.ext.camera will work?

@MisterWorld
Copy link

@tomer8007 Hi! How's this features coming?

@joa77
Copy link
Author

joa77 commented Sep 11, 2020

I never had a bot sending me images 😅

@Artificiangel
Copy link
Contributor

Artificiangel commented Sep 11, 2020

A while back I found that those bots already send fake camera images.
I also noticed some of them don't, probably different devs.

I don't think they (or most) use this API. They were able to mark your messages as delivered before that feature was added here.

@Artificiangel
Copy link
Contributor

-The dev attribute is your Device ID and is omitted from the auth <k tag

I had been looking at the decompiled source of the Kik apk (v15.21.0.22201) and converting the parts needed for the sorted tag into python.
All that works, my code outputs the same tag as the java function, but it doesn't let the app use camera images.

I noticed the Kik code has CAN + deviceId assigned to dev. This appears in both the smali and java versions.
I made sure to look at other versions of Kik from multiple sources to make sure.

If I remove CAN from the dev attribute, Kik returns an error telling me to update my client.

I don't understand what's causing that.
I am also sending the latest version number and classes dex hash which didn't help.

@MisterWorld
Copy link

MisterWorld commented Sep 14, 2020

I have the fix, I could commit it,

@bluemods @bluemods
It would be great if you could do it

@MisterWorld
Copy link

@tomer8007 @bluemods

Is there any hope for this features?

@karate21
Copy link

karate21 commented Feb 2, 2021

@tomer8007 @bluemods @MisterWorld
Following up on this. Has there been a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants