Our extraction method for the M4 file structure is currently incomplete, but our tools are sufficient for extracting apps.
**Step 1:** [[https://github.com/ZiplineGun/k/blob/main/assemble_m4.py|assemble_m4.py]] ([[https://github.com/Keitai-Archive/Keitai-Scripts/blob/main/BeforeExtraction/assemble_m4.py|backup link]])
The assemble_m4.py will divide the regions of the nor dump. Use the ``-r`` argument to extract specific files based on the phone model.
python assemble_m4.py -r .bin
Example
python assemble_m4.py -r N506i N506i-2_PF38F4462LLYDB0-f1.bin
**Step 2:** For DoCoMo phones ONLY: [[https://github.com/ZiplineGun/k/blob/main/convertForEmulator_mova_nec.py|convertForEmulator_mova_nec.py]] ([[https://github.com/Keitai-Archive/Keitai-Scripts/blob/main/PostExtraction/convertForEmulator_mova_nec.py|backup link]])
The convertForEmulator_mova_nec.py script will convert the appli in the JAVA folder into a format usable by DoJa emulators.
python convertForEmulator_mova_nec.py model_name
Example
python convertForEmulator_mova_nec.py JAVA N506i