Class: ApkResources::PackageHeader

Inherits:
Struct
  • Object
show all
Defined in:
lib/apktools/apkresources.rb

Overview

Structure defining the data inside of the package chunk

PackageHeader = Struct.new(:header, :id, :name, :type_strings, :key_strings)

  • header = ChunkHeader

  • id = Package id; usually 0x7F for application resources

  • name = Package name (e.g. “com.example.application”)

  • type_strings = Array of the type string values present (e.g. “drawable”)

  • key_strings = Array of the key string values present (e.g. “ic_launcher”)

Instance Attribute Summary collapse

Instance Attribute Details

#headerObject

Returns the value of attribute header

Returns:

  • (Object)

    the current value of header



55
56
57
# File 'lib/apktools/apkresources.rb', line 55

def header
  @header
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



55
56
57
# File 'lib/apktools/apkresources.rb', line 55

def id
  @id
end

#key_stringsObject

Returns the value of attribute key_strings

Returns:

  • (Object)

    the current value of key_strings



55
56
57
# File 'lib/apktools/apkresources.rb', line 55

def key_strings
  @key_strings
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



55
56
57
# File 'lib/apktools/apkresources.rb', line 55

def name
  @name
end

#type_stringsObject

Returns the value of attribute type_strings

Returns:

  • (Object)

    the current value of type_strings



55
56
57
# File 'lib/apktools/apkresources.rb', line 55

def type_strings
  @type_strings
end