-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlp2Setup (Source).sh
More file actions
117 lines (77 loc) · 4.85 KB
/
Copy pathlp2Setup (Source).sh
File metadata and controls
117 lines (77 loc) · 4.85 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#!/bin/bash
cd "$(dirname "$0")"
### Flashing aboot to use the oem adb_enable 1 command
./fastboot flash aboot aboot.img
./fastboot reboot bootloader
read -p " " -t 10
./fastboot oem adb_enable 1
./fastboot reboot
printf "Phone is rebooting. Please wait..."
printf "\n"
./adb wait-for-device
read -p "Phone detected :)" -t 25
### Using adb to start the service menu, and starting Launcher3
./adb shell am start -n com.android.launcher3/com.android.launcher3.Launcher
read -p " " -t 10
./adb shell settings put global development_settings_enabled 1
./adb shell am start -n com.arima.servicemenu/com.arima.servicemenu.SerivceMainActivity
read -p "Service Menu starting..." -t 10
### Setting Launcher3 as the default home application
printf "\n"
./adb shell cmd package set-home-activity "com.android.launcher3/com.android.launcher3.Launcher"
read -p " " -t 5
./adb shell am force-stop com.lightos
read -p " " -t 5
./adb shell input keyevent 3
read -p "Rebooting" -t 5
printf "\n"
### Rebooting to bring up home buttons
./adb reboot bootloader
read -p " " -t 15
### Using fastboot to enable Adb so this Script can detect the phone
./fastboot oem adb_enable 1
./fastboot reboot
printf "\n"
read -p "Rebooting" -t 90
printf "\n"
./adb wait-for-device
./adb shell am force-stop com.lightos
### Cleaning up
./adb shell am start -n com.arima.servicemenu/com.arima.servicemenu.SerivceMainActivity
read -p " " -t 10
./adb shell am force-stop com.arima.servicemenu
printf "\n"
echo "Done!"
read -p " " -t 3
printf "
@@* .@@@ @@@ @@ *@/
@@ @@ @@ @@ @@ @@@ (@* @@@@@ @@@@@ @@@@@@ @@ @@@@@
(@@ @@ @@ @@ @@@ (@* @@ *@/ @@ @@ @@ @@
@@ @@ @@ ,@@ @@. (@* @@ *@/ *@@@@@@@@@@ @@ @@
@@@@ @@@@ @@. (@* @@ *@/ @@ /@& @@ @@
#@@ @@ @@. (@* @@@ @@@ @@@@@@ @@ @@
@@@@@@@@@@&
@@ @@ @@ @@
@@@@@@@@@@ @@ @@ @@
@@ @@@ @@ @@
@@ @@ /@@/@*
@@@@@@@@@@* @@@# @@
.@@
@@@
.@@@@@@@@@ #@
.@@ @@ #@
.@@ @@ @@ @@ #@ @@& @@( @@@ @@
.@@ @@ *@& &@, #@ @@@@ @& @@
.@@ @@ &@ @@ #@ @@ @@ @& @@
.@@@@@@@@@@ @@@@ #@ @@, @@@@ @& @@
@@
@@@
@@@@@@@@@@@@.@, @@
@@ @@
@@ .@, @@@ @@ @@ ,@@( @@ @@ @@. @@ &@*
@@ .@, @@ @@ @@ @( @@ @@&&&&&&@@ @@ @&
@@ .@, @@ @@ @@ /@( @@ @@ @@ @@
@@ .@, @@ @@ @@@@@@@@( @@ @@@&&@@@ @@@
@@ @@
*@@@@@@ @@@
"