Android Blobs Organizer

Overview

AndroidBlobsOrganizer

Installation

pip3 install .

Usage

$ python3 -m androidblobsorganizer -h
Android blobs organizer
Version 0.1.0

usage: python3 -m androidblobsorganizer [-h] [-o OUTPUT] dump_path

positional arguments:
  dump_path             path to an Android dump made with dumpyara

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        custom output file
Comments
  • build/make/core/base_rules.mk:324: error: system/core/rootdir: MODULE.TARGET.ETC.init.rc already defined by device/samsung/m21/rootdir.

    build/make/core/base_rules.mk:324: error: system/core/rootdir: MODULE.TARGET.ETC.init.rc already defined by device/samsung/m21/rootdir.

    I created the device tree from your scripts. I created the vendor with AndroidDumps/dumpyara. Can you show me the way to fish?

    Device tree: https://github.com/exynos-9611/android_device_samsung_m21 Kernel: https://github.com/exynos-9611/android_kernel_samsung_m21 Vendor: https://gitlab.com/exynos-9611/proprietary_vendor_samsung Manifests: https://github.com/exynos-9611/local_manifests

    Dumpyara: M215FXXU2ATJ5 (A10): https://gitlab.com/dkey21/samsung-m21-dump-m215fxxu2atj5 M215FXXS2BUK2 (A11): https://gitlab.com/dkey21/samsung-m21-dump-m215fxxs2buk2 M215FXXU2CVCC (A12): https://gitlab.com/dkey21/samsung-m21-dump-m215fxxu2cvcc

    Samsung Open Source: https://github.com/exynos-9611/samsung_m21/releases/tag/opensource

    opened by ghost 9
  • Error  on building on5xelte device tree

    Error on building on5xelte device tree

    root@fv-az90-984:/home/diwas/on5xelte# python3 -m aospdtgen /home/diwas/on5xelte Android device tree generator Version 0.1.0 [INFO] Parsing all_files.txt [INFO] Figuring out partitions scheme Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.8/dist-packages/aospdtgen/main.py", line 11, in main() File "/usr/local/lib/python3.8/dist-packages/aospdtgen/main.py", line 31, in main dump = DeviceTree(args.dump_path) File "/usr/local/lib/python3.8/dist-packages/aospdtgen/device_tree.py", line 43, in init self.partitions = Partitions(self.path) File "/usr/local/lib/python3.8/dist-packages/aospdtgen/utils/partitions.py", line 37, in init assert PartitionModel.VENDOR in self.partitions AssertionError

    opened by ghost 4
  • Error installing sebaubuntu-libs

    Error installing sebaubuntu-libs

    $ pip install sebaubuntu-libs

    ERROR: Ignored the following versions that require a different python version: 1.0.0 Requires-Python >=3.9,<4.0; 1.0.1 Requires-Python >=3.9,<4.0; 1.0.2 Requires-Python >=3.9,<4.0; 1.0.3 Requires-Python >=3.9,<4.0; 1.0.4 Requires-Python >=3.9,<4.0; 1.0.5 Requires-Python >=3.9,<4.0; 1.0.6 Requires-Python >=3.9,<4.0 ERROR: Could not find a version that satisfies the requirement sebaubuntu-libs (from versions: none) ERROR: No matching distribution found for sebaubuntu-libs

    opened by sanjeevstunner 3
  • Lack dash sign for some proprietary files

    Lack dash sign for some proprietary files

    Some proprietary files like apk, vintf, etc. file need the dash sign in proprietary-files.txt to build. But I don't know how to modify the source code to do this thing. Can we add this sign when doing section.get_files()?

    opened by wbs306 2
  • UnicodeDecodeError when calling unpackimg()

    UnicodeDecodeError when calling unpackimg()

    I met this error when it was unpacking the boot.img, only if I set LC_ALL=C before execute this command or comment the code setup_locale() it works. Is there any better solutions? I think the locale change in somewhere when executing the script. My default locale is zh_CN.UTF-8, running on Archlinux, Python 3.10

    $ python -m aospdtgen /home/wbs/android/dumpyara/working/out 
    
    
    Android device tree generator
    
    Version 0.1.0
    
    [2022-06-12 12:17:11,938] [manifest.py:76 WARNING] import_file: Unknown HAL type native
    [2022-06-12 12:17:12,398] [__init__.py:104 INFO] __init__: Cloning AIK...
    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/wbs/.local/lib/python3.10/site-packages/aospdtgen/__main__.py", line 11, in <module>
        main()
      File "/home/wbs/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 30, in main
        dump = DeviceTree(args.dump_path)
      File "/home/wbs/.local/lib/python3.10/site-packages/aospdtgen/devicetree.py", line 75, in __init__
        self.boot_configuration = BootConfiguration(self.path / "boot.img",
      File "/home/wbs/.local/lib/python3.10/site-packages/aospdtgen/utils/boot_configuration.py", line 28, in __init__
        self.boot_image_info = self.boot_aik_manager.unpackimg(self.boot)
      File "/home/wbs/.local/lib/python3.10/site-packages/sebaubuntu_libs/libaik/__init__.py", line 112, in unpackimg
        process = self._execute_script("unpackimg.sh", image)
      File "/home/wbs/.local/lib/python3.10/site-packages/sebaubuntu_libs/libaik/__init__.py", line 193, in _execute_script
        return check_output(command, stderr=STDOUT, universal_newlines=True)
      File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "/usr/lib/python3.10/subprocess.py", line 503, in run
        stdout, stderr = process.communicate(input, timeout=timeout)
      File "/usr/lib/python3.10/subprocess.py", line 1139, in communicate
        stdout = self.stdout.read()
      File "/usr/lib/python3.10/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 562: ordinal not in range(128)
    
    opened by wbs306 2
  • errors to obtaing the Device Tree with Xiaomi Firmwares

    errors to obtaing the Device Tree with Xiaomi Firmwares

    Android device tree generator Version 0.1.0

    Traceback (most recent call last): File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/bm0x/aospdtgen/aospdtgen/main.py", line 11, in main() File "/home/bm0x/aospdtgen/aospdtgen/main.py", line 30, in main dump = DeviceTree(args.dump_path) File "/home/bm0x/aospdtgen/aospdtgen/devicetree.py", line 31, in init self.all_files = [file for file in self.all_files_txt.open().read().splitlines() File "/usr/local/lib/python3.10/pathlib.py", line 1117, in open return self._accessor.open(self, mode, buffering, encoding, errors, NotADirectoryError: [Errno 20] Not a directory: 'nabu_dpp_android_images_2.05.07.native.user.dpp_20220507.0000.00_13.0_4a3b03edc2.tgz/all_files.txt'

    opened by bm0x 2
  • Issues with OnePlusN10 dump

    Issues with OnePlusN10 dump

    This device does not seem to contain a value you look for in build.prop AssertionError: Property ro.product.bootimage.model could not be found in build.prop

    I added this manually and it continues, however it would be nice if this was not necessary. this is the dump: https://dumps.tadiphone.dev/dumps/oneplus/oneplusn10/

    After adding that, I do get a device tree generated, however I also get these warnings:

    [2022-05-12 20:56:32,780] [manifest.py:76 WARNING] import_file: Unknown HAL type native [2022-05-12 20:56:33,972] [__init__.py:104 INFO] __init__: Cloning AIK... [2022-05-12 20:56:37,883] [__init__.py:104 INFO] __init__: Cloning AIK...

    Hopefully this helps!

    opened by kronflux 2
  • A/B device related changes

    A/B device related changes

    overview on pr:

    1. Defines Recovery changes for A/B devices
    2. Configure AB_OTA_POSTINSTALL_SCRIPT
    3. Build Aosp Default Health Hal

    All implementation are done according to Aosp docs

    opened by ghost 2
  • What could be some sort of default config.fs that we can come up with?

    What could be some sort of default config.fs that we can come up with?

    Hi There,

    I have used this tool to generate device tree and building lineageos 18.0

    Its done till 70% and had 3 errors until now. Fixed them. Currently stuck at not having default config.fs which declares the users like this https://github.com/LineageOS/android_device_sony_tama-common/blob/lineage-19.1/config.fs

    I have found my device's /etc/passwd file non empty so I can create those users as I found from that file. But having this auto generated is a really good step that we can automate is what I felt.

    Let me know about your views on this. If I am able to successfully build lineageos and use it then I will create a documentation/video series explaining how to build lineageos for a device with aospdtgen given they have dump from dumpyara

    In case either you or someone have already created such documenation/video series explaining how to build androidos using this(aospdtgen) and dumpyara, please link me to it. I can add the errors I face in case they are not covered in that documentation.

    opened by sultanahamer 1
  • How to make a device tree that has a common tree?

    How to make a device tree that has a common tree?

    I used your tool to make my device tree from a ROM, but it didn't include the common files from another repository. How do I use this tool to make a device tree that incorporates a common tree?

    opened by thebestofall007 1
  • Extracting process is suddenly being killed

    Extracting process is suddenly being killed

    Hi, There!

    I'm so impressed with all your works and here I'm tryna use this tool the create a skeleton dt for my device. But the problem is I got this error while tryna execute this script

    $ python3 -m dumpyara -o ~/dt/rom ~/dt/rom/miui_MI8SE_V12.5.1.0.QEBCNXM_d9815dfb66_10.0.zip Dumpyara Version 1.0.0

    [INFO] Step 1 - Extracting archive [INFO] Step 2 - Preparing partition images [INFO] Copying boot.img [INFO] Copying dtbo.img [INFO] Copying tz.mbn [INFO] Decompressing system.new.dat.br Killed

    Any ideas? Thanks a million.

    Info: Python version: 3.9.13 Device: MI 8 SE a.k.a Sirius OS: Ubuntu 18.04.6 LTS

    opened by fsdimasyudha 1
  • AttributeError: 'NoneType' object has no attribute 'name' [Sony stock firmware (pdx-201)]

    AttributeError: 'NoneType' object has no attribute 'name' [Sony stock firmware (pdx-201)]

    Android device tree generator Version 0.1.0

    [INFO] Figuring out partitions scheme [WARNING] Unknown HAL type native [INFO] Parsing build props and device info [INFO] Parsing fstab [INFO] Extracting boot image [INFO] Cloning AIK... 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/erik/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 11, in main() File "/home/erik/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 31, in main dump = DeviceTree(args.dump_path) File "/home/erik/.local/lib/python3.10/site-packages/aospdtgen/device_tree.py", line 62, in init self.boot_configuration = BootConfiguration(self.path) File "/home/erik/.local/lib/python3.10/site-packages/aospdtgen/utils/boot_configuration.py", line 26, in init self.boot_image_info = self.boot_aik_manager.unpackimg(self.boot) File "/home/erik/.local/lib/python3.10/site-packages/sebaubuntu_libs/libaik/init.py", line 109, in unpackimg image_prefix = image.name

    opened by KingProNoob2 1
  • assert PartitionModel.SYSTEM in self.partitions

    assert PartitionModel.SYSTEM in self.partitions

    `PS C:\Users\x\Desktop> python -m aospdtgen -o C:\Users\x\Desktop\rom C:\Users\x\Desktop\images Android device tree generator Version 0.1.0

    [INFO] Parsing all_files.txt [INFO] Figuring out partitions scheme Traceback (most recent call last): File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code exec(code, run_globals) File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\site-packages\aospdtgen_main.py", line 11, in main() File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\site-packages\aospdtgen\main.py", line 31, in main dump = DeviceTree(args.dump_path) File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\site-packages\aospdtgen\device_tree.py", line 43, in init self.partitions = Partitions(self.path) File "C:\Users\x\AppData\Local\Programs\Python\Python310\lib\site-packages\aospdtgen\utils\partitions.py", line 26, in init assert PartitionModel.SYSTEM in self.partitions AssertionError`

    i try in wsl&windows,dont work. model: realme q3 kernel-souce: https://github.com/realme-kernel-opensource/realmeQ3_Q3pro_AndroidS_kernel-source vendor-source: https://github.com/realme-kernel-opensource/realmeQ3_Q3pro_AndroidS_vendor-source

    opened by ghost 3
  • AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'split'

    AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'split'

    Android device tree generator Version 0.1.0

    [INFO] Parsing all_files.txt [INFO] Figuring out partitions scheme [WARNING] Unknown HAL type native 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/red/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 11, in main() File "/home/red/.local/lib/python3.10/site-packages/aospdtgen/main.py", line 31, in main dump = DeviceTree(args.dump_path) File "/home/red/.local/lib/python3.10/site-packages/aospdtgen/device_tree.py", line 43, in init self.partitions = Partitions(self.path) File "/home/red/.local/lib/python3.10/site-packages/aospdtgen/utils/partitions.py", line 35, in init self.partitions[PartitionModel.VENDOR] = AndroidPartition(PartitionModel.VENDOR, vendor, self.dump_path) File "/home/red/.local/lib/python3.10/site-packages/aospdtgen/utils/partition.py", line 119, in init self.manifest.import_file(manifest_path) File "/home/red/.local/lib/python3.10/site-packages/sebaubuntu_libs/libvintf/manifest.py", line 73, in import_file self.entries.append(AidlHal.from_entry(entry)) File "/home/red/.local/lib/python3.10/site-packages/sebaubuntu_libs/libvintf/aidl.py", line 67, in from_entry interfaces = set([AidlInterface.from_fqname(interface) File "/home/red/.local/lib/python3.10/site-packages/sebaubuntu_libs/libvintf/aidl.py", line 67, in interfaces = set([AidlInterface.from_fqname(interface) File "/home/red/.local/lib/python3.10/site-packages/sebaubuntu_libs/libvintf/aidl.py", line 40, in from_fqname name, instance = string.split("/", 1) AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'split'

    opened by ShaifAslam 1
Owner
Sebastiano Barezzi
Italian 17y.o. bringing AOSP to your devices | alioth, apollon, lmi, platina, vayu, whyred maintainer @LineageOS
Sebastiano Barezzi
HPomb Is Socail Engineering Tool , Used For Bombing , Spoofing and Anonymity Available For Linux And Android(Termux)

HPomb v2020.02 Coming Soon Created By Secanonm HPomb Is Socail Engineering Tool , Used For Bombing , Spoofing and Anonymity Available For Linux And An

Secanonm 10 Jul 25, 2022
Inspect the resources of your android projects and understand which ones are not being used and could potentially be removed.

Android Resources Checker What This program will inspect the resources of your app and help you understand which ones are not being used and could pot

Fábio Carballo 39 Feb 8, 2022
Automatic certificate unpinning for Android apps

What is this? Script used to perform automatic certificate unpinning of an APK by adding a custom network security configuration that permits user-add

Antoine Neuenschwander 5 Jul 28, 2021
AndroidEnv is a Python library that exposes an Android device as a Reinforcement Learning (RL) environment.

AndroidEnv is a Python library that exposes an Android device as a Reinforcement Learning (RL) environment.

DeepMind 814 Dec 26, 2022
A python script to simplify recompiling, signing and installing reverse engineered android apps.

urszi.py A python script to simplify the Uninstall Recompile Sign Zipalign Install cycle when reverse engineering Android applications. It checks if d

Ahmed Harmouche 4 Jun 24, 2022
Waydroid is a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu.

Waydroid is a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu.

WayDroid 4.7k Jan 8, 2023
tool to automate exploitation of android degubg bridge vulnerability

DISCLAIMER DISCLAIMER: ANY MALICIOUS USE OF THE CONTENTS FROM THIS ARTICLE WILL NOT HOLD THE AUTHOR RESPONSIBLE HE CONTENTS ARE SOLELY FOR EDUCATIONAL

null 6 Feb 12, 2022
creates a batch file that uses adb to auto-install apks into the Windows Subsystem for Android and registers it as the default application to open apks.

wsa-apktool creates a batch file that uses adb to auto-install apks into the Windows Subsystem for Android and registers it as the default application

Aditya Vikram 3 Apr 5, 2022
Wrapper around anjlab's Android In-app Billing Version 3 to be used in Kivy apps

IABwrapper Wrapper around anjlab's Android In-app Billing Version 3 to be used in Kivy apps Install pip install iabwrapper Important ( Add these into

Shashi Ranjan 8 May 23, 2022
Uma versão em Python/Ursina do aplicativo Real Drum (android).

Real Drum Descrição Esta é uma versão alternativa feita em Python com a engine Ursina do aplicatio Real Drum (presente no Google Play Store). Como exe

hayukimori 5 Aug 20, 2022
A wrapper script to make working with ADB (Android Debug Bridge) easier

Python-ADB-Wrapper A wrapper script to make working with ADB (Android Debug Bridge) easier This project was just a simple test to see if I could wrap

18iteration 1 Nov 25, 2021
Possible solutions to Wordscapes, a mobile game for the android operating system, downloadable from the play store

Possible solutions to Wordscapes, a mobile game for the android operating system, downloadable from the play store

Clifford Onyonka 2 Feb 23, 2022
A python script to decrypt media files encrypted using the Android application 'Secret Calculator Photo Vault'. Supports brute force of PIN also.

A python script to decrypt media files encrypted using the Android application 'Secret Calculator Photo Vault'. Supports brute force of PIN also.

null 3 May 1, 2022
Run the Tianxunet software on the Xiaoyao Android simulator

Run the Tianxunet software on the Xiaoyao Android simulator, and automatically fill in the answers of English listening on the premise of having answers

null 1 Feb 13, 2022
document organizer with tags and full-text-search, in a simple and clean sqlite3 schema

document organizer with tags and full-text-search, in a simple and clean sqlite3 schema

Manos Pitsidianakis 152 Oct 29, 2022
Python file organizer application

Python file organizer application

Pak Maneth 1 Jun 21, 2022
Organizer is a python program that organizes your downloads folder

Organizer Organizer is a python program that organizes your downloads folder, it can run as a service and so will start along with the system, and the

Gustavo 2 Oct 18, 2021
Youtube Music Playlist Organizer

Youtube Music Playlist Organizer, a simple Python application that uses ytmusicapi to help user edit their playlists and organize in other playlists.

Bedir Tapkan 1 Oct 24, 2021
A **CLI** folder organizer written in Python.

Fsorter Introduction A CLI folder organizer written in Python. Dependencies Before installing, install the following dependencies: Ubuntu/Debain Based

null 1 Nov 17, 2021