Code Monkey home page Code Monkey logo

dumpyara's Introduction

dumpyara

Telegram channel (feed)
Telegram group for dump requests

Script requirements:

  Linux or Mac

For setting up requirements:

  bash setup.sh

Usage:

  bash dumpyara.sh "<OTAlink> OR <OTA file path>" yourGithubToken

You can also place your github oauth token in a file called .githubtoken and telegram bot token in a file called .tgtoken in the root of this repository, if you wish it is ignored by git.
Before you start, make sure that dumpyara scripts are mapped to your own org or account, otherwise you'll only dump, not push.

Supported image types:
check here

If you're a member of AndroidDumps org, use a token with following permissions: admin:org, public_repo

dumpyara's People

Contributors

akhilnarang avatar akianonymus avatar azkali avatar carlitros900 avatar danascape avatar deadman96385 avatar djchittoor avatar dodyirawan85 avatar enessastim avatar erfanoabdi avatar ghostmaster69-dev avatar gotenksin avatar herobuxx avatar hikaricalyx avatar kacskrz avatar kujouyuko avatar lacentix avatar mainey avatar npjohnson avatar onenormalusername avatar przekichane avatar sagarshah1729 avatar sb6596 avatar sebaubuntu avatar shivamkumarjha avatar someone5678 avatar tadit7 avatar twistloop avatar vachounet avatar zainarbani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dumpyara's Issues

Could not find a version that satisfies the requirement aospdtgen

Getting the following error while running the setup.sh script:

Collecting aospdtgen
  Could not find a version that satisfies the requirement aospdtgen (from versions: )
No matching distribution found for aospdtgen

I am running here:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"

erofs problem

script has one problem when i finds out that partitions are erofs thn while extracting it makes some file shortcut links instead of copying file to that location. when you click on that file to show target then file manager isnt able to find out the file because its path is written as root. for example rm10proa41/system/system/etc/security/otacerts.zip here the dumpyara extracted it with fsck.erofs but in that location it is shortcut/link of the file otacerts.zip when you click on the link file to go for the target file it cant find it because of wrong link location.
image
image
see it does not able to find the path of file because path is set as root.
image
see here is file present in that directory where it is pointing but becaus of starting path is set as root it cant find it.
thats why here it gives error while generating dt.

python -m aospdtgen rm10proa41/
Android device tree generator
Version 1.0.0

[INFO] Figuring out partitions scheme
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/arsalan/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 11, in
main()
File "/home/arsalan/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 31, in main
dump = DeviceTree(args.dump_path)
File "/home/arsalan/.local/lib/python3.10/site-packages/aospdtgen/device_tree.py", line 36, in init
self.partitions = Partitions(self.path)
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partitions.py", line 25, in init
self.partitions[PartitionModel.SYSTEM] = AndroidPartition(PartitionModel.SYSTEM, system)
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partition.py", line 38, in init
self.files = get_files_list(self.path)
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partition.py", line 29, in get_files_list
files.extend(get_files_list(i))
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partition.py", line 29, in get_files_list
files.extend(get_files_list(i))
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partition.py", line 29, in get_files_list
files.extend(get_files_list(i))
File "/usr/local/lib/python3.10/dist-packages/sebaubuntu_libs/libandroid/partitions/partition.py", line 25, in get_files_list
for i in path.iterdir():
File "/usr/lib/python3.10/pathlib.py", line 1017, in iterdir
for name in self._accessor.listdir(self):
FileNotFoundError: [Errno 2] No such file or directory: 'rm10proa41/system/system/etc/security/otacerts.zip'

please see through this issue deeply

Cannot get Samsung device (b4q) dump

Device: Samsung Galaxy Z Flip4 (SM-F721B, b4q)

Log:

