diff --git a/board/releasetools.mk b/board/releasetools.mk deleted file mode 100644 index d615080..0000000 --- a/board/releasetools.mk +++ /dev/null @@ -1,2 +0,0 @@ -# Releasetools -TARGET_RELEASETOOLS_EXTENSIONS := device/xiaomi/land diff --git a/configs/check_features.sh b/configs/check_features.sh deleted file mode 100755 index 3733e9f..0000000 --- a/configs/check_features.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/sbin/sh -board_id=""; -for e in $(cat /proc/cmdline); -do - tmp=$(echo $e | grep "board_id" > /dev/null); - if [ "0" == "$?" ]; then - board_id=$(echo $e |cut -d":" -f0 |cut -d"=" -f2); - fi -done - -if [ "$board_id" = "S88537AC1" ]; | [ "$board_id" = "S88537EC1"]; then - # Redmi 3S Don't have FP - rm /system/bin/fingerprintd - rm /system/bin/gx_fpcmd - rm /system/bin/gx_fpd - rm /system/etc/permissions/android.hardware.fingerprint.xml - rm /system/lib/hw/fingerprint.msm8937.so - rm /system/lib/libcom_fingerprints_service.so - rm /system/lib64/hw/fingerprint.msm8937.so - rm /system/lib64/hw/fingerprint.goodix.so - rm /system/lib64/hw/gxfingerprint.default.so - rm /system/lib64/libcom_fingerprints_service.so - rm /system/lib64/libfp_client.so - rm /system/lib64/libfpservice.so - rm /system/lib64/libfpnav.so -fi diff --git a/product/fingerprint.mk b/product/fingerprint.mk index f90a5be..cc3aa99 100644 --- a/product/fingerprint.mk +++ b/product/fingerprint.mk @@ -5,7 +5,3 @@ PRODUCT_PACKAGES += \ # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml - -# Non-fp patch -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/check_features.sh:install/bin/check_features.sh diff --git a/releasetools.py b/releasetools.py deleted file mode 100755 index 29dc7a7..0000000 --- a/releasetools.py +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (C) 2016 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. -# 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. - - -def IncrementalOTA_InstallEnd(info): - ReplaceDeviceConfig(info) - -def FullOTA_InstallEnd(info): - ReplaceDeviceConfig(info) - -def ReplaceDeviceConfig(info): - info.script.Mount("/system") - info.script.AppendExtra('ui_print("Checking FP support");') - info.script.AppendExtra('run_program("/sbin/sh", "/tmp/install/bin/check_features.sh");') - info.script.Unmount("/system")