93 lines
2.8 KiB
XML
93 lines
2.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Settings applied by ConfigProvisioner after installing this APK.
|
|
ConfigProvisioner has WRITE_SECURE_SETTINGS and applies these as system.
|
|
|
|
Tags: <secure> → Settings.Secure
|
|
<system> → Settings.System
|
|
<global> → Settings.Global
|
|
|
|
Conditional blocks:
|
|
<if [conditions...]>
|
|
... settings applied only when ALL conditions match ...
|
|
</if>
|
|
|
|
Condition attributes on <if> (all optional, AND logic):
|
|
manufacturer="motorola" exact match, case-insensitive (Build.MANUFACTURER)
|
|
brand="motorola" exact match, case-insensitive (Build.BRAND)
|
|
model="razr" substring match, case-insensitive (Build.MODEL)
|
|
sdk="35" exact Android API level
|
|
sdk_min="31" minimum API level (inclusive)
|
|
sdk_max="34" maximum API level (inclusive)
|
|
form_factor="tablet" tablet | phone | flip | tv
|
|
feature="android.hardware.camera.flash" any PackageManager feature string
|
|
|
|
Nesting <if> inside <if> = AND (both must be true).
|
|
Put separate <if> blocks at the same level for OR-like behaviour.
|
|
-->
|
|
<settings>
|
|
|
|
<!-- Always applied -->
|
|
<!-- <secure name="launcher3.layout.provider" value="app.pawlet.config.layout" /> -->
|
|
<!-- <secure name="default_input_method" value="dev.patrickgold.florisboard/.ime.FlorisImeService" /> -->
|
|
<!-- <system name="screen_brightness" value="128" /> -->
|
|
<!-- <global name="stay_on_while_plugged_in" value="3" /> -->
|
|
|
|
<!-- Android 12 and below only -->
|
|
<!--
|
|
<if sdk_max="32">
|
|
<system name="some_legacy_key" value="1" />
|
|
</if>
|
|
-->
|
|
|
|
<!-- Android 13+ -->
|
|
<!--
|
|
<if sdk_min="33">
|
|
<secure name="some_new_key" value="1" />
|
|
</if>
|
|
-->
|
|
|
|
<!-- Motorola devices -->
|
|
<!--
|
|
<if manufacturer="motorola">
|
|
<system name="some_moto_setting" value="1" />
|
|
</if>
|
|
-->
|
|
|
|
<!-- Motorola flip/foldable devices (Razr etc.) -->
|
|
<!--
|
|
<if manufacturer="motorola" form_factor="flip">
|
|
<system name="some_flip_setting" value="1" />
|
|
</if>
|
|
-->
|
|
|
|
<!-- Tablets only -->
|
|
<!--
|
|
<if form_factor="tablet">
|
|
<system name="screen_brightness" value="200" />
|
|
</if>
|
|
-->
|
|
|
|
<!-- Phones only -->
|
|
<!--
|
|
<if form_factor="phone">
|
|
<system name="screen_brightness" value="128" />
|
|
</if>
|
|
-->
|
|
|
|
<!-- Devices with a front-facing camera -->
|
|
<!--
|
|
<if feature="android.hardware.camera.front">
|
|
<secure name="some_camera_setting" value="1" />
|
|
</if>
|
|
-->
|
|
|
|
<!-- Raspberry Pi 5 (by model substring) -->
|
|
<!--
|
|
<if model="Raspberry Pi 5">
|
|
<system name="some_rpi5_setting" value="1" />
|
|
</if>
|
|
-->
|
|
|
|
</settings>
|