1 Star 0 Fork 0

沐心/MagiskModuleEnableChinaForVoTELtoPIxel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
customize.sh 1.72 KB
一键复制 编辑 原始数据 按行查看 历史
沐心 提交于 2021-07-22 08:59 . Update customize.sh
#
# This file is part of Pixel Enabler China For VoTEL.
#
# Pixel Enabler China For VoTEL is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# Copyright (C) 2021 Pixel Enabler China For VoTEL Contributors
#
# shellcheck disable=SC2034
SKIPUNZIP=1
VERSION=$(grep_prop version "${TMPDIR}/module.prop")
ui_print "- Pixel Enabler China For VoTEL version ${VERSION}"
ui_print "- Pixel 启用中国 VoTEL 模块 版本号 ${VERSION}"
# Install
ui_print "- Start Install"
ui_print "- 开始安装"
DEVICE=`getprop ro.product.system.brand`
if [ $DEVICE != "google" ]; then
ui_print "=>不支持的品牌,如果要强制安装可在github下载Releases版"
abort " => Device '"$DEVICE"' is not supported yet,If you want to force the installation, please go to github to download the release version "
fi
# Extract Files
ui_print "- Extracting module files"
ui_print "- 导出模块文件"
unzip -o "$ZIPFILE" -d "$MODPATH"
# Edit mbn_sw.txt
SY=/vendor/rfs/msm/mpss/readonly/vendor/mbn/mcfg_sw/
MS=$MODPATH/system/vendor/rfs/msm/mpss/readonly/vendor/mbn/mcfg_sw/mbn_sw.txt
find "$SY" -name '*.mbn' 2>&1 | grep -oi "mcfg_sw/.*/Commercial/.*\.mbn" > "$MS"
# Set perm
set_perm_recursive "$MODPATH" 0 0 0755 0644
# Clean fdr
ui_print "- Removing /data/vendor/modem_fdr/fdr_check"
ui_print "- 删除 /data/vendor/modem_fdr/fdr_check"
rm /data/vendor/modem_fdr/fdr_check
ui_print "- The installation is complete !"
ui_print "- 安装完成!"
ui_print "- Welcome to Pixel Enabler China For VoTEL version Module!"
ui_print "- 欢迎使用 Pixel 启用中国 VoTEL 模块!"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mu_xin/MagiskModuleEnableChinaForVoTELtoPIxel.git
git@gitee.com:mu_xin/MagiskModuleEnableChinaForVoTELtoPIxel.git
mu_xin
MagiskModuleEnableChinaForVoTELtoPIxel
MagiskModuleEnableChinaForVoTELtoPIxel
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385