diff options
| author | Abhisek Devkota <ciwrl@lineageos.org> | 2017-12-28 00:23:46 -0800 |
|---|---|---|
| committer | Abhisek Devkota <ciwrl@lineageos.org> | 2018-01-17 22:45:18 -0800 |
| commit | e20d6ebb04ff5f9501c9a50ce2517450f736a217 (patch) | |
| tree | a699813ac7c63da7f4350ed96cf0ba9b848199f3 | |
| parent | f88091024dc98729d2d874795da23086d8d33bfd (diff) | |
Initial Proprietary files & extract
Change-Id: Ieb716f7bd32fd2f9ebe49b5001c6f6f8e999aab7
| -rwxr-xr-x | extract-files.sh | 61 | ||||
| -rw-r--r-- | lineage-proprietary-files.txt | 91 | ||||
| -rwxr-xr-x | setup-makefiles.sh | 60 | ||||
| -rw-r--r-- | walleye/Android.mk | 52 |
4 files changed, 264 insertions, 0 deletions
diff --git a/extract-files.sh b/extract-files.sh new file mode 100755 index 0000000..c48b5b0 --- /dev/null +++ b/extract-files.sh @@ -0,0 +1,61 @@ +#!/bin/bash +# +# 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. +# 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. + +set -e + +VENDOR=google +DEVICE=walleye + +# Load extractutils and do some sanity checks +MY_DIR="${BASH_SOURCE%/*}" +if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi + +LINEAGE_ROOT="$MY_DIR"/../../.. + +HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh +if [ ! -f "$HELPER" ]; then + echo "Unable to find helper script at $HELPER" + exit 1 +fi +. "$HELPER" + +# Default to sanitizing the vendor folder before extraction +CLEAN_VENDOR=true + +while [ "$1" != "" ]; do + case $1 in + -n | --no-cleanup ) CLEAN_VENDOR=false + ;; + -s | --section ) shift + SECTION=$1 + CLEAN_VENDOR=false + ;; + * ) SRC=$1 + ;; + esac + shift +done + +if [ -z "$SRC" ]; then + SRC=adb +fi + +# Initialize the helper +setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false "$CLEAN_VENDOR" + +extract "$MY_DIR"/lineage-proprietary-files.txt "$SRC" + +"$MY_DIR"/setup-makefiles.sh diff --git a/lineage-proprietary-files.txt b/lineage-proprietary-files.txt new file mode 100644 index 0000000..faedc41 --- /dev/null +++ b/lineage-proprietary-files.txt @@ -0,0 +1,91 @@ +# CNE +etc/cne/Nexus/ATT/ATT_profiles.xml +etc/cne/Nexus/ROW/ROW_profiles.xml +etc/cne/Nexus/VZW/VZW_profiles.xml + +# Firmware +etc/firmware/dnd.descriptor +etc/firmware/dnd.sound_model +etc/firmware/music_detector.descriptor +etc/firmware/music_detector.sound_model + +# Permissions +etc/permissions/com.android.sdm.plugins.connmo.xml +etc/permissions/com.android.sdm.plugins.sprintdm.xml +etc/permissions/com.verizon.apn.xml +etc/permissions/com.verizon.embms.xml +etc/permissions/com.verizon.llkagent.xml +etc/permissions/com.verizon.provider.xml +etc/permissions/com.verizon.services.xml +etc/permissions/features-verizon.xml +etc/permissions/obdm_permissions.xml +etc/permissions/privapp-permissions-wahoo.xml +etc/permissions/vzw_mvs_permissions.xml + +# Jars +-framework/cneapiclient.jar:PRESIGNED +-framework/com.quicinc.cne.api-V1.0-java.jar:PRESIGNED +-framework/com.quicinc.cne.jar:PRESIGNED +-framework/embmslibrary.jar:PRESIGNED +-framework/rcsimssettings.jar:PRESIGNED +-framework/vendor.qti.qcril.am-V1.0-java.jar +-framework/VerizonUnifiedSettings.jar:PRESIGNED + +# Lib64 +lib64/com.qualcomm.qti.imsrtpservice@1.0.so +lib64/libaptX_encoder.so +lib64/libaptXHD_encoder.so +lib64/libdiag_system.so +lib64/libimscamera_jni.so +lib64/libimsmedia_jni.so +lib64/lib-imsvideocodec.so +lib64/lib-imsvtextutils.so +lib64/lib-imsvt.so +lib64/lib-imsvtutils.so +lib64/librcc.so + +# Lib +lib/com.qualcomm.qti.imsrtpservice@1.0.so +lib/libdiag_system.so +lib/libdmengine.so +lib/libdmjavaplugin.so +lib/libimscamera_jni.so +lib/libimsmedia_jni.so +lib/lib-imsvideocodec.so +lib/lib-imsvtextutils.so +lib/lib-imsvt.so +lib/lib-imsvtutils.so +lib/librcc.so + +# App +-app/datastatusnotification/datastatusnotification.apk +-app/embms/embms.apk +-app/ModemService/ModemService.apk +-app/ims/ims.apk +-app/QtiTelephonyService/QtiTelephonyService.apk +-app/SSRestartDetector/SSRestartDetector.apk +-app/Tycho/Tycho.apk:app/Tycho/Tycho.apk:PRESIGNED +-app/VZWAPNLib/VZWAPNLib.apk:app/VZWAPNLib/VZWAPNLib.apk:PRESIGNED +-app/vzw_msdc_api/vzw_msdc_api.apk:app/vzw_msdc_api/vzw_msdc_api.apk:PRESIGNED + +# Priv-app +-priv-app/CarrierServices/CarrierServices.apk:priv-app/CarrierServices/CarrierServices.apk:PRESIGNED +-priv-app/CarrierSetup/CarrierSetup.apk:priv-app/CarrierSetup/CarrierSetup.apk:PRESIGNED +-priv-app/CNEService/CNEService.apk +-priv-app/ConnMO/ConnMO.apk +-priv-app/DCMO/DCMO.apk +-priv-app/DiagMon/DiagMon.apk +-priv-app/DMService/DMService.apk +-priv-app/GCS/GCS.apk:priv-app/GCS/GCS.apk:PRESIGNED +-priv-app/HotwordEnrollmentOKGoogleWCD9340/HotwordEnrollmentOKGoogleWCD9340.apk:priv-app/HotwordEnrollmentOKGoogleWCD9340/HotwordEnrollmentOKGoogleWCD9340.apk:PRESIGNED +-priv-app/HotwordEnrollmentTGoogleWCD9340/HotwordEnrollmentTGoogleWCD9340.apk:priv-app/HotwordEnrollmentTGoogleWCD9340/HotwordEnrollmentTGoogleWCD9340.apk:PRESIGNED +-priv-app/HotwordEnrollmentXGoogleWCD9340/HotwordEnrollmentXGoogleWCD9340.apk:priv-app/HotwordEnrollmentXGoogleWCD9340/HotwordEnrollmentXGoogleWCD9340.apk:PRESIGNED +-priv-app/obdm_stub/obdm_stub.apk:priv-app/obdm_stub/obdm_stub.apk:PRESIGNED +-priv-app/OBDM_Permissions/OBDM_Permissions.apk:priv-app/OBDM_Permissions/OBDM_Permissions.apk:PRESIGNED +-priv-app/OemDmTrigger/OemDmTrigger.apk +-priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk +-priv-app/SprintDM/SprintDM.apk +-priv-app/SprintHM/SprintHM.apk +-priv-app/VzwOmaTrigger/VzwOmaTrigger.apk:priv-app/VzwOmaTrigger/VzwOmaTrigger.apk:PRESIGNED + + diff --git a/setup-makefiles.sh b/setup-makefiles.sh new file mode 100755 index 0000000..a6b0642 --- /dev/null +++ b/setup-makefiles.sh @@ -0,0 +1,60 @@ +#!/bin/bash +# +# 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. +# 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. + +set -e + +VENDOR=google +DEVICE=walleye + +# Load extractutils and do some sanity checks +MY_DIR="${BASH_SOURCE%/*}" +if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi + +LINEAGE_ROOT="$MY_DIR"/../../.. + +HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh +if [ ! -f "$HELPER" ]; then + echo "Unable to find helper script at $HELPER" + exit 1 +fi +. "$HELPER" + +# Write custom header +function write_walleye_headers() { + write_header "$ANDROIDMK" + + cat << EOF >> "$ANDROIDMK" +LOCAL_PATH := \$(call my-dir) +EOF + cat << EOF >> "$ANDROIDMK" +ifneq (\$(filter walleye,\$(TARGET_DEVICE)),) +EOF + + write_header "$BOARDMK" + write_header "$PRODUCTMK" +} + +# Initialize the helper +setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" + +# Copyright headers and guards +write_walleye_headers + +# The standard blobs +write_makefiles "$MY_DIR"/lineage-proprietary-files.txt + +# Done +write_footers diff --git a/walleye/Android.mk b/walleye/Android.mk new file mode 100644 index 0000000..ffa6e7e --- /dev/null +++ b/walleye/Android.mk @@ -0,0 +1,52 @@ +# +# Copyright 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. +# 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 contains the module build definitions for the hardware-specific +# components for this device. +# +# As much as possible, those components should be built unconditionally, +# with device-specific names to avoid collisions, to avoid device-specific +# bitrot and build breakages. Building a component unconditionally does +# *not* include it on all devices, so it is safe even with hardware-specific +# components. + +ifneq ($(filter walleye, $(TARGET_DEVICE)),) + +LOCAL_PATH := $(call my-dir) + +include $(call all-makefiles-under,$(LOCAL_PATH)) + +IMS_LIBS := libimscamera_jni.so libimsmedia_jni.so +IMS_SYMLINKS := $(addprefix $(TARGET_OUT)/app/ims/lib/arm64/,$(notdir $(IMS_LIBS))) +$(IMS_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "IMS lib link: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf /system/lib64/$(notdir $@) $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(IMS_SYMLINKS) + +DM_LIBS := libdmengine.so libdmjavaplugin.so +DM_SYMLINKS := $(addprefix $(TARGET_OUT)/priv-app/DMService/lib/arm/,$(notdir $(DM_LIBS))) +$(DM_SYMLINKS): $(LOCAL_INSTALLED_MODULE) + @echo "DMService lib link: $@" + @mkdir -p $(dir $@) + @rm -rf $@ + $(hide) ln -sf /system/lib/$(notdir $@) $@ + +ALL_DEFAULT_INSTALLED_MODULES += $(DM_SYMLINKS) + +endif |
