-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart.sh
executable file
·209 lines (186 loc) · 4.34 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
#!/bin/bash
#kill -9 `pgrep -f bash`
#菜单
menu(){
clear
echo "
[快速打开一些隐藏活动]
0.电池优化
1.Android Pie电池管理器
2.开启极致神隐
3.应用和通知
4.打开自带文档APP
5.Google设置
6.
7.MIUI组件管理
8.adb激活工具
[类原生工具]
9.去除x号
10.跳过Google验证 (twrp下请先手动挂载system读写)
按回车键退出脚本.
"
read -p "Please enter the number:" open
case $open in
0)
i='com.android.settings/com.android.settings.Settings$HighPowerApplicationsActivity'
;;
1)
i='com.android.settings/com.android.settings.Settings$PowerUsageSummaryActivity'
p=`getprop ro.product.brand` ; [ $p = xiaomi ] && i='com.android.settings/com.android.settings.fuelgauge.PowerUsageSummary'
;;
2)
i='com.miui.powerkeeper/com.miui.powerkeeper.ui.ExtremePowerEntryActivity'
;;
3)
i='com.android.settings/com.android.settings.Settings$AppAndNotificationDashboardActivity'
;;
4)
i='com.android.documentsui/com.android.documentsui.LauncherActivity'
;;
5)
i='com.google.android.gms/com.google.android.gms.app.settings.GoogleSettingsIALink'
;;
6) echo "想不到吧!这个是空的! 欧拉欧拉欧拉欧拉欧拉欧拉欧拉欧拉欧拉欧拉欧拉欧拉欧拉欧拉"
;;
7)
package_miui #MIUI软件包管理
;;
8)
adbtools #adb快捷启动
;;
9)
captive_portal=connect.rom.miui.com/generate_204
#删除验证服务器
settings delete global captive_portal_https_url
settings delete global captive_portal_http_url
#重新设置验证服务器
settings put global captive_portal_http_url http://$captive_portal
settings put global captive_portal_https_url https://$captive_portal
;;
10)
#跳过Google验证
mount -o rw,remount /system
echo ro.setupwizard.mode=DISABLED >> /system/build.prop
dd if=/dev/zero of=/dev/block/bootdevice/by-name/splash
;;
*)
exit
esac
am start -n $i
sleep 1 && menu
}
adbtools (){
clear
echo "
1.激活冰箱
2.激活shizuku
3.激活黑域
4.激活空调狗
5.adb授权appops所需权限(托管设备管理员模式)
按回车键返回上一级
"
read -p "你想激活什么?(键入数字): " adb_output
case $adb_output in
1)
what_type
sleep 1 && adbtools
;;
2)
sh /sdcard/Android/data/moe.shizuku.privileged.api/files/start.sh
sleep 1 && adbtools
;;
3)
sh /data/data/me.piebridge.brevent/brevent.sh
sleep 1 && adbtools
;;
4)
dpm set-device-owner me.yourbay.airfrozen/.main.core.mgmt.MDeviceAdminReceiver
sleep 1 && adbtools
;;
5)
pm grant --user 0 rikka.appops android.permission.GET_APP_OPS_STATS
sleep 1 && adbtools
;;
*)
menu
esac
}
what_type (){
clear
echo "
1.普通adb模式
2.设备管理员模式
按回车键返回上一级
"
read -p "请选择激活方式:" what_type
case $what_type in
1)
sh /sdcard/Android/data/com.catchingnow.icebox/files/start.sh
sleep 2 && what_type
;;
2)
echo "哈哈想不到吧!我特么没有写这个东西"
echo
echo "因为冰箱的开发者已经自己写了一个Linux端的脚本,"
sleep 2 && what_type
;;
*)
adbtools
esac
}
package1=com.miui.video #小米视频
package2=com.miui.analytics #隐私搜集服务
package3=com.miui.player #小米音乐
package4=com.xiaomi.payment #米币支付
package5=com.xiaomi.ab #小米推广
package6=com.xiaomi.gamecenter.sdk.service #小米游戏服务
package7=com.mipay.wallet #小米钱包
package8=com.miui.systemAdSolution #广告组件
package_miui (){
echo "以下为去世列表(您只能输入a或b)"
echo
echo "1.小米视频 2.analytics 3.小米音乐 4.米币支付"
echo "5.mab 6.小米游戏服务 7.小米钱包 8.msa"
echo
echo "a.全部停用 b.全部卸载"
echo
echo "按回车键返回主菜单."
echo
read -p "请输入a 或者 b:" output
case $output in
a)
pm disable-user $package1
pm disable-user $package2
pm disable-user $package3
pm disable-user $package4
pm disable-user $package5
pm disable-user $package6
pm disable-user $package7
pm disable-user $package8
;;
b)
pm uninstall --user 0 $package1
pm uninstall --user 0 $package2
pm uninstall --user 0 $package3
pm uninstall --user 0 $package4
pm uninstall --user 0 $package5
pm uninstall --user 0 $package6
pm uninstall --user 0 $package7
pm uninstall --user 0 $package8
;;
*) menu
esac
sleep 1 && package_miui
}
checkroot() {
if [ `whoami` = "root" ];then
menu #主菜单
else
clear
echo "正在安装tsu依赖..."
apt install tsu -y
sleep 2 && echo
echo "尝试运行tsu -c bash start.sh"
fi
}
checkroot #主入口