Revert "land: Releasetool extension to remove fp blobs"
This reverts commit 8ee9910
.
This commit is contained in:
parent
10791ee17c
commit
f7596dae0b
4 changed files with 0 additions and 59 deletions
|
@ -1,2 +0,0 @@
|
|||
# Releasetools
|
||||
TARGET_RELEASETOOLS_EXTENSIONS := device/xiaomi/land
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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")
|
Loading…
Reference in a new issue