Skip to content
Commit 2f4811c2 authored by ShivamKumarJha's avatar ShivamKumarJha
Browse files

rom_tools: Initial code import from old repo



 * This is a squash of following commits:

Add LICENSE

README.md

Add .gitignore

Add script to extract ROM (A & A/B both)

Add script to compare ROM's and list common, missing, added & modified blobs.

Add script to prepare vendor_prop.mk from system & vendor build.prop

Add script to generate proprietary-files.txt from ROM dump.

Add script to sort lists & update lists

proprietary-files.sh: Update logic

 * Use find & check if exists logic instead

Rename remove_me.txt to ignore.txt

 * New logic uses this list of blobs to be ignored rather than removing it later.

proprietary-files.sh: Include all system firmware

proprietary-files.sh: ensure arguement is a directory

tools: echo result

tools: use common colors.sh

tools: cleanup: delete both d & f

script: add dependencies.sh

 * Also remove 'exit' from all scripts

vendor_prop.sh: group props

vendor_prop.sh: remove duplicate props

 * This keeps props list in group but removes its lablel

tools: Add script to prepare rootdir with makefiles

deprecated: Add proprietary-files.sh script

 * This old revision prepares list from ROM files-list.
 * So this script can prepare list without downloading full ROM.
 * This is in deprecated as in 'Misc' section, a lot of sed command is used which CAN have bad affects on that section only.

lists: update

proprietary-files.sh: commonize misc sed

lists: update

proprietary-files.sh: remove system/ in proprietary-files.txt

Add system_prop.sh: Script to list props in system/build.prop

vendor_prop.sh: Commonize script

 * Now accepts only system build.prop too

vendor_prop.sh: ensure working dir exists

proprietary-files.sh: remove duplicates

tools: Add dummy_dt.sh

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: BRAND not xioami then sed

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

lists: update

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

lists: remove roms i got locally

dummy_dt.sh: allow only proprietary-files update

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: allow multiple local dumps as args

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: overlay extraction added

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: overlay: Add support for array configs!

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: overlay: fix derp in extraction

 * add "> so only valid configs are taken

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

lists: update

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: move functions call to common

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: FWB config.xml: more configs

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: overlays: use separate lists text file

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: overlay: add bt

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: Introduce DT_DIR var

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: makefile: permissions done

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: makefiles & minor fixes

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: tg: add history

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools: Introduce writemk.sh

tools: dummy_dt.sh: device.mk: write makefiles for found configs!

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

telegram.php: update location

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/dummy_dt.sh: split dt makefile stuff to dt_mk.sh

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: Add HIDL to Boardconfig if it exists

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: vendor security patch derp

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

roms.txt: update

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

dummy_dt.sh: DT: audio: ignore audio_param/ & roms.txt update

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

roms.txt: add violet

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

Revert "roms.txt: add violet"

This reverts commit 4d769da48c55ff161b6f4e2c3f1d3e38436a5f0d.

tools/dummy_dt.sh: sort array overlays

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/dummy_dt.sh: one for loop for all overlay configs

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/lists_sort_all.sh: update logic

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/dummy_dt.sh: Add overlay comments

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/dummy_dt.sh: overlay: update spacing logic

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

list: overlay: remove status_bar_height_landscape

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/dummy_dt.sh: remove proprietaryonly var

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/lists_sort_all.sh: ignore overlays/comments/

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/dummy_dt.sh: try finding ro.build.product if ro.product.device gives empty variable

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

rom_extract.sh: try finding ro.build.product if ro.product.device gives empty variable

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/dummy_dt.sh: handle vivo device naming + roms.txt update

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/dummy_dt.sh: skip device if found something wrong

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/dependencies.sh: check for required packages too

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

README.md: update

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/telegram.sh: use this instead of static php

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/dummy_dt.sh: Dont store GITHUB & TG keys in scripts.

 * I exported them in my local bashrc

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

rom_extract.sh: fix A/B extraction

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

roms.txt: update

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

rom_extract: move to tools/

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/rom_extract.sh: Add fastboot images extraction support

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

tools/dependencies.sh: Add fastboot images extraction dependencies

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

README.md: update rom_extract

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>

README.md: remove lists_sort_all.sh

Signed-off-by: default avatarShivamKumarJha <jha.shivam3@gmail.com>
parents
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment