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

Changed way of getting device id? #1

Open
Nafrali opened this issue Jan 11, 2016 · 19 comments
Open

Changed way of getting device id? #1

Nafrali opened this issue Jan 11, 2016 · 19 comments

Comments

@Nafrali
Copy link

Nafrali commented Jan 11, 2016

Hi, I've been looking at your code and I've tried to get my own device id for Jodel. I can find my deviceId by monitoring my network traffic, however using your code to generate a device id, I do not get the same device id. I don't know if you ment to replicate Jodels device id algorithm or just made one on your own to have something to work with.

I have decompiled a Jodel apk and if I'm not mistaken it seems as if they have changed the algorithm.
They now do an AND operation (& 0xFF) on all the string that is hashed.
If they have changed the algorithm, will you update your code once you have time and intreset or is it something that I shall try and do once I have enough time? It could, of couse be that I'm just doing something wrong.

Best regards.

@hanse
Copy link
Owner

hanse commented Feb 2, 2016

Hi, sorry for the late answer. The algorithm was extracted directly from the Jodel Android app, but I don't know if it has changed since then. Probably not.

Make sure you provide all the info in the correct order. If some of the fields aren't present, it should litteraly be the string null. My SIM did not provide a phone number, so I set that field to null.

Here is an app you can use to get all the required fields:
https://play.google.com/store/apps/details?id=com.evozi.deviceid

@loppanjo
Copy link

How to sign the request to get Access_Token?

@Nafrali
Copy link
Author

Nafrali commented Apr 29, 2016

@loppanjo I don't believe that it's necessary to sign the request with an access_token. I believe that when I worked on my codebase I just used my deviceid from my phone. I will look into this once the summer begins.

@loppanjo
Copy link

@Nafrali I don't sign the request with an access_token but when I send the request to GET the access_token I get the response 'Signed Request Expected', the only thing that comes in mind by that is 'x-authorization: HMAC 43241...'

@Nafrali
Copy link
Author

Nafrali commented Apr 29, 2016

I'll look into it. I stopped coding on my jodel api halfway through a refactorization, I've started working on it today and once I get it up and running I'll see if I can help you. In the mean time, I feel as if our conversation have left the original purpose of the issue.

@loppanjo
Copy link

loppanjo commented May 4, 2016

@Nafrali Have you found anything? Have tried resending requests and I get a new Bearer every time, when I try to edit the request just before sending I still get 'Signed Request Expected'.

@Nafrali
Copy link
Author

Nafrali commented May 5, 2016

@loppanjo I've just had fever, but I've started looking into it. I've tried to get my access token, but so far I'm only getting "Unauthorized" response, I'll keep looking into it.

@lqasse
Copy link

lqasse commented May 15, 2016

Any progress on this? @Nafrali @loppanjo

@loppanjo
Copy link

@lqasse no luck yet :/ i've managed to get all api calls working except the one to get bearer

@loppanjo
Copy link

I've managed to change my UUID on a rooted tablet and got new Bearers.
Will test a few more things and report later.

@ItsEcholot
Copy link

Excellent news! Keep us updated

@Powersource
Copy link

I don't know the exact issue but this implementation works as far as I've tested, might be worth a look. https://bitbucket.org/cfib90/ojoc/src/dbbcfe2f9b8be19292af325d3e11be4d3a82bf75/OJOC/Connection.py?at=public&fileviewer=file-view-default

@loppanjo
Copy link

loppanjo commented Jun 11, 2016

@Powersource Thank you soo much. This is exactly what I have been looking for 😃 (Line 360-425)

@Powersource
Copy link

Hope it's going well. I just want to point out that he's refactored/cleaned up the majority of the lines in that project, might be worth taking a look again for changes.

@loppanjo
Copy link

I managed to get it working, creating 57 tokens before I got ip-banned :/ But i'm back again with a new ip.
I don't know if it's against community rules to refer to another project, if so then remove this.
I have written my own jodel api in javascript and I will soon release it (probably tonight) to public after a few more tweaks.

@Powersource
Copy link

Good work on getting banned :D

Considering that this project doesn't seem to be moving forward anytime soon I don't think anyone would mind you simply linking it (and it's not a sin in the first place).

@loppanjo
Copy link

Okay will do when it's up and my documentation is done ;)

@dotWee
Copy link

dotWee commented Sep 27, 2016

@loppanjo Any chance to get a look at your javascript implementation? I'm currently writing a own java client, but I'm stuck at generating a own token and signing api/v3 requests.

@Powersource
Copy link

@dotWee I was thinking about doing something similar a while back and I almost think that finding a way to run the connection.py (that I linked earlier) in java somehow would be the simplest way.

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

No branches or pull requests

7 participants