1 Star 0 Fork 0

ray/devices-t329t

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
fix_keyguard_null 774 Bytes
一键复制 编辑 原始数据 按行查看 历史
xiaozihan2011 提交于 2014-09-08 09:10 . add project
#!/bin/bash
CUR_DIR=$PWD
SERVERTHREAD_SMALI=$CUR_DIR/services.jar.out/smali/com/android/server/ServerThread.smali
function updateServerThread()
{
sSmali=$1
if [ ! -f $sSmali ]; then
echo "ERROR: $sSmali doesn't exist!"
echo " Make sure you are on you device directory!"
exit 1
fi
yiServerLine=`grep 'Lcom\/baidu\/service\/YiServiceLoader;->main(Landroid\/content\/Context;)V' $sSmali`
sed -i '/Lcom\/baidu\/service\/YiServiceLoader;->main(Landroid\/content\/Context;)V/d' $sSmali
sed -i "/Lcom\/android\/server\/am\/ActivityManagerService;->setWindowManager(Lcom\/android\/server\/wm\/WindowManagerService;)V/a \\\n$yiServerLine" $sSmali
echo "update $sSmali done"
}
updateServerThread $SERVERTHREAD_SMALI
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/romerxzh/devices-t329t.git
git@gitee.com:romerxzh/devices-t329t.git
romerxzh
devices-t329t
devices-t329t
master

搜索帮助