From 04389f48e3a1da4d969c390e5b97bc6268e5836a Mon Sep 17 00:00:00 2001 From: manasc <78652689+iknothing@users.noreply.github.com> Date: Fri, 15 Sep 2023 06:20:10 +0530 Subject: [PATCH 1/2] Add files via upload A direct launch version that launches Samsung notes after editing the registry and then restores the registry after the app has been launched.Its more like a shortcut to Samsung notes --- samsungnotes-directlaunch.bat | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 samsungnotes-directlaunch.bat diff --git a/samsungnotes-directlaunch.bat b/samsungnotes-directlaunch.bat new file mode 100644 index 0000000..6eb8246 --- /dev/null +++ b/samsungnotes-directlaunch.bat @@ -0,0 +1,22 @@ +set "params=%*" && cd /d "%~dp0" && pushd "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B ) + +:: Store the previous system product name and system manufacturer +for /f "tokens=2*" %%a in ('reg query "HKLM\HARDWARE\DESCRIPTION\System\BIOS" /v SystemProductName ^| find "REG_SZ"') do set "prev_product_name=%%b" +for /f "tokens=2*" %%a in ('reg query "HKLM\HARDWARE\DESCRIPTION\System\BIOS" /v SystemManufacturer ^| find "REG_SZ"') do set "prev_manufacturer=%%b" + + +:: Set the new system product name and system manufacturer +reg add "HKLM\HARDWARE\DESCRIPTION\System\BIOS" /v SystemProductName /t REG_SZ /d "NP960XFG-KC4UK" /f +reg add "HKLM\HARDWARE\DESCRIPTION\System\BIOS" /v SystemManufacturer /t REG_SZ /d "Samsung" /f + +:: Start Samsung Notes +start shell:AppsFolder\SAMSUNGELECTRONICSCoLtd.SamsungNotes_wyx1vj98g3asy!App + +:: Wait for Samsung Notes to start +timeout /t 2 +:: Restore the previous system product name and system manufacturer +reg add "HKLM\HARDWARE\DESCRIPTION\System\BIOS" /v SystemProductName /t REG_SZ /d "%prev_product_name%" /f +reg add "HKLM\HARDWARE\DESCRIPTION\System\BIOS" /v SystemManufacturer /t REG_SZ /d "%prev_manufacturer%" /f + +:: Exit +exit \ No newline at end of file From 665cf0169e54cacef80de5d484f4eb2aa164e40a Mon Sep 17 00:00:00 2001 From: manasc <78652689+iknothing@users.noreply.github.com> Date: Fri, 15 Sep 2023 06:23:23 +0530 Subject: [PATCH 2/2] Update README.md updated the readme file with info of the 3rd version --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9e33f67..d25ed00 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # Mask Galaxy Book laptop This .bat script will allow you to mimic your windows pc as a Galaxy Book laptop, this is usually used to bypass Samsung's restriction on some applications such as Samsung Notes by modifying the registry. _Third-party antivirus applications such as Kaspersky and Bitfinder detecting the .bat file as a threat, it is a false positive! Just whitelist it or modify the registry yourself if that is the case._ -### 2 versions +### 3 versions - Startup version - Non-Startup version +- Direct Launch version:A direct launch version that launches Samsung notes after editing the registry and then restores the registry after the app has been launched.Its more like a shortcut to Samsung notes ### To undo the changes (startup bat), locate & delete, then restart pc `C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp\GalaxyBookMask.bat`