Skip to main content

Module dex

Module dex 

Source
Expand description

Minimal ZIP + DEX parser for reading TRANSACTION_* static int field values from framework.jar without any subprocess or external tool.

Only handles STORED (uncompressed) DEX entries. Android framework JARs store DEX uncompressed so ART can mmap directly from the ZIP.

Functionsยง

find_transaction_code
Search framework.jar for the value of a static int field.
resolve_fgproc_codes
Resolve the IForegroundProcessObserver registration tx codes from DEX.
resolve_fgproc_codes_fallback
Resolve the fallback IProcessObserver foreground observer tx codes used by ROMs that removed IForegroundProcessObserver.
resolve_fps_codes
Resolve the IWindowManager task-FPS callback tx codes from DEX.
resolve_is_interactive_tx
Resolve IPowerManager.isInteractive() transaction code from DEX.
resolve_task_stack_codes
Resolve the IActivityTaskManager task-stack listener tx codes from DEX.
resolve_tx_codes_from_dex
Resolve all four tx codes needed for binder observer mode.