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 @@