Compare commits
29 commits
lineage-15
...
lineage-16
Author | SHA1 | Date | |
---|---|---|---|
|
3abb12f1a3 | ||
|
edadce3968 | ||
|
d76a571a43 | ||
|
db6bd1b4c7 | ||
|
f4733b172d | ||
|
7cc114062d | ||
|
2c57929034 | ||
|
27057ed355 | ||
|
584a356f2b | ||
|
048730eaf2 | ||
|
4131f6242f | ||
|
cca4efdd0e | ||
|
3230c5785f | ||
|
6edd88e794 | ||
|
9f9cbf990c | ||
|
5e30b196e7 | ||
|
7b39b0bfb5 | ||
|
fc20c45e54 | ||
|
c4ecb0fe92 | ||
|
bb2e5ff3a2 | ||
|
d0ceb7e97b | ||
|
3e3f664583 | ||
|
413d8082bd | ||
|
10a10db330 | ||
|
0790789114 | ||
|
1bbad63b43 | ||
|
2582062890 | ||
|
6c08e199c0 | ||
|
b1304c03ea |
26 changed files with 134 additions and 95 deletions
|
@ -26,7 +26,7 @@
|
|||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
ifneq ($(filter land santoni,$(TARGET_DEVICE)),)
|
||||
ifneq ($(filter karate,$(TARGET_DEVICE)),)
|
||||
|
||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
VENDOR_PATH := device/xiaomi/msm8937-common
|
||||
VENDOR_PATH := device/lenovo/msm8937-common
|
||||
|
||||
# Bootloader
|
||||
TARGET_BOOTLOADER_BOARD_NAME := MSM8937
|
||||
|
@ -32,7 +32,7 @@ TARGET_CPU_ABI2 :=
|
|||
TARGET_CPU_VARIANT := generic
|
||||
|
||||
TARGET_2ND_ARCH := arm
|
||||
TARGET_2ND_ARCH_VARIANT := armv7-a-neon
|
||||
TARGET_2ND_ARCH_VARIANT := armv8-a
|
||||
TARGET_2ND_CPU_ABI := armeabi-v7a
|
||||
TARGET_2ND_CPU_ABI2 := armeabi
|
||||
TARGET_2ND_CPU_VARIANT := cortex-a53
|
||||
|
@ -75,6 +75,10 @@ BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(VENDOR_PATH)/bluetooth
|
|||
BLUETOOTH_HCI_USE_MCT := true
|
||||
QCOM_BT_USE_SMD_TTY := true
|
||||
|
||||
# Camera
|
||||
TARGET_PROCESS_SDK_VERSION_OVERRIDE := \
|
||||
/vendor/bin/mm-qcamera-daemon=23
|
||||
|
||||
# Charger
|
||||
BOARD_CHARGER_DISABLE_INIT_BLANK := true
|
||||
BOARD_CHARGER_ENABLE_SUSPEND := true
|
||||
|
@ -127,7 +131,7 @@ TARGET_KERNEL_SOURCE := kernel/xiaomi/msm8937
|
|||
TARGET_PROVIDES_LIBLIGHT := true
|
||||
|
||||
# Lineage Hardware
|
||||
BOARD_HARDWARE_CLASS += $(VENDOR_PATH)/lineagehw
|
||||
JAVA_SOURCE_OVERLAYS := org.lineageos.hardware|$(VENDOR_PATH)/lineagehw|**/*.java
|
||||
|
||||
# Malloc
|
||||
MALLOC_SVELTE := true
|
||||
|
@ -151,7 +155,7 @@ TARGET_USERIMAGES_USE_F2FS := true
|
|||
TARGET_USES_MKE2FS := true
|
||||
|
||||
# Power
|
||||
TARGET_HAS_NO_WIFI_STATS := true
|
||||
TARGET_HAS_NO_WLAN_STATS := true
|
||||
TARGET_USES_INTERACTION_BOOST := true
|
||||
|
||||
# Qualcomm support
|
||||
|
@ -171,7 +175,6 @@ BOARD_PLAT_PRIVATE_SEPOLICY_DIR += $(VENDOR_PATH)/sepolicy/private
|
|||
|
||||
# Treble
|
||||
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
|
||||
PRODUCT_COMPATIBILITY_MATRIX_LEVEL_OVERRIDE := 27
|
||||
PRODUCT_FULL_TREBLE_OVERRIDE := true
|
||||
|
||||
# WiFi
|
||||
|
@ -186,4 +189,4 @@ WIFI_DRIVER_FW_PATH_STA := "sta"
|
|||
WPA_SUPPLICANT_VERSION := VER_0_8_X
|
||||
|
||||
# Inherit the common proprietary files
|
||||
-include vendor/xiaomi/msm8937-common/BoardConfigVendor.mk
|
||||
-include vendor/lenovo/msm8937-common/BoardConfigVendor.mk
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Common device configuration for Xiaomi MSM8937
|
||||
# Common device configuration for Lenovo MSM8937
|
||||
|
||||
## Copyright
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := android.hardware.biometrics.fingerprint@2.1-service.xiaomi_msm8937
|
||||
LOCAL_INIT_RC := android.hardware.biometrics.fingerprint@2.1-service.xiaomi_msm8937.rc
|
||||
LOCAL_MODULE := android.hardware.biometrics.fingerprint@2.1-service.lenovo_msm8937
|
||||
LOCAL_INIT_RC := android.hardware.biometrics.fingerprint@2.1-service.lenovo_msm8937.rc
|
||||
LOCAL_PROPRIETARY_MODULE := true
|
||||
LOCAL_MODULE_RELATIVE_PATH := hw
|
||||
LOCAL_SRC_FILES := \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
service fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_msm8937
|
||||
service fps_hal /vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service.lenovo_msm8937
|
||||
# "class hal" causes a race condition on some devices due to files created
|
||||
# in /data. As a workaround, postpone startup until later in boot once
|
||||
# /data is mounted.
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.xiaomi_msm8937"
|
||||
#define LOG_TAG "android.hardware.biometrics.fingerprint@2.1-service.lenovo_msm8937"
|
||||
|
||||
#include <binder/IPCThreadState.h>
|
||||
#include <binder/IServiceManager.h>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
[AID_QTI_DIAG]
|
||||
[AID_VENDOR_QTI_DIAG]
|
||||
value:2901
|
||||
|
||||
[AID_RFS]
|
||||
[AID_VENDOR_RFS]
|
||||
value:2903
|
||||
|
||||
[AID_RFS_SHARED]
|
||||
[AID_VENDOR_RFS_SHARED]
|
||||
value:2904
|
||||
|
||||
[vendor/bin/wcnss_filter]
|
||||
|
|
|
@ -5,9 +5,9 @@ LOCAL_MODULE_TAGS := optional
|
|||
|
||||
LOCAL_SRC_FILES := $(call all-java-files-under, src)
|
||||
|
||||
LOCAL_PACKAGE_NAME := XiaomiDoze
|
||||
LOCAL_PACKAGE_NAME := LenovoDoze
|
||||
LOCAL_CERTIFICATE := platform
|
||||
LOCAL_PRIVILEGED_MODULE := true
|
||||
LOCAL_PRIVATE_PLATFORM_APIS := true
|
||||
|
||||
LOCAL_USE_AAPT2 := true
|
||||
|
||||
|
@ -17,10 +17,7 @@ LOCAL_STATIC_ANDROID_LIBRARIES := \
|
|||
android-support-v7-recyclerview \
|
||||
android-support-v7-preference \
|
||||
android-support-v7-appcompat \
|
||||
android-support-v14-preference \
|
||||
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := \
|
||||
org.lineageos.platform.internal
|
||||
android-support-v14-preference
|
||||
|
||||
LOCAL_RESOURCE_DIR := \
|
||||
$(LOCAL_PATH)/res \
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
</receiver>
|
||||
|
||||
<service android:name=".DozeService"
|
||||
android:permission="XiaomiDozeService">
|
||||
android:permission="LenovoDozeService">
|
||||
</service>
|
||||
|
||||
<activity
|
||||
|
|
|
@ -25,7 +25,7 @@ import android.util.Log;
|
|||
public class BootCompletedReceiver extends BroadcastReceiver {
|
||||
|
||||
private static final boolean DEBUG = false;
|
||||
private static final String TAG = "XiaomiDoze";
|
||||
private static final String TAG = "LenovoDoze";
|
||||
|
||||
@Override
|
||||
public void onReceive(final Context context, Intent intent) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2015 The CyanogenMod Project
|
||||
* 2017 The LineageOS Project
|
||||
* Copyright (C) 2015 The CyanogenMod Project
|
||||
* 2017-2018 The LineageOS Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -65,22 +65,22 @@ public class DozeService extends Service {
|
|||
|
||||
private void onDisplayOn() {
|
||||
if (DEBUG) Log.d(TAG, "Display on");
|
||||
if (Utils.pickUpEnabled(this)) {
|
||||
if (Utils.isPickUpEnabled(this)) {
|
||||
mTiltSensor.disable();
|
||||
}
|
||||
if (Utils.handwaveGestureEnabled(this) ||
|
||||
Utils.pocketGestureEnabled(this)) {
|
||||
if (Utils.isHandwaveGestureEnabled(this) ||
|
||||
Utils.isPocketGestureEnabled(this)) {
|
||||
mProximitySensor.disable();
|
||||
}
|
||||
}
|
||||
|
||||
private void onDisplayOff() {
|
||||
if (DEBUG) Log.d(TAG, "Display off");
|
||||
if (Utils.pickUpEnabled(this)) {
|
||||
if (Utils.isPickUpEnabled(this)) {
|
||||
mTiltSensor.enable();
|
||||
}
|
||||
if (Utils.handwaveGestureEnabled(this) ||
|
||||
Utils.pocketGestureEnabled(this)) {
|
||||
if (Utils.isHandwaveGestureEnabled(this) ||
|
||||
Utils.isPocketGestureEnabled(this)) {
|
||||
mProximitySensor.enable();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,12 +67,15 @@ public class DozeSettingsFragment extends PreferenceFragment implements OnPrefer
|
|||
|
||||
mPickUpPreference = (SwitchPreference) findPreference(Utils.GESTURE_PICK_UP_KEY);
|
||||
mPickUpPreference.setEnabled(dozeEnabled);
|
||||
mPickUpPreference.setOnPreferenceChangeListener(this);
|
||||
|
||||
mHandwavePreference = (SwitchPreference) findPreference(Utils.GESTURE_HAND_WAVE_KEY);
|
||||
mHandwavePreference.setEnabled(dozeEnabled);
|
||||
mHandwavePreference.setOnPreferenceChangeListener(this);
|
||||
|
||||
mPocketPreference = (SwitchPreference) findPreference(Utils.GESTURE_POCKET_KEY);
|
||||
mPocketPreference.setEnabled(dozeEnabled);
|
||||
mPocketPreference.setOnPreferenceChangeListener(this);
|
||||
|
||||
// Hide proximity sensor related features if the device doesn't support them
|
||||
if (!Utils.getProxCheckBeforePulse(getActivity())) {
|
||||
|
@ -107,20 +110,21 @@ public class DozeSettingsFragment extends PreferenceFragment implements OnPrefer
|
|||
|
||||
@Override
|
||||
public boolean onPreferenceChange(Preference preference, Object newValue) {
|
||||
Utils.enableGesture(getActivity(), preference.getKey(), (Boolean) newValue);
|
||||
Utils.checkDozeService(getActivity());
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
|
||||
Utils.enableDoze(b, getActivity());
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean isChecked) {
|
||||
Utils.enableDoze(getActivity(), isChecked);
|
||||
Utils.checkDozeService(getActivity());
|
||||
|
||||
mTextView.setText(getString(b ? R.string.switch_bar_on : R.string.switch_bar_off));
|
||||
mTextView.setText(getString(isChecked ? R.string.switch_bar_on : R.string.switch_bar_off));
|
||||
|
||||
mPickUpPreference.setEnabled(b);
|
||||
mHandwavePreference.setEnabled(b);
|
||||
mPocketPreference.setEnabled(b);
|
||||
mPickUpPreference.setEnabled(isChecked);
|
||||
mHandwavePreference.setEnabled(isChecked);
|
||||
mPocketPreference.setEnabled(isChecked);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -74,11 +74,11 @@ public class ProximitySensor implements SensorEventListener {
|
|||
private boolean shouldPulse(long timestamp) {
|
||||
long delta = timestamp - mInPocketTime;
|
||||
|
||||
if (Utils.handwaveGestureEnabled(mContext) && Utils.pocketGestureEnabled(mContext)) {
|
||||
if (Utils.isHandwaveGestureEnabled(mContext) && Utils.isPocketGestureEnabled(mContext)) {
|
||||
return true;
|
||||
} else if (Utils.handwaveGestureEnabled(mContext)) {
|
||||
} else if (Utils.isHandwaveGestureEnabled(mContext)) {
|
||||
return delta < HANDWAVE_MAX_DELTA_NS;
|
||||
} else if (Utils.pocketGestureEnabled(mContext)) {
|
||||
} else if (Utils.isPocketGestureEnabled(mContext)) {
|
||||
return delta >= POCKET_MIN_DELTA_NS;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2015 The CyanogenMod Project
|
||||
* 2017 The LineageOS Project
|
||||
* Copyright (C) 2015 The CyanogenMod Project
|
||||
* 2017-2018 The LineageOS Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -76,7 +76,7 @@ public final class Utils {
|
|||
DOZE_ENABLED, 1) != 0;
|
||||
}
|
||||
|
||||
protected static boolean enableDoze(boolean enable, Context context) {
|
||||
protected static boolean enableDoze(Context context, boolean enable) {
|
||||
return Settings.Secure.putInt(context.getContentResolver(),
|
||||
DOZE_ENABLED, enable ? 1 : 0);
|
||||
}
|
||||
|
@ -87,23 +87,30 @@ public final class Utils {
|
|||
new UserHandle(UserHandle.USER_CURRENT));
|
||||
}
|
||||
|
||||
protected static boolean pickUpEnabled(Context context) {
|
||||
return PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getBoolean(GESTURE_PICK_UP_KEY, false);
|
||||
protected static void enableGesture(Context context, String gesture, boolean enable) {
|
||||
PreferenceManager.getDefaultSharedPreferences(context).edit()
|
||||
.putBoolean(gesture, enable).apply();
|
||||
}
|
||||
|
||||
protected static boolean handwaveGestureEnabled(Context context) {
|
||||
protected static boolean isGestureEnabled(Context context, String gesture) {
|
||||
return PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getBoolean(GESTURE_HAND_WAVE_KEY, false);
|
||||
.getBoolean(gesture, false);
|
||||
}
|
||||
|
||||
protected static boolean pocketGestureEnabled(Context context) {
|
||||
return PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getBoolean(GESTURE_POCKET_KEY, false);
|
||||
protected static boolean isPickUpEnabled(Context context) {
|
||||
return isGestureEnabled(context, GESTURE_PICK_UP_KEY);
|
||||
}
|
||||
|
||||
protected static boolean isHandwaveGestureEnabled(Context context) {
|
||||
return isGestureEnabled(context, GESTURE_HAND_WAVE_KEY);
|
||||
}
|
||||
|
||||
protected static boolean isPocketGestureEnabled(Context context) {
|
||||
return isGestureEnabled(context, GESTURE_POCKET_KEY);
|
||||
}
|
||||
|
||||
protected static boolean sensorsEnabled(Context context) {
|
||||
return pickUpEnabled(context) || handwaveGestureEnabled(context)
|
||||
|| pocketGestureEnabled(context);
|
||||
return isPickUpEnabled(context) || isHandwaveGestureEnabled(context)
|
||||
|| isPocketGestureEnabled(context);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
set -e
|
||||
|
||||
DEVICE_COMMON=msm8937-common
|
||||
VENDOR=xiaomi
|
||||
VENDOR=lenovo
|
||||
|
||||
# Load extract_utils and do some sanity checks
|
||||
MY_DIR="${BASH_SOURCE%/*}"
|
||||
|
@ -34,8 +34,8 @@ if [ ! -f "$HELPER" ]; then
|
|||
fi
|
||||
. "$HELPER"
|
||||
|
||||
# Default to sanitizing the vendor folder before extraction
|
||||
CLEAN_VENDOR=true
|
||||
# Default not to sanitizing the vendor folder before extraction
|
||||
CLEAN_VENDOR=false
|
||||
|
||||
while [ "$1" != "" ]; do
|
||||
case $1 in
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
},
|
||||
{
|
||||
"repository": "android_kernel_xiaomi_msm8937",
|
||||
"target_path": "kernel/xiaomi/msm8937"
|
||||
"target_path": "kernel/lenovo/msm8937"
|
||||
}
|
||||
]
|
||||
|
|
32
manifest.xml
32
manifest.xml
|
@ -11,7 +11,7 @@
|
|||
is removed from the manifest file and written by assemble_vintf
|
||||
at build time.
|
||||
-->
|
||||
<manifest version="1.0" type="device">
|
||||
<manifest version="1.0" type="device" target-level="1">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.audio</name>
|
||||
<transport>hwbinder</transport>
|
||||
|
@ -74,7 +74,7 @@
|
|||
<hal format="hidl">
|
||||
<name>android.hardware.configstore</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<version>1.1</version>
|
||||
<interface>
|
||||
<name>ISurfaceFlingerConfigs</name>
|
||||
<instance>default</instance>
|
||||
|
@ -144,7 +144,7 @@
|
|||
<hal format="hidl">
|
||||
<name>android.hardware.health</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>IHealth</name>
|
||||
<instance>default</instance>
|
||||
|
@ -202,7 +202,7 @@
|
|||
<hal format="hidl">
|
||||
<name>android.hardware.power</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<version>1.1</version>
|
||||
<interface>
|
||||
<name>IPower</name>
|
||||
<instance>default</instance>
|
||||
|
@ -250,12 +250,21 @@
|
|||
<hal format="hidl">
|
||||
<name>android.hardware.soundtrigger</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.0</version>
|
||||
<version>2.1</version>
|
||||
<interface>
|
||||
<name>ISoundTriggerHw</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.usb</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IUsb</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.vibrator</name>
|
||||
<transport>hwbinder</transport>
|
||||
|
@ -268,16 +277,25 @@
|
|||
<hal format="hidl">
|
||||
<name>android.hardware.wifi</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.1</version>
|
||||
<version>1.2</version>
|
||||
<interface>
|
||||
<name>IWifi</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.wifi.supplicant</name>
|
||||
<name>android.hardware.wifi.hostapd</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.0</version>
|
||||
<interface>
|
||||
<name>IHostapd</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.wifi.supplicant</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>1.1</version>
|
||||
<interface>
|
||||
<name>ISupplicant</name>
|
||||
<instance>default</instance>
|
||||
|
|
15
msm8937.mk
15
msm8937.mk
|
@ -67,7 +67,7 @@ PRODUCT_PACKAGES += \
|
|||
android.hardware.audio@2.0-impl \
|
||||
android.hardware.audio@2.0-service \
|
||||
android.hardware.audio.effect@2.0-impl \
|
||||
android.hardware.soundtrigger@2.0-impl
|
||||
android.hardware.soundtrigger@2.1-impl
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
|
||||
|
@ -83,9 +83,6 @@ PRODUCT_COPY_FILES += \
|
|||
$(VENDOR_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
|
||||
|
||||
# Bluetooth
|
||||
PRODUCT_PACKAGES += \
|
||||
libbt-vendor
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.bluetooth@1.0-service
|
||||
|
||||
|
@ -167,8 +164,8 @@ PRODUCT_COPY_FILES += \
|
|||
|
||||
# Healthd
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.health@1.0-impl \
|
||||
android.hardware.health@1.0-service
|
||||
android.hardware.health@2.0-impl \
|
||||
android.hardware.health@2.0-service
|
||||
|
||||
# HIDL
|
||||
PRODUCT_PACKAGES += \
|
||||
|
@ -284,7 +281,7 @@ PRODUCT_COPY_FILES += \
|
|||
|
||||
# Power
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power@1.0-service-qti
|
||||
android.hardware.power@1.1-service-qti
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(VENDOR_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
|
||||
|
@ -349,6 +346,10 @@ PRODUCT_BOOT_JARS += \
|
|||
PRODUCT_PACKAGES += \
|
||||
$(VENDOR_PATH)/configs/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf
|
||||
|
||||
# USB
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.usb@1.0-service.basic
|
||||
|
||||
# Vibrator
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.vibrator@1.0-impl \
|
||||
|
|
|
@ -120,10 +120,6 @@ vendor/lib64/vendor.qti.hardware.data.latency@1.0_vendor.so|9f0ccc560f84682b08e1
|
|||
# Charger - from tissot 8.1.0 OPM1.171019.026
|
||||
vendor/bin/hvdcp_opti|57e6c5bd929173d537c7003096cab430e9422aff
|
||||
|
||||
# Consumer IR - from santoni (Redmi 4X)
|
||||
lib/hw/consumerir.default.so:vendor/lib/hw/consumerir.default.so|53830d64d63d6cc405209d8d4cafea102dcd7b54
|
||||
lib64/hw/consumerir.default.so:vendor/lib64/hw/consumerir.default.so|f7c90fd1d6a0c5e6cf620aa23a862e780feaaf6c
|
||||
|
||||
# DPM - from tissot 8.1.0 OPM1.171019.026
|
||||
vendor/bin/dpmQmiMgr|e4c66e1111b1d1ca0ef3912730dfcca7d8654f88
|
||||
vendor/lib64/com.qualcomm.qti.dpm.api@1.0_vendor.so|6f55fc94e316cae982b83130dd1a9e80d86813f0
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
/dev/block/bootdevice/by-name/dsp /dsp ext4 ro,nosuid,nodev wait
|
||||
/dev/block/bootdevice/by-name/modem /firmware vfat ro,context=u:object_r:firmware_file:s0,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337 wait
|
||||
/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
|
||||
/dev/block/bootdevice/by-name/config /frp emmc defaults defaults
|
||||
|
||||
/devices/soc/7864900.sdhci/mmc_host* auto auto nosuid,nodev wait,voldmanaged=sdcard1:auto,noemulatedsd,encryptable=footer
|
||||
/devices/soc/78db000.usb/msm_hsusb_host* auto auto nosuid,nodev wait,voldmanaged=usbotg:auto
|
||||
|
|
|
@ -175,11 +175,8 @@ on post-fs-data
|
|||
|
||||
# Create the directories used by the Wireless subsystem
|
||||
mkdir /data/vendor/wifi 0770 wifi wifi
|
||||
mkdir /data/misc/wifi 0770 wifi wifi
|
||||
mkdir /data/misc/wifi/sockets 0770 wifi wifi
|
||||
mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi
|
||||
mkdir /data/misc/dhcp 0770 dhcp dhcp
|
||||
chown dhcp dhcp /data/misc/dhcp
|
||||
mkdir /data/vendor/wifi/wpa 0770 wifi wifi
|
||||
mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi
|
||||
|
||||
# Create netmgr log dir
|
||||
mkdir /data/vendor/netmgr 0770 radio radio
|
||||
|
@ -352,12 +349,10 @@ on property:sys.sysctl.tcp_adv_win_scale=*
|
|||
write /proc/sys/net/ipv4/tcp_adv_win_scale ${sys.sysctl.tcp_adv_win_scale}
|
||||
|
||||
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
|
||||
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
|
||||
-I/vendor/etc/wifi/p2p_supplicant_overlay.conf -N \
|
||||
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
|
||||
-I/vendor/etc/wifi/wpa_supplicant_overlay.conf \
|
||||
-O/data/misc/wifi/sockets -puse_p2p_group_interface=1 -dd \
|
||||
-O/data/vendor/wifi/sockets -puse_p2p_group_interface=1 -dd \
|
||||
-g@android:wpa_wlan0
|
||||
interface android.hardware.wifi.supplicant@1.0::ISupplicant default
|
||||
interface android.hardware.wifi.supplicant@1.1::ISupplicant default
|
||||
class main
|
||||
socket wpa_wlan0 dgram 660 wifi wifi
|
||||
disabled
|
||||
|
|
2
sepolicy/vendor/file_contexts
vendored
2
sepolicy/vendor/file_contexts
vendored
|
@ -1,5 +1,5 @@
|
|||
# Biometric
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service\.xiaomi_msm8937 u:object_r:hal_fingerprint_msm8937_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service\.lenovo_msm8937 u:object_r:hal_fingerprint_msm8937_exec:s0
|
||||
|
||||
# Bluetooth
|
||||
/(vendor|system/vendor)/bin/hci_qcomm_init u:object_r:bluetooth_loader_exec:s0
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
set -e
|
||||
|
||||
DEVICE_COMMON=msm8937-common
|
||||
VENDOR=xiaomi
|
||||
VENDOR=lenovo
|
||||
|
||||
INITIAL_COPYRIGHT_YEAR=2018
|
||||
|
||||
|
@ -40,7 +40,7 @@ fi
|
|||
setup_vendor "$DEVICE_COMMON" "$VENDOR" "$LINEAGE_ROOT" true
|
||||
|
||||
# Copyright headers and guards
|
||||
write_headers "land santoni"
|
||||
write_headers "karate"
|
||||
|
||||
# The standard common blobs
|
||||
write_makefiles "$MY_DIR"/proprietary-files-qc.txt true
|
||||
|
|
|
@ -20,7 +20,7 @@ from hashlib import sha1
|
|||
import sys
|
||||
|
||||
device='msm8937-common'
|
||||
vendor='xiaomi'
|
||||
vendor='lenovo'
|
||||
|
||||
lines = [ line for line in open('proprietary-files-qc.txt', 'r') ]
|
||||
vendorPath = '../../../vendor/' + vendor + '/' + device + '/proprietary'
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
VNDK_SP_LIBRARIES := \
|
||||
android.hardware.graphics.allocator@2.0 \
|
||||
android.hardware.graphics.common@1.0 \
|
||||
android.hardware.graphics.common@1.1 \
|
||||
android.hardware.graphics.mapper@2.0 \
|
||||
android.hardware.graphics.mapper@2.1 \
|
||||
android.hardware.renderscript@1.0 \
|
||||
android.hidl.memory@1.0 \
|
||||
libRSCpuRef \
|
||||
|
@ -24,8 +26,11 @@ VNDK_SP_LIBRARIES := \
|
|||
liblzma \
|
||||
libpng \
|
||||
libunwind \
|
||||
libunwindstack \
|
||||
libutils \
|
||||
libz
|
||||
libz \
|
||||
libutilscallstack \
|
||||
libdexfile
|
||||
|
||||
EXTRA_VENDOR_LIBRARIES := \
|
||||
android.hidl.base@1.0 \
|
||||
|
@ -34,10 +39,18 @@ EXTRA_VENDOR_LIBRARIES := \
|
|||
vendor.display.config@1.0 \
|
||||
vendor.qti.hardware.iop@1.0
|
||||
|
||||
INSTALL_IN_HW_SUBDIR := android.hidl.memory@1.0-impl
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# VNDK Modules
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
ifdef PLATFORM_VNDK_VERSION
|
||||
VNDK_SP_DIR := vndk-sp-$(PLATFORM_VNDK_VERSION)
|
||||
else
|
||||
VNDK_SP_DIR := vndk-sp
|
||||
endif
|
||||
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
define define-vndk-lib
|
||||
|
@ -50,7 +63,7 @@ LOCAL_MULTILIB := first
|
|||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_INSTALLED_MODULE_STEM := $1.so
|
||||
LOCAL_MODULE_SUFFIX := .so
|
||||
LOCAL_MODULE_RELATIVE_PATH := $3
|
||||
LOCAL_MODULE_RELATIVE_PATH := $3$(if $(filter $1,$(INSTALL_IN_HW_SUBDIR)),/hw)
|
||||
LOCAL_VENDOR_MODULE := $4
|
||||
include $$(BUILD_PREBUILT)
|
||||
|
||||
|
@ -65,7 +78,7 @@ LOCAL_MULTILIB := 32
|
|||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_INSTALLED_MODULE_STEM := $1.so
|
||||
LOCAL_MODULE_SUFFIX := .so
|
||||
LOCAL_MODULE_RELATIVE_PATH := $3
|
||||
LOCAL_MODULE_RELATIVE_PATH := $3$(if $(filter $1,$(INSTALL_IN_HW_SUBDIR)),/hw)
|
||||
LOCAL_VENDOR_MODULE := $4
|
||||
include $$(BUILD_PREBUILT)
|
||||
endif # TARGET_TRANSLATE_2ND_ARCH is not true
|
||||
|
@ -73,12 +86,13 @@ endif # TARGET_2ND_ARCH is not empty
|
|||
endef
|
||||
|
||||
$(foreach lib,$(VNDK_SP_LIBRARIES),\
|
||||
$(eval $(call define-vndk-lib,$(lib),vndk-sp-gen,vndk-sp,)))
|
||||
$(eval $(call define-vndk-lib,$(lib),vndk-sp-gen,$(VNDK_SP_DIR),)))
|
||||
$(foreach lib,$(VNDK_SP_EXT_LIBRARIES),\
|
||||
$(eval $(call define-vndk-lib,$(lib),vndk-sp-ext-gen,vndk-sp,true)))
|
||||
$(eval $(call define-vndk-lib,$(lib),vndk-sp-ext-gen,$(VNDK_SP_DIR),true)))
|
||||
$(foreach lib,$(EXTRA_VENDOR_LIBRARIES),\
|
||||
$(eval $(call define-vndk-lib,$(lib),vndk-ext-gen,,true)))
|
||||
|
||||
VNDK_SP_DIR :=
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
# Phony Package
|
||||
|
@ -92,3 +106,8 @@ LOCAL_REQUIRED_MODULES := \
|
|||
$(addsuffix .vndk-sp-ext-gen,$(VNDK_SP_EXT_LIBRARIES)) \
|
||||
$(addsuffix .vndk-ext-gen,$(EXTRA_VENDOR_LIBRARIES))
|
||||
include $(BUILD_PHONY_PACKAGE)
|
||||
|
||||
VNDK_SP_LIBRARIES :=
|
||||
VNDK_SP_EXT_LIBRARIES :=
|
||||
EXTRA_VENDOR_LIBRARIES :=
|
||||
INSTALL_IN_HW_SUBDIR :=
|
||||
|
|
Loading…
Reference in a new issue