Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Docker

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
schedule:
- cron: '0 3 * * *'
push:
branches: [ master ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches: [ master ]

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}


jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ The NV item 00028874 is used in the last Qualcomm modems to specify the supporte
This is one of the tools used to get the data you can find on my own site [smartphonecombo.it](https://smartphonecombo.it) and [cacombos.com](https://cacombos.com).
If the data you have obtained thanks to this tool are not on either of the two sites, [contact me](mailto:handymenny@outlook.com) or [the administrators of cacombos.com](https://cacombos.com/contribute). Thanks :)

# Run in Docker

Before running 28874Decoder you have to decompres yours 00028874. There are several ways to do this, below you will find some:
* `$ binwalk -e 00028874`
* `$ openssl zlib -d -in 00028874 -out unpacked`
* `$ printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" | cat - 00028874 | gzip -dc > unpacked`

Most likely in the future 28874Decoder will be able to decompress automatically.

After compressionm just run

```
docker run --rm --name 28874Decoder ghcr.io/HandyMenny/28874decoder [path_to_unpacked_00028874]
```

# Build Instructions
```bash
git clone https://github.com/HandyMenny/28874Decoder
Expand Down