-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-binary
145 lines (131 loc) · 3.58 KB
/
update-binary
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
#!/sbin/sh
umask 022
ui_print() { echo "$1"; }
rnm() {
ui_print "[-] Please install Magisk v20.4+!"
exit 1
}
REPLACE="
/vendor/data-app
/system/data-app
/system/cust
/system/app/XiaomiAccount
/system/app/Notes
/system/app/SoterService
/system/app/MiuiAudioMonitor
/system/app/facebook-appmanager
/system/app/Cit
/system/app/GFTest
/system/app/GlobalPackageInstaller
/system/app/GooglePrintRecommendationService
/system/app/MiuiBugReport
/system/app/Traceur
/system/app/TouchAssistant
/system/app/Lens
/system/app/mi_connect_service
/system/app/MaintenanceMode
/system/app/Netflix_activation
/system/app/CloudService
/system/app/com.miui.qr
/system/app/DebugLoggerUI
/system/app/HybridAccessory
/system/app/HybridPlatform
/system/app/InMipay
/system/app/SecurityCoreAdd
/system/app/XiaomiSimActivateService
/system/app/SystemAppUpdater
/system/app/MSA-Global
/system/app/MiCloudSync
/system/app/VsimCore
/system/app/XiaomiServiceFramework
/system/app/MiSound
/system/app/XMSFKeeper
/system/app/WMService
/system/app/AnalyticsCore
/system/app/UpnpService
/system/app/PowerKeeper
/system/app/PowerChecker
/system/app/MiPicks
/system/app/PaymentService
/system/app/MiPlayClient
/system/app/MiLinkService2
/system/app/diaglogger
/system/app/BatteryInfoQuery
/system/app/IdMipay
/system/app/btlogger
/system/app/YGPS
/system/app/Joyose
/system/app/FrequentPhrase
/system/app/PlayAutoInstallStubApp
/system/app/CarrierDefaultApp
/system/app/EasterEgg
/system/app/LiveWallpapersPicker
/system/app/MiuiCompass
/system/app/MiuiBiometric
/system/app/MiuiDaemon
/system/app/HTMLViewer
/system/app/GlobalLayout
/system/app/MiuiFrequentPhrase
/system/system_ext/priv-app/GoogleFeedback
/system/system_ext/priv-app/SetupWizard
/system/priv-app/PocketBanReceiver
/system/priv-app/MiService
/system/priv-app/DownloadProviderUi
/system/priv-app/EngineerMode
/system/priv-app/MiBrowserGlobal
/system/priv-app/GlobalMinusScreen
/system/priv-app/MiShare
/system/priv-app/MiDrop
/system/priv-app/CellBroadcastReceiver
/system/priv-app/CleanMaster
/system/priv-app/MiuiMusicGlobal
/system/priv-app/MusicFX
/system/priv-app/SarControllerMerlin
/system/priv-app/facebook-installer
/system/priv-app/facebook-services
/system/priv-app/GameCenterGlobal
/system/priv-app/MiuiBrowserGlobal
/system/priv-app/Weather
/system/priv-app/YellowPage
/system/priv-app/Stk1
/system/priv-app/CloudServiceSysbase
/system/priv-app/CloudBackup
/system/priv-app/Backup
/system/priv-app/CellBroadcastLegacyApp
/system/priv-app/MiCalendarGlobal
/system/product/app/GoogleOne
/system/product/app/Maps
/system/product/app/YouTube
/system/product/app/Chrome
/system/product/app/Gmail2
/system/product/app/CalendarGoogle
/system/product/app/GooglePay
/system/product/app/talkback
/system/product/app/GoogleLocationHistory
/system/product/app/Messages
/system/product/app/GoogleTTS
/system/product/priv-app/Velvet
/system/product/priv-app/Turbo
/system/product/priv-app/AndroidAutoStub
/system/product/priv-app/Wellbeing
/system/product/priv-app/EmergencyInfo
/system/product/priv-app/CarrierServices
/system/product/priv-app/SearchSelector
/system/product/priv-app/GooglePartnerSetup
/system/product/priv-app/GoogleRestore
/system/product/priv-app/SettingsIntelligence
/system/product/priv-app/GoogleAssistant
/system/product/priv-app/GoogleFeedback
/system/product/priv-app/GoogleOneTimeInitializer
/system/product/priv-app/SetupWizard
/system/vendor/app/SoterService
/system/vendor/app/SensorTestTool
"
OUTFD=$2
ZIPFILE=$3
mount /data 2>/dev/null
[ -f /data/adb/magisk/util_functions.sh ] || rnm
. /data/adb/magisk/util_functions.sh
[ $MAGISK_VER_CODE -lt 20400 ] && rnm
install_module
exit 0