Skip to content

Commit 2ab78ba

Browse files
committedDec 25, 2018
clover: rebrand to xiaomi-sdm660 project
1 parent 5088852 commit 2ab78ba

File tree

13 files changed

+101
-69
lines changed

13 files changed

+101
-69
lines changed
 

‎Android.bp

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//#
2-
//# Copyright (C) 2018 CarbonRom
2+
//# Copyright (C) 2018 The Xiaomi-SDM660 Project
33
//#
44
//# Licensed under the Apache License, Version 2.0 (the "License");
55
//# you may not use this file except in compliance with the License.
@@ -12,6 +12,13 @@
1212
//# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
//# See the License for the specific language governing permissions and
1414
//# limitations under the License.
15+
16+
//#
17+
//# This file sets variables that control the way modules are built
18+
//# thorughout the system. It should not be used to conditionally
19+
//# disable makefiles (the proper mechanism to control what gets
20+
//# included in a build is to use PRODUCT_PACKAGES in a product
21+
//# definition file).
1522
//#
1623

1724
subdirs = [

‎Android.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2018 CarbonROM
2+
# Copyright (C) 2018 The Xiaomi-SDM660 Project
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

‎AndroidProducts.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2018 CarbonROM
2+
# Copyright (C) 2018 The Xiaomi-SDM660 Project
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -21,6 +21,6 @@
2121
# definition file).
2222
#
2323

24-
# inherit MI PAD 4 CarbonRom device config
24+
# inherit MI PAD 4 HAVOC-OS device config
2525
PRODUCT_MAKEFILES := \
2626
$(LOCAL_DIR)/havoc_clover.mk

‎BoardConfig.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2018 CarbonROM
2+
# Copyright (C) 2018 The Xiaomi-SDM660 Project
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -35,7 +35,7 @@ TARGET_TAP_TO_WAKE_NODE := "/sys/devices/soc/c177000.i2c/i2c-3/3-0038/fts_gestur
3535
TARGET_INIT_VENDOR_LIB := libinit_clover
3636
TARGET_RECOVERY_DEVICE_MODULES := libinit_clover
3737

38-
# Manifest
38+
# Manifest
3939
DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/manifest.xml
4040

4141
# Security patch level

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2018 CarbonROM
1+
Copyright (C) 2018 Xiaomi-SDM660 Project
22

33
The MI PAD 4 (codenamed _"clover"_) are high-end mid-range tablet from Xiaomi.
44

‎device.mk

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2018 CarbonROM
2+
# Copyright (C) 2018 The Xiaomi-SDM660 Project
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -29,62 +29,62 @@ DEVICE_PATH := device/xiaomi/clover
2929

3030
# Overlays
3131
DEVICE_PACKAGE_OVERLAYS += \
32-
$(DEVICE_PATH)/overlay
33-
32+
$(DEVICE_PATH)/overlay
33+
3434
# Device properties
3535
$(call inherit-product, $(DEVICE_PATH)/device_prop.mk)
3636

3737
# These are the hardware-specific features
3838
PRODUCT_COPY_FILES += \
3939
frameworks/native/data/etc/tablet_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/tablet_core_hardware.xml
40-
40+
4141
# Permissions
4242
PRODUCT_COPY_FILES += \
43-
frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml
43+
frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml
4444

4545
# Audio
4646
PRODUCT_COPY_FILES += \
47-
$(DEVICE_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
48-
$(DEVICE_PATH)/audio/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
49-
$(DEVICE_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
50-
$(DEVICE_PATH)/audio/audio_platform_info_extcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_extcodec.xml \
51-
$(DEVICE_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
52-
$(DEVICE_PATH)/audio/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
53-
$(DEVICE_PATH)/audio/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
54-
$(DEVICE_PATH)/audio/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml \
55-
$(DEVICE_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
56-
$(DEVICE_PATH)/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
57-
$(DEVICE_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
47+
$(DEVICE_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
48+
$(DEVICE_PATH)/audio/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
49+
$(DEVICE_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
50+
$(DEVICE_PATH)/audio/audio_platform_info_extcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_extcodec.xml \
51+
$(DEVICE_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
52+
$(DEVICE_PATH)/audio/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \
53+
$(DEVICE_PATH)/audio/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
54+
$(DEVICE_PATH)/audio/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml \
55+
$(DEVICE_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
56+
$(DEVICE_PATH)/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
57+
$(DEVICE_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
5858

5959
# Init
6060
PRODUCT_PACKAGES += \
6161
libinit_clover
6262

6363
# Sensors
6464
PRODUCT_COPY_FILES += \
65-
$(DEVICE_PATH)/sensors/sensor_def_qcomdev.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/sensor_def_qcomdev.conf
66-
65+
$(DEVICE_PATH)/sensors/sensor_def_qcomdev.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/sensor_def_qcomdev.conf
66+
6767
# Keylayouts
6868
PRODUCT_COPY_FILES += \
69-
$(DEVICE_PATH)/keylayout/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl
70-
69+
$(DEVICE_PATH)/keylayout/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl
70+
7171
# Lights
7272
PRODUCT_PACKAGES += \
73-
android.hardware.light@2.0-service.xiaomi_clover
74-
73+
android.hardware.light@2.0-service.xiaomi_clover
74+
7575
# Media
7676
PRODUCT_COPY_FILES += \
77-
$(DEVICE_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
78-
$(DEVICE_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
79-
$(DEVICE_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml \
80-
$(DEVICE_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
81-
$(DEVICE_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \
82-
$(DEVICE_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
77+
$(DEVICE_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
78+
$(DEVICE_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
79+
$(DEVICE_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml \
80+
$(DEVICE_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
81+
$(DEVICE_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \
82+
$(DEVICE_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
8383

8484
# Ramdisk
8585
PRODUCT_PACKAGES += \
86-
init.device.rc \
87-
init.macaddress_setup.sh
86+
init.device.rc \
87+
init.macaddress_setup.sh
8888

8989
# Screen density
9090
PRODUCT_AAPT_CONFIG := large

‎havoc_clover.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2018 CarbonROM
2+
# Copyright (C) 2018 The Xiaomi-SDM660 Project
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -33,7 +33,7 @@ PRODUCT_BUILD_PROP_OVERRIDES += \
3333
PRIVATE_BUILD_DESC="clover-user 8.1.0 OPM1.171019.019 V10.1.1.0.ODJCNFI release-keys"
3434

3535
BUILD_FINGERPRINT="Xiaomi/clover/clover:8.1.0/OPM1.171019.019/V10.1.1.0.ODJCNFI:user/release-keys"
36-
36+
3737
# Device identifier
3838
PRODUCT_BRAND := Xiaomi
3939
PRODUCT_MANUFACTURER := Xiaomi

‎init/Android.mk

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2018 The Android Open Source Project
2+
# Copyright (C) 2018 The Xiaomi-SDM660 Project
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -12,6 +12,13 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15+
16+
#
17+
# This file sets variables that control the way modules are built
18+
# thorughout the system. It should not be used to conditionally
19+
# disable makefiles (the proper mechanism to control what gets
20+
# included in a build is to use PRODUCT_PACKAGES in a product
21+
# definition file).
1522
#
1623

1724
LOCAL_PATH:= $(call my-dir)

‎init/init_clover.cpp

+22-25
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
11
/*
2-
Copyright (c) 2015, The Linux Foundation. All rights reserved.
3-
Copyright (C) 2016 The CyanogenMod Project.
4-
Redistribution and use in source and binary forms, with or without
5-
modification, are permitted provided that the following conditions are
6-
met:
7-
* Redistributions of source code must retain the above copyright
8-
notice, this list of conditions and the following disclaimer.
9-
* Redistributions in binary form must reproduce the above
10-
copyright notice, this list of conditions and the following
11-
disclaimer in the documentation and/or other materials provided
12-
with the distribution.
13-
* Neither the name of The Linux Foundation nor the names of its
14-
contributors may be used to endorse or promote products derived
15-
from this software without specific prior written permission.
16-
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
17-
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
19-
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
20-
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22-
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23-
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24-
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25-
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26-
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2+
#
3+
# Copyright (C) 2018 The Xiaomi-SDM660 Project
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
#
18+
# This file sets variables that control the way modules are built
19+
# thorughout the system. It should not be used to conditionally
20+
# disable makefiles (the proper mechanism to control what gets
21+
# included in a build is to use PRODUCT_PACKAGES in a product
22+
# definition file).
23+
#
2724
*/
2825

2926
#include <stdio.h>

‎light/Light.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
#
3-
# Copyright 2018 The Android Open Source Project
3+
# Copyright (C) 2018 The Xiaomi-SDM660 Project
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -13,6 +13,13 @@
1313
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
16+
17+
#
18+
# This file sets variables that control the way modules are built
19+
# thorughout the system. It should not be used to conditionally
20+
# disable makefiles (the proper mechanism to control what gets
21+
# included in a build is to use PRODUCT_PACKAGES in a product
22+
# definition file).
1623
#
1724
*/
1825

‎light/Light.h

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
#
3-
# Copyright 2018 The Android Open Source Project
3+
# Copyright (C) 2018 The Xiaomi-SDM660 Project
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -13,6 +13,13 @@
1313
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
16+
17+
#
18+
# This file sets variables that control the way modules are built
19+
# thorughout the system. It should not be used to conditionally
20+
# disable makefiles (the proper mechanism to control what gets
21+
# included in a build is to use PRODUCT_PACKAGES in a product
22+
# definition file).
1623
#
1724
*/
1825

‎light/service.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
#
3-
# Copyright 2018 The Android Open Source Project
3+
# Copyright (C) 2018 The Xiaomi-SDM660 Project
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -13,6 +13,13 @@
1313
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
16+
17+
#
18+
# This file sets variables that control the way modules are built
19+
# thorughout the system. It should not be used to conditionally
20+
# disable makefiles (the proper mechanism to control what gets
21+
# included in a build is to use PRODUCT_PACKAGES in a product
22+
# definition file).
1623
#
1724
*/
1825

‎overlay/frameworks/base/core/res/res/values/config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- #
33
#
4-
# Copyright (C) 2018 CarbonROM
4+
# Copyright (C) 2018 The Xiaomi-SDM660 Project
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)
Please sign in to comment.