title: Android Games: Strategies to Defeat Memory Editors for Cheating
body: <p>I have simple game with 2 variables to store the score and best score:</p>
  
  <pre><code>int HightScore, CurrentScore;
  </code></pre>
  
  <p>I save the socre by <strong>SharedPreferences</strong></p>
  
  <pre><code>static SharedPreferences app_preferences;
  
  //Save hight score example
  SharedPreferences.Editor hightScore = app_preferences.edit();
  hightScore.putInt("HighScore", temp);
  hightScore.apply(); // Very important
  </code></pre>
  
  <p>On Android OS, there are alot of memory editor tools, such as: <strong>GameCIH, DaxAttack, HaXplorer, SB Game Hacker, GameGuardian</strong> (working on Android version up to Kikat 4.4) and <strong>Game Killer</strong> (fully compatible with android Lollipop)</p>
  
  <p>I hope some one help me figure out <strong>some strategies to prevent my variable form being modified</strong> by those tools?</p>
  
  <p>I'm really appreciate your helps. Thank you very much in advanced.</p>