Skip to content

molodchyk/blocker-setup

Repository files navigation

Blocker setup

This is a guide for me for when I'm setting up blocker configuration for my new laptop/PC.

  1. First go to regedit -> Computer\HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer and create REG_DWORD DisableSearchBoxSuggestions with value of 1.

image

This removes web results in the windows start:

image

  1. Remove the upper left arrow on Chrome

image

  1. Disable Incognito Mode on Chrome

regedit -> Computer\HKEY_CURRENT_USER\Software\Policies\Google\Chrome -> REG_DWORD -> set value 1

image

now it looks like this:

image

  1. Disable Guest Mode on Chrome

regedit -> Computer\HKEY_CURRENT_USER\Software\Policies\Google\Chrome -> BrowserGuestModeEnabled -> leave the value to 0.

image

now the profiles window looks like this:

image

  1. Disable adding new users to chrome

regedit -> Computer\HKEY_CURRENT_USER\Software\Policies\Google\Chrome -> BrowserAddPersonEnabled -> leave the value to 0.

now the profiles window looks like this:

image

  1. Enforce the english language as the UI language of the windows

Nls\Language looks like this:

image

MUI\UILanguages\en-US looks like this: (remove all except en-US)

image

MUI\Settings looks like this:

image

this policy will enforce the language.

Settings should look like this (now, we can't change the UI language)

image

  1. Our next step is to disable changing time and time zone in settings. It seems impossible to do it in regedit, so we will try to enable local group policy editor and local security policy.

I actually have no idea how robust adding these feature is, and even what it does, but here is the script to paste into cmd with admin rights:

FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F") FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F")

  1. Now that we've activated these, press start + R to open Run, and type in secpol.msc and press Enter. Here, for "Change the system time" and "Change the time zone" leave only LOCAL SERVICE. Click Remove to remove the other users and click Apply and then Enter.

It should change from something like this:

Screenshot 2024-02-17 010527

To something like this:

Screenshot 2024-02-17 011427

  1. Remove permissions for Cold Turkey folders (both in C:\Program Files and in C:\ProgramData). Click on folder -> properties -> security -> advanced -> disable inheritance -> convert inherited permissions into explicit permissions on this object -> add -> select a principal -> advanced -> find now -> select administrators PC -> click ok -> for type, click deny -> for applies to, select "this folder only" -> show advanced permissions -> select ONLY list folder / read data -> click ok -> click ok -> click ok.

Should look something like this:

