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 ¶
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.