1. First of all, Back up your current save game file gamedata.tx located under /sdcard/Android/data/com.imangi.templerun2/files
2. Download the hacked gamedata.txt file from here.
3. Replace the original gamedata.txt with new one using your "File manager" to: /sdcard/Android/data/com.imangi.templerun2/files
4. Done! Now open the Temple Run 2 gaming application any check out whether the coins and gems are set to 999999999!