Commit f979a47b authored by Adam Lawson's avatar Adam Lawson
Browse files

nicky: Nuke unified script and clean up init

parent 241bb902
Loading
Loading
Loading
Loading
+2 −13
Original line number Diff line number Diff line
@@ -263,7 +263,8 @@ PRODUCT_PACKAGES += \
    android.hardware.neuralnetworks@1.3.vendor

# NFC/Secure Element
PRODUCT_PACKAGES += android.hardware.secure_element@1.2.vendor
PRODUCT_PACKAGES += \
    android.hardware.secure_element@1.2.vendor

# OMX
PRODUCT_PACKAGES += \
@@ -316,10 +317,6 @@ TARGET_COMMON_QTI_COMPONENTS := \
    vibrator \
    wfd

# Recovery
PRODUCT_COPY_FILES += \
    $(LOCAL_PATH)/unified_script.sh:install/bin/unified_script.sh

# RIL
PRODUCT_PACKAGES += \
    libprotobuf-cpp-full \
@@ -345,14 +342,6 @@ PRODUCT_SOONG_NAMESPACES += \
PRODUCT_PACKAGES += \
    android.hardware.thermal@2.0-service.qti

# Touch
PRODUCT_PACKAGES += \
    vendor.lineage.touch@1.0-service.oplus

# Trust
PRODUCT_PACKAGES += \
    vendor.lineage.trust@1.0-service

# Wi-Fi
PRODUCT_PACKAGES += \
    android.hardware.wifi@1.0-service \
+0 −7
Original line number Diff line number Diff line
@@ -23,13 +23,6 @@ prebuilt_etc {
    device_specific: true,
}

prebuilt_etc {
    name: "init.oppo.vendor.motor.rc",
    src: "init.oppo.vendor.motor.rc",
    sub_dir: "init/hw",
    device_specific: true,
}

prebuilt_etc {
    name: "init.qcom.rc",
    src: "init.qcom.rc",
+0 −2
Original line number Diff line number Diff line
@@ -4,8 +4,6 @@
# SPDX-License-Identifier: Apache-2.0
#

import /odm/etc/init/hw/init.oppo.vendor.motor.rc

on fs
    # Update touchpanel firmware in case we ship newer firmware in /odm
    write /proc/touchpanel/tp_fw_update 0
+1 −17
Original line number Diff line number Diff line
@@ -8,19 +8,3 @@
if grep -q simcardnum.doublesim=1 /proc/cmdline; then
    setprop vendor.radio.multisim.config dsds
fi
 No newline at end of file

# Get device codename
OPLUS_PROJECT=$(getprop "ro.boot.prjname")

if [ "$OPLUS_PROJECT" = "19601" ] || [ "$OPLUS_PROJECT" = "19605" ]; then
    # CN variant of Realme X and IN variant has different project name
    setprop ro.vendor.prjname 19605
    setprop ro.vendor.fp_type optical
elif [ "$OPLUS_PROJECT" = "18621" ] || [ "$OPLUS_PROJECT" = "19691" ]; then
    # Set common property for Realme 3 Pro and Realme 5 pro
    setprop ro.vendor.prjname 19691
    setprop ro.vendor.fp_type physical
else
   # Set as optical fingerprint for FOD overlays for realme XT
   setprop ro.vendor.fp_type optical
fi

init/init.oppo.vendor.motor.rc

deleted100644 → 0
+0 −51
Original line number Diff line number Diff line
##########################################################
# Copyright (C), 2008-2018, OPPO Mobile Comm Corp., Ltd
# VENDOR_EDIT
# File: init.oppo.rc
#
# Description:
#	Definitions for init.oppo.vendor.motor.rc.
#
# Version: 1.0
# Date created: 2018/10/30,20:27
# Author: Fei.Mo@PSW.BSP.Sensor
#
# --------------------------- Revision History: ------------------------------------
# <version>		<date>		<author>		<desc>
# Revision 1.0		2018/10/30	Fei.Mo@PSW.BSP.Sensor	Created
#######################################################

on init
    chown system system /sys/class/motor/direction
    chown system system /sys/class/motor/enable
    chown system system /sys/class/motor/speed
    chown system system /sys/class/motor/hall_data
    chown system system /sys/class/motor/hall_max_data
    chown system system /sys/class/motor/hall_calibration
    chown system system /sys/class/motor/in_calibration
    chown system system /sys/class/motor/hall_irq_count
    chown system system /sys/class/motor/move_state
    chown system system /sys/class/motor/sw_switch
    chown system system /sys/class/motor/manual2auto_switch
    chown system system /sys/class/motor/motor_test
    chown system system /sys/class/motor/force_move
    chown system system /sys/class/motor/mode
    chown system system /sys/class/motor/stop_range
    chown system system /sys/class/motor/stop_in_advance
    chmod 0666 /sys/class/motor/direction
    chmod 0666 /sys/class/motor/enable
    chmod 0666 /sys/class/motor/speed
    chmod 0666 /sys/class/motor/hall_data
    chmod 0666 /sys/class/motor/hall_max_data
    chmod 0666 /sys/class/motor/hall_calibration
    chmod 0666 /sys/class/motor/in_calibration
    chmod 0666 /sys/class/motor/hall_irq_count
    chmod 0666 /sys/class/motor/move_state
    chmod 0666 /sys/class/motor/sw_switch
    chmod 0666 /sys/class/motor/manual2auto_switch
    chmod 0666 /sys/class/motor/motor_test
    chmod 0666 /sys/class/motor/force_move
    chmod 0666 /sys/class/motor/mode
    chmod 0666 /sys/class/motor/stop_range
    chmod 0666 /sys/class/motor/stop_in_advance
Loading