feat: security features
Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
This commit is contained in:
@@ -299,6 +299,10 @@
|
||||
"name": "Change Language",
|
||||
"description": "Change the language of SnapEnhance"
|
||||
},
|
||||
"security_features": {
|
||||
"name": "Security Features",
|
||||
"description": "Access security features"
|
||||
},
|
||||
"file_imports": {
|
||||
"name": "File Imports",
|
||||
"description": "Import files for use in Snapchat"
|
||||
|
||||
@@ -32,8 +32,8 @@ enum class InternalFileHandleType(
|
||||
CONFIG("config", "config.json"),
|
||||
MAPPINGS("mappings", "mappings.json"),
|
||||
MESSAGE_LOGGER("message_logger", "message_logger.db", isDatabase = true),
|
||||
PINNED_BEST_FRIEND("pinned_best_friend", "pinned_best_friend.txt");
|
||||
|
||||
PINNED_BEST_FRIEND("pinned_best_friend", "pinned_best_friend.txt"),
|
||||
SIF("sif", "libsif.so");
|
||||
|
||||
fun resolve(context: Context): File = if (isDatabase) {
|
||||
context.getDatabasePath(fileName)
|
||||
|
||||
@@ -31,7 +31,7 @@ class Experimental : ConfigContainer() {
|
||||
val composerLogs = boolean("composer_logs")
|
||||
}
|
||||
|
||||
class NativeHooks : ConfigContainer(hasGlobalState = true) {
|
||||
class NativeHooks : ConfigContainer() {
|
||||
val composerHooks = container("composer_hooks", ComposerHooksConfig()) { requireRestart() }
|
||||
val disableBitmoji = boolean("disable_bitmoji")
|
||||
val customEmojiFont = string("custom_emoji_font") {
|
||||
@@ -40,7 +40,6 @@ class Experimental : ConfigContainer() {
|
||||
addFlags(ConfigFlag.USER_IMPORT)
|
||||
filenameFilter = { it.endsWith(".ttf") }
|
||||
}
|
||||
val remapExecutable = boolean("remap_executable") { requireRestart(); addNotices(FeatureNotice.INTERNAL_BEHAVIOR, FeatureNotice.UNSTABLE) }
|
||||
}
|
||||
|
||||
class E2EEConfig : ConfigContainer(hasGlobalState = true) {
|
||||
|
||||
Reference in New Issue
Block a user