Skip to content

ROM Dumper

ROM Dumper #17

Workflow file for this run

# Using Dumpyara & BuildJet
name: ROM Dumper
on:
workflow_dispatch:
inputs:
ROM_URL:
description: "ROM_URL"
required: true
default: "https://bigota.d.miui.com/V14.0.22.12.26.DEV/miui_ARES_V14.0.22.12.26.DEV_77dab78db5_13.0.zip"
GITHUB_ORG:
description: "GITHUB_ORG"
required: true
default: "RandomPush"
jobs:
build:
if: github.event.repository.owner.id == github.event.sender.id
runs-on: buildjet-8vcpu-ubuntu-2004
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare Dumpyara
run: |
sudo apt update &> /dev/null
sudo apt -y install curl python3 wget aria2 &> /dev/null
curl -sS https://raw.githubusercontent.com/crazystylus/otadump/mainline/install.sh | bash
git config --global user.name "bot"
git config --global user.email ""
git config --global advice.refSyntax false
git clone -b test https://github.com/zainarbani/dumpyara.git dumpyara &> /dev/null
cd dumpyara
chmod +x setup.sh && chmod +x dumpyara.sh
ORGH=${{github.event.inputs.GITHUB_ORG}}
sed -i "s|ORG=AndroidDumps|ORG=$ORGH|g" dumpyara.sh
bash setup.sh &> /dev/null
- name: Download & Dump ROM
run: |
cd dumpyara
#aria2c -j 16 -o rom.zip "${{github.event.inputs.ROM_URL}}"
curl 'https://file9.gofile.io/download/web/fad9caf2-badf-435d-8042-5a6c392c2ecf/EternityROM_v4.0_OneUI_6.1.1.zip' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Referer: https://gofile.io/' -H 'Connection: keep-alive' -H 'Cookie: accountToken=RoFXZcfMDMHO2CQ0WU3iEdkG1TX5vsPo' -H 'Upgrade-Insecure-Requests: 1' -H 'Sec-Fetch-Dest: document' -H 'Sec-Fetch-Mode: navigate' -H 'Sec-Fetch-Site: same-site' -H 'Sec-Fetch-User: ?1' -H 'Priority: u=0, i' --output rom.zip
7z l rom.zip
filen=$(7z l -ba rom.zip | grep -vF 'D....' | grep -oP '\S+$')
7z rn rom.zip $filen AP_system.tar
bash dumpyara.sh rom.zip $GH_TOKEN
env:
GH_TOKEN: ${{ secrets.API_TOKEN_GITHUB }}