Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

Custom Controls

ukanth edited this page Aug 9, 2016 · 3 revisions

How do I write a control?

It's pretty much straight forward. If you know how to write shell scripts you shouldn't have any problems.

Examples

Selinux Switch

This is probably the most requested feature by the users. Unfortunately Google doesn't allow apps to toggle Selinux.

Here is what you have to do.

Make sure you choose Create->Switch. Then type in following:

Title

Selinux

Description

Security-Enhanced Linux is a Linux kernel security module that provides a mechanism for supporting access control security policies.

Enabled

#/system/bin/sh

if [ `getenforce` == "Enforcing" ]; then
    echo 1
else
    echo 0
fi

Applying

#/system/bin/sh

setenforce $1

You can also use the import feature https://github.com/Grarak/KernelAdiutor/blob/master/controls/selinux.json

Clone this wiki locally