NinjaRacc / samRE

Samsung firmware extractor and toolkit for reverse engineering Samsung Android ROMs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

samRE

samRE is a toolkit for reverse engineering Samsung Android ROMs, featuring a script I wrote called samdump.

Given a Samsung firmware ROM, the samdump script will:

  • Untar the ROM file
  • Decompress the images
  • Convert the images to raw format
  • Mount the images
  • Extract the filesystems
  • Unpack the APKs
  • Convert the VDEX files to DEX (in some cases, extract the CDEX from the VDEX and convert to DEX)
  • Convert the DEX files to JAR
  • Decompile all the JARs to Java source code.

Currently, this tool is designed to run on Mac OS X, however with some minor modifications should be able to run on Linux. This is on my to-do list.

Dependencies

The samdump script depends on lz4 and ext4fuse (which requires osxfuse). It also depends on GNU parallel as samdump takes advantage of parallel processing to reduce the amount of time it takes to decompile files. You can install all these dependencies via homebrew:

brew cask install osxfuse
brew install lz4 ext4fuse parallel

You will also need Java. This has been tested with JDK 14.0.1 on MacOS 10.15.4.

NOTE: I highly suggest using a case-sensitive partition/APFS container or disk image for running these tools to avoid conflicts.

Usage

source activate
samdump SAMSUMG_ROM.tar.md5

Included tools

About

Samsung firmware extractor and toolkit for reverse engineering Samsung Android ROMs


Languages

Language:Shell 65.9%Language:Batchfile 33.8%Language:Python 0.3%