From a79b6c22e10d04803954da8bb6133ef09e212dec Mon Sep 17 00:00:00 2001 From: Valera1978 Date: Fri, 24 Mar 2017 16:17:50 +0300 Subject: [PATCH] Update to Lineage --- BoardConfig.mk | 7 +- README.md | 70 ++++++++++++++++++- audio/audio_policy.conf | 0 bluetooth/bdroid_buildcfg.h | 2 +- camera/CameraWrapper.cpp | 4 +- configs/p2p_supplicant_overlay.conf | 1 - configs/wpa_supplicant_overlay.conf | 1 - device.mk | 11 ++- include/camera/CameraParametersExtra.h | 2 +- liblights/Android.mk | 2 +- liblights/lights.c | 4 +- .../SettingsProvider/res/values/config.xml | 2 +- .../apps/Settings/res/values/config.xml | 2 +- power/power_ext.c | 2 +- readme | 69 ------------------ ril/ril_shim.c | 2 +- sepolicy/bluetooth.te | 3 +- sepolicy/cameraserver.te | 6 +- sepolicy/file.te | 7 +- sepolicy/file_contexts | 44 ++++++++---- sepolicy/fingerprintd.te | 14 ++++ sepolicy/fsck.te | 1 + sepolicy/genfs_contexts | 3 +- sepolicy/healthd.te | 2 + sepolicy/hostapd.te | 1 + sepolicy/init.te | 2 + sepolicy/kernel.te | 2 + sepolicy/macloader.te | 8 ++- sepolicy/mediaserver.te | 6 +- sepolicy/mm-qcamerad.te | 10 +-- sepolicy/mpdecision.te | 2 + sepolicy/platform_app.te | 8 +-- sepolicy/priv_app.te | 3 + sepolicy/property_contexts | 10 +++ sepolicy/rild.te | 8 ++- sepolicy/rmt_storage.te | 2 +- sepolicy/system_app.te | 1 - sepolicy/system_server.te | 17 ++--- sepolicy/tee.te | 2 + sepolicy/thermal-engine.te | 1 + sepolicy/time_daemon.te | 2 - sepolicy/ueventd.te | 6 +- sepolicy/untrusted_app.te | 15 +--- sepolicy/vold.te | 1 + sepolicy/wpa.te | 4 ++ setup-makefiles.sh | 6 +- system.prop | 4 ++ 47 files changed, 223 insertions(+), 159 deletions(-) mode change 100644 => 100755 audio/audio_policy.conf delete mode 100755 configs/p2p_supplicant_overlay.conf delete mode 100755 configs/wpa_supplicant_overlay.conf delete mode 100755 readme create mode 100755 sepolicy/fingerprintd.te create mode 100755 sepolicy/fsck.te create mode 100755 sepolicy/healthd.te create mode 100755 sepolicy/hostapd.te create mode 100755 sepolicy/init.te create mode 100755 sepolicy/kernel.te create mode 100755 sepolicy/mpdecision.te create mode 100755 sepolicy/priv_app.te create mode 100755 sepolicy/property_contexts delete mode 100755 sepolicy/system_app.te create mode 100755 sepolicy/tee.te create mode 100755 sepolicy/thermal-engine.te delete mode 100755 sepolicy/time_daemon.te create mode 100755 sepolicy/vold.te create mode 100755 sepolicy/wpa.te diff --git a/BoardConfig.mk b/BoardConfig.mk index acf645b..a83f46e 100755 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2009 The CyanogenMod Project +# Copyright (C) 2017 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. @@ -48,6 +48,9 @@ TARGET_KERNEL_SOURCE := kernel/samsung/viennalte TARGET_KERNEL_CONFIG := msm8974_sec_defconfig TARGET_KERNEL_VARIANT_CONFIG := msm8974_sec_viennalteeur_cm_defconfig +# Init +TARGET_INIT_VENDOR_LIB := libinit_msm8974 + # Audio BOARD_HAVE_NEW_QCOM_CSDCLIENT := true USE_CUSTOM_AUDIO_POLICY := 1 @@ -110,7 +113,7 @@ BOARD_USES_MMCUTILS := true TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/rootdir/etc/fstab.qcom # SELinux -include device/qcom/sepolicy/sepolicy.mk +-include device/qcom/sepolicy/sepolicy.mk BOARD_SEPOLICY_DIRS += $(LOCAL_PATH)/sepolicy # WiFi diff --git a/README.md b/README.md index 2cfc0d4..83e481a 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,69 @@ -Copyright 2014 - The CyanogenMod Project +Device configuration for the Samsung Galaxy Note Pro 12.2 -Device configuration for Samsung Note Pro 12.2 (LTE) +Copyright (C) 2017 The LineageOS Project +Copyright (C) 2017 Valera Chigir + + 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 + +------------------------------------------------------------------ + +* Description + + This repository is for LineageOS on Samsung Galaxy Note Pro 12.2 (viennalte) + +* How To Build LineageOS for Samsung Galaxy Note Pro 12.2 + + - Make a workspace + +mkdir cm14 +cd cm14 + + - Do repo init & sync + +repo init -u git://github.com/LineageOS/android.git -b cm-14.1 + + - Create .repo/local_manifests/roomservice.xml with the following content: + + + + + + + + + + + + + + + +repo sync + + - Copy proprietary vendor files + + There are two options to to that. Connect your device with adb enabled and run: + +./extract-files.sh + + Or if you have the system image unpacked on your disk, then simply run: + + STOCK_ROM_DIR=/path/to/system ./extract-files.sh + + - Setup environment + +. build/envsetup.sh + + - Build cm14 + +brunch viennalte + +or another way: + +lunch lineage_viennalte-userdebug +export USE_CCACHE=1 +make -j10 bacon diff --git a/audio/audio_policy.conf b/audio/audio_policy.conf old mode 100644 new mode 100755 diff --git a/bluetooth/bdroid_buildcfg.h b/bluetooth/bdroid_buildcfg.h index 27f8a0a..4df3873 100755 --- a/bluetooth/bdroid_buildcfg.h +++ b/bluetooth/bdroid_buildcfg.h @@ -1,6 +1,6 @@ /* * Copyright (C) 2012 The Android Open Source Project - * Copyright (C) 2012 The CyanogenMod Project + * Copyright (C) 2017 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. diff --git a/camera/CameraWrapper.cpp b/camera/CameraWrapper.cpp index e806a09..6abcce0 100755 --- a/camera/CameraWrapper.cpp +++ b/camera/CameraWrapper.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012, The CyanogenMod Project + * Copyright (C) 2017, The LineageOS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ camera_module_t HAL_MODULE_INFO_SYM = { .hal_api_version = HARDWARE_HAL_API_VERSION, .id = CAMERA_HARDWARE_MODULE_ID, .name = "MSM8974 Camera Wrapper", - .author = "The CyanogenMod Project", + .author = "The LineageOS Project", .methods = &camera_module_methods, .dso = NULL, /* remove compilation warnings */ .reserved = {0}, /* remove compilation warnings */ diff --git a/configs/p2p_supplicant_overlay.conf b/configs/p2p_supplicant_overlay.conf deleted file mode 100755 index acbace2..0000000 --- a/configs/p2p_supplicant_overlay.conf +++ /dev/null @@ -1 +0,0 @@ -disable_scan_offload=1 diff --git a/configs/wpa_supplicant_overlay.conf b/configs/wpa_supplicant_overlay.conf deleted file mode 100755 index 06fc042..0000000 --- a/configs/wpa_supplicant_overlay.conf +++ /dev/null @@ -1 +0,0 @@ -p2p_disabled=1 diff --git a/device.mk b/device.mk index 74f721c..ddecb20 100755 --- a/device.mk +++ b/device.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2011 The CyanogenMod Project +# Copyright (C) 2017 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. @@ -35,6 +35,7 @@ $(call inherit-product-if-exists, frameworks/native/build/phone-xxxhdpi-3072-hwu # Permissions PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ frameworks/native/data/etc/android.hardware.consumerir.xml:system/etc/permissions/android.hardware.consumerir.xml \ frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \ frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ @@ -54,6 +55,10 @@ PRODUCT_PACKAGES += \ camera.msm8974 \ libxml2 +# Doze +PRODUCT_PACKAGES += \ + SamsungDoze + # GPS PRODUCT_PACKAGES += \ gps.msm8974 @@ -114,6 +119,10 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ Gello +# Root +PRODUCT_PACKAGES += \ + su + # Thermal PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/thermal-engine-8974.conf:system/etc/thermal-engine-8974.conf \ diff --git a/include/camera/CameraParametersExtra.h b/include/camera/CameraParametersExtra.h index 9ee51f1..bc2249d 100755 --- a/include/camera/CameraParametersExtra.h +++ b/include/camera/CameraParametersExtra.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2014 The CyanogenMod Project + * Copyright (C) 2017 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. diff --git a/liblights/Android.mk b/liblights/Android.mk index d1cb599..10de21a 100755 --- a/liblights/Android.mk +++ b/liblights/Android.mk @@ -1,4 +1,4 @@ -# Copyright (C) 2012 The CyanogenMod Project +# Copyright (C) 2017 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. diff --git a/liblights/lights.c b/liblights/lights.c index 3aff9ab..0cdcb5b 100755 --- a/liblights/lights.c +++ b/liblights/lights.c @@ -1,6 +1,6 @@ /* * Copyright (C) 2008 The Android Open Source Project - * Copyright (C) 2013 The CyanogenMod Project + * Copyright (C) 2017 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. @@ -165,6 +165,6 @@ struct hw_module_t HAL_MODULE_INFO_SYM = { .version_minor = 0, .id = LIGHTS_HARDWARE_MODULE_ID, .name = "Viennalte Lights Module", - .author = "The CyanogenMod Project", + .author = "The LineageOS Project", .methods = &lights_module_methods, }; diff --git a/overlay/frameworks/base/packages/SettingsProvider/res/values/config.xml b/overlay/frameworks/base/packages/SettingsProvider/res/values/config.xml index 13c9dfe..7f99839 100755 --- a/overlay/frameworks/base/packages/SettingsProvider/res/values/config.xml +++ b/overlay/frameworks/base/packages/SettingsProvider/res/values/config.xml @@ -1,7 +1,7 @@