[update] add assertions

This commit is contained in:
2021-05-06 12:36:25 +05:30
parent 41c950cbb3
commit 00f771d020
5 changed files with 3093 additions and 49 deletions

View File

@@ -1,15 +1,21 @@
# xml-servicefile-parser
Parse servicefile.xml from stock Android pieces to create a script to restore to stock
Parse `servicefile.xml` from stock Android pieces to create a script to restore to stock.
> Remember to *inspect* the created scripts before actually running them.
## Executable
### Building
1. `npm i`
2. `npm run package`
1. `npm i` -> This will install the dependencies
2. Edit `settings.json` accordingly.
3. `npm run pkg` -> This will package the application with the configured settings.json
### Usage
1. Place alongside `servicefile.xml`.
2. Run executable or `node test`, if using source.
2. Run executable.
> Be aware that the default executable creates `serviceScript.sh` and `serviceScript.bat`, so don't have any files of that name already.
3. Inspect the scripts and use them as required.