#!/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/android.hardware.nfc@1.0-impl-bcm.so
# 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/android.hardware.ir@1.0-service.cancro
rm -rf /system/system/vendor/etc/init/android.hardware.ir@1.0-service.cancro.rc
# 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
共12个文件
sh:2个
functions:1个
img:1个
需积分: 0 0 下载量 30 浏览量
2022-12-28
16:08:35
上传
评论
收藏 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.
资源推荐
资源详情
资源评论
收起资源包目录
Havoc-OS-v3.4-20200410-cancro-Final.zip (12个子文件)
system.transfer.list 5KB
boot.img 9.41MB
system.new.dat.br 460.25MB
install
bin
device_check.sh 2KB
resize2fs_static 552KB
backuptool.functions 1KB
backuptool.sh 2KB
system.patch.dat 0B
META-INF
com
android
otacert 2KB
metadata 326B
google
android
update-binary 1.53MB
updater-script 3KB
共 12 条
- 1
资源评论
Black_Boa
- 粉丝: 2
- 资源: 126
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- C183579-123578-c1235789.jpg
- Qt5.14 绘画板 Qt Creator C++项目
- python实现Excel表格合并
- Java实现读取Excel批量发送邮件.zip
- 【java毕业设计】商城后台管理系统源码(springboot+vue+mysql+说明文档).zip
- 【java毕业设计】开发停车位管理系统(调用百度地图API)源码(springboot+vue+mysql+说明文档).zip
- 星耀软件库(升级版).apk.1
- 基于Django后端和Vue前端的多语言购物车项目设计源码
- 基于Python与Vue的浮光在线教育平台源码设计
- 31129647070291Eclipson MXS R.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功