#!/sbin/sh
#
# Copyright (C) 2016 CyanogenMod 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.
#
RAW_ID=`cat /sys/devices/system/soc/soc0/raw_id`
if [ $RAW_ID == 1974 ] || [ $RAW_ID == 1972 ]; then
# Remove NFC
rm -rf /system/system/app/NfcNci
rm -rf /system/system/priv-app/Tag
rm -rf /system/system/lib/*nfc*
rm -rf /system/system/etc/*nfc*
rm -rf /system/system/vendor/etc/permissions/*nfc*
rm -rf /system/system/vendor/firmware/bcm2079x-b5_firmware.ncd
rm -rf /system/system/vendor/firmware/bcm2079x-b5_pre_firmware.ncd
rm -rf /system/system/vendor/lib/hw/[email protected]
# Use Mi4 audio configs
rm -f /system/system/etc/acdbdata/MTP/MTP_Speaker_cal.acdb
mv /system/system/etc/acdbdata/MTP/MTP_Speaker_cal_4.acdb /system/system/etc/acdbdata/MTP/MTP_Speaker_cal.acdb
rm -f /system/system/vendor/etc/mixer_paths.xml
mv /system/system/vendor/etc/mixer_paths_4.xml /system/system/vendor/etc/mixer_paths.xml
# Mi4 libdirac config
rm -f /system/system/vendor/etc/diracmobile.config
mv /system/system/vendor/etc/diracmobile_4.config /system/system/vendor/etc/diracmobile.config
else
# Remove Mi4 consumerir support
rm -rf /system/system/vendor/etc/permissions/android.hardware.consumerir.xml
rm -rf /system/system/vendor/bin/hw/[email protected]
rm -rf /system/system/vendor/etc/init/[email protected]
# Remove Mi4 audio configs
rm -rf /system/system/etc/acdbdata/MTP/MTP_Speaker_cal_4.acdb
rm -f /system/system/vendor/etc/mixer_paths_4.xml
# Remove Mi4 libdirac config
rm -f /system/system/vendor/etc/diracmobile_4.config
fi
if [ $RAW_ID == 1978 ] || [ $RAW_ID == 1972 ] || [ $RAW_ID == 1974 ]; then
# Supported device (Mi3w - 1978 or Mi4 - 1972, 1974)
return 0
else
# Unsupported device
return 1
fi
Havoc-OS-v3.4-20200410-cancro-Final.zip
需积分: 0 138 浏览量
更新于2022-12-28
收藏 468.91MB ZIP 举报
Havoc-OS is an after-market firmware based on Android Open Source Project, inspired by Google Pixel with a refined Material Design UI. We offer a smooth and stable experience for your device with a selected set of amazing features that provide an exceptional user experience.

Black_Boa
- 粉丝: 2
最新资源
- 信息化环境中智慧教室的构建策略探究.docx
- 云计算与智慧城架构建设.doc
- 企业网络安全解决方案.doc
- 大数据时代的轨道交通公共安全体系研究-软件技术.doc
- 基因工程在医学美容方面的发展.ppt
- 软件项目评审流程.doc
- 附表2-信息化项目计划申报表.doc
- PPT模板:简约小清新风信息化教学设计教师课件模板.pptx
- 大数据时代增强高校形势与政策课教学实效性的思考.docx
- 天融信网络安全专家服务白皮书.doc
- 基于 YOLOv4 算法的目标检测技术解析与应用探讨 基于 YOLOv4 模型的目标检测方法研究与实践指南 深入剖析 YOLOv4 算法在目标检测领域的应用 YOLOv4 目标检测算法的核心原理与实现
- 北邮函授--Java-技术--阶段作业.docx
- 基于物联网技术的开放式物理实验室建设.docx
- 互联网事业部部门规划.ppt
- 微机原理及接口技术习题练习册(有答案版).doc
- 互联网+背景下会计管理服务信息化现状探究.docx