forked from DevShaft/Backup-TA
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Backup-TA.sh
executable file
·35 lines (31 loc) · 1.15 KB
/
Backup-TA.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
#!/bin/bash
VERSION=9.11
echo "[ ------------------------------------------------------------ ]"
echo "[ Backup TA v$VERSION for Sony Xperia ]"
echo "[ ------------------------------------------------------------ ]"
echo "[ Initialization ]"
echo "[ ]"
echo "[ Make sure that you have USB Debugging enabled, you do ]"
echo "[ allow your computer ADB access by accepting its RSA key ]"
echo "[ (only needed for Android 4.2.2 or higher) and grant this ]"
echo "[ ADB process root permissions through superuser. ]"
echo "[ ]"
echo "[ On your computer, you need adb installed and working ]"
echo "[ ------------------------------------------------------------ ]"
echo
PS3='Please enter your choice: '
options=("Backup" "Exit")
select opt in "${options[@]}"
do
case $opt in
"Backup")
cd scripts/linux
./backup.sh $VERSION
exit
;;
"Exit")
break
;;
*) echo invalid option;;
esac
done