User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Android INI question

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    BiznessMan's Avatar
    Join Date
    Apr 2007
    Location
    Sandy UT
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Android INI question

    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.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,112
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,124
    Mentioned
    151 Post(s)
    Tagged
    3 Thread(s)
    since you have developer use In-App object it have a feature to save string and integer in private preferences.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleInstall Creator Pro

    Join Date
    Dec 2010
    Location
    United Kingdom
    Posts
    960
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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/

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    BiznessMan's Avatar
    Join Date
    Apr 2007
    Location
    Sandy UT
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Fernando, I'll check it out and give it a try

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    S.East England
    Posts
    744
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,515
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)
    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.
    .:::.Joshtek.:::.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    BiznessMan's Avatar
    Join Date
    Apr 2007
    Location
    Sandy UT
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  9. #9
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,124
    Mentioned
    151 Post(s)
    Tagged
    3 Thread(s)
    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".
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    BiznessMan's Avatar
    Join Date
    Apr 2007
    Location
    Sandy UT
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Question about setting up the Android Exporter
    By renan63 in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 8th April 2013, 03:03 PM
  2. Question About INI Files & Android APKs
    By Rachel in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 4th September 2011, 10:51 AM
  3. MMF to Android cost+extension question?
    By Spryz in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 6th October 2010, 06:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •