#!/bin/bash
# usage: ./mysed.sh dir
# ./mysed Settingsfor files in `find $1 -name *.smali`
do
echo “$files”
sed -i ‘s/com.android.settings/com.android.stocksettings/g’ $filesdone
for replaceClass in `find $1 -name *.smali`
do
echo “$files”
sed -i ‘s/com/android/settings/com/android/stocksettings/g’ $replaceClassdone
for file in `find $1 -name “*.xml”`
do
echo “$file”
sed -i ‘s/com.android.settings/com.android.stocksettings/g’ $filedone
mv $1/smali/com/android/settings/ $1/smali/com/android/stocksettings/