-
Notifications
You must be signed in to change notification settings - Fork 33
/
Pollen.sh
94 lines (88 loc) · 3.08 KB
/
Pollen.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
#!/bin/bash
if [ $(id -u) -ne 0 ]; then
echo "Please run this script as root. You can do so by using 'sudo su'."
exit
fi
echo "+##############################################+"
echo "| Welcome to Pollen! |"
echo "| The User Policy Editor |"
echo "| -------------------------------------------- |"
echo "| Developers: |"
echo "| - OlyB |"
echo "| - Rafflesia |"
echo "| - r58Playz |"
echo "+##############################################+"
echo "May Ultrablue rest in peace, o7."
sleep 1
mkdir -p /tmp/overlay/etc/opt/chrome/policies/managed
echo '{
"URLBlocklist": [],
"SystemFeaturesDisableList": [],
"EditBookmarksEnabled": true,
"ChromeOsMultiProfileUserBehavior": "unrestricted",
"DeveloperToolsAvailability": 1,
"DefaultPopupsSetting": 1,
"AllowDeletingBrowserHistory": true,
"AllowDinosaurEasterEgg": true,
"IncognitoModeAvailability": 0,
"AllowScreenLock": true,
"ExtensionAllowedTypes": null,
"ExtensionInstallAllowlist": null,
"ExtensionInstallBlocklist": null,
"ExtensionInstallForcelist": null,
"ExtensionSettings": null,
"PasswordManagerEnabled": "true",
"TaskManagerEndProcessEnabled": "true",
"UptimeLimit": "null",
"SystemTerminalSshAllowed": "true",
"SystemTimezone": "",
"IsolatedAppsDeveloperModeAllowed": "true",
"ForceGoogleSafeSearch": "false",
"ForceYouTubeRestrict": "0",
"EasyUnlockAllowed": "true",
"DisableSafeBrowsingProceedAnyway": "false",
"DeviceAllowNewUsers": "true",
"DevicePowerAdaptiveChargingEnabled": "true",
"DeviceGuestModeEnabled": "true",
"DeviceUnaffiliatedCrostiniAllowed": "true",
"VirtualMachinesAllowed": "true",
"CrostiniAllowed": "true",
"DefaultCookiesSetting": "1",
"VmManagementCliAllowed": "true",
"WifiSyncAndroidAllowed": "true",
"DeveloperToolsDisabled": "false",
"DeveloperToolsAvailability": "1",
"DeviceBlockDevmode": "false",
"UserBorealisAllowed": "true",
"InstantTetheringAllowed": "true",
"NearbyShareAllowed": "true",
"PinnedLauncherApps": "null",
"PrintingEnabled": "true",
"SmartLockSigninAllowed": "true",
"PhoneHubAllowed": "true",
"LacrosAvailability": "user_choice",
"WallpaperImage": null,
"ArcPolicy": {
"playStoreMode": "ENABLED",
"installType": "FORCE_INSTALLED",
"playEmmApiInstallDisabled": false,
"dpsInteractionsDisabled": false
},
"DnsOverHttpsMode": "automatic",
"BrowserLabsEnabled": "true",
"ChromeOsReleaseChannelDelegated": "true",
"WallpaperImage": "null",
"SafeSitesFilterBehavior": "0",
"SafeBrowsingProtectionLevel": "0",
"DownloadRestrictions": "0",
"ProxyMode": "system",
"ProxyServerMode": "system",
"NetworkThrottlingEnabled": "false",
"NetworkPredictionOptions": "0",
"AllowedDomainsForApps": "",
"DeviceUserAllowlist": ""
}' > /tmp/overlay/etc/opt/chrome/policies/managed/policy.json
cp -a -L /etc/* /tmp/overlay/etc 2> /dev/null
mount --bind /tmp/overlay/etc /etc
echo ""
echo "Pollen has been successfully applied!"