User:JohnnyTOS/Stage Data Extraction

The information in this page is based on the Android version of Tower of Saviors, and any scripts were written on Windows.

The data from the last played stage can be found in the following file: /data/data/com.madhead.tos.en/shared_prefs/com.madhead.tos.zh.v2.playerprefs.xml

Notes:
 * 1) To access the above file, you'll need root access on your phone
 * 2) The file contains your user information, so you shouldn't share it with anyone

To extract the stage information (which includes the story text), place the xml file from your phone and the script from script.py into a folder on your PC and run it.

Notes:
 * 1) The Python script uses the xml.etree.ElementTree module that is not secure against maliciously constructed data, so be wary of using it on com.madhead.tos.zh.v2.playerprefs.xml files that are not your own.