dex

package module
v0.0.0-...-c7ddc06 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

README

dex

Android Dex File Decoder

Documentation

Overview

type

dex_types

dex document

header

reader

Index

Constants

View Source
const ENDIAN_CONSTANT = 0x12345678
View Source
const REVERSE_ENDIAN_CONSTANT = 0x78563412

Variables

View Source
var MAGIC = [8]byte{0x64, 0x65, 0x78, 0x0a, 0x30, 0x33, 0x35, 0x00}

Functions

This section is empty.

Types

type BaseDalvikReader

type BaseDalvikReader interface {
	io.ReadSeeker

	Byte() int8
	Ubyte() uint8

	Short() int16
	Ushort() uint16

	Int() int32
	Uint() uint32

	Long() int64
	Ulong() uint64

	Sleb128() int32
	Uleb128() uint32
	Uleb128_p1() uint32

	Utf8String() (string, int)

	Bytes([]byte) (int, error)

	Offset() int64
}

func NewBaseDalvikReader

func NewBaseDalvikReader(b []byte) BaseDalvikReader

type DexReader

type DexReader interface {
	HeaderInfo() *Header

	BaseReader() BaseDalvikReader
}

func NewDexFileReader

func NewDexFileReader(filename string, flag Flag) (DexReader, error)

func NewDexReader

func NewDexReader(b []byte, flag Flag) DexReader

type Flag

type Flag int
const (
	HEADER_ONLY Flag = 0
	DETAIL      Flag = 1 << iota
)
type Header struct {
	Magic       [8]byte
	Checksum    uint32
	Signature   [20]byte
	File_size   uint32
	Header_size uint32
	Endian_tag  uint32

	Link_size uint32
	Link_off  uint32

	Map_off uint32

	String_ids_size uint32
	String_ids_off  uint32

	Type_ids_size uint32
	Type_ids_off  uint32

	Proto_ids_size uint32
	Proto_ids_off  uint32

	Field_ids_size uint32
	Field_ids_off  uint32

	Method_ids_size uint32
	Method_ids_off  uint32

	Class_defs_size uint32
	Class_defs_off  uint32

	Data_size uint32
	Data_off  uint32
}

func (*Header) String

func (self *Header) String() string

Jump to

Keyboard shortcuts

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