Files
xml-servicefile-parser/README.md

34 lines
855 B
Markdown
Raw Permalink Normal View History

2019-06-25 19:44:16 +05:30
# xml-servicefile-parser
2019-06-25 23:54:12 +05:30
2022-01-30 13:51:34 +05:30
Parse `servicefile.xml`/`flashfile.xml` from stock Android pieces to create a script to restore to stock.
2021-05-06 12:36:25 +05:30
> Remember to *inspect* the created scripts before actually running them.
2019-06-25 23:54:12 +05:30
2022-01-30 13:51:34 +05:30
## NPM
### Usage
2019-06-25 23:54:12 +05:30
## Executable
### Building
2021-05-06 12:36:25 +05:30
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
2019-06-25 23:54:12 +05:30
### Usage
2022-01-30 13:51:34 +05:30
#### Option 1
2019-06-25 23:54:12 +05:30
1. Place alongside `servicefile.xml`.
2022-01-30 13:51:34 +05:30
2. Run executable. On Windows, double click. On Linux, do `chmod +x <filename>` then `./<filename>`
2021-05-06 12:36:25 +05:30
> 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.
2022-01-30 13:51:34 +05:30
#### Option 2
1. Run it passing the filename as the second argument