-
Notifications
You must be signed in to change notification settings - Fork 0
/
port.sh
executable file
·44 lines (39 loc) · 1.28 KB
/
port.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
rm -rf ril port
mkdir port ril
mv -f *i9500*.zip port/
cd port
unzip *i9500*.zip
cd ../
## SYSTEM ##
\cp -rf files/system/* port/system/
cp -rf files/boot.img port/boot.img
## RIL-RELATED CODES ##
cp -rf port/system/framework/telephony-common.jar ril/telephony-common.jar
cd ril
## DECOMPILE ##
jar -xvf telephony-common.jar
java -jar ../tool/baksmali.jar classes.dex -o out
cp -f ../smali/SamsungExynos5* out/com/android/internal/telephony/
java -jar ../tool/smali.jar out -o classes.dex
jar -cvf telephony-common.jar META-INF classes.dex
cp -f telephony-common.jar ../port/system/framework/telephony-common.jar
cd ../
## BUILD zip ##
sed -i 's/GT-I9500/SHV-E300S/g' port/system/build.prop
sed -i 's/i9500/e300s/g' port/system/build.prop
sed -i 's/ja3gxx/jalteskt/g' port/system/build.prop
sed -i 's/ja3g/jalteskt/g' port/system/build.prop
echo ro.telephony.ril_class=SamsungExynos5KorRIL >> port/system/build.prop
#gedit port/system/build.prop
#gedit edit_build.prop
echo "Almost done... Please modify build.prop And priv-app/Teleservice.apk(refer to README) to enable LTE setting and press ENTER."
read
cd port
rm -rf system/*~
zip -r CM.zip META-INF file_contexts recovery system boot.img
mv CM.zip ../CM.zip
cd ../
rm -rf port
rm -rf ril
echo Done! Modifiy ROM.zip to your favorite name!
read