dex

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFromDEX

func ExtractFromDEX(data []byte) (map[string]TransactionCodes, error)

ExtractFromDEX parses a single DEX file and extracts TRANSACTION_* constants from all $Stub classes. Returns a map of fully qualified interface name to TransactionCodes.

func ExtractFromJAR

func ExtractFromJAR(path string) (map[string]TransactionCodes, error)

ExtractFromJAR opens a JAR (ZIP) file, finds all DEX files inside, and extracts TRANSACTION_* constants from all $Stub inner classes. Returns a map of fully qualified interface name to TransactionCodes.

Example key: "android.app.IActivityManager"

Types

type TransactionCodes

type TransactionCodes map[string]uint32

TransactionCodes maps AIDL method names to their binder transaction codes. Method names use the original AIDL camelCase (e.g., "isUserAMonkey").

func ExtractDescriptorFromJAR

func ExtractDescriptorFromJAR(
	path string,
	descriptor string,
) (TransactionCodes, error)

ExtractDescriptorFromJAR extracts transaction codes for a single AIDL interface from a JAR file. The descriptor uses dot notation (e.g., "android.app.IActivityManager"). Returns nil, nil if the descriptor is not found in this JAR.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL