Very simple app to parse Sony modem config nvpreload files
This tool can be used to parse nvpreload files located in Sony modem configurations.
Step by step instructions:
- First get needed config from Sony system partition. They are located at /system/etc/customization/modem.
- Then you need t strip Sony specific header from it. To do that remve first 552 bytes from this file. Or simply run tail -c +553 $file_name > $dest_file.
- After this you will have pretty standard tar archive. So just unpack it.
- There you will have nvpreload folder usually with 3 bin.gz files. Take the base one with shortest name and usually the biggest. Uncompress it.
- Build this project with mvn clean package.
- This app requires nvitems_list.csv in the working dir and it will unpack everything to working dir.
- Run it like this java -jar
- That's all. You will have out.xml with NV Items with some garbage and nv folder with NV Files.