﻿### LICENSE:
#
# Copyright (C) 2011 Ahmad Amarullah ( http://amarullz.com/ )
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
### FILE INFO:
#
# AROMA Installer 2.70 - AROMA Installer Test Script Configuration
#       (c) 2011-2012 by Ahmad Amarullah
#           amarullz - xda-developers
#           http://www.amarullz.com/
#
#       Binary Version  : 2.70RC2
#       Binary Codename : Flamboyan
#
### INFO:
#
# * AROMA Resource Dir  = META-INF/com/google/android/aroma
#
# * AROMA Temporary Dir = /tmp/aroma/

ini_set("rom_name",             "SuperSU");
ini_set("rom_version",          "Any");
ini_set("rom_author",           "Chainfire");
ini_set("rom_device",           "Any");
ini_set("rom_date",             "Any");

ini_set("force_colorspace", "rgba");

fontresload("0", "ttf/Roboto-Regular.ttf", "12");
fontresload("1", "ttf/Roboto-Regular.ttf", "18");

# SYSTEMLESS, BINDSBIN

ini_set("text_next", "Next");
ini_set("icon_next", "@next");

selectbox(
  "SuperSU",
  "Select installation type. Not all types are supported on all Android versions. System mode requires ROM support on Android >= 6.0.",
  "",
  "install.prop",

  "Auto-detect",        "Let SuperSU decide",                                                           1,
  "System",             "Force system installation, default on Android < 6.0",                          0,
  "Systemless Image",   "Force systemless installation in image mode, default on Android 6.x and 7.x",  0,
  "Systemless SBIN",    "Force systemless installation in SBIN mode, default on Android >= 8.x",        0
);

# KEEPVERITY, KEEPFORCEENCRYPT, REMOVEENCRYPTABLE

ini_set("text_next", "Next");
ini_set("icon_next", "@next");

selectbox(
  "SuperSU",
  "Configure encryption options. These apply only to systemless installations.",
  "",
  "encrypt.prop",

  "dm-verity", "", 2,
      "Auto-detect",    "Let SuperSU decide",                                                           1,
      "Remove",         "Disable dm-verity, default",                                                   0,
      "Keep",           "Keep dm-verity enabled. Prevents booting with a modified system partition.",   0,

  "force-encrypt", "", 2,
      "Auto-detect",    "Let SuperSU decide",                                                           1,
      "Remove",         "Disable forced encryption of the data partition, default",                     0,
      "Keep",           "Keep data encryption force enabled",                                           0,

  "encryptable", "", 2,
      "Auto-detect",    "Let SuperSU decide",                                                               1,
      "Remove",         "Disable encryption of the data partition completely, default on Samsung >= 7.0",   0,
      "Keep",           "Keep optional data encryption enabled, default on all other devices",              0
);

# FRP, BINDSYSTEMXBIN, PERMISSIVE

ini_set("text_next", "Next");
ini_set("icon_next", "@next");

selectbox(
  "SuperSU",
  "Configure miscellaneous options. These apply only to systemless installations.",
  "",
  "misc.prop",

  "Factory reset protection", "", 2,
      "Auto-detect",    "Let SuperSU decide",                                                                        1,
      "Enable",         "Allow su binaries (not the GUI) to survive a data wipe. Most devices lack space for this.", 0,
      "Disable",        "Do not survive a data wipe. Default on most devices.",                                      0,

  "Bind /system/xbin", "", 2,
      "Auto-detect",    "Let SuperSU decide",                                                                                               1,
      "Enable",         "Make the su binaries appear in /system/xbin. Compatibility feature required only for outdated root apps.",    0,
      "Disable",        "Normal compatibility, default",                                                                                    0,

  "SELinux", "", 2,
      "Auto-detect",    "Let SuperSU decide",                                                                                   1,
      "Enforcing",      "Keep SELinux in enforcing mode, patching only the needed rules to allow SuperSU to function, default", 0,
      "Permissive",     "Set SELinux to permissive mode, disabling its added security",                                         0
);

ini_set("text_next", "Finish");
ini_set("icon_next", "@finish");

install(
  "Installing",
  "Please wait...",
  "@install"
);