image

  1. And for hosts file located at C:\Windows\System32\drivers\etc I added these entries to block the marketplace (websites can be accessed through their extensions and Cold Turkey and FocusMe can't block them)

127.0.0.1 plugins.jetbrains.com 127.0.0.1 marketplace.visualstudio.com

After adding these entries, these permissions should be denied:

image

  1. Add the URL from channel blocker to URLBlocklist to block removing entries:

go to regedit -> navigate to Computer\HKEY_CURRENT_USER\Software\Policies\Google\Chrome -> create folder URLBlocklist -> add a string and name it "1", add the URL of the extension, for example: chrome-extension://nfkmalbckemmklibjddenhnofgnfcdfp/ui/config/html/config.html

image

  1. FocusMe settings:

image

  1. Enforce extensions:

image

  1. Download platform-tools folder. Connect BOOX Note 2 e reader to your PC via USB. Enable USB Debug Mode.

image

First, we probably need to add platform-tools to the PATH.

Search for Environment Variables:

Right-click on the 'Start' button and select 'System'. Click on 'Advanced system settings' on the left sidebar. In the 'System Properties' window, click on the 'Environment Variables...' button near the bottom. Edit the PATH Environment Variable:

In the 'Environment Variables' window, under the 'System variables' section, scroll and find the Path variable, then click 'Edit...'. Add the New Path:

In the 'Edit Environment Variable' window, click 'New' and then paste the path to your platform-tools directory: C:\Users\molod(""OR WHATEVER USER NAME YOU WILL HAVE HERE"")\AppData\Local\Android\Sdk\platform-tools. Save the Changes:

Click 'OK' to close the 'Edit Environment Variable' window. Click 'OK' again to close the 'Environment Variables' window. Click 'OK' once more to close the 'System Properties' window.

Right click timelimit.bat.

timelimit.bat contains the following script:

adb.exe shell pm uninstall -k --user 0 com.android.vending adb.exe shell pm uninstall -k --user 0 com.google.android.gms adb.exe shell pm uninstall -k --user 0 com.android.email adb.exe shell pm uninstall -k --user 0 com.onyx.mail pause

Click "Run as Administrator". In "Do you want to make changes to your device?" window, click Yes.

Now ebook apps tab looks like this, even when having "Enable Google Play" "on"

image

image

  1. Here I will keep track of Samsung's system apps I uninstalled.

Unfortunately there is script that enables them back and without rooting the phone it seems there is no way to remove that capability. But I just blocked the "adb shell" keyword from chat.openai.com and google.com so my hope is that I don't really remembered it and can't search it/ the reward effort calculation in my mind makes it not worth it.

found this list made by google:

Critical Android system apps Some system apps are critical for a device to function correctly. We do not recommend blocking or hiding these critical system apps:

android com.android.bluetooth com.android.contacts com.android.keychain com.android.keyguard com.android.launcher com.android.nfc com.android.phone com.android.providers.downloads com.android.settings com.android.systemui com.android.vending com.google.android.deskclock com.google.android.dialer com.google.android.gms com.google.android.GoogleCamera com.google.android.googlequicksearchbox com.google.android.gsf com.google.android.gsf.login com.google.android.inputmethod.latin com.google.android.marvin.talkback com.google.android.nfcprovision com.google.android.setupwizard com.google.android.webview com.samsung.android.contacts com.samsung.android.phone

Android accessibility apps Some Android system apps are for accessibility. We do not recommend blocking or hiding these apps:

com.google.android.accessibility.soundamplifier com.google.audio.hearing.visualization.accessibility.scribe

::3/25/2024 adb.exe shell pm uninstall -k --user 0 com.samsung.android.kidsinstaller adb.exe shell pm uninstall -k --user 0 com.samsung.storyservice adb.exe shell pm uninstall -k --user 0 com.samsung.android.app.cocktailbarservice adb.exe shell pm uninstall -k --user 0 com.samsung.android.themestore adb.exe shell pm uninstall -k --user 0 com.sec.android.app.vepreload adb.exe shell pm uninstall -k --user 0 com.samsung.android.app.dressroom adb.exe shell pm uninstall -k --user 0 com.sec.android.easyonehand

:: related to wallpapers and icons I have downloaded from Themes or Wallpaper and style apps adb.exe shell pm uninstall -k --user 0 minuhome.Earth.aodonly adb.exe shell pm uninstall -k --user 0 com.xuanthai.NeonGalaxyAOD.aodonly adb.exe shell pm uninstall -k --user 0 phinton_art.com.FREE_Moon_Light.aodonly adb.exe shell pm uninstall -k --user 0 com.Maythemes.PicnicRabbits.aod.aodonly

adb.exe shell pm uninstall -k --user 0 com.einsindrei.EarthIIAOD adb.exe shell pm uninstall -k --user 0 darkartcreations.AuroraNightsRT adb.exe shell pm uninstall -k --user 0 com.pixome.ColorfulCheshire adb.exe shell pm uninstall -k --user 0 com.xuanthai.tinyshootsfree

adb.exe shell pm uninstall -k --user 0 com.xuanthai.tinyshootsfree.callbg adb.exe shell pm uninstall -k --user 0 com.pixome.ColorfulCheshire.callbg adb.exe shell pm uninstall -k --user 0 kr.co.cogulplanet.www.SimpleRainbowPlaent.callbg adb.exe shell pm uninstall -k --user 0 darkartcreations.AuroraNightsRT.callbg

adb.exe shell pm uninstall -k --user 0 com.pixome.ColorfulCheshire.home adb.exe shell pm uninstall -k --user 0 com.einsindrei.EarthIIAOD.home adb.exe shell pm uninstall -k --user 0 com.xuanthai.tinyshootsfree.home adb.exe shell pm uninstall -k --user 0 darkartcreations.AuroraNightsRT.home adb.exe shell pm uninstall -k --user 0 kr.co.cogulplanet.www.SimpleRainbowPlaent.home

::these I just think are wallpapers or icons I at some point downloaded adb.exe shell pm uninstall -k --user 0 kimiroll.blog.me.Bluenight.wallpaperpack adb.exe shell pm uninstall -k --user 0 com.einsindrei.EarthIIAOD.wallpaper adb.exe shell pm uninstall -k --user 0 com.pixome.ColorfulCheshire.wallpaper adb.exe shell pm uninstall -k --user 0 com.xuanthai.tinyshootsfree.wallpaper adb.exe shell pm uninstall -k --user 0 darkartcreations.AuroraNightsRT.wallpaper adb.exe shell pm uninstall -k --user 0 kr.co.cogulplanet.www.SimpleRainbowPlaent.wallpaper

adb.exe shell pm uninstall -k --user 0 xiehanying.Starsgalaxypurple.wallpaperpack

adb.exe shell pm uninstall -k --user 0 FelipeLeite.BlackestOS.appiconpack adb.exe shell pm uninstall -k --user 0 SR.BeautifulForest.appiconpack adb.exe shell pm uninstall -k --user 0 XIEHANYING.samsungtheme.NostalgiaO2_Wind.appiconpack adb.exe shell pm uninstall -k --user 0 gabrielsantana.SimpleBlack.appiconpack

adb.exe shell pm uninstall -k --user 0 com.einsindrei.EarthIIAOD.appicon adb.exe shell pm uninstall -k --user 0 com.pixome.ColorfulCheshire.appicon adb.exe shell pm uninstall -k --user 0 com.xuanthai.tinyshootsfree.appicon adb.exe shell pm uninstall -k --user 0 darkartcreations.AuroraNightsRT.appicon adb.exe shell pm uninstall -k --user 0 kr.co.cogulplanet.www.SimpleRainbowPlaent.appicon

::3/26/2024 adb.exe shell pm uninstall -k --user 0 com.samsung.knox.securefolder adb.exe shell pm uninstall -k --user 0 com.samsung.android.fast adb.exe shell pm uninstall -k --user 0 com.samsung.android.forest adb.exe shell pm uninstall -k --user 0 com.google.audio.hearing.visualization.accessibility.scribe adb.exe shell pm uninstall -k --user 0 com.samsung.android.app.notes.addons adb.exe shell pm uninstall -k --user 0 com.samsung.android.mdecservice adb.exe shell pm uninstall -k --user 0 com.samsung.android.lool adb.exe shell pm uninstall -k --user 0 com.sec.android.widgetapp.webmanual adb.exe shell pm uninstall -k --user 0 com.samsung.android.vtcamerasettings adb.exe shell pm uninstall -k --user 0 com.samsung.android.smartsuggestions adb.exe shell pm uninstall -k --user 0 com.sec.android.easyMover.Agent adb.exe shell pm uninstall -k --user 0 com.samsung.android.mcfserver adb.exe shell pm uninstall -k --user 0 com.samsung.android.inputshare adb.exe shell pm uninstall -k --user 0 com.sec.unifiedwfc

::3/26/2024 adb.exe shell pm uninstall -k --user 0 com.samsung.android.bixby.wakeup adb.exe shell pm uninstall -k --user 0 de.axelspringer.yana.zeropage adb.exe shell pm uninstall -k --user 0 com.sec.android.easyMover adb.exe shell pm uninstall -k --user 0 com.samsung.android.app.spage adb.exe shell pm uninstall -k --user 0 com.samsung.android.mdx adb.exe shell pm uninstall -k --user 0 com.sec.android.mimage.avatarstickers adb.exe shell pm uninstall -k --user 0 com.samsung.android.visionintelligence adb.exe shell pm uninstall -k --user 0 com.samsung.android.bixby.agent adb.exe shell pm uninstall -k --user 0 com.sec.android.app.samsungapps

pause

::8/26/2024 boox note2

adb.exe shell pm uninstall -k --user 0 com.android.calendar adb.exe shell pm uninstall -k --user 0 com.google.android.syncadapters.calendar adb.exe shell pm uninstall -k --user 0 com.onyx.easytransfer adb.exe shell pm uninstall -k --user 0 com.simplemobiletools.clock adb.exe shell pm uninstall -k --user 0 com.qualcomm.qti.sva adb.exe shell pm uninstall -k --user 0 com.simplemobiletools.voicerecorder adb.exe shell pm uninstall -k --user 0 com.simplemobiletools.musicplayer adb.exe shell pm uninstall -k --user 0 com.simplemobiletools.gallery adb.exe shell pm uninstall -k --user 0 com.onyx.dict adb.exe shell pm uninstall -k --user 0 com.onyx.appmarket adb.exe shell pm uninstall -k --user 0 com.onyx.calculator adb.exe shell pm uninstall -k --user 0 com.qualcomm.timeservice adb.exe shell pm uninstall -k --user 0 com.android.stk adb.exe shell pm uninstall -k --user 0 com.qualcomm.qti.poweroffalarm adb.exe shell pm uninstall -k --user 0 com.google.android.syncadapters.contacts adb.exe shell pm uninstall -k --user 0 com.google.android.tts adb.exe shell pm uninstall -k --user 0 com.google.android.gsf adb.exe shell pm uninstall -k --user 0 com.google.android.partnersetup adb.exe shell pm uninstall -k --user 0 com.qualcomm.qti.ims adb.exe shell pm uninstall -k --user 0 com.qti.dpmserviceapp

::9/1/2024 samsung adb.exe shell pm uninstall -k --user 0 com.google.android.partnersetup adb.exe shell pm uninstall -k --user 0 com.google.android.gms.supervision adb.exe shell pm uninstall -k --user 0 com.android.dreams.basic adb.exe shell pm uninstall -k --user 0 com.samsung.app.newtrim

:: probably samsung's OTA update app that keeps installing bloatware on the phone adb.exe shell pm uninstall -k --user 0 com.wssyncmldm

pause

  1. the place to store the password, permissions restriction:

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published