This repository has been archived by the owner on Oct 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Variables
Zackptg5 edited this page Jan 12, 2019
·
12 revisions
- INSTALLER - Working directory of installer (source directory/origin of files to be installed)
- UNITY - Location to mod directory - equal to the magisk img directory if magisk, equal to nothing otherwise (destination directory). Note that almost every destination file/folder should be preceded by this variable (Ex: $UNITY$SYS/lib/file.so)
- BOOTMODE - Equal to
true
if in magisk manager,false
otherwise - ROOT - Location of root of file system such as with pixels using supersu (where instead of being nothing, is
/system_root
) - SYS - Location of destination system folder - this is always equal to
/system
in the installer so it's real use is for boot and terminal scripts - VEN - Location of destination vendor folder
- MODID - 'id' from module.prop - the unique identifier for your mod
- MODPATH - if magisk install - path to magisk mod directory. If system install - path to boot script directory. Useful for boot scripts
- LIBDIR - If DYNAMICOREO=true: Equal to /vendor if rom is oreo+, /system otherwise
- LIBPATCH - Same as libdir but formatted for sed with standard '/' delimiter
- MAGISK - Set to 'true' if magisk is detected, 'false' otherwise - Useful if you want parts to only run with/without magisk installs
- API - Taken from build.prop. Equal to the API version of the rom installed
- ABILONG - Taken from build.prop. Equal to the ABI version of the device
- ABI - Taken from build.prop. Equal to the ABI number (first 3 characters of ABILONG) of the device (equals either
arm
orx86
) - ABI2 - Taken from build.prop. Equal to the ABI2 number of the device (first 3 characters)
- ARCH - Equal to the cpu type of the device - equal to
arm
,arm64
,x86
, orx86_64
- ARCH32 - Equal to the simplified cpu type of the device - equal to 'arm' or 'x86'
- IS64BIT - Set to 'true' if 64 bit capable device is detected, set to 'false' otherwise
- ORIGDIR - The original directory for device files (original files unaffected by magisk mounting). Equals
MAGISKTMP/mirror
if in BOOTMODE, nothing otherwise (MAGISKTMP=/sbin/.magisk
for magisk 18+ and/sbin/.core
for older versions). This is useful if you're copying files from the device to your mod for modification. - ORIGVEN - Equal to the original vendor directory. This is more complex than you'd think with magisk or else I wouldn't have it here