-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.sh
More file actions
72 lines (66 loc) · 2.18 KB
/
Copy pathservice.sh
File metadata and controls
72 lines (66 loc) · 2.18 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/system/bin/sh
# Made By ANDROID2468
# This is to fix voice/SMS service at startup on some of the VS986 models
sleep 10
#sees if your device is a VS986
dev="$(getprop ro.product.model)"
if [ "${dev}" = "LGVS986" ];
then
# sees if you got cell service
net="$(getprop |grep gsm.network.type)"
while [ "${net}" = "[gsm.network.type]: [Unknown]" ]
do
sleep 5
net="$(getprop |grep gsm.network.type)"
done
sleep 15
net="$(getprop |grep gsm.network.type)"
while [ "${net}" = "[gsm.network.type]: [Unknown]" ]
do
sleep 5
net="$(getprop |grep gsm.network.type)"
done
sim="$(getprop |grep sim.operator.alpha)"
# this checks if you have a verizon sim
if [ "${sim}" = "[gsm.sim.operator.alpha]: [Verizon]" ];
then
# this tests your phone has made an conection
gsmOp="$(getprop |grep gsm.operator.alpha)"
if [ "${gsmOp}" = "[gsm.operator.alpha]: []" ];
then
# This calls the testcall.com phone number
service call audio 7 i32 0 i32 0 i32 8
am start -a android.intent.action.CALL -d tel:"804-222-1111"
sleep 20
service call audio 7 i32 0 i32 7 i32 8
fi
fi
# if you loose service
while true
do
des="$(getprop |grep gsm.operator.alpha)"
if [ "${des}" = "[gsm.operator.alpha]: []" ];
then
# sees if you got cell service
net="$(getprop |grep gsm.network.type)"
while [ "${net}" = "[gsm.network.type]: [Unknown]" ]
do
sleep 5
net="$(getprop |grep gsm.network.type)"
done
sleep 5
net="$(getprop |grep gsm.network.type)"
while [ "${net}" = "[gsm.network.type]: [Unknown]" ]
do
sleep 5
net="$(getprop |grep gsm.network.type)"
done
# This calls the testcall.com phone number
service call audio 7 i32 0 i32 0 i32 8
am start -a android.intent.action.CALL -d tel:"804-222-1111"
sleep 20
service call audio 7 i32 0 i32 7 i32 8
fi
sleep 1
done
fi