Add support for Cyrus CM17
This commit is contained in:
parent
0727551599
commit
1423d93346
2
cm17/AndroidProducts.mk
Normal file
2
cm17/AndroidProducts.mk
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
PRODUCT_MAKEFILES := \
|
||||||
|
$(LOCAL_DIR)/ttp.mk
|
56
cm17/cm17.mk
Normal file
56
cm17/cm17.mk
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/mainline_system.mk)
|
||||||
|
|
||||||
|
#
|
||||||
|
# All components inherited here go to system_ext image
|
||||||
|
#
|
||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/handheld_system_ext.mk)
|
||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/telephony_system_ext.mk)
|
||||||
|
|
||||||
|
#
|
||||||
|
# All components inherited here go to product image
|
||||||
|
#
|
||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_product.mk)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Special settings for GSI releasing
|
||||||
|
#
|
||||||
|
# ifeq (aosp_arm64,$(TARGET_PRODUCT))
|
||||||
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk)
|
||||||
|
# endif
|
||||||
|
|
||||||
|
PRODUCT_CHARACTERISTICS := device
|
||||||
|
|
||||||
|
PRODUCT_NAME := cm17
|
||||||
|
PRODUCT_DEVICE := cm17
|
||||||
|
PRODUCT_BRAND := Android
|
||||||
|
PRODUCT_MODEL := AOSP on ARM64
|
||||||
|
PRODUCT_AAPT_CONFIG := normal
|
||||||
|
PRODUCT_AAPT_PREF_CONFIG := xhdpi
|
||||||
|
|
||||||
|
PRODUCT_PACKAGE_OVERLAYS += device/wephone/cm17/overlay
|
||||||
|
|
||||||
|
# Use a more decent APN config
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
|
||||||
|
|
||||||
|
ifneq (,$(wildcard external/exfat))
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
mkfs.exfat \
|
||||||
|
fsck.exfat
|
||||||
|
endif
|
||||||
|
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
TrichromeWebView \
|
||||||
|
Contacts \
|
||||||
|
DeskClock \
|
||||||
|
Etar \
|
||||||
|
ExactCalculator \
|
||||||
|
Gallery2
|
||||||
|
|
||||||
|
|
||||||
|
PRODUCT_PACKAGES -= \
|
||||||
|
EasterEgg \
|
||||||
|
webview \
|
||||||
|
libwebviewchromium_loader \
|
||||||
|
libwebviewchromium_plat_support
|
31
cm17/cm17/BoardConfig.mk
Normal file
31
cm17/cm17/BoardConfig.mk
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
TARGET_ARCH := arm64
|
||||||
|
TARGET_ARCH_VARIANT := armv8-a
|
||||||
|
TARGET_CPU_ABI := arm64-v8a
|
||||||
|
TARGET_CPU_ABI2 :=
|
||||||
|
TARGET_CPU_VARIANT := generic
|
||||||
|
|
||||||
|
TARGET_2ND_ARCH := arm
|
||||||
|
TARGET_2ND_ARCH_VARIANT := armv8-a
|
||||||
|
TARGET_2ND_CPU_ABI := armeabi-v7a
|
||||||
|
TARGET_2ND_CPU_ABI2 := armeabi
|
||||||
|
TARGET_2ND_CPU_VARIANT := generic
|
||||||
|
|
||||||
|
include build/make/target/board/BoardConfigGsiCommon.mk
|
||||||
|
|
||||||
|
# TODO(jiyong) These might be SoC specific.
|
||||||
|
BOARD_ROOT_EXTRA_SYMLINKS += /vendor/lib/dsp:/dsp
|
||||||
|
|
||||||
|
# TODO(b/36764215): remove this setting when the generic system image
|
||||||
|
# no longer has QCOM-specific directories under /.
|
||||||
|
BOARD_SEPOLICY_DIRS += build/make/target/board/generic_arm64/sepolicy
|
||||||
|
|
||||||
|
TARGET_EXFAT_DRIVER := exfat
|
||||||
|
TARGET_SYSTEM_PROP := device/wephone/ttp/system.prop $(TARGET_SYSTEM_PROP)
|
||||||
|
|
||||||
|
ifeq ($(BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE),)
|
||||||
|
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
|
||||||
|
else
|
||||||
|
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 33554432
|
||||||
|
endif
|
||||||
|
|
||||||
|
TARGET_USES_64_BIT_BINDER := true
|
Binary file not shown.
After Width: | Height: | Size: 2.1 MiB |
56
cm17/overlay/frameworks/base/core/res/res/values/config.xml
Normal file
56
cm17/overlay/frameworks/base/core/res/res/values/config.xml
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||||
|
<string-array translatable="false" name="config_tether_usb_regexs">
|
||||||
|
<item>"usb\\d"</item>
|
||||||
|
<item>"rndis\\d"</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
<string-array translatable="false" name="config_tether_wifi_regexs">
|
||||||
|
<item>"wlan0"</item>
|
||||||
|
<item>"softap.*"</item>
|
||||||
|
<item>"wifi_br0"</item>
|
||||||
|
<item>"wigig0"</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
<string-array translatable="false" name="config_tether_bluetooth_regexs">
|
||||||
|
<item>bnep\\d</item>
|
||||||
|
<item>"bt-pan"</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
<bool name="config_enableAutoPowerModes">true</bool>
|
||||||
|
<bool name="config_intrusiveNotificationLed">true</bool>
|
||||||
|
<string name="config_icon_mask" translatable="false">"M50 0C77.6 0 100 22.4 100 50C100 77.6 77.6 100 50 100C22.4 100 0 77.6 0 50C0 22.4 22.4 0 50 0Z"</string>
|
||||||
|
<bool name="config_useRoundIcon">true</bool>
|
||||||
|
|
||||||
|
<string name="config_wallpaperCropperPackage">com.android.wallpaperpicker</string>
|
||||||
|
<bool name="config_unplugTurnsOnScreen">true</bool>
|
||||||
|
<integer name="config_multiuserMaximumUsers">5</integer>
|
||||||
|
<bool name="config_enableMultiUserUI">true</bool>
|
||||||
|
|
||||||
|
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
|
||||||
|
<bool name="config_swipe_up_gesture_setting_available">true</bool>
|
||||||
|
<bool name="config_smart_battery_available">true</bool>
|
||||||
|
<dimen name="config_dialogCornerRadius">8.0dip</dimen>
|
||||||
|
<dimen name="config_buttonCornerRadius">4.0dip</dimen>
|
||||||
|
|
||||||
|
<bool name="config_cellBroadcastAppLinks">true</bool>
|
||||||
|
|
||||||
|
<array name="config_availableColorModes">
|
||||||
|
<!-- ColorDisplayManager.COLOR_MODE_NATURAL -->
|
||||||
|
<item>0</item>
|
||||||
|
<!-- ColorDisplayManager.COLOR_MODE_BOOSTED -->
|
||||||
|
<item>1</item>
|
||||||
|
<!-- ColorDisplayManager.COLOR_MODE_SATURATED -->
|
||||||
|
<item>2</item>
|
||||||
|
<!-- ColorDisplayManager.COLOR_MODE_AUTOMATIC -->
|
||||||
|
<item>3</item>
|
||||||
|
</array>
|
||||||
|
|
||||||
|
<bool name="config_supportAudioSourceUnprocessed">true</bool>
|
||||||
|
|
||||||
|
<string name="config_displayLightSensorType" translatable="false">android.sensor.light</string>
|
||||||
|
|
||||||
|
<integer name="config_defaultNightMode">2</integer>
|
||||||
|
|
||||||
|
<bool name="config_useDevInputEventForAudioJack">true</bool>
|
||||||
|
</resources>
|
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Copyright 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.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<webviewproviders>
|
||||||
|
<!-- The default WebView implementation -->
|
||||||
|
<webviewprovider description="Vanadium" packageName="app.vanadium.webview" availableByDefault="true">
|
||||||
|
</webviewprovider>
|
||||||
|
</webviewproviders>
|
12242
cm17/patches/boot_image.patch
Normal file
12242
cm17/patches/boot_image.patch
Normal file
File diff suppressed because it is too large
Load Diff
13
cm17/patches/remove_launcher3_qsb.patch
Normal file
13
cm17/patches/remove_launcher3_qsb.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/com/android/launcher3/config/FeatureFlags.java b/src/com/android/launcher3/config/FeatureFlags.java
|
||||||
|
index 88a9abaf8d..d4a65f05bb 100644
|
||||||
|
--- a/src/com/android/launcher3/config/FeatureFlags.java
|
||||||
|
+++ b/src/com/android/launcher3/config/FeatureFlags.java
|
||||||
|
@@ -52,7 +52,7 @@ public final class FeatureFlags {
|
||||||
|
* Enable moving the QSB on the 0th screen of the workspace. This is not a configuration feature
|
||||||
|
* and should be modified at a project level.
|
||||||
|
*/
|
||||||
|
- public static final boolean QSB_ON_FIRST_SCREEN = true;
|
||||||
|
+ public static final boolean QSB_ON_FIRST_SCREEN = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Feature flag to handle define config changes dynamically instead of killing the process.
|
11
cm17/system.prop
Normal file
11
cm17/system.prop
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Fixed Bluetooth audio
|
||||||
|
persist.bluetooth.bluetooth_audio_hal.disabled=true
|
||||||
|
persist.sys.bt.unsupport.features=00000000
|
||||||
|
persist.sys.bt.unsupport.states=00000000
|
||||||
|
persist.sys.bt.unsupport.stdfeatures=000001
|
||||||
|
qemu.hw.mainkeys=1
|
||||||
|
hw.lcd.width = 716
|
||||||
|
hw.lcd.height = 720
|
||||||
|
hw.lcd.depth = 24
|
||||||
|
hw.lcd.density = 220
|
||||||
|
ro.sf.lcd_density=220
|
Loading…
x
Reference in New Issue
Block a user