diff options
-rw-r--r-- | Android.mk | 19 | ||||
-rw-r--r-- | AndroidProducts.mk | 18 | ||||
-rw-r--r-- | BoardConfig.mk | 20 | ||||
-rw-r--r-- | android_filesystem_config.h | 40 | ||||
-rw-r--r-- | aosp_taimen.mk | 33 | ||||
-rw-r--r-- | device.mk | 31 | ||||
-rw-r--r-- | system.prop | 96 |
7 files changed, 257 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..7e4418d --- /dev/null +++ b/Android.mk @@ -0,0 +1,19 @@ +# +# Copyright 2017 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. +# + +ifneq ($(filter taimen, $(TARGET_DEVICE)),) + include $(call first-makefiles-under, device/qcom/msmcobalt) +endif diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..654dafc --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,18 @@ +# +# Copyright 2017 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. +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/aosp_taimen.mk \ diff --git a/BoardConfig.mk b/BoardConfig.mk new file mode 100644 index 0000000..f8827c8 --- /dev/null +++ b/BoardConfig.mk @@ -0,0 +1,20 @@ +# +# Copyright (C) 2017 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. +# + +TARGET_BOOTLOADER_BOARD_NAME := taimen +DEFAULT_LOW_PERSISTENCE_MODE_BRIGHTNESS := 0x00000056 + +include device/qcom/msmcobalt/CommonBoardConfig.mk diff --git a/android_filesystem_config.h b/android_filesystem_config.h new file mode 100644 index 0000000..00a272a --- /dev/null +++ b/android_filesystem_config.h @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2017 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. + */ + +/* This file is used to define the properties of the filesystem +** images generated by build tools (mkbootfs and mkyaffs2image) and +** by the device side of adb. +*/ + +#include <private/android_filesystem_config.h> + +static const struct fs_path_config android_device_dirs[] = { + { 00771, AID_SYSTEM, AID_SYSTEM, 0, "bt_firmware"}, +}; + +/* Rules for files. +** These rules are applied based on "first match", so they +** should start with the most specific path and work their +** way up to the root. Prefixes ending in * denotes wildcard +** and will allow partial matches. +*/ +static const struct fs_path_config android_device_files[] = { + { 00755, AID_SYSTEM, AID_SYSTEM, (1ULL << CAP_NET_BIND_SERVICE), "system/vendor/bin/pm-service" }, + { 00755, AID_SYSTEM, AID_SYSTEM, (1ULL << CAP_NET_BIND_SERVICE), "system/vendor/bin/cnss-daemon"}, +#ifdef NO_ANDROID_FILESYSTEM_CONFIG_DEVICE_DIRS + { 00000, AID_ROOT, AID_ROOT, 0, "system/etc/fs_config_dirs" }, +#endif +}; diff --git a/aosp_taimen.mk b/aosp_taimen.mk new file mode 100644 index 0000000..4668370 --- /dev/null +++ b/aosp_taimen.mk @@ -0,0 +1,33 @@ +# +# Copyright 2017 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. +# + +# Inherit from the common Open Source product configuration +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) + +PRODUCT_NAME := aosp_taimen +PRODUCT_DEVICE := taimen +PRODUCT_BRAND := Android +PRODUCT_MODEL := AOSP on taimen +PRODUCT_MANUFACTURER := Google +PRODUCT_RESTRICT_VENDOR_FILES := all + +$(call inherit-product, device/qcom/msmcobalt/utils.mk) +$(call inherit-product, device/google/taimen/device.mk) +$(call inherit-product-if-exists, vendor/qcom/msmcobalt/device-vendor.mk) + +PRODUCT_PACKAGES += \ + Launcher3 diff --git a/device.mk b/device.mk new file mode 100644 index 0000000..5b11f78 --- /dev/null +++ b/device.mk @@ -0,0 +1,31 @@ +# +# Copyright 2017 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. +# + +PRODUCT_AAPT_CONFIG := normal +PRODUCT_AAPT_PREF_CONFIG := 560dpi +PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi + +PRODUCT_HARDWARE := taimen + +include device/qcom/msmcobalt/device-common.mk + +PRODUCT_PROPERTY_OVERRIDES += \ + ro.sf.lcd_density=560 \ + +# Thermal packages +PRODUCT_PACKAGES += \ + thermal.default + diff --git a/system.prop b/system.prop new file mode 100644 index 0000000..b491b17 --- /dev/null +++ b/system.prop @@ -0,0 +1,96 @@ + +persist.rild.nitz_plmn= +persist.rild.nitz_long_ons_0= +persist.rild.nitz_long_ons_1= +persist.rild.nitz_long_ons_2= +persist.rild.nitz_long_ons_3= +persist.rild.nitz_short_ons_0= +persist.rild.nitz_short_ons_1= +persist.rild.nitz_short_ons_2= +persist.rild.nitz_short_ons_3= +ril.subscription.types=NV,RUIM +DEVICE_PROVISIONED=1 +# Set network mode to (T/L/G/W/1X/EVDO, T/G/W/L) for 7+5 mode device on DSDS mode +ro.telephony.default_network=22,20 + +debug.sf.hw=1 +debug.gralloc.enable_fb_ubwc=1 + +# system props for the cne module +persist.cne.feature=1 + +# system props for the MM modules +media.stagefright.enable-player=true +media.stagefright.enable-http=true +media.stagefright.enable-aac=true +media.stagefright.enable-qcp=true +media.stagefright.enable-scan=true +mmp.enable.3g2=true +media.aac_51_output_enabled=true +mm.enable.smoothstreaming=true +#13631487 is decimal sum of supported codecs in AAL +#codecs:(PARSER_)AAC AC3 AMR_NB AMR_WB ASF AVI DTS FLV 3GP 3G2 MKV MP2PS MP2TS MP3 OGG QCP WAV FLAC AIFF APE DSD +mm.enable.qcom_parser=13631487 +persist.mm.enable.prefetch=true + +# Additional buffers shared between Camera and Video +vidc.enc.dcvs.extra-buff-count=2 + +# system props for the data netmgrd +persist.data.netmgrd.qos.enable=true +persist.data.mode=concurrent + +# system props for time-services +persist.timed.enable=true + +# System prop to turn on CdmaLTEPhone always +telephony.lteOnCdmaDevice=1 + +# Simulate sdcard on /data/media +persist.fuse_sdcard=true + +# system prop for Bluetooth SOC type +qcom.bluetooth.soc=cherokee + +# system prop for A4WP profile support +ro.bluetooth.a4wp=false + +# system prop for wipower support +ro.bluetooth.wipower=true + +# settings to enable PMD and Device Orientation Sensors +ro.qti.sensors.dev_ori=true +ro.qti.sensors.pmd=true +ro.qti.sensors.sta_detect=true +ro.qti.sensors.mot_detect=true + +#system prop for RmNet Data +persist.rmnet.data.enable=true +persist.data.wda.enable=true +persist.data.df.dl_mode=5 +persist.data.df.ul_mode=5 +persist.data.df.agg.dl_pkt=10 +persist.data.df.agg.dl_size=4096 +persist.data.df.mux_count=8 +persist.data.df.iwlan_mux=9 +persist.data.df.dev_name=rmnet_usb0 + +# +## system props for the data modules +# +#ro.use_data_netmgrd=true +persist.data.netmgrd.qos.enable=true +persist.data.mode=concurrent + +#system prop for Bluetooth SOC type +qcom.bluetooth.soc=cherokee + +#system prop for A4WP profile support +ro.bluetooth.a4wp=false + +#system prop for wipower support +ro.bluetooth.emb_wp_mode=true +ro.bluetooth.wipower=true + +# Property for loading BDA from bdaddress module in kernel +ro.bt.bdaddr_path=/sys/module/bdaddress/parameters/bdaddress |