Just out of curiosity, where does the Android apk store the INI and how easily can somebody hook up their phone and modify it?
I want to prevent third party modifications to the INI as much as possible.

Android INI question
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
I believe it's pretty easy for someone to hack into your ini using any generic tool. You could have loads of dummy values and fake names in your ini that cause the save file to reset to throw people off toying with it... but I prefer to save using the array object, it's less obvious what does what.. the average mobile gamer won't be able to edit an array effectively.
Also not sure if the encryption objects work with the mobile runtimes... hackers gonna hack though.
-
since you have developer use In-App object it have a feature to save string and integer in private preferences.
-
I've wondered myself. If the user is root, they could access it at /data/data/com.companyname.appname/shared_prefs/ (replacing com.companyname.appname with the package name of your app) and there's the INI as an XML file and could be easily opened with any text editor.
Not too sure if /data/data/ is the same for all Android devices, much like /sdcard/ and /storage/extSdCard/
-
Thanks Fernando, I'll check it out and give it a try
-
could i request an example of using the in app object to do this? i was wondering the same thing myself. Must be quite easy to hack an ini on an android.
-
One option if you want to stick with INI is to use md5 hashing from the String Parser object (with a different salt for every INI and every item). Then you can check if the value has been modified.
-
I'm using INI right now but it doesn't seem to be consistent. Example, I'm storing the user's score into the INI so if they end up having a new high score it tells them. The INI doesn't seem to be saving correctly though. I get a score of 7, then I close the app. Go back to the game and get a score of 3, it tells me there is a new high score. It works on my PC but not on Android. Maybe I'm missing something here
-
yes this is corrected it is fixed for next beta, sometime when exit the score was not saved, test this, "disable back button ..." behavior and when detected using android object do "endapp" action in that way you will see it does save the score inside the ini file.
for OUYA it is important that you disable the back button behavior and use the OUYA buttons to end the application but please do "endapp". -
Thanks Fernando, but this is not an Ouya game. It looks like it all works fine but once I updated the application it seemed like my ini data was cleared. Is there anyway to keep data between version updates?
-
send me a PM if you have some spare time to make some tests about this.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!