mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-24 23:19:31 -05:00
DNM: WIP: Migrate to a proper vendor overlay for most changes
This commit is contained in:
parent
db0bcf60f3
commit
79972d393c
27
Patches/Common/android_vendor_divested/divested.mk
Normal file
27
Patches/Common/android_vendor_divested/divested.mk
Normal file
@ -0,0 +1,27 @@
|
||||
PRODUCT_BRAND ?= DivestOS
|
||||
PRODUCT_VERSION_MAJOR = 1
|
||||
PRODUCT_VERSION_MINOR = 0
|
||||
PRODUCT_VERSION_MAINTENANCE := 0
|
||||
|
||||
DEVICE_PACKAGE_OVERLAYS += vendor/divested/overlay/common
|
||||
|
||||
PRODUCT_PACKAGES += ModuleBlocker
|
||||
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
keyguard.no_require_sim=true \
|
||||
ro.config.notification_sound=Pong.ogg \
|
||||
ro.config.alarm_alert=Alarm_Buzzer.ogg \
|
||||
ro.build.selinux=1 \
|
||||
ro.storage_manager.enabled=true \
|
||||
ro.cmlegal.url=https://divestos.xyz/index.php?page=about
|
||||
|
||||
PRODUCT_BUILD_PROP_OVERRIDES += \
|
||||
BUILD_UTC_DATE=0
|
||||
|
||||
ifneq ($(TARGET_BUILD_VARIANT),eng)
|
||||
ADDITIONAL_DEFAULT_PROPERTIES += \
|
||||
ro.adb.secure=1
|
||||
endif
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/divested/extras/etc/dns66.json:system/etc/dns66/settings.json
|
@ -1,4 +1,4 @@
|
||||
FD_PREBUILTS_PATH := vendor/cm/firmware_deblobber
|
||||
FD_PREBUILTS_PATH := vendor/divested/firmware_deblobber
|
||||
|
||||
FD_INSTALL_OUT := $(PRODUCT_OUT)/firmware_deblobber/
|
||||
FD_INSTALL_TARGET := $(PRODUCT_OUT)/firmware_deblobber-$(TARGET_ARCH).zip
|
27
Patches/Common/android_vendor_divested/module_blocker.mk
Normal file
27
Patches/Common/android_vendor_divested/module_blocker.mk
Normal file
@ -0,0 +1,27 @@
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := ModuleBlocker
|
||||
|
||||
LOCAL_OVERRIDES_PACKAGES := \
|
||||
bootanimation.zip \
|
||||
PhotoTable \
|
||||
Terminal \
|
||||
LockClock \
|
||||
WeatherProvider \
|
||||
bash \
|
||||
curl \
|
||||
htop \
|
||||
powertop \
|
||||
strace \
|
||||
vim \
|
||||
wget \
|
||||
scp \
|
||||
sftp \
|
||||
ssh \
|
||||
sshd \
|
||||
sshd_config \
|
||||
ssh-keygen \
|
||||
start-ssh \
|
||||
rsync
|
||||
|
||||
include $(BUILD_PREBUILT)
|
@ -0,0 +1,257 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- Support in Surfaceflinger for blur layers.
|
||||
NOTE: This requires additional hardware-specific code. -->
|
||||
<bool name="config_uiBlurEnabled">false</bool>
|
||||
|
||||
<!-- Specifies whether the permissions needed by a legacy app should be
|
||||
reviewed before any of its components can run. A legacy app is one
|
||||
with targetSdkVersion < 23, i.e apps using the old permission model.
|
||||
If review is not required, permissions are reviewed before the app
|
||||
is installed. -->
|
||||
<bool name="config_permissionReviewRequired">true</bool>
|
||||
|
||||
<!-- Package name for the device provisioning package. -->
|
||||
<string name="config_deviceProvisioningPackage"></string>
|
||||
|
||||
<!-- True if camera app should be pinned via Pinner Service -->
|
||||
<bool name="config_pinnerCameraApp">false</bool>
|
||||
|
||||
<!-- Enforce strong auth on boot. Setting this to false represents a security risk and should
|
||||
not be ordinarily done. The only case in which this might be permissible is in a car head
|
||||
unit where there are hardware mechanisms to protect the device (physical keys) and not
|
||||
much in the way of user data.
|
||||
-->
|
||||
<bool name="config_strongAuthRequiredOnBoot">true</bool>
|
||||
|
||||
<!-- If true, all guest users created on the device will be ephemeral. -->
|
||||
<bool name="config_guestUserEphemeral">false</bool>
|
||||
|
||||
<!-- Allow the gesture to double tap the power button twice to start the camera while the device
|
||||
is non-interactive. -->
|
||||
<bool name="config_cameraDoubleTapPowerGestureEnabled">true</bool>
|
||||
|
||||
<!-- This config is ued to determine whether animations are allowed in low power mode. -->
|
||||
<bool name="config_allowAnimationsInLowPowerMode">false</bool>
|
||||
|
||||
<!-- If true, the display will be shifted around in ambient mode. -->
|
||||
<bool name="config_enableBurnInProtection">false</bool>
|
||||
|
||||
<!-- Values for GPS configuration -->
|
||||
<string-array translatable="false" name="config_gpsParameters">
|
||||
<item>SUPL_HOST=supl.google.com</item>
|
||||
<item>SUPL_PORT=7275</item>
|
||||
<item>NTP_SERVER=north-america.pool.ntp.org</item>
|
||||
<item>SUPL_VER=0x20000</item>
|
||||
<item>SUPL_MODE=1</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Flag indicating whether the IMS service can be turned off. If false then
|
||||
the service will not be turned-off completely (the ImsManager.turnOffIms() will
|
||||
be disabled) but individual Features can be disabled using ImsConfig.setFeatureValue() -->
|
||||
<bool name="imsServiceAllowTurnOff">true</bool>
|
||||
|
||||
<!-- Package name for default network scorer app; overridden by product overlays. -->
|
||||
<string name="config_defaultNetworkScorerPackageName"></string>
|
||||
|
||||
<!-- The package name of the default network recommendation app.
|
||||
A network recommendation provider must:
|
||||
* Be granted the SCORE_NETWORKS permission.
|
||||
* Be granted the ACCESS_COARSE_LOCATION permission.
|
||||
* Include a Service for the android.net.scoring.RECOMMEND_NETWORKS action
|
||||
protected by the BIND_NETWORK_RECOMMENDATION_SERVICE permission.
|
||||
|
||||
This must be set to a valid network recommendation app or empty.
|
||||
-->
|
||||
<string name="config_defaultNetworkRecommendationProviderPackage" translatable="false"></string>
|
||||
|
||||
<!-- If true, then we do not ask user for permission for apps to connect to USB devices.
|
||||
Do not set this to true for production devices. Doing so will cause you to fail CTS. -->
|
||||
<bool name="config_disableUsbPermissionDialogs">false</bool>
|
||||
|
||||
<!-- Whether UI for multi user should be shown -->
|
||||
<bool name="config_enableMultiUserUI">true</bool>
|
||||
|
||||
<!-- Maximum number of supported users -->
|
||||
<integer name="config_multiuserMaximumUsers">6</integer>
|
||||
|
||||
<!-- Remote server that can provide NTP responses. -->
|
||||
<string translatable="false" name="config_ntpServer">time.android.com</string>
|
||||
|
||||
<!-- MMS user agent string -->
|
||||
<string name="config_mms_user_agent" translatable="false">Android-Mms/2.0</string>
|
||||
|
||||
<!-- MMS user agent prolfile url -->
|
||||
<string name="config_mms_user_agent_profile_url" translatable="false"></string>
|
||||
|
||||
<!-- The URL that should be sent in an x-wap-profile header with an HTTP request,
|
||||
as defined in the Open Mobile Alliance User Agent Profile specification
|
||||
OMA-TS-UAProf-V2_0-20060206-A Section 8.1.1.1. If the URL contains a '%s'
|
||||
format string then that substring will be replaced with the value of
|
||||
Build.MODEL. The format string shall not be escaped. -->
|
||||
<string name="config_useragentprofile_url" translatable="false"></string>
|
||||
|
||||
<!-- The default journal mode to use use when Write-Ahead Logging is not active.
|
||||
Choices are: OFF, DELETE, TRUNCATE, PERSIST and MEMORY.
|
||||
PERSIST may improve performance by reducing how often journal blocks are
|
||||
reallocated (compared to truncation) resulting in better data block locality
|
||||
and less churn of the storage media.
|
||||
|
||||
The PERSIST mode results in data persisting in the journal beyond the life of
|
||||
a transaction, so it interacts poorly with SECURE_DELETE. -->
|
||||
<string name="db_default_journal_mode" translatable="false">TRUNCATE</string>
|
||||
|
||||
<!-- Default web browser. This is the package name of the application that will
|
||||
be the default browser when the device first boots. Afterwards the user
|
||||
can select whatever browser app they wish to use as the default.
|
||||
|
||||
If this string is empty or the specified package does not exist, then
|
||||
the behavior will be as though no app was named as an explicit default. -->
|
||||
<string name="default_browser" translatable="false"></string>
|
||||
|
||||
<!-- Default SMS Application. This will be the default SMS application when
|
||||
the phone first boots. The user can then change the default app to one
|
||||
of their choosing.
|
||||
This can be overridden for devices where a different default SMS
|
||||
application is desired.
|
||||
|
||||
If this string is empty or the specified package does not exist, then
|
||||
the platform will search for an SMS app and use that (if there is one)-->
|
||||
<string name="default_sms_application" translatable="false">org.smssecure.smssecure</string>
|
||||
|
||||
<!-- Component name of the combo network location provider. -->
|
||||
<string name="config_comboNetworkLocationProvider" translatable="false">@null</string>
|
||||
|
||||
<!-- Package name(s) containing location provider support.
|
||||
These packages can contain services implementing location providers,
|
||||
such as the Geocode Provider, Network Location Provider, and
|
||||
Fused Location Provider. They will each be searched for
|
||||
service components implementing these providers.
|
||||
It is strongly recommended that the packages explicitly named
|
||||
below are on the system image, so that they will not map to
|
||||
a 3rd party application.
|
||||
The location framework also has support for installation
|
||||
of new location providers at run-time. The new package does not
|
||||
have to be explicitly listed here, however it must have a signature
|
||||
that matches the signature of at least one package on this list.
|
||||
-->
|
||||
<string-array name="config_locationProviderPackageNames" translatable="false">
|
||||
<!-- The standard AOSP fused location provider -->
|
||||
<item>com.android.location.fused</item>
|
||||
<item>org.microg.nlp</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Package name providing Hardware Activity-Recognition API support. Used only when
|
||||
config_enableActivityRecognitionHardwareOverlay is false. -->
|
||||
<string name="config_activityRecognitionHardwarePackageName" translatable="false">@null</string>
|
||||
|
||||
<!-- Package name providing geofence API support. Used only when
|
||||
config_enableGeofenceOverlay is false. -->
|
||||
<string name="config_geofenceProviderPackageName" translatable="false">@null</string>
|
||||
|
||||
<!-- Package name providing geocoder API support. Used only when
|
||||
config_enableGeocoderOverlay is false. -->
|
||||
<string name="config_geocoderProviderPackageName" translatable="false">@null</string>
|
||||
|
||||
<!-- Package name providing Hardware Flp. Used only when
|
||||
config_enableHardwareFlpOverlay is false. -->
|
||||
<string name="config_hardwareFlpPackageName" translatable="false">com.android.location.fused</string>
|
||||
|
||||
<!-- Whether to enable network location overlay which allows network
|
||||
location provider to be replaced by an app at run-time. When disabled,
|
||||
only the config_networkLocationProviderPackageName package will be
|
||||
searched for network location provider, otherwise packages whose
|
||||
signature matches the signatures of config_locationProviderPackageNames
|
||||
will be searched, and the service with the highest version number will
|
||||
be picked. Anyone who wants to disable the overlay mechanism can set it
|
||||
to false.
|
||||
-->
|
||||
<bool name="config_enableNetworkLocationOverlay" translatable="false">true</bool>
|
||||
|
||||
<!-- Package name providing network location support. Used only when
|
||||
config_enableNetworkLocationOverlay is false. -->
|
||||
<string name="config_networkLocationProviderPackageName" translatable="false">@null</string>
|
||||
|
||||
<!-- Whether to enable fused location provider overlay which allows fused
|
||||
location provider to be replaced by an app at run-time. When disabled,
|
||||
only the config_fusedLocationProviderPackageName package will be
|
||||
searched for fused location provider, otherwise packages whose
|
||||
signature matches the signatures of config_locationProviderPackageNames
|
||||
will be searched, and the service with the highest version number will
|
||||
be picked. Anyone who wants to disable the overlay mechanism can set it
|
||||
to false.
|
||||
-->
|
||||
<bool name="config_enableFusedLocationOverlay" translatable="false">true</bool>
|
||||
|
||||
<!-- Package name providing fused location support. Used only when
|
||||
config_enableFusedLocationOverlay is false. -->
|
||||
<string name="config_fusedLocationProviderPackageName" translatable="false">com.android.location.fused</string>
|
||||
|
||||
<!-- Light sensor event rate in milliseconds for automatic brightness control. -->
|
||||
<integer name="config_autoBrightnessLightSensorRate">250</integer>
|
||||
|
||||
<!-- Enable puk unlockscreen by default.
|
||||
If unlock screen is disabled, the puk should be unlocked through Emergency Dialer -->
|
||||
<bool name="config_enable_puk_unlock_screen">true</bool>
|
||||
|
||||
<!-- Enable lockscreen translucent decor by default -->
|
||||
<bool name="config_enableLockScreenTranslucentDecor">true</bool>
|
||||
|
||||
<!-- The duration (in milliseconds) that the radio will scan for a signal
|
||||
when there's no network connection. If the scan doesn't timeout, use zero -->
|
||||
<integer name="config_radioScanningTimeout">300000</integer>
|
||||
|
||||
<!-- Set this to true to enable the platform's auto-power-save modes like doze and
|
||||
app standby. These are not enabled by default because they require a standard
|
||||
cloud-to-device messaging service for apps to interact correctly with the modes
|
||||
(such as to be able to deliver an instant message to the device even when it is
|
||||
dozing). This should be enabled if you have such services and expect apps to
|
||||
correctly use them when installed on your device. Otherwise, keep this disabled
|
||||
so that applications can still use their own mechanisms. -->
|
||||
<bool name="config_enableAutoPowerModes">true</bool>
|
||||
|
||||
<!-- Device configuration indicating whether we should avoid using accelerated graphics
|
||||
in certain places to reduce RAM footprint. This is ignored if ro.config.low_ram
|
||||
is true (in that case this is assumed true as well). It can allow you to tune down
|
||||
your device's memory use without going to the point of causing applications to turn
|
||||
off features. -->
|
||||
<bool name="config_avoidGfxAccel">false</bool>
|
||||
|
||||
<!-- Enables or disables fading edges when marquee is enabled in TextView.
|
||||
Off by default, since the framebuffer readback used to implement the
|
||||
fading edges is prohibitively expensive on most GPUs. -->
|
||||
<bool name="config_ui_enableFadingMarquee">false</bool>
|
||||
|
||||
<!-- Flag indicating whether the surface flinger is inefficient
|
||||
at performing a blur. Used by parts of the UI to turn off
|
||||
the blur effect where it isn't worth the performance hit.
|
||||
As of Honeycomb, blurring is not supported anymore. -->
|
||||
<bool name="config_sf_slowBlur">true</bool>
|
||||
|
||||
<!-- Flag indicating whether the surface flinger has limited
|
||||
alpha compositing functionality in hardware. If set, the window
|
||||
manager will disable alpha trasformation in animations where not
|
||||
strictly needed. -->
|
||||
<bool name="config_sf_limitedAlpha">false</bool>
|
||||
|
||||
<!-- Flag indicating that the media framework should support playing of sounds on volume
|
||||
key usage. This adds noticeable additional overhead to volume key processing, so
|
||||
is disableable for products for which it is irrelevant. -->
|
||||
<bool name="config_useVolumeKeySounds">false</bool>
|
||||
|
||||
<!-- Integer indicating wpa_supplicant scan interval in milliseconds -->
|
||||
<integer translatable="false" name="config_wifi_supplicant_scan_interval">30000</integer>
|
||||
|
||||
<!-- Boolean indicating whether the HWC setColorTransform function can be performed efficiently
|
||||
in hardware. -->
|
||||
<bool name="config_setColorTransformAccelerated">false</bool>
|
||||
|
||||
<!-- Enables the TimeZoneRuleManager service. This is the master switch for the updateable time
|
||||
zone update mechanism. -->
|
||||
<bool name="config_enableUpdateableTimeZoneRules">false</bool>
|
||||
|
||||
<!-- Boolean indicating whether or not wifi firmware debugging is enabled -->
|
||||
<bool translatable="false" name="config_wifi_enable_wifi_firmware_debugging">false</bool>
|
||||
|
||||
</resources>
|
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2015 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<!-- Flags setup as productivity oriented in which case Downloads app will be presented
|
||||
as Files app. Including showing of the Documents and "advanced" roots. -->
|
||||
<bool name="productivity_device">true</bool>
|
||||
|
||||
</resources>
|
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- Default for Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS -->
|
||||
<bool name="def_lock_screen_allow_private_notifications">false</bool>
|
||||
|
||||
<integer name="def_lockscreen_sounds_enabled">0</integer>
|
||||
|
||||
<bool name="def_networks_available_notification_on">false</bool>
|
||||
|
||||
<!-- Default for DTMF tones enabled -->
|
||||
<bool name="def_dtmf_tones_enabled">false</bool>
|
||||
|
||||
<!-- Default for UI touch sounds enabled -->
|
||||
<bool name="def_sound_effects_enabled">false</bool>
|
||||
|
||||
<fraction name="def_window_animation_scale">50%</fraction>
|
||||
<fraction name="def_window_transition_scale">50%</fraction>
|
||||
</resources>
|
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- The default tiles to display in QuickSettings -->
|
||||
<string name="quick_settings_tiles_default" translatable="false">
|
||||
wifi,cell,bt,dnd,flashlight,rotation,battery,profiles,sync,location,airplane,caffeine,saver,hotspot,nfc
|
||||
</string>
|
||||
|
||||
<!-- Whether recents should use hardware layers for its taskviews. This flag can be enabled
|
||||
for devices where the java drawing of round rects may be slow -->
|
||||
<bool name="config_recents_use_hardware_layers">true</bool>
|
||||
|
||||
<!-- Whether to use cheap, less good looking shadows for recents -->
|
||||
<bool name="config_recents_fake_shadows">false</bool>
|
||||
|
||||
<!-- Whether to clip notification contents with a rounded rectangle. Might be expensive on
|
||||
certain GPU's and thus can be turned off with only minimal visual impact. -->
|
||||
<bool name="config_notifications_round_rect_clipping">false</bool>
|
||||
|
||||
<!-- Whether to show a warning notification when the device reaches a certain temperature. -->
|
||||
<integer name="config_showTemperatureWarning">1</integer>
|
||||
|
||||
</resources>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- Default value for proximity check on screen wake
|
||||
NOTE ! - Enable for devices that have a fast response proximity sensor (ideally < 300ms)-->
|
||||
<bool name="config_proximityCheckOnWake">true</bool>
|
||||
|
||||
</resources>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Default value of LineageSettings.System.ENABLE_FORWARD_LOOKUP -->
|
||||
<integer name="def_forward_lookup">0</integer>
|
||||
|
||||
<!-- Default value of LineageSettings.System.ENABLE_PEOPLE_LOOKUP -->
|
||||
<integer name="def_people_lookup">0</integer>
|
||||
|
||||
<!-- Default value of LineageSettings.System.ENABLE_REVERSE_LOOKUP -->
|
||||
<integer name="def_reverse_lookup">0</integer>
|
||||
<resources>
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<bool name="preferences_interface_homescreen_search_default">false</bool>
|
||||
<bool name="preferences_interface_drawer_compact_default">true</bool>
|
||||
<bool name="preferences_interface_drawer_dark_default">true</bool>
|
||||
<bool name="preferences_interface_use_scroller_default">false</bool>
|
||||
<bool name="preferences_interface_drawer_search_default">false</bool>
|
||||
|
||||
</resources>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!-- -1 means periocical wipe of the personalization dict is disabled. -->
|
||||
<integer name="config_personalization_dict_wipe_interval_in_days">5</integer>
|
||||
|
||||
</resources>
|
364
Patches/Common/android_vendor_divested/overlay/common/vendor/cm/res/res/xml/profile_default.xml
vendored
Normal file
364
Patches/Common/android_vendor_divested/overlay/common/vendor/cm/res/res/xml/profile_default.xml
vendored
Normal file
@ -0,0 +1,364 @@
|
||||
<?xml version="1.0"?>
|
||||
<profiles>
|
||||
<active>1affb8e9-9f00-4a85-8126-5858d6817069</active>
|
||||
<profile name="Out" uuid="88acad21-d6f7-47c7-bbb6-ccf93ab9a501">
|
||||
<uuids/>
|
||||
<profiletype>toggle</profiletype>
|
||||
<statusbar>no</statusbar>
|
||||
<screen-lock-mode>0</screen-lock-mode>
|
||||
<expanded-desktop-mode>0</expanded-desktop-mode>
|
||||
<doze-mode>2</doze-mode>
|
||||
<notification-light-mode>1</notification-light-mode>
|
||||
<airplaneModeDescriptor>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</airplaneModeDescriptor>
|
||||
<brightnessDescriptor>
|
||||
<value>154</value>
|
||||
<override>true</override>
|
||||
</brightnessDescriptor>
|
||||
<ringModeDescriptor>
|
||||
<value>normal</value>
|
||||
<override>true</override>
|
||||
</ringModeDescriptor>
|
||||
<profileGroup uuid="a126d48a-aaef-47c4-baed-7f0e44aeffe5" default="true">
|
||||
<sound>content://settings/system/notification_sound</sound>
|
||||
<ringer>content://settings/system/ringtone</ringer>
|
||||
<soundMode>DEFAULT</soundMode>
|
||||
<ringerMode>DEFAULT</ringerMode>
|
||||
<vibrateMode>DEFAULT</vibrateMode>
|
||||
<lightsMode>DEFAULT</lightsMode>
|
||||
</profileGroup>
|
||||
<streamDescriptor>
|
||||
<streamId>4</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>5</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>2</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>3</streamId>
|
||||
<value>4</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>8</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>4</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>0</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>1</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>7</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>5</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>2</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>9</connectionId>
|
||||
<value>9</value>
|
||||
<override>true</override>
|
||||
<subId>1</subId>
|
||||
</connectionDescriptor>
|
||||
</profile>
|
||||
<profile name="Home" uuid="12935e06-b233-4093-b94c-06eb5fa73ed8">
|
||||
<uuids/>
|
||||
<profiletype>toggle</profiletype>
|
||||
<statusbar>no</statusbar>
|
||||
<screen-lock-mode>0</screen-lock-mode>
|
||||
<expanded-desktop-mode>0</expanded-desktop-mode>
|
||||
<doze-mode>2</doze-mode>
|
||||
<notification-light-mode>1</notification-light-mode>
|
||||
<airplaneModeDescriptor>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</airplaneModeDescriptor>
|
||||
<brightnessDescriptor>
|
||||
<value>103</value>
|
||||
<override>true</override>
|
||||
</brightnessDescriptor>
|
||||
<ringModeDescriptor>
|
||||
<value>normal</value>
|
||||
<override>true</override>
|
||||
</ringModeDescriptor>
|
||||
<profileGroup uuid="a126d48a-aaef-47c4-baed-7f0e44aeffe5" default="true">
|
||||
<sound>content://settings/system/notification_sound</sound>
|
||||
<ringer>content://settings/system/ringtone</ringer>
|
||||
<soundMode>DEFAULT</soundMode>
|
||||
<ringerMode>DEFAULT</ringerMode>
|
||||
<vibrateMode>DEFAULT</vibrateMode>
|
||||
<lightsMode>DEFAULT</lightsMode>
|
||||
</profileGroup>
|
||||
<streamDescriptor>
|
||||
<streamId>4</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>5</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>2</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>3</streamId>
|
||||
<value>4</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>8</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>4</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>0</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>1</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>7</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>5</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>2</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>9</connectionId>
|
||||
<value>9</value>
|
||||
<override>true</override>
|
||||
<subId>1</subId>
|
||||
</connectionDescriptor>
|
||||
</profile>
|
||||
<profile name="Bed" uuid="ac1e7dbc-b785-431d-ba6c-b0bb221e8772">
|
||||
<uuids/>
|
||||
<profiletype>toggle</profiletype>
|
||||
<statusbar>no</statusbar>
|
||||
<screen-lock-mode>0</screen-lock-mode>
|
||||
<expanded-desktop-mode>0</expanded-desktop-mode>
|
||||
<doze-mode>2</doze-mode>
|
||||
<notification-light-mode>2</notification-light-mode>
|
||||
<airplaneModeDescriptor>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</airplaneModeDescriptor>
|
||||
<brightnessDescriptor>
|
||||
<value>51</value>
|
||||
<override>true</override>
|
||||
</brightnessDescriptor>
|
||||
<ringModeDescriptor>
|
||||
<value>normal</value>
|
||||
<override>true</override>
|
||||
</ringModeDescriptor>
|
||||
<profileGroup uuid="a126d48a-aaef-47c4-baed-7f0e44aeffe5" default="true">
|
||||
<sound>content://settings/system/notification_sound</sound>
|
||||
<ringer>content://settings/system/ringtone</ringer>
|
||||
<soundMode>DEFAULT</soundMode>
|
||||
<ringerMode>DEFAULT</ringerMode>
|
||||
<vibrateMode>DEFAULT</vibrateMode>
|
||||
<lightsMode>DEFAULT</lightsMode>
|
||||
</profileGroup>
|
||||
<streamDescriptor>
|
||||
<streamId>4</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>5</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>3</streamId>
|
||||
<value>4</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>2</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>8</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>4</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>1</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>0</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>7</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>5</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>2</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>9</connectionId>
|
||||
<value>9</value>
|
||||
<override>true</override>
|
||||
<subId>1</subId>
|
||||
</connectionDescriptor>
|
||||
</profile>
|
||||
<profile name="Mixed" uuid="1affb8e9-9f00-4a85-8126-5858d6817069">
|
||||
<uuids/>
|
||||
<profiletype>toggle</profiletype>
|
||||
<statusbar>no</statusbar>
|
||||
<screen-lock-mode>0</screen-lock-mode>
|
||||
<expanded-desktop-mode>0</expanded-desktop-mode>
|
||||
<doze-mode>0</doze-mode>
|
||||
<notification-light-mode>0</notification-light-mode>
|
||||
<airplaneModeDescriptor>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</airplaneModeDescriptor>
|
||||
<brightnessDescriptor>
|
||||
<value>128</value>
|
||||
<override>true</override>
|
||||
</brightnessDescriptor>
|
||||
<ringModeDescriptor>
|
||||
<value>normal</value>
|
||||
<override>true</override>
|
||||
</ringModeDescriptor>
|
||||
<profileGroup uuid="a126d48a-aaef-47c4-baed-7f0e44aeffe5" default="true">
|
||||
<sound>content://settings/system/notification_sound</sound>
|
||||
<ringer>content://settings/system/ringtone</ringer>
|
||||
<soundMode>DEFAULT</soundMode>
|
||||
<ringerMode>DEFAULT</ringerMode>
|
||||
<vibrateMode>DEFAULT</vibrateMode>
|
||||
<lightsMode>DEFAULT</lightsMode>
|
||||
</profileGroup>
|
||||
<streamDescriptor>
|
||||
<streamId>4</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>5</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>3</streamId>
|
||||
<value>4</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<streamDescriptor>
|
||||
<streamId>2</streamId>
|
||||
<value>5</value>
|
||||
<override>true</override>
|
||||
</streamDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>8</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>4</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>1</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>0</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>7</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>5</connectionId>
|
||||
<value>1</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>2</connectionId>
|
||||
<value>0</value>
|
||||
<override>true</override>
|
||||
</connectionDescriptor>
|
||||
<connectionDescriptor>
|
||||
<connectionId>9</connectionId>
|
||||
<value>9</value>
|
||||
<override>true</override>
|
||||
<subId>1</subId>
|
||||
</connectionDescriptor>
|
||||
</profile>
|
||||
</profiles>
|
@ -1,20 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2013 The CyanogenMod Project
|
||||
<resources>
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
<!-- Default value for proximity check on screen wake
|
||||
NOTE ! - Enable for devices that have a fast response proximity sensor (ideally < 300ms)-->
|
||||
<bool name="config_proximityCheckOnWake">true</bool>
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
<!-- Whether to enable app suggest overlay which allows app suggest
|
||||
provider to be replaced by an app at run-time. When disabled, only
|
||||
the config_appSuggestProviderPackageName will be searched for app
|
||||
suggest provider, otherwise packages whos signature matches the
|
||||
signature of config_appSuggestProviderPackageNames will be searched,
|
||||
and the service with the highest version number will be picked.
|
||||
Anyone who wants to disable the overlay mechanism can set it to false.
|
||||
|
||||
Note: There appears to be an issue with false if we reinstall the provider which causes
|
||||
it to not get the update and fail to reconnect on package update. It's safer to just
|
||||
use the list version with config_appSuggestProviderPackageNames.
|
||||
-->
|
||||
<bool name="config_enableAppSuggestOverlay" translatable="false">false</bool>
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Automatic power profile management per app.
|
||||
Each item should list the fully-qualified activity
|
||||
name and the power profile id, separated by a comma. -->
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Default value of LineageSettings.System.ENABLE_FORWARD_LOOKUP -->
|
||||
<integer name="def_forward_lookup">0</integer>
|
||||
|
||||
<!-- Default value of LineageSettings.System.ENABLE_PEOPLE_LOOKUP -->
|
||||
<integer name="def_people_lookup">0</integer>
|
||||
|
||||
<!-- Default value of LineageSettings.System.ENABLE_REVERSE_LOOKUP -->
|
||||
<integer name="def_reverse_lookup">0</integer>
|
||||
<resources>
|
@ -1,16 +0,0 @@
|
||||
FD_PREBUILTS_PATH := vendor/lineage/firmware_deblobber
|
||||
|
||||
FD_INSTALL_OUT := $(PRODUCT_OUT)/firmware_deblobber/
|
||||
FD_INSTALL_TARGET := $(PRODUCT_OUT)/firmware_deblobber-$(TARGET_ARCH).zip
|
||||
|
||||
$(FD_INSTALL_TARGET): $(ALL_MODULES.updater.BUILT)
|
||||
$(hide) rm -rf $@ $(FD_INSTALL_OUT)
|
||||
$(hide) mkdir -p $(FD_INSTALL_OUT)/META-INF/com/google/android/
|
||||
$(hide) cp $(ALL_MODULES.updater.BUILT) $(FD_INSTALL_OUT)/META-INF/com/google/android/update-binary
|
||||
$(hide) cp $(FD_PREBUILTS_PATH)/firmware_deblobber.sh $(FD_INSTALL_OUT)/
|
||||
$(hide) cp $(FD_PREBUILTS_PATH)/updater-script $(FD_INSTALL_OUT)/META-INF/com/google/android/updater-script
|
||||
$(hide) (cd $(FD_INSTALL_OUT) && zip -qr $@ *)
|
||||
|
||||
.PHONY: firmware_deblobber
|
||||
firmware_deblobber: $(FD_INSTALL_TARGET)
|
||||
@echo "Done: $(FD_INSTALL_TARGET)"
|
@ -25,13 +25,6 @@
|
||||
echo "Changing default settings...";
|
||||
|
||||
enter "frameworks/base";
|
||||
sed -i '0,/wifi,cell,battery/s/wifi,cell,battery,dnd,flashlight,rotation,bt,airplane/wifi,cell,bt,dnd,flashlight,rotation,battery,profiles,location,airplane,caffeine,saver,hotspot,nfc/' packages/SystemUI/res/values/config.xml; #Default quick tiles
|
||||
sed -i 's/def_lock_screen_allow_private_notifications">true/def_lock_screen_allow_private_notifications">false/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_lockscreen_sounds_enabled">1/def_lockscreen_sounds_enabled">0/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_networks_available_notification_on">true/def_networks_available_notification_on">false/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_sound_effects_enabled">true/def_sound_effects_enabled">false/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_window_animation_scale">100%/def_window_animation_scale">50%/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_window_transition_scale">100%/def_window_transition_scale">50%/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
#sed -i 's/CMPRIVACY_GUARD_NOTIFICATION, 1/CMPRIVACY_GUARD_NOTIFICATION, 0/' services/core/java/com/android/server/am/ActivityStack.java;
|
||||
#sed -i 's/VOLBTN_MUSIC_CONTROLS, 1/VOLBTN_MUSIC_CONTROLS, 0/' services/core/java/com/android/server/policy/PhoneWindowManager.java; #FIXME
|
||||
#sed -i 's/VOLUME_KEYS_CONTROL_RING_STREAM, 1/VOLUME_KEYS_CONTROL_RING_STREAM, 0/' services/core/java/com/android/server/audio/AudioService.java; #FIXME
|
||||
@ -57,26 +50,9 @@ enter "packages/apps/Settings";
|
||||
sed -i 's/WEB_ACTION_ENABLED, 1/WEB_ACTION_ENABLED, 0/' src/com/android/settings/applications/ManageDomainUrls.java; #Disable "Instant Apps"
|
||||
sed -i 's/Float.parseFloat(newValue.toString()) : 1;/Float.parseFloat(newValue.toString()) : 0.5f;/' src/com/android/settings/DevelopmentSettings.java; #Always reset animation scales to 0.5
|
||||
|
||||
enter "packages/apps/Trebuchet";
|
||||
sed -i 's|homescreen_search_default">true|homescreen_search_default">false|' res/values/preferences_defaults.xml; #Disable search
|
||||
sed -i 's|drawer_compact_default">false|drawer_compact_default">true|' res/values/preferences_defaults.xml; #Enable compact view
|
||||
sed -i 's|use_scroller_default">true|use_scroller_default">false|' res/values/preferences_defaults.xml; #Hide scroller
|
||||
sed -i 's|drawer_search_default">true|drawer_search_default">false|' res/values/preferences_defaults.xml; #Disable search
|
||||
|
||||
enter "vendor/cm";
|
||||
sed -i 's/ro.config.notification_sound=Argon.ogg/ro.config.notification_sound=Pong.ogg/' config/common.mk;
|
||||
sed -i 's/ro.config.alarm_alert=Hassium.ogg/ro.config.alarm_alert=Alarm_Buzzer.ogg/' config/common.mk;
|
||||
awk -i inplace '!/def_backup_transport/' overlay/common/frameworks/base/packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's|config_mms_user_agent">LineageOS|config_mms_user_agent">Android-Mms/2.0|' overlay/common/frameworks/base/core/res/res/values/config.xml;
|
||||
sed -i 's/config_storage_manager_settings_enabled">true/config_storage_manager_settings_enabled">false/' overlay/common/packages/apps/Settings/res/values/config.xml;
|
||||
#sed -i 's/config_enableRecoveryUpdater">false/config_enableRecoveryUpdater">true/' overlay/common/packages/apps/Settings/res/values/config.xml;
|
||||
|
||||
enter "vendor/cmsdk";
|
||||
sed -i 's/config_enableAppSuggestOverlay" translatable="false">true/config_enableAppSuggestOverlay" translatable="false">false/' cm/res/res/values/config.xml;
|
||||
sed -i 's/proximityCheckOnWakeEnabledByDefault">false/proximityCheckOnWakeEnabledByDefault">true/' cm/res/res/values/config.xml;
|
||||
sed -i 's/def_forward_lookup">1/def_forward_lookup">0/' packages/CMSettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_people_lookup">1/def_people_lookup">0/' packages/CMSettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_reverse_lookup">1/def_reverse_lookup">0/' packages/CMSettingsProvider/res/values/defaults.xml;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
echo "Default settings changed!";
|
||||
|
@ -22,16 +22,6 @@ echo "Optimizing...";
|
||||
|
||||
enter "frameworks/base";
|
||||
sed -i 's/ScaleSetting = 1.0f;/ScaleSetting = 0.5f;/' services/core/java/com/android/server/wm/WindowManagerService.java;
|
||||
sed -i 's|config_useVolumeKeySounds">true|config_useVolumeKeySounds">false|' core/res/res/values/config.xml;
|
||||
sed -i 's|config_radioScanningTimeout">0|config_radioScanningTimeout">300000|' core/res/res/values/config.xml;
|
||||
sed -i 's|config_wifi_fast_bss_transition_enabled">false|config_wifi_fast_bss_transition_enabled">true|' core/res/res/values/config.xml;
|
||||
sed -i 's|config_wifi_enable_wifi_firmware_debugging">true|config_wifi_enable_wifi_firmware_debugging">false|' core/res/res/values/config.xml;
|
||||
sed -i 's|config_wifi_supplicant_scan_interval">15000|config_wifi_supplicant_scan_interval">30000|' core/res/res/values/config.xml;
|
||||
#sed -i 's|config_autoBrightnessLightSensorRate">250|config_autoBrightnessLightSensorRate">1000|' core/res/res/values/config.xml;
|
||||
sed -i 's|config_recents_use_hardware_layers">false|config_recents_use_hardware_layers">true|' packages/SystemUI/res/values/config.xml;
|
||||
#sed -i 's|config_recents_fake_shadows">false|config_recents_fake_shadows">true|' packages/SystemUI/res/values/config.xml;
|
||||
sed -i 's|config_notifications_round_rect_clipping">true|config_notifications_round_rect_clipping">false|' packages/SystemUI/res/values/config.xml;
|
||||
sed -i 's|config_showTemperatureWarning">0|config_showTemperatureWarning">1|' packages/SystemUI/res/values/config.xml; #XXX: Doesn't seem to work?
|
||||
#sed -i 's|||'
|
||||
|
||||
enter "kernel"
|
||||
|
@ -213,8 +213,6 @@ sed -i 's/CM_BUILDTYPE := UNOFFICIAL/CM_BUILDTYPE := dos/' config/common.mk; #Ch
|
||||
if [ "$DOS_NON_COMMERCIAL_USE_PATCHES" = true ]; then sed -i 's/CM_BUILDTYPE := dos/CM_BUILDTYPE := dosNC/' config/common.mk; fi;
|
||||
sed -i 's/messaging/Silence/' config/telephony.mk; #Replace AOSP Messaging app with Silence
|
||||
#if [ "$DOS_HOSTS_BLOCKING" = false ]; then echo "PRODUCT_PACKAGES += DNS66" >> config/sce.mk; fi; #Include DNS66 as an alternative
|
||||
if [ "$DOS_HOSTS_BLOCKING" = false ]; then cp "$DOS_PATCHES_COMMON/android_vendor_divested/dns66.json" prebuilt/common/etc/dns66.json; fi;
|
||||
if [ "$DOS_HOSTS_BLOCKING" = false ]; then sed -i '4iPRODUCT_COPY_FILES += vendor/cm/prebuilt/common/etc/dns66.json:system/etc/dns66/settings.json' config/common.mk; fi; #Include DNS66 default config
|
||||
|
||||
enterAndClear "vendor/cmsdk";
|
||||
awk -i inplace '!/WeatherManagerServiceBroker/' cm/res/res/values/config.xml; #Disable Weather
|
||||
|
@ -25,20 +25,9 @@
|
||||
echo "Changing default settings...";
|
||||
|
||||
enter "lineage-sdk";
|
||||
sed -i 's/def_forward_lookup">1/def_forward_lookup">0/' packages/LineageSettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_people_lookup">1/def_people_lookup">0/' packages/LineageSettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_reverse_lookup">1/def_reverse_lookup">0/' packages/LineageSettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/proximityCheckOnWakeEnabledByDefault">false/proximityCheckOnWakeEnabledByDefault">true/' lineage/res/res/values/config.xml;
|
||||
#sed -i 's/VOLBTN_MUSIC_CONTROLS, 1/VOLBTN_MUSIC_CONTROLS, 0/' sdk/src/java/org/lineageos/internal/buttons/LineageButtons.java; #FIXME
|
||||
|
||||
enter "frameworks/base";
|
||||
sed -i '0,/wifi,bt,dnd,flashlight/s/wifi,bt,dnd,flashlight,rotation,battery,cell,airplane,cast/wifi,cell,bt,dnd,flashlight,rotation,battery,sync,location,airplane,caffeine,saver,hotspot,nfc/' packages/SystemUI/res/values/config.xml; #Default quick tiles
|
||||
sed -i 's/def_lock_screen_allow_private_notifications">true/def_lock_screen_allow_private_notifications">false/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_lockscreen_sounds_enabled">1/def_lockscreen_sounds_enabled">0/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_networks_available_notification_on">true/def_networks_available_notification_on">false/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_sound_effects_enabled">true/def_sound_effects_enabled">false/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_window_animation_scale">100%/def_window_animation_scale">50%/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/def_window_transition_scale">100%/def_window_transition_scale">50%/' packages/SettingsProvider/res/values/defaults.xml;
|
||||
#sed -i 's/PRIVACY_GUARD_NOTIFICATION, 1/PRIVACY_GUARD_NOTIFICATION, 0/' services/core/java/com/android/server/am/ActivityRecord.java;
|
||||
#sed -i 's/VOLUME_KEYS_CONTROL_RING_STREAM, 1/VOLUME_KEYS_CONTROL_RING_STREAM, 0/' services/core/java/com/android/server/audio/AudioService.java; #FIXME
|
||||
#sed -i 's/TORCH_LONG_PRESS_POWER_GESTURE, 0/TORCH_LONG_PRESS_POWER_GESTURE, 1/' services/core/java/com/android/server/policy/PhoneWindowManager.java; #FIXME
|
||||
@ -67,16 +56,11 @@ enter "packages/apps/Trebuchet";
|
||||
sed -i 's/"pref_predictive_apps", true/"pref_predictive_apps", false/' src/com/android/launcher3/Launcher.java;
|
||||
|
||||
enter "packages/inputmethods/LatinIME";
|
||||
sed -i 's/config_personalization_dict_wipe_interval_in_days">-1/config_personalization_dict_wipe_interval_in_days">5/' java/res/values/config-common.xml;
|
||||
#sed -i 's/PREF_KEY_USE_PERSONALIZED_DICTS, true/PREF_KEY_USE_PERSONALIZED_DICTS, false/' java/src/com/android/inputmethod/latin/settings/SettingsValues.java; #FIXME
|
||||
|
||||
enter "vendor/lineage";
|
||||
sed -i 's/ro.config.notification_sound=Argon.ogg/ro.config.notification_sound=Pong.ogg/' config/common.mk;
|
||||
sed -i 's/ro.config.alarm_alert=Hassium.ogg/ro.config.alarm_alert=Alarm_Buzzer.ogg/' config/common.mk;
|
||||
awk -i inplace '!/def_backup_transport/' overlay/common/frameworks/base/packages/SettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's|config_mms_user_agent">LineageOS|config_mms_user_agent">Android-Mms/2.0|' overlay/common/frameworks/base/core/res/res/values/config.xml;
|
||||
sed -i 's/def_stats_collection">true/def_stats_collection">false/' overlay/common/lineage-sdk/packages/LineageSettingsProvider/res/values/defaults.xml;
|
||||
sed -i 's/config_storage_manager_settings_enabled">true/config_storage_manager_settings_enabled">false/' overlay/common/packages/apps/Settings/res/values/config.xml;
|
||||
#sed -i 's/config_enableRecoveryUpdater">false/config_enableRecoveryUpdater">true/' overlay/common/packages/apps/Settings/res/values/config.xml;
|
||||
|
||||
cd "$DOS_BUILD_BASE";
|
||||
|
@ -22,16 +22,6 @@ echo "Optimizing...";
|
||||
|
||||
enter "frameworks/base";
|
||||
sed -i 's/ScaleSetting = 1.0f;/ScaleSetting = 0.5f;/' services/core/java/com/android/server/wm/WindowManagerService.java; #TODO: Fix transition scale
|
||||
sed -i 's|config_useVolumeKeySounds">true|config_useVolumeKeySounds">false|' core/res/res/values/config.xml;
|
||||
sed -i 's|config_radioScanningTimeout">0|config_radioScanningTimeout">300000|' core/res/res/values/config.xml;
|
||||
sed -i 's|config_wifi_fast_bss_transition_enabled">false|config_wifi_fast_bss_transition_enabled">true|' core/res/res/values/config.xml;
|
||||
sed -i 's|config_wifi_enable_wifi_firmware_debugging">true|config_wifi_enable_wifi_firmware_debugging">false|' core/res/res/values/config.xml;
|
||||
sed -i 's|config_wifi_supplicant_scan_interval">15000|config_wifi_supplicant_scan_interval">30000|' core/res/res/values/config.xml;
|
||||
#sed -i 's|config_autoBrightnessLightSensorRate">250|config_autoBrightnessLightSensorRate">1000|' core/res/res/values/config.xml;
|
||||
sed -i 's|config_recents_use_hardware_layers">false|config_recents_use_hardware_layers">true|' packages/SystemUI/res/values/config.xml;
|
||||
#sed -i 's|config_recents_fake_shadows">false|config_recents_fake_shadows">true|' packages/SystemUI/res/values/config.xml;
|
||||
sed -i 's|config_notifications_round_rect_clipping">true|config_notifications_round_rect_clipping">false|' packages/SystemUI/res/values/config.xml;
|
||||
sed -i 's|config_showTemperatureWarning">0|config_showTemperatureWarning">1|' packages/SystemUI/res/values/config.xml; #XXX: Doesn't seem to work?
|
||||
#sed -i 's|||'
|
||||
|
||||
enter "kernel"
|
||||
|
@ -212,8 +212,6 @@ sed -i 's/LINEAGE_BUILDTYPE := UNOFFICIAL/LINEAGE_BUILDTYPE := dos/' config/comm
|
||||
if [ "$DOS_NON_COMMERCIAL_USE_PATCHES" = true ]; then sed -i 's/LINEAGE_BUILDTYPE := dos/LINEAGE_BUILDTYPE := dosNC/' config/common.mk; fi;
|
||||
sed -i 's/messaging/Silence/' config/telephony.mk; #Replace AOSP Messaging app with Silence
|
||||
#if [ "$DOS_HOSTS_BLOCKING" = false ]; then echo "PRODUCT_PACKAGES += DNS66" >> config/sce.mk; fi; #Include DNS66 as an alternative
|
||||
if [ "$DOS_HOSTS_BLOCKING" = false ]; then cp "$DOS_PATCHES_COMMON/android_vendor_divested/dns66.json" prebuilt/common/etc/dns66.json; fi;
|
||||
if [ "$DOS_HOSTS_BLOCKING" = false ]; then sed -i '4iPRODUCT_COPY_FILES += vendor/lineage/prebuilt/common/etc/dns66.json:system/etc/dns66/settings.json' config/common.mk; fi; #Include DNS66 default config
|
||||
#
|
||||
#END OF ROM CHANGES
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user