Home > Products > SophiaCompress(BREW) EARTH > How It Works

SophiaCompress(BREW) EARTH How It Works

  

SophiaCompress(BREW) EARTH compresses a BREW mod file and generates a "Bootloader" that will load and execute the BREW mod file compressed.

There are two kinds of compression method: Direct Compress and Separate Compress

* Above SophiaCompress(BREW) EARTH 5.0, the LZMA algorithm has been supported.


Direct Compress

Direct Compress
  1. Startup SophiaCompress(BREW), select the mod file to be compressed and execute.
  2. The file will be compressed. The bootloader(APPL.mod) and the compressed application are generated in the same module file (APPL.mod in this example).
  3. The APPL.mod file containing the bootloader and the compressed application are saved into a data folder of the mobile phone.
  4. The bootloader and the compressed application are loaded into heap memory.
  5. The bootloader expands the compressed application and executes it.
  6. Since the compressed application and the bootloader are both loaded into data folder, it uses more heap memory than the Separate Compress method.

Separate Compress

Separate Compress
  1. Startup SophiaCompress(BREW), select the mod file to be compressed and execute.
  2. The file will be compressed. A bootloader(APPL.mod) and a compressed Application(APPL.scb) are generated separately.
  3. The bootloader and the compressed application are saved into a data folder of mobile phone.
  4. The bootloader is loaded into heap memory.
  5. The compressed application is expanded into heap memory and executed by the bootloader.
  6. Since the compressed application is saved into a data folder, the use less heap memory the is required compared to Direct Compress method.