Parse servicefile.xml
/flashfile.xml
from stock Android pieces to create a script to restore to stock.
Remember to inspect the created scripts before actually running them.
npm i
-> This will install the dependencies- Edit
settings.json
accordingly. npm run pkg
-> This will package the application with the configured settings.json
- Place alongside
servicefile.xml
. - Run executable. On Windows, double click. On Linux, do
chmod +x <filename>
then./<filename>
Be aware that the default executable creates
serviceScript.sh
andserviceScript.bat
, so don't have any files of that name already.
- Inspect the scripts and use them as required.
- Run it passing the filename as the second argument