J
J
JackieRyan2021-01-17 18:41:28
Java
JackieRyan, 2021-01-17 18:41:28

How to make a script for editing a database on Android?

Hello! I'm trying to mod games on android ... I'm just learning, so a lot of things are still very difficult for me ... Here again I ran into an impossible task for me so far:

What we have:
1. There is a path: data / data / package_name / databases/
2. There is a sqlite file: gameloft_sharing
3. It has a parameter in two places: "time":"1663568928" (everything can be seen in the screenshot below) [this is an example, there are always 10 digits, but they are different for each installation]

Screenshot
6004594fa4249503180171.png

What you need to do:
It is necessary that every time you start the game, these 10 numbers in both parameters are synchronously changed to random ones (it is very important that these numbers in both sections are identical after each change). I know how to do it manually through the SQLite Editor, but here's how to make them change themselves every time you start the game? On the one hand, I understand that for someone who knows, this is very easy to do, but for me it is not doable ...

On another forum, I found almost what I need, but I don’t know how to change it + there is a lot of "garbage" in the code which I will never use ... I need a simple but stable script, with one single function, without any settings and troubles ... Here is the script I actually found: change settings.zip (41.3 Kb)

Well, the gameloft_sharing file itself, if necessary: ​​gameloft_sharing.zip (20.2 Kb)

I really hope that there are people here who are ready to help... To someone who will make a sensible working script from me tea / kava / chocolate or whatever you want) And thank you very much !

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JackieRyan, 2021-01-18
@JackieRyan

This is unixtime, you can’t change it, otherwise you will get a bang on the server side

I don’t know what kind of unixtime this is, but the fact that these numbers can, and even need to be changed, has been calmly proven thousands of times ... I don’t know what’s going on on the server’s siron, but apparently nothing fatal ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question