8 Star 11 Fork 8

GuaiYiHu / patchrom_miui8_xiaomi_aries

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
customize_miui_app.sh 904 Bytes
一键复制 编辑 原始数据 按行查看 历史
#/bin/bash
XMLMERGYTOOL=$PORT_ROOT/tools/ResValuesModify/jar/ResValuesModify
GIT_APPLY=$PORT_ROOT/tools/git.apply
curdir=`pwd`
function applyPatch () {
for patch in `find $1 -name "*.patch"`
do
cd out
$GIT_APPLY ../$patch
cd ..
for rej in `find $2 -name *.rej`
do
echo "Patch $patch fail"
exit 1
done
done
}
function appendSmaliPart() {
for file in `find $1/smali -name *.part`
do
filepath=`dirname $file`
filename=`basename $file .part`
dstfile="out/$filepath/$filename"
cat $file >> $dstfile
done
}
function mergyXmlPart() {
for file in `find $1/res -name *.xml.part`
do
src=`dirname $file`
dst=${src/$1/$2}
$XMLMERGYTOOL $src $dst
done
}
if [ $1 = "TeleService" ];then
applyPatch $1 $2
fi
if [ $1 = "InCallUI" ];then
$XMLMERGYTOOL $1/res/values $2/res/values
fi
C
1
https://gitee.com/guaiyihu/patchrom_miui8_aries.git
git@gitee.com:guaiyihu/patchrom_miui8_aries.git
guaiyihu
patchrom_miui8_aries
patchrom_miui8_xiaomi_aries
master

搜索帮助