Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Generating anti spam parameters

Jack Willis-Craig edited this page Nov 18, 2018 · 1 revision

TikTok uses the Java Native Interface to bridge between Java and native code in a shared library.

If you decompile the Android application, you'll see that the method which appends the anti-spam parameters to the request makes calls to native methods like getUserInfo() and encode(), which are both contained in the libcms.so library.

Short of reverse engineering this library (which is a challenge in itself), a simpler approach could be to replicate what TikTok does in your own smaller, lightweight application. For example, you could host a tiny server on an Android emulator or real device that you call to sign requests.

Clone this wiki locally