Skip to content

Commit

Permalink
vendor: Drop SimpleDeviceConfig
Browse files Browse the repository at this point in the history
Signed-off-by: Anushek Prasal <anushekprasal@gmail.com>
  • Loading branch information
jhenrique09 authored and SKULSHADY committed Aug 26, 2023
1 parent c7061f1 commit f56305e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 64 deletions.
4 changes: 0 additions & 4 deletions config/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
vendor/lineage/prebuilt/common/etc/init/init.havoc-updater.rc:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/init/init.havoc-updater.rc

# Config
PRODUCT_PACKAGES += \
SimpleDeviceConfig

# Extra tools in Lineage
PRODUCT_PACKAGES += \
bash \
Expand Down
40 changes: 37 additions & 3 deletions overlay/common/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@
<item>org.briarproject.briar.android</item>
</string-array>

<!-- Flag indicating which package name can access DeviceConfig table -->
<string name="config_deviceConfiguratorPackageName" translatable="false">org.protonaosp.deviceconfig</string>

<!-- Control the behavior when the user long presses the power button.
0 - Nothing
1 - Global actions menu
Expand Down Expand Up @@ -214,4 +211,41 @@
<item>org.lineageos.jelly</item>
<item>org.lineageos.recorder</item>
</string-array>

<!-- Define device configs on boot -->
<string-array name="global_device_configs_override">

<!-- Machine learning back gesture (requires TensorFlow model) -->
<item>systemui/use_back_gesture_ml_model=true</item>
<item>systemui/back_gesture_ml_model_name=backgesture</item>
<item>systemui/back_gesture_ml_model_threshold=0.8</item>

<!-- Don't pin camera app to save memory -->
<item>runtime_native_boot/pin_camera=false</item>

<!-- Keep up to 7 days of permission usage history -->
<item>privacy/discrete_history_cutoff_millis=604800000</item>
<item>privacy/privacy_dashboard_7_day_toggle=true</item>

<!-- Enable protected by android banner -->
<item>privacy/safety_protection_enabled=true</item>

<!-- Globally enable the new photo picker -->
<item>storage_native_boot/take_over_get_content=true</item>

<!-- Pixel Launcher -->
<item>launcher/ENABLE_SMARTSPACE_ENHANCED=true</item>

<!-- System Ui -->
<item>systemui/clipboard_overlay_show_actions=true</item>
<item>systemui/quick_access_wallet_enabled=true</item>
<item>systemui/enable_screenshot_corner_flow=true</item>
<item>systemui/enable_screenshot_notification_smart_actions=true</item>
<item>systemui/enable_screenshot_scrolling=true</item>
<item>systemui/volume_separate_notification=true</item>

<!-- Notifications -->
<item>notification_assistant/generate_actions=true</item>
<item>notification_assistant/generate_replies=true</item>
</string-array>
</resources>

This file was deleted.

0 comments on commit f56305e

Please sign in to comment.