Skip to content
Tarek edited this page Jun 19, 2015 · 6 revisions

How to add a new device

See Support any device

How to set device's the timezone

Timezone is stored in "/data/property/persist.sys.timezone", therefore to generate this file add the following to your configuration.

{
    "update": {
        "property": {
            "sys": {
                "timezone": "Europe/Berlin"
            }
        }
    }
}

See list of possible timezone values.

How to sign the update package

To sign an update package you first need to define your signing keys, and then reference them in "update". For example, this defines signing keys named release, and then tell "update" to use those keys:

{
    "__config__": {
        "host": {
            "keys": {
                "release": {
                    "private": "keys/release.pk8",
                    "public": "keys/release.x509.pem"
                }
            }
        }
    },
    "update": {
        "keys": "release"
    }
}

How to restore stock recovery

{
    "recovery": {
        "stock": "imgs/stock_recovery.img"
    },
    "update": {
        "restore_stock_recovery": true
    }
}

How to enable/disable USB debugging

{
    "update": {
        "property": {
            "sys": {
                "usb": {
                    "config": "mtp,adb"
                }
            }
        }
    }
}