-
Notifications
You must be signed in to change notification settings - Fork 0
/
csc_tweaks.sh
31 lines (9 loc) · 972 Bytes
/
csc_tweaks.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
#!/sbin/sh
# Written by plmh
CSC_DIRECTORY=system/csc
find $CSC_DIRECTORY -type f -name "cscfeature.xml" -exec sed -i -- '/<FeatureSet>/ a\ <CscFeature_Settings_FOTA>FALSE</CscFeature_Settings_FOTA>' {} +
find $CSC_DIRECTORY -type f -name "cscfeature.xml" -exec sed -i -- '/<FeatureSet>/ a\ <CscFeature_Settings_GOTA>FALSE</CscFeature_Settings_GOTA>' {} +
find $CSC_DIRECTORY -type f -name "cscfeature.xml" -exec sed -i -- '/<FeatureSet>/ a\ <CscFeature_Setting_DisableMenuSoftwareUpdate>TRUE</CscFeature_Setting_DisableMenuSoftwareUpdate>' {} +
find $CSC_DIRECTORY -type f -name "cscfeature.xml" -exec sed -i -- '/<FeatureSet>/ a\ <CscFeature_Settings_Software_Update_Settings>FALSE</CscFeature_Settings_Software_Update_Settings>' {} +
find $CSC_DIRECTORY -type f -name "cscfeature.xml" -exec sed -i -- '/<FeatureSet>/ a\ <CscFeature_GMS_DisableSetupWizard>TRUE</CscFeature_GMS_DisableSetupWizard>' {} +
exit 10