Skip to content

configkey: __config__

Tarek edited this page Jun 18, 2015 · 1 revision

__config__ contains information about the host and target devices.

Structure

  • __config__
    • host
      • arch: [str] architecture of the host machine running inception (arm | x86 | x86_64 ..etc)
      • keys: Define keys that might be later referenced by name for signing the update package
        • key_name_1
          • private: path to private key
          • public: path to public key
        • key_name_2
          • private: path to private key
          • public: path to public key
      • bin:
        • bin_name:
          • arch:
            • arch_1: [str] path to binary for architecture arch_1
            • arch_2: [str] path to binary for architecture arch_2
            • any: [str] path to binary for any architecture
    • target
      • arch: [str]
      • mount
        • mount_name
          • fs: [str] file system type ex: ext4
          • dev: [str] path to device
          • mount: [str] mount point
          • size: [int] partition size
      • root
        • methods
          • supersu
            • path: [str] path to the supersu.zip
            • include_apk: [bool] include the SuperUser apk or not
            • include_archs: [Array] list of arch names to include from supersu, will include all if not set
      • bin
        • bin_name:
          • arch:
            • arch_1: [str] path to binary for architecture arch_1
            • arch_2: [str] path to binary for architecture arch_2
            • any: [str] path to binary for any architecture

Example:

{
    "__config__": {
        "host": {
            "arch": "x86_64",
            "keys": {
                "test": {
                    "private": "keys/testkey.pk8",
                    "public": "keys/testkey.x509.pem"
                }
            },
            "bin" : {
                "make_ext4fs": {
                    "arch" : {
                        "arm": null,
                        "x86": "bin/make_ext4fs",
                        "x86_64": "bin/make_ext4fs"
                    }
                },
                "apktool": {
                    "frameworks_dir": null,
                    "arch": {
                        "any": "bin/apktool_2.0.0b7.jar"
                    }
                }
            }
        },
        "target": {
            "arch": "arm",
            "mount": {
                "recovery": {
                    "mount": "/recovery", 
                    "fs": "emmc", 
                    "dev": "/dev/block/platform/msm_sdcc.1/by-name/recovery", 
                    "size": 10485760
                }
            },
            "bin": {
                "busybox" : {
                    "arch": {
                        "arm": "bin/busybox"
                    },
                    "symlinks": []
                }
            }
        }
    }
}