MagiskHidePropsConf/common/propsconf_conf

230 lines
9.8 KiB
Plaintext
Raw Normal View History

2018-04-15 22:05:33 +00:00
#!/system/bin/sh
# MagiskHide Props Config
2021-09-04 11:11:35 +00:00
# Copyright (c) 2018-2021 Didgeridoohan @ XDA Developers
2019-02-02 12:37:20 +00:00
# Licence: MIT
2018-04-15 22:05:33 +00:00
2019-04-05 21:10:02 +00:00
# =================================================================
# ======================= Configuration file ======================
# =================================================================
# Required module version (or newer). Do not edit this value!
2021-09-05 07:27:36 +00:00
CONFTRANSF=601
2018-04-15 22:05:33 +00:00
2019-02-02 12:37:20 +00:00
# Device fingerprint
CONFFINGERPRINT=""
CONFVENDPRINT=false
2019-03-27 10:50:00 +00:00
CONFPRINTBOOT=default
2019-04-02 19:42:29 +00:00
CONFPATCHBOOT=late
2019-02-02 12:37:20 +00:00
2020-08-14 08:01:35 +00:00
# Force BASIC attestation
CONFBASICATTEST=false
CONFBASICATTCUST=""
2019-02-02 12:37:20 +00:00
# Device simulation
CONFDEVSIM=false
2019-11-02 22:24:17 +00:00
CONFBRAND=false
CONFNAME=false
CONFDEVICE=false
CONFRELEASE=false
CONFID=false
CONFINCREMENTAL=false
CONFDISPLAY=false
CONFSDK=false
2020-02-26 21:08:29 +00:00
CONFMANUFACTURER=false
CONFMODEL=false
CONFDESCRIPTION=true
CONFPARTPROPS=true
2019-03-27 10:50:00 +00:00
CONFSIMBOOT=default
2019-02-02 12:37:20 +00:00
# MagiskHide sensitive props
2021-09-06 17:19:37 +00:00
CONFDEBUGGABLE=true
CONFSECURE=true
CONFTYPE=true
CONFTAGS=true
CONFBOOTMODE=true
CONFMODE=true
CONFVENDORMODE=true
CONFHWC=true
CONFHWCOUNTRY=true
CONFSTATE=true
CONFVERIFIEDBOOTSTATE=true
CONFVENDORVERIFIEDBOOTSTATE=true
CONFLOCKED=true
CONFVERITYMODE=true
CONFBOOTWARRANTY_BIT=true
CONFBIT=true
CONFVENDORBOOTWARRANTY_BIT=true
CONFVENDORWARRANTY_BIT=true
CONFVENDORDEVICE_STATE=true
2018-04-15 22:05:33 +00:00
2019-02-02 12:37:20 +00:00
# Set custom props
2018-04-15 22:05:33 +00:00
CONFPROPS=""
2018-09-04 07:55:57 +00:00
CONFPROPSPOST=""
CONFPROPSLATE=""
2020-08-14 08:01:35 +00:00
CONFPROPSDELAY=""
2018-04-15 22:05:33 +00:00
PROPOPTION=replace
2019-02-02 12:37:20 +00:00
# Delete props
2018-06-19 09:56:08 +00:00
CONFDELPROPS=""
DELPROPOPTION=replace
2021-09-05 07:27:36 +00:00
# Soft reboot options
CONFOPTIONSOFTBOOT=false
CONFPRINTSOFTBOOT=false
CONFPATCHSOFTBOOT=false
CONFSIMSOFTBOOT=false
CONFCUSTOMSOFTBOOT=false
CONFPROPSOFTBOOT=false
2019-02-02 12:37:20 +00:00
# Module settings
2019-03-27 10:50:00 +00:00
CONFBOOT=default
2019-02-02 12:37:20 +00:00
CONFCOLOUR=true
2020-09-12 18:30:24 +00:00
CONFWEBP=true
CONFWEBU=true
2019-03-27 10:50:00 +00:00
CONFUPDATE=true
2019-11-22 19:19:18 +00:00
CONFBACK=false
2018-04-15 22:05:33 +00:00
# =================================================================
# ========================== Instructions =========================
# =================================================================
# Set the above variables to the desired prop/configuration values.
2018-08-07 11:50:01 +00:00
2019-02-02 12:37:20 +00:00
# If any variables are left unset, that particular prop/configuration
# will be cleared and the device/Magisk default values will be used.
# If you want to keep any current module settings (for those that
# aren't true/false options), add "preserve" to the variable.
# Example:
# CONFFINGERPRINT=preserve
2020-08-14 08:01:35 +00:00
# When placed in the root of your internal storage (/sdcard), in /data
# or in /cache (or /data/cache if you're using an A/B device), the module will load these
2019-02-02 12:37:20 +00:00
# values during boot and the configuration file will be deleted. Keep a backup of the
# file if you want to reuse it at a later time (clean ROM flash, etc).
# For more information, see the documentation:
# https://github.com/Magisk-Modules-Repo/MagiskHide-Props-Config/blob/master/README.md
# and the support thread @ XDA Developers:
# https://forum.xda-developers.com/apps/magisk/module-magiskhide-props-config-t3789228
# =================================================================
# =========================== Variables ===========================
# =================================================================
2018-04-15 22:05:33 +00:00
# CONFFINGERPRINT should be set to the fingerprint of a ROM that passes
# the ctsProfile check. See the prints.sh file for usable prints,
# or the documentation for information on how to find one.
2018-10-25 09:24:31 +00:00
# Note that Android builds after March 16 2018 often also need to match the Android
2019-02-02 12:37:20 +00:00
# security patch date. Add the date to the end of the fingerprint, preceeded by
# two underscores (example: __2018-10-05), or use the CONFPROPS setting
# to set ro.build.version.security_patch to the matching date (example: 2018-10-05).
#
# Changing CONFVENDPRINT to 'true' will enable using the stock vendor
# fingerprint for Treble GSI ROMs (so only us this if you're on a Treble GSI ROM).
# NOTE! Keep in mind that there is no need to enter a fingerprint in
# CONFFINGERPRINT when enabling this option, or setting a security patch date.
2019-03-27 10:50:00 +00:00
#
# CONFPRINTBOOT is by default set to using the module default boot stage for setting props.
# If the setting is changed to "post" or "late", the props will be set during either
# post-fs-data or late_start service mode. This is useful if props don't seem to set
# propely or the module's boot script seems to be causing issues during boot.
2019-04-02 19:42:29 +00:00
#
2021-09-04 11:11:35 +00:00
# CONFPATCHBOOT is by default set to using late_start service boot stage for setting
2019-11-22 19:19:18 +00:00
# ro.build.version.security_patch. If the setting is changed to "default" or "post",
# the prop will be set during either the default or post-fs-data stage. The
2021-09-04 11:11:35 +00:00
# late_start service boot stage is used by default as to not cause issues for devices with
2019-04-02 19:42:29 +00:00
# Keymaster 4 (bootloops). If the prop doesn't seem to set properly, try changing the stage.
2019-02-02 12:37:20 +00:00
2020-08-14 08:01:35 +00:00
# CONFBASICATTEST is used to enable Forced BASIC attestation, which is done by changing the
# variable to 'true'. To set a custom value, change CONFBASICATTCUST to the value you want.
# Example:
# CONFBASICATTCUST="randommodelname"
2019-02-02 12:37:20 +00:00
# CONFDEVSIM and the following CONFBRAND, CONFNAME, CONFDEVICE, CONFRELEASE
2020-02-26 21:08:29 +00:00
# CONFID, CONFINCREMENTAL, CONFDESCRIPTION, CONFDISPLAY, CONFSDK, CONFMANUFACTURER and CONFMODEL
# are used to set a number of props to simulate a certain deviced based on the fingerprint used.
2019-02-02 12:37:20 +00:00
# CONFDESCRIPTION will automatically be applied if a fingerprint is set
# by the module, but the other props will only be set if CONFDEVSIM is
# set to true, and the default setting for all props are that they will be
# set by the module. If you want to change this, change "true" to "false"
# for the applicable variables.
2019-03-27 10:50:00 +00:00
#
2020-02-26 21:08:29 +00:00
# CONFPARTPROPS is used to enable or disable using partition specific version of the simulation props.
#
2019-03-27 10:50:00 +00:00
# CONFSIMBOOT is by default set to using the module default boot stage for setting props.
# If the setting is changed to "post" or "late", the props will be set during either
# post-fs-data or late_start service mode. This is useful if props don't seem to set
# propely or the module's boot script seems to be causing issues during boot.
2018-08-07 11:50:01 +00:00
2021-09-06 17:19:37 +00:00
# The MagiskHide prop variables, CONFDEBUGGABLE, CONFSECURE, CONFTYPE, CONFBOOTMODE, CONFMODE,
# CONFVENDORMODE, CONFHWC, CONFHWCOUNTRY, CONFSTATE, CONFVERIFIEDBOOTSTATE, CONFVENDORVERIFIEDBOOTSTATE,
# CONFLOCKED, CONFVERITYMODE, CONFBOOTWARRANTY_BIT, CONFBIT, CONFVENDORBOOTWARRANTY_BIT,
# CONFVENDORWARRANTY_BIT and CONFVENDORDEVICE_STATE can be either enabled or disabled (enabled by default).
# If set to true, these props will be changed known safe values if found to contain sensitive values.
# Helps with hiding root.
2018-08-07 11:50:01 +00:00
2018-04-15 22:05:33 +00:00
# CONFPROPS should contain any custom props and the value you want the module to set.
# Any props you've previously edited in build.prop, and more, can be set like this.
2018-04-25 22:17:32 +00:00
# Add them to the CONFPROPS variable according to the following example:
2018-04-15 22:05:33 +00:00
# CONFPROPS="
# ro.sf.lcd_density=320
# ro.config.media_vol_steps=30
# net.tethering.noprovisioning=true
# "
2018-07-19 19:47:43 +00:00
# Please observe that if the prop you're trying to set contains spaces, you'll
# need to replace those spaces with "_sp_" (without the quotation marks).
#
2018-09-04 07:55:57 +00:00
# If you want a specific prop to run in either post-fs-data or late_start service,
# use either CONFPROPSPOST or CONFPROPSLATE instead. Any props added to CONFPROPS
# will run in the boot stage currently set in the module options (see CONFLATE below).
#
2020-08-14 08:01:35 +00:00
# The CONFPROPSDELAY option is used to set a delay for when a specific custom prop is set. Will automacially
2020-08-15 10:56:24 +00:00
# set the prop during the late_start service boot stage. The syntax is as follows:
# Follow the same instructions a for the CONFPROPS variable above to set up the props with the desired values.
# Then append the time in seconds, preceeded by a semicolon. To make the delay wait for
# "Boot completed" also append the word boot, preceeded by two underscores. If the delay is
# supposed to execute instantly, don't add anything after the desired time. Example:
# CONFPROPSDELAY="
# ro.sf.lcd_density=320;10__boot
# ro.config.media_vol_steps=30;20
# "
# In the example above, the density prop will be set 10 seconds after "Boot completed", and the volume steps prop
# will be set 20 seconds after the script is executed in the late_start service boot stage.
2020-08-14 08:01:35 +00:00
#
2018-04-15 22:05:33 +00:00
# With PROPOPTION you can decide if the current custom prop list should
# be replaced, added to or preserved. Add the corresponding words "replace",
# "add", or "preserve". The default option is to replace the list.
2019-02-02 12:37:20 +00:00
# This option supersedes the preserve option described above, but only
2018-09-04 07:55:57 +00:00
# for the CONFPROPS variables.
2018-08-07 11:50:01 +00:00
2018-06-19 09:56:08 +00:00
# CONFDELPROPS is a list of props you want to remove from your system.
# Be very careful when using this option, removing the wrong props might
# cause issues.
# Add the props you want to remove to the CONFDELPROPS variable according to
# the following example:
# CONFDELPROPS="
# ro.sf.lcd_density
# ro.config.media_vol_steps
# net.tethering.noprovisioning
# "
2018-07-19 19:47:43 +00:00
#
2018-06-19 09:56:08 +00:00
# With DELPROPOPTION you can decide if the current custom prop list should
# be replaced, added to or preserved. Add the corresponding words "replace",
# "add", or "preserve". The default option is to replace the list.
2019-02-02 12:37:20 +00:00
# This option supersedes the preserve option described above, but only
2018-06-19 09:56:08 +00:00
# for the CONFDELPROPS variable.
2018-08-07 11:50:01 +00:00
2021-09-05 07:27:36 +00:00
# The soft rebooot options can be set to true if you need a soft reboot at the
# end of the boot process when props are set during the late_start service boot stage.
# CONFOPTIONSOFTBOOT, CONFPRINTSOFTBOOT, CONFPATCHSOFTBOOT, CONFSIMSOFTBOOT,
# CONFCUSTOMSOFTBOOT and CONFPROPSOFTBOOT can be set to "true" or "false".
2019-03-27 10:50:00 +00:00
# CONFBOOT is by default set to using the module system.prop file for most props.
# If the setting is changed to "post" or "late", the props will be set during either
# post-fs-data or late_start service mode. This is useful if props don't seem to set
# propely or the module's boot script seems to be causing issues during boot.
2018-05-29 07:29:19 +00:00
#
2020-09-12 18:30:24 +00:00
# CONFCOLOUR, CONFWEBP, CONFWEBP, CONFUPDATE and CONFBACK are the options for scrit colours,
# automatic fingerprints list update, moduel update check, automatic update of the set fingerprint and
2019-11-22 19:19:18 +00:00
# background execution of the post-fs-data.sh boot script.
# See the module documentation for more details. Set to "true" or "false".