...
boot_kallsyms.txt generated
boot.elf generated
dtbo extracted
find: ‘/home/nio/dumpyara/working/SAMFW.COM_SM-F721B_EUX_F721BXXS5EXAB_fac/bootimg’: No such file or directory
Trying to extract system partition via fsck.erofs.
<E> erofs: cannot find valid erofs superblock
<E> erofs: failed to read superblock
Trying to extract system_ext partition via fsck.erofs.
<E> erofs: cannot find valid erofs superblock
<E> erofs: failed to read superblock
Trying to extract vendor partition via fsck.erofs.
<E> erofs: cannot find valid erofs superblock
<E> erofs: failed to read superblock
Trying to extract odm partition via fsck.erofs.
<E> erofs: cannot find valid erofs superblock
<E> erofs: failed to read superblock
Trying to extract product partition via fsck.erofs.
<E> erofs: cannot find valid erofs superblock
<E> erofs: failed to read superblock
Trying to extract vendor_dlkm partition via fsck.erofs.
<E> erofs: cannot find valid erofs superblock
<E> erofs: failed to read superblock
find: ‘/home/nio/dumpyara/working/SAMFW.COM_SM-F721B_EUX_F721BXXS5EXAB_fac/modem’: No such file or directory
find: ‘/home/nio/dumpyara/working/SAMFW.COM_SM-F721B_EUX_F721BXXS5EXAB_fac/tz*’: No such file or directory
No system build*.prop found, pushing cancelled!

I can't extract any firmware

For some apparent reason I can't dump any FW, I tried 3 devices:
SM-A207M
SM-A217F
SM-A205G

All attempts give build.prop not found, I already gave sudo bash setup and it doesn't even work, any ideas?

I/O:

