-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.sh~
executable file
·72 lines (72 loc) · 2.5 KB
/
start.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
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
echo "Starting Easyroot for OnePlus One..."
while true; do
read -p "Do you understand that there is an risk for bricking your OnePlus One? (Y/N) " yn
case $yn in
[Yy]* ) break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
echo ""
echo "Now you need to download and Place the UPDATE-SuperSU-vX.XX.zip on your OnePlus one. (Find the link at readme file)"
while true; do
read -p "Did you Place the UPDATE-SuperSU-vX.XX.zip on your OnePlus one? (Y/N) " y
case $yn in
[Yy]* ) break;;
* ) echo "You need to Place the UPDATE-SuperSU-vX.XX.zip on your OnePlus one in order to make this work!";;
esac
done
echo ""
echo "This will install Nexus tools (adb and fastboot)"
while true; do
read -p "Do you wish to install Nexus tools? (Y/N) " yn
case $yn in
[Yy]* ) bash <(curl https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh); break;;
[Nn]* ) break;;
* ) echo "Please answer yes or no.";;
esac
done
echo "Done installing nexus tools"
echo ""
echo "Starting the root progess"
echo "Please set your OnePlus one in Fastboot mode (if you dont know how to do this, read the forum post.)"
while true; do
read -p "Is your phone in fastboot mode? (Y/N) " y
case $yn in
[Yy]* ) break;;
* ) echo "Please set your OnePlus one in Fastboot mode...";;
esac
done
echo "Please connect your OnePlus one to your pc using a USB-Cable?"
while true; do
read -p "is your phone in Connected? (Y/N) " y
case $yn in
[Yy]* ) break;;
* ) echo "Please connect your OnePlus one";;
esac
done
echo "Downloading recovery.img..."
sleep "2"
wget https://raw.githubusercontent.com/mariogrip/easyroot-opo/master/recovery.img
while true; do
read -p "Are you ready to root your phone? (Y/N) " yn
case $yn in
[Yy]* ) break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
fastboot boot recovery.img
adb kill-server
echo "Starting fastboot, please wait..."
sleep "10"
echo "TWRP shuld be booted on your OnePlus now, now you need to Press Install, then you need to find and press UPDATE-SuperSU-vX.XX.zip that you placed on your OnePlus, then swipe to flash, when thats done, go back and choose reboot, then system..."
while true; do
read -p "Have you done this step? (Y/N) " y
case $yn in
[Yy]* ) break;;
* ) echo "You need to do this step in order to root your phone...";;
esac
done
echo "you OnePlus is now rooted :)"
sleep "5"