CMSDK: Better profiles, Dialer: Disable FLP/PLP, Settings: Remove backup

This commit is contained in:
Tad 2017-05-29 14:13:29 -04:00
parent 3edeb78b72
commit e0b4631ee6
3 changed files with 373 additions and 1 deletions

View File

@ -6,4 +6,4 @@ pkgdesc='Metapackage to pull all dependencies required to build Android'
arch=('x86_64')
url='https://wiki.archlinux.org/index.php/Android#Building_Android'
license=('None')
depends=('gcc-multilib' 'git' 'gnupg' 'flex' 'bison' 'gperf' 'sdl' 'wxgtk' 'squashfs-tools' 'curl' 'ncurses' 'zlib' 'schedtool' 'perl-switch' 'zip' 'unzip' 'libxslt' 'python2-virtualenv' 'bc' 'rsync' 'lib32-zlib' 'lib32-ncurses' 'lib32-readline' 'xml2' 'lzop' 'pngcrush' 'imagemagick' 'repo' 'ccache' 'maven' 'gradle' 'lib32-ncurses5-compat-libs' 'ncurses5-compat-libs')
depends=('gcc-multilib' 'git' 'gnupg' 'flex' 'bison' 'gperf' 'sdl' 'wxgtk' 'squashfs-tools' 'curl' 'ncurses' 'zlib' 'schedtool' 'perl-switch' 'zip' 'unzip' 'libxslt' 'python2-virtualenv' 'bc' 'rsync' 'lib32-zlib' 'lib32-ncurses' 'lib32-readline' 'xml2' 'lzop' 'pngcrush' 'imagemagick' 'repo' 'ccache' 'maven' 'gradle' 'ninja' 'lib32-ncurses5-compat-libs' 'ncurses5-compat-libs')

View File

@ -0,0 +1,364 @@
<?xml version="1.0"?>
<profiles>
<active>12935e06-b233-4093-b94c-06eb5fa73ed8</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>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>1</value>
<override>true</override>
</connectionDescriptor>
<connectionDescriptor>
<connectionId>2</connectionId>
<value>0</value>
<override>true</override>
</connectionDescriptor>
<connectionDescriptor>
<connectionId>9</connectionId>
<value>1</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>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>0</value>
<override>true</override>
</connectionDescriptor>
<connectionDescriptor>
<connectionId>2</connectionId>
<value>0</value>
<override>true</override>
</connectionDescriptor>
<connectionDescriptor>
<connectionId>9</connectionId>
<value>1</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>

View File

@ -96,6 +96,7 @@ sed -i 's/CM_BUILDTYPE := UNOFFICIAL/CM_BUILDTYPE := dsc/' config/common.mk;
enter "vendor/cmsdk"
git fetch https://review.lineageos.org/LineageOS/cm_platform_sdk refs/changes/21/148321/12 && git cherry-pick FETCH_HEAD #network traffic
cp $patches"cm_platform_sdk/profile_default.xml" cm/res/res/xml/profile_default.xml; #Replace default profiles with *way* better ones
enter "packages/apps/CMParts"
rm -rf src/org/cyanogenmod/cmparts/cmstats/ res/xml/anonymous_stats.xml res/xml/preview_data.xml #Nuke part of CMStats
@ -116,6 +117,13 @@ patch -p1 < $patches"android_device_qcom_sepolicy/0001-Camera_Fix.patch" #Fix ca
enter "packages/apps/Settings"
sed -i 's/Settings.Secure.WEB_ACTION_ENABLED, 1/Settings.Secure.WEB_ACTION_ENABLED, 0/' src/com/android/settings/applications/ManageDomainUrls.java; #Disable "Instant Apps"
sed -i 's/private int mPasswordMaxLength = 16;/private int mPasswordMaxLength = 48;/' src/com/android/settings/ChooseLockPassword.java; #Increase max password length
sed -i 's/GSETTINGS_PROVIDER = "com.google.settings";/GSETTINGS_PROVIDER = "com.google.oQuae4av";/' src/com/android/settings/PrivacySettings.java; #MicroG doesn't support Backup, hide the options
enter "packages/apps/Dialer"
sed -i 's/FLP_DEFAULT = FLP_GOOGLE;/FLP_DEFAULT = FLP_OPENSTREETMAP;/' src/com/android/dialer/lookup/LookupSettings.java; #Change default FLP to OpenStreetMap
sed -i 's/CMSettings.System.ENABLE_FORWARD_LOOKUP, 1)/CMSettings.System.ENABLE_FORWARD_LOOKUP, 0)/' src/com/android/dialer/lookup/LookupSettings.java; #Disable FLP by default
sed -i 's/CMSettings.System.ENABLE_PEOPLE_LOOKUP, 1)/CMSettings.System.ENABLE_PEOPLE_LOOKUP, 0)/' src/com/android/dialer/lookup/LookupSettings.java; #Disable PLP by default
sed -i 's/CMSettings.System.ENABLE_REVERSE_LOOKUP, 1)/CMSettings.System.ENABLE_REVERSE_LOOKUP, 0)/' src/com/android/dialer/lookup/LookupSettings.java; #Disable RLP by default
enter "external/svox"
git fetch https://android.googlesource.com/platform/external/svox refs/changes/72/302872/2 && git cherry-pick FETCH_HEAD #Fix garbled output See https://android-review.googlesource.com/#/c/302872/