➜  dumpyara git:(master) ./dum* ../*217*
File detected.
Copying...
Create Temp and out dir
Extracting firmware on: /home/chikatto/Downloads/dumpyara/working/AP_A217FXXU3ATH4_CL19448112_QB33925879_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS10.tar
super detected
find: ‘/home/chikatto/Downloads/dumpyara/working/AP_A217FXXU3ATH4_CL19448112_QB33925879_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS10.tar/bootimg’: File or directory not found
find: ‘/home/chikatto/Downloads/dumpyara/working/AP_A217FXXU3ATH4_CL19448112_QB33925879_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS10.tar/modem’: File or directory not found
find: ‘/home/chikatto/Downloads/dumpyara/working/AP_A217FXXU3ATH4_CL19448112_QB33925879_REV00_user_low_ship_MULTI_CERT_meta_RKEY_OS10.tar/tz*’: File or directory not found
No system build*.prop found, pushing cancelled!

Assertion error while trying to create ROM dump for xaga 14.0.3TLOCNXM

I encounter this error while running ./dumpyara.sh

Traceback (most recent call last): File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/db-rom/dumpyara/.venv/lib/python3.9/site-packages/twrpdtgen/__main__.py", line 11, in <module> main() File "/home/db-rom/dumpyara/.venv/lib/python3.9/site-packages/twrpdtgen/main.py", line 37, in main device_tree = DeviceTree(image=args.image) File "/home/db-rom/dumpyara/.venv/lib/python3.9/site-packages/twrpdtgen/device_tree.py", line 66, in __init__ self.device_info = DeviceInfo(self.build_prop) File "/home/db-rom/dumpyara/.venv/lib/python3.9/site-packages/sebaubuntu_libs/libandroid/device_info.py", line 117, in __init__ self.codename = self.get_first_prop(DEVICE_CODENAME) File "/home/db-rom/dumpyara/.venv/lib/python3.9/site-packages/sebaubuntu_libs/libandroid/device_info.py", line 177, in get_first_prop raise AssertionError(f'Property {props[0]} could not be found in build.prop') AssertionError: Property ro.product.bootimage.device could not be found in build.prop

Is there any way to overcome this other than to manually change the files?

7z requirement issue. Please pre-include p7zip into the source.

GitHub token not found. Dumping just locally...
dumpyara.sh: line 35: inline-detox: command not found
dumpyara.sh: line 36: inline-detox: command not found
File detected. Copying...
Create Temp and out dir
head: error reading '/mnt/nvme/dumpyara/input': Is a directory
/mnt/nvme/dumpyara/Firmware_extractor/extractor.sh: line 149: 7z: command not found
BRUH: This type of firmwares not supported
find: ‘/mnt/nvme/dumpyara/working//bootimg’: No such file or directory
find: ‘/mnt/nvme/dumpyara/working//modem’: No such file or directory
find: ‘/mnt/nvme/dumpyara/working//tz*’: No such file or directory
No system build*.prop found, pushing cancelled!

Couldn't extract system partition by 7z. Using fsck.erofs

I try extract firmware samsung galaxy A73 but it get problem. How to fix

Couldn't extract system partition by 7z. Using fsck.erofs.
erofs: cannot find valid erofs superblock
erofs: failed to read superblock
Couldn't extract system partition by fsck.erofs. Using mount loop

Erofs, fail extraction samsung firmware

In trying to run the script agianst a stock samsung FW zip, ran into erofs errors. Is it just a matter of firmware?
The error itself did not prevent the dump from completing. So non issue, just wondering if I can address it.

find: ‘/home/martin/FW/dumpyara/working/T510/bootimg’: No such file or directory
Trying to extract system partition via fsck.erofs.
erofs: cannot find valid erofs superblock
erofs: failed to read superblock
Extraction via fsck.erofs failed, extracting system partition via 7z
Trying to extract vendor partition via fsck.erofs.
erofs: cannot find valid erofs superblock
erofs: failed to read superblock
Extraction via fsck.erofs failed, extracting vendor partition via 7z
Trying to extract product partition via fsck.erofs.
erofs: cannot find valid erofs superblock
erofs: failed to read superblock
Extraction via fsck.erofs failed, extracting product partition via 7z
find: ‘/home/martin/FW/dumpyara/working/T510/modem’: No such file or directory
find: ‘/home/martin/FW/dumpyara/working/T510/tz*’: No such file or directory
system/system/build.prop
and
[WARNING] Unknown HAL type native

AssertionError: Logical partition metadata has invalid geometry magic signature.

Device:N-one(aka incar) npad air(codename NpadAir)
NOTE:i extracted pac file then made a zip out from it
Log:
Dumpyara
Version 1.0.2

[INFO] Step 1 - Extracting archive
[INFO] Step 2 - Preparing partition images
[INFO] Pattern payload.bin not found
[INFO] Found multipartition image: super.img
[INFO] Failed to unsparse super.img
Traceback (most recent call last):
File "/workspace/.pyenv_mirror/user/3.12.1/bin/dumpyara", line 8, in
sys.exit(main())
^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/dumpyara/main.py", line 40, in main
output_path = dumpyara(args.file, output, args.debug)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/dumpyara/dumpyara.py", line 33, in dumpyara
step_2(extracted_archive_path, raw_images_path)
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/dumpyara/steps/step_2.py", line 43, in step_2
func(multipart_image, raw_images_path)
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/dumpyara/utils/multipartitions.py", line 32, in extract_super
lpunpack(image, output_dir)
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/liblp/partition_tools/lpunpack.py", line 87, in lpunpack
metadata = ReadMetadata(image, slot)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/liblp/reader.py", line 275, in ReadMetadata
geometry = ReadLogicalPartitionGeometry(fd)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/liblp/reader.py", line 97, in ReadLogicalPartitionGeometry
geometry = ReadPrimaryGeometry(fd)
^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/liblp/reader.py", line 84, in ReadPrimaryGeometry
return ParseGeometry(buffer)
^^^^^^^^^^^^^^^^^^^^^
File "/workspace/.pyenv_mirror/user/current/lib/python3.12/site-packages/liblp/reader.py", line 54, in ParseGeometry
assert geometry.magic == LP_METADATA_GEOMETRY_MAGIC,
AssertionError: Logical partition metadata has invalid geometry magic signature.

Incorrect extract-dtb path

python3: can't open file '/root/dumpyara/extract-dtb/extract-dtb.py': [Errno 2] No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.