To extract games from some Sony phones, you will need to remap the bin dump and then convert the files for emulator.
- If nand and oob have not yet been separated: download [[https://github.com/Keitai-Archive/Keitai-Scripts/blob/main/BeforeExtraction/separate_nand_oob.py|separate_nand_oob.py]] from Keitai Scripts and use the following option: 0: Data = 512 Bytes, OOB = 16 bytes, divisible = True
- Download [[https://github.com/Keitai-Archive/Keitai-Scripts/blob/main/BeforeExtraction/remap_SO505i.py|remap_SO505i.py]] from Keitai Scripts
- Make sure the nand and oob files are in the same folder with the remap script. python remap_SO505i.py .bin
- After remapping the bin file, extract the contents with TestDisk. If extracting the contents with TestDisk does not work, skip down to the troubleshooting section.
- Download [[https://github.com/Keitai-Archive/Keitai-Scripts/blob/main/PostExtraction/convertForEmulator_SO505i.py|convertForEmulator_SO505i.py]] from Keitai Scripts
- Place the script in the same folder as the JAVA directory and execute the following command, replacing with your phone model:
python convertForEmulator_so505i.py JAVA
Example: python convertForEmulator_so505i.py JAVA SO505iS
List of Compatible phone models:
* SO505i
* SO505iS
* SO506i
TROUBLESHOOTING
If the .bin file cannot be extracted by TestDisk, try [[https://github.com/ZiplineGun/TSK-FAT-AutoRecover|TSK FAT AutoRecover]]. Make sure to install SleuthKit as specified in the instructions. With the remapped .bin file, use the following command:
python extract_fat.py .bin
Then, follow the steps above for converting apps to emulator format.