forked from raidzero/RZrecovery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RZR-noverify.sh
executable file
·43 lines (34 loc) · 1.41 KB
/
RZR-noverify.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
#!/sbin/sh
#disable/enable dalvik bytecode verification
CHOICE=$1
mount system
if [ "$CHOICE" == "disable" ]; then
echo "* print Disabling dalvik-bytecode verification..."
sed -i '/dalvik\.vm\.dexopt\-flags/d' /system/build.prop
sed -i '/dalvik\.vm\.verify\-bytecode/d' /system/build.prop
sed -i '/dalvik\.vm\.dexopt\-flags\=v\=n,o\=v/d' /system/build.prop
sed -i '/dexopt RZR noverify/d' /system/build.prop
sed -i '/dexopt noverify/d' /system/build.prop
echo "#dexopt RZR noverify#" >> /system/build.prop
echo "dalvik.vm.verify-bytecode=false" >> /system/build.prop
echo "dalvik.vm.dexopt-flags=v=n,o=v" >> /system/build.prop
echo "#dexopt RZR noverify#" >> /system/build.prop
fi
if [ "$CHOICE" == "enable" ]; then
echo "* print Enabling dalvik bytecode verification..."
sed -i '/dalvik\.vm\.dexopt\-flags/d' /system/build.prop
sed -i '/dalvik\.vm\.verify\-bytecode/d' /system/build.prop
sed -i '/dalvik\.vm\.dexopt\-flags\=v\=n,o\=v/d' /system/build.prop
sed -i '/dexopt RZR noverify/d' /system/build.prop
sed -i '/dexopt noverify/d' /system/build.prop
echo "#dexopt RZR noverify#" >> /system/build.prop
echo "dalvik.vm.verify-bytecode=true" >> /system/build.prop
echo "dalvik.vm.dexopt-flags=v=n,o=vd" >> /system/build.prop
echo "#dexopt RZR noverify#" >> /system/build.prop
fi
echo "* print Wiping dalvik-cache...."
mount data
rm -rf /cache/dalvik-cache/*
rm -rf /data/dalvik-cache/*
umount data
umount system