[CLOSED][GUIDE] Kg State Locked Bypass

Status
Not open for further replies.
Search This thread

faw_wal

Member
Feb 11, 2015
44
43
Damascus
Hello i was have issue with my deivce and i searched a lot to solve it on internet some of people just sold their phone to this problem and some replace the motherboard
Finally i was able to solve it the problem is that you have kg state locked and when you try to flash any file it give this message: all binaries are not allowed to be flashed due to kg locked even you can't flash stock rom like image

51573677-779957445692252-369314170379698176-n.jpg


requirement :
1- usb cable
2- pit file for your deivce
3- combination rom for you device

So How to solve :
1- get pit file for your device
2- open odin go to pit tab and and select pit file
3- go to options tab and uncheck auto reboot
4- press start when finish go to recovery this is important
5- in recovery menu select reboot to bootloader
6- flash combination rom
7- go to settings check oem options from developer options
8- enjoy your problem is solved :fingers-crossed:

Don't Forget to hit thanks :p ;)
 
Last edited:

weberdantas

New member
Dec 5, 2012
2
0
Did not work

I tried to do this process using a Galaxy s20 but it didn't work. Could you explain a little more detailed how it works?
 
Feb 19, 2019
6
0
Not working for A9

Hello i was have issue with my deivce and i searched a lot to solve it on internet some of people just sold their phone to this problem and some replace the motherboard
Finally i was able to solve it the problem is that you have kg state locked and when you try to flash any file it give this message: all binaries are not allowed to be flashed due to kg locked even you can't flash stock rom like image

51573677-779957445692252-369314170379698176-n.jpg


requirement :
1- usb cable
2- pit file for your deivce
3- combination rom for you device

So How to solve :
1- get pit file for your device
2- open odin go to pit tab and and select pit file
3- go to options tab and uncheck auto reboot
4- press start when finish go to recovery this is important
5- in recovery menu select reboot to bootloader
6- flash combination rom
7- go to settings check oem options from developer options
8- enjoy your problem is solved :fingers-crossed:

Don't Forget to hit thanks :p ;)

Oops, I tried to do this method for my a9 that started showing this message after rooting the device. It appears that the binaries are blocked because of the blocked KG, any alternative?
 

nevillehn

New member
Feb 14, 2017
1
0
Hello i was have issue with my deivce and i searched a lot to solve it on internet some of people just sold their phone to this problem and some replace the motherboard
Finally i was able to solve it the problem is that you have kg state locked and when you try to flash any file it give this message: all binaries are not allowed to be flashed due to kg locked even you can't flash stock rom like image

51573677-779957445692252-369314170379698176-n.jpg


requirement :
1- usb cable
2- pit file for your deivce
3- combination rom for you device

So How to solve :
1- get pit file for your device
2- open odin go to pit tab and and select pit file
3- go to options tab and uncheck auto reboot
4- press start when finish go to recovery this is important
5- in recovery menu select reboot to bootloader
6- flash combination rom
7- go to settings check oem options from developer options
8- enjoy your problem is solved :fingers-crossed:

Don't Forget to hit thanks :p ;)

Thankyou your solution worked for me
 

icotynato

New member
Jul 11, 2016
4
1
"So How to solve :
1- get pit file for your device
2- open odin go to pit tab and and select pit file
3- go to options tab and uncheck auto reboot
4- press start when finish go to recovery this is important
5- in recovery menu select reboot to bootloader
6- flash combination rom
7- go to settings check oem options from developer options
8- enjoy your problem is solved :fingers-crossed: "

1. PIT FILE IS INSIDE CSC.TAR?
6. HOW to create or download "COMBINATION ROM" ?
 
  • Like
Reactions: A Christian Guy

eder92

New member
Sep 10, 2021
1
0
Hola, tuve un problema con mi dispositivo y busqué mucho para resolverlo en Internet, algunas personas simplemente vendieron su teléfono a este problema y algunas reemplazaron la placa base.
Finalmente pude resolverlo, el problema es que tienes el estado kg bloqueado y cuando intentas flashear cualquier archivo, aparece este mensaje: no se permite flashear todos los binarios debido a kg bloqueado, incluso no puedes flashear stock rom como imagen

51573677-779957445692252-369314170379698176-n.jpg


requisito:
1- cable usb
2- lima de hoyo para tu deivce
3- rom combinada para tu dispositivo

Entonces, ¿cómo resolverlo?
1- obtenga un archivo de pozo para su dispositivo
2- abre odin, ve a la pestaña de boxes y selecciona el archivo de pit
3- vaya a la pestaña de opciones y desmarque el reinicio automático
4- presione iniciar cuando termine ir a recuperación esto es importante
5- en el menú de recuperación, seleccione reiniciar al cargador de arranque
6- rom combinada flash
7- vaya a la configuración, verifique las opciones de oem desde las opciones de desarrollador
8- disfruta tu problema está resuelto: dedos cruzados:

No olvides pegar gracias :pag ;)
buenas noches, una pregunta como puedo conseguir el pit, o de donde lo puedo sacar?
 

LudwikHardy

New member
Feb 28, 2018
1
0
When uploading the combination file I get a message "please get the approval to use factory binaries (pit)"
Samsung SM-A516B
 

doctorgadget

Member
Jun 28, 2015
5
0
Cluj Napoca
Hello i was have issue with my deivce and i searched a lot to solve it on internet some of people just sold their phone to this problem and some replace the motherboard
Finally i was able to solve it the problem is that you have kg state locked and when you try to flash any file it give this message: all binaries are not allowed to be flashed due to kg locked even you can't flash stock rom like image

51573677-779957445692252-369314170379698176-n.jpg


requirement :
1- usb cable
2- pit file for your deivce
3- combination rom for you device

So How to solve :
1- get pit file for your device
2- open odin go to pit tab and and select pit file
3- go to options tab and uncheck auto reboot
4- press start when finish go to recovery this is important
5- in recovery menu select reboot to bootloader
6- flash combination rom
7- go to settings check oem options from developer options
8- enjoy your problem is solved :fingers-crossed:

Don't Forget to hit thanks :p ;)

Please help me! How can I flash combination file with fastboot? because reboot to bootloader means entering fastboot mode. Thank you
 

jTunes

Senior Member
Nov 9, 2014
101
30
Cebu City
Hi to all, I just want to clarification about on my deviceI have Galaxy Z Fold 2 i use without any problembut when i try to boot it into ODIN there a line there KG State Prenormal
What the mean of this?
 

majajenej

New member
Aug 21, 2022
2
0
Hi, can you help?
When i start odin with that combination file, the proces will stuck at "set partition"
Any ideas?
 
Feb 7, 2023
12
1
Hello i was have issue with my deivce and i searched a lot to solve it on internet some of people just sold their phone to this problem and some replace the motherboard
Finally i was able to solve it the problem is that you have kg state locked and when you try to flash any file it give this message: all binaries are not allowed to be flashed due to kg locked even you can't flash stock rom like image

51573677-779957445692252-369314170379698176-n.jpg


requirement :
1- usb cable
2- pit file for your deivce
3- combination rom for you device

So How to solve :
1- get pit file for your device
2- open odin go to pit tab and and select pit file
3- go to options tab and uncheck auto reboot
4- press start when finish go to recovery this is important
5- in recovery menu select reboot to bootloader
6- flash combination rom
7- go to settings check oem options from developer options
8- enjoy your problem is solved :fingers-crossed:

Don't Forget to hit thanks :p ;)
Hey, since my device is locked, I can't unlock OEM. Can I still proceed?
 

Attachments

  • 20230207_194212.jpg
    20230207_194212.jpg
    1.1 MB · Views: 645

Emilson

Senior Member
Jun 6, 2012
373
195
POLAND
There is a way to bypass 'knox guard lock' kg lock, just by disabling main samsung launcher 'com.android.systemui' and instaling some alternative launcher.
 
Last edited:
  • Like
Reactions: coolpixs4

Emilson

Senior Member
Jun 6, 2012
373
195
POLAND
Managed other way to bypass kg lock inside locked system by using 'CCSWE app manager' Lycan mod.
This app allows to disable certain services inside the app without disabling the app itself.

✅ Advantages of Lycan Bypass Method:
•Modified tsystemui app still appears enabled
[kg security shouldn't reinstall app after reboot]
•screenshots works
•screen recording works
•screen cast/mirroring working,
•bluetooth devices battery info, etc.
•Wallpapers/themes
•notifications
•Android auto
•Google & Samsung Accounts are OK to use.

❌Not working:
•Nav bar
•status bar
•volume bar
•AOD-always ON Display
•screen lock (pattern, pin, fingerprint, face recognition)
❗Do not use build-in system Lock screen, its broken because of bypass method, otherwise system will stuck in startup screen.
☆Needed to install an alternative apps for missing Interface.


⚠️These steps are most suitable for android 12 with updates till august 2022.(eg. August update disabled adb acces)
With further Updates/android13, you have to work around a bit more, but it still may work.
(Dont Update firmware if You dont have to.)





●install 'Alliance Shield X' Using QR Code from this link in phone QR Setup Wizard.

●Get the 'Splashtop Add-on' & 'Lycan app manager'.
☆Optional
Open phone browser
(thru Aliance Shield X, or "Accesibility Trick")
Type shortened xda link: t.ly-SQT and download 'Splashtop Add-on' & 'Lycan app manager' from "Download" tab directly to your phone storage.

●install 'Splashtop Add-on'.

●run Splashtop Add-on and grant 'knox permissions' only, and leave. (internet Connection needed)

●Disable 'klms agent' (com.samsung.klmsagent) thru Alliance Shield X app.

●Uninstall Splashtop Add-on.

●Install 'Lycan Ccswe App Manager', grant device admin permissions.

●Find on the Lycan app Manager List:
'systemUi' app (com.android.systemui)

●Inside System Ui, open 'services' tab and find:
'KeyguardService' - Disable it.
'SystemUiService' - Disable it.

●Reboot Your phone, using Power button.

●Finish Setup Wizard.

●Install missing Interface Apps (posted an example interface apps below).
●Get Acces to ADB

●Install Splashtop Add-on
adb install -r --user 0 "C:\ADB Folder\Splashtop.apk" *write your "path and apk name", if apk is placed in Adb folder, path isn't needed.

●Start Splashtop Add-on
adb shell am start -n com.splashtop.streamer.addon.knox/.ConfigActivity
•grant 'knox permissions' only, and leave. (internet Connection needed)

●Disable KLMS Agent
adb shell pm disable-user --user 0 com.samsung.klmsagent

●Uninstall Splashtop Add-on
adb shell pm uninstall --user 0 com.splashtop.streamer.addon.knox

●Install LYCAN ccswe app manager
adb install -r --user 0 "C:\ADB Folder\Lycan.apk" *write your "path and apk name", if apk is placed in Adb folder, path isn't needed.

●Start LYCAN app manager
adb shell am start -n com.splashtop.streamer.addon.knox/com.ccswe.appmanager.activities.StartupActivity
•grant device admin permissions.

●Find on the Lycan app Manager List:
'systemUi' app (com.android.systemui)

●Inside System Ui, open 'services' tab and find:
'KeyguardService' - Disable it.
'SystemUiService' - Disable it.

●Reboot Your phone, using Power button.

●Finish Setup Wizard.

●Install missing Interface Apps (posted an example interface apps below).
Alternative for a Lycan app, similar method.

●Install Sds addon knox - Play Store / SDS addon knox - Direct Download

●App should get knox license in first run,

●Disable klms Agent

●Uninstall SDS Addon Knox,

●install Ashell.

●Grant 'Ashell' Administrator Privileges manually:
In System Settings go to ->'biometrics and Security' Settings -> 'Other Security Settings' -> 'Device Admin Apps'.

●Run the 'Ashell' application.

●In 'Ashell' app go to 'Other'-> 'App Component'

●Search for 'SystemUi'

●Inside System Ui, open 'services' tab and find:
'KeyguardService' - Disable it.
'SystemUiService' - Disable it.

if the knox/Admin process goes well, you can perform these actions, if not, the application doesn't show the 'services' list, stops responding, etc.
⚠️This method works only until ~may2022 security patch.

•install app 'Alliance Shield X' Using Qr Code in QR Setup Wizard.
•disable 'systemUi'(com.android.systemui) thru 'Aliance Shield X'.
•Reboot Your phone.
•Finish Setup Wizard.
•Install missing Interface Apps (posted an example interface apps below).
☆You can uninstall 'Alliance Shield X' after everything is completed (deactivate device owner & device administrator in app settings)
☆Do not uninstall 'Lycan Ccswe App Manager', Risk of Kg reLock.
☆it's not an unlock, it's a BYPASS.
☆After Wipe Data/Factory reset everything goes back to stock setting, so reLock as well.
Thanks to:
@bestsofttj/@ZeroSecurity for sharing Unlock Method.
@melksants for sharing the news&info
@rash.m2k for sharing about SMT Shell method.
@loideptrai18012002 for sharing alternative Unlock Method.

*TimeTable app no longer work*

DOWNLOAD

SGTKEIF-Tool & ADB Unlock Package


STEPS:

●install 1.apk 'com.ddms.timetable' thru phone installer or ADB adb install 1.apk

●install 2.apk 'FactoryTestLauncher' Only ADB yet available: adb install -i PrePackageInstaller 2.apk

●Run 1.apk on the phone - named: 'com.ddms.timetable' or '대덕중학교 시 간표'

or run thru ADB shell am start com.ddms.timetable/.MainActivity

●Type PassKey: robycipri

●Go to 'Administrator Actions'

●Tap on 'Activate Device Admin'

●Tap on 'Activate Knox License' (wifi connection may be needed)

●Type in 'Package Name':com.samsung.android.FactoryTestLauncher

●Type in 'Activity Name':com.samsung.android.FactoryTestLauncher.addons.Shell.ShellActivity

●Tap on 'Launch Activity'

●Type Command to change 'KG Lock State' to ACTIVE: service call knoxguard_service 37

●Type Command to erase some KgLock Data: service call knoxguard_service 41 s16 'null'

●Type to check if data removed: service call knoxguard_service 40

DOWNLOAD
ADB - Unlock Package

STEPS:
(You can use 'newkg.bat' file to automatically run 'install' commands.)

●install 'a.apk' / 'FactoryTestLauncher' thru ADB: adb install -i PrePackageInstaller a.apk

●install 'loideptrai.apk' / 'AudioCoreDebug' thru ADB: adb install -i PrePackageInstaller loideptrai.apk

●Run 'AudioCoreDebug' on the phone, but App is Hidden.

○ You can find this App on the Aliance Shield X List:
'AudioCoreDebug' app (com.sec.android.app.audiocoredebug.)

○Inside 'AudioCoreDebug', open 'Activities' tab and find:
'AudioCoreDebug' (com.sec.android.app.audiocoredebug.MainActivity) -> Open.

○or Run 'AudioCoreDebug' thru ADB: adb shell am start -n com.sec.android.app.audiocoredebug/com.sec.android.app.audiocoredebug.MainActivity

●Tap on 'AUDIO ADB SHELL' option

●type in 'input command' to Run 'FactorTestLauncher' am start -n com.samsung.android.FactoryTestLauncher/.addons.Shell.ShellActivity and tap 'Execute'

●Type Command to change 'KG Lock State' to ACTIVE: service call knoxguard_service 37

●Type Command to erase KgLock Data: service call knoxguard_service 41 s16 'null'

●Type to check if data removed: service call knoxguard_service 40

Download
zeroknox-removal-package

●Run ZeroKnox Removal app
○ Use interface options

☆some options:
•enable adb
•bypass frp
•bypass kg
•unlock kg
•and more

●Download
"com.samsung.SMT_v3.0.02.2.apk" and "SMT_Shell_v2.0.1.apk", from SMT Shell exploit thread attachments.

●You can install 'SMT_Shell_v2.0.1.apk' directly thru phone installer.
○ Or thru ADB: adb install SMT_Shell_v2.0.1.apk

●To install 'com.samsung.SMT_v3.0.02.2.apk' use ADB, because the same system app is already installed and its newer, so have to be downgraded, by command:
adb install -d com.samsung.SMT_v3.0.02.2.apk

●Open 'SMT Shell' app -> Run Exploit -> Local System Shell ->

●Type Command to change 'KG Lock State' to ACTIVE: service call knoxguard_service 37



●Type Command to erase some KgLock Data: service call knoxguard_service 41 s16 'null'



●Type to check if data removed: service call knoxguard_service 40

☆SMT_Shell app downgrade is locked at least in Septemper2023 patch.

Unlock posts starts here: ➡️ Permanent KG unlock? - post-88959105


ADDITIONAL








iphone style screen lock, but stronger protection, pin security

3Button navigation bar

Gesture navigation bar
+Shortcut Maker (Only Android 12 till October update)
☆You can create 'recent apps' button in your 'Navigation bar' app selecting 'Shortcut maker' as 'shortcut' button.
•that will open 'Shortcut Maker' app, so choose 'activities' option in it.
•Search there for: 'One UI Home' app.
•Select first action:
'com.android.quickstep.RecentsActivity'
•create shortcut(you can customize it)
☆'shortcut' button may be a premium/paid option in some 'navigation bar' Apps.
☆ ''Accesibility trick''
When phone is offline, tap 'accesibility button' on setup wizard screen.
Go to: 'installed apps' -> 'Live Transcribe' app -> 'open Live Transcribe' -> Open Settings -> tap 'back button' in the upper corner -> You are on 'Phone Settings Page'

☆if you need Navigation buttons during the installation, go to 'settings' -> 'accesibility' -> 'interaction and dexterity' -> turn on 'assistant menu'.

☆App Links:
-Alliance Shield x QR CoDe
-Aliance shield X Free Registration link.
-Alliance Shield X official in Play Store
-Splashtop Add-on official in Play Store.
-Splashtop add-on all versions.
-Uninstaller (Playstore) or Uninstaller (DirectLink) - helpful in Uninstaling Splashtop add-on app in some cases. thanks to @fitrockx
-SamFw Tool - for pc, to acces locked ADB, etc.
-Minimal ADB and Fastboot Tool for pc, classic adb command prompt.
-Adb App Control - for pc, with pretty nice interfece that allow to enable/disable/install/uninstall apps thru Adb.

-NotifiCon - notification sound manager app, fixes missing nottifications sound, thanks to coolpix4
-Net Guard to block apps from the internet access.

☆Optional:
Disable those Apps after Kg Lock bypass to:

●Unlock Adb/Mtp or Phone Calling:
-'Device Services' (com.samsung.android.kgclient)
-'Knox Enrolment Service' (com.sec.enterprise.knox.cloudmdm.smdms)

●Disable Android Firmware Updates/Notifications:
-'Software Update' (com.wssyncmldm)

You can try to disable them thru 'Lycan ccswe app manager' or Alliance shield x'.
If you cant disable them thru phone apps, you can download SamFw Tool for pc and use 'disable knox' option, that should disable all knox apps.
Or You can use Adb 'disable' commands (if You have adb acces).
To acces adb you need to enable 'adb debug' option in phone settings developer options.
Or if you cant do this, tap 'Phone' app and type *#0*# when using SamFw Tool, to unlock adb.


☆Optional Adb commands:

Open OneUi Home Screen
adb shell am start -n com.sec.android.app.launcher/.activities.LauncherActivity

Open Android Settings
adb shell am start com.android.settings

Disable Device Services
adb shell pm disable-user --user 0 com.samsung.android.kgclient

Disable Knox Enrolment Service
adb shell pm disable-user --user 0 com.sec.enterprise.knox.cloudmdm.smdms


Disable Software Update²
adb shell pm disable-user --user 0 com.wssyncmldm


❗️if You Locked Your screen by Build-in System Screen Lock (even when I wrote to don't ...) You can unlock it thru adb(if You have adb acces):
adb shell locksettings clear --old 1234
If it's a pattern, dots are numbers:
1● 2● 3●
4● 5● 6●
7● 8● 9●
 
Last edited:

hamza2512

Member
Apr 4, 2023
8
2
Managed other way to bypass kg lock inside locked system by using 'CCSWE app manager' Lycan mod.
This app allows to disable certain services inside the app without disabling the app itself.

Tested on:
Android 12
Security Patch Level: 1may 2022

Advantages of not disabling the app entirely:
•Modified systemui app still appears enabled
[kg security shouldn't reinstall app after reboot]
•screenshots works
•screen recording works
•screen cast/mirroring working,
•bluetooth devices battery info, etc.
•Wallpapers/themes
•notifications
•Android auto

Not working:
Stock Nav bar, status bar, volume bar, screen lock etc. Still needed to install an alternative apps for that.

Useful:
☆'Alliance Shield X' app & (Free Registration) to disable 'Klms Agent'.
☆'SamFw Tool' for acces ADB
to disable 'Klms Agent' thru adb for eg. by command:
adb shell pm disable-user --user 0 com.samsung.klmsagent
☆'Secure Folder' or 'island' app to install 'Splashtop Add-on' in it, if you can't disable klms agent.
☆Optional way installing apps.
When phone is offline, tap 'accesibility button' on setup wizard screen.
Go to: 'installed apps' -> 'Live Transcribe' app -> 'open Live Transcribe' -> Open Settings -> tap 'back button' in the upper corner -> 'Settings Page' -> open 'Apps' page -> run 'my files' app.
☆if you need nav buttons during the installation, go to 'settings' -> 'accesibility' -> 'interaction and dexterity' -> turn on 'assistant menu'.


STEPS:
■ Lycan Method - (More interface functions)
●install app from 'Alliance Shield X - QR Code' in QR Setup Wizard.

●install 'Splashtop Add-on'.

●run splashtop and grant knox permissions only, and leave.(internet Connection needed)

●Disable 'klms agent' (com.samsung.klmsagent) thru app 'Alliance Shield X'

●Uninstall 'Splashtop Add-on'.

●Install 'Lycan Ccswe App Manager', grant device admin permissions.

●Find on the Lycan Ccswe app Manager List:
'systemUi' app (com.android.systemui)

●Inside System Ui, open 'services' tab and find:
'KeyguardService' - Disable it.
'SystemUiService' - Disable it.

●Reboot Your phone, using Power button.

●Finish Setup Wizard.

●Install missing Interface Apps (posted an example interface apps below).

☆You can uninstall Alliance Shield X after everything is completed (deactivate device owner & device administrator)
☆Rather dont uninstall Lycan Ccswe App Manager, or 'keep program data' when uninstalling. Risk of Kg Lock.

■ Aliance Shield X Method (Less interface functions)
•install app 'Alliance Shield X' Using Qr Code in QR Setup Wizard.
•disable 'systemUi'(com.android.systemui) thru 'Aliance Shield X'.
•Reboot Your phone.
•Finish Setup Wizard.
•Install missing Interface Apps.













Thank you so much it works for me with s 22 plus sm s906u1 but with one problem the phone can't receive calls if someone call me it appears to him bussy I wish you could help with it
 
  • Like
Reactions: degwan
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    Managed other way to bypass kg lock inside locked system by using 'CCSWE app manager' Lycan mod.
    This app allows to disable certain services inside the app without disabling the app itself.

    ✅ Advantages of Lycan Bypass Method:
    •Modified tsystemui app still appears enabled
    [kg security shouldn't reinstall app after reboot]
    •screenshots works
    •screen recording works
    •screen cast/mirroring working,
    •bluetooth devices battery info, etc.
    •Wallpapers/themes
    •notifications
    •Android auto
    •Google & Samsung Accounts are OK to use.

    ❌Not working:
    •Nav bar
    •status bar
    •volume bar
    •AOD-always ON Display
    •screen lock (pattern, pin, fingerprint, face recognition)
    ❗Do not use build-in system Lock screen, its broken because of bypass method, otherwise system will stuck in startup screen.
    ☆Needed to install an alternative apps for missing Interface.


    ⚠️These steps are most suitable for android 12 with updates till august 2022.(eg. August update disabled adb acces)
    With further Updates/android13, you have to work around a bit more, but it still may work.
    (Dont Update firmware if You dont have to.)





    ●install 'Alliance Shield X' Using QR Code from this link in phone QR Setup Wizard.

    ●Get the 'Splashtop Add-on' & 'Lycan app manager'.
    ☆Optional
    Open phone browser
    (thru Aliance Shield X, or "Accesibility Trick")
    Type shortened xda link: t.ly-SQT and download 'Splashtop Add-on' & 'Lycan app manager' from "Download" tab directly to your phone storage.

    ●install 'Splashtop Add-on'.

    ●run Splashtop Add-on and grant 'knox permissions' only, and leave. (internet Connection needed)

    ●Disable 'klms agent' (com.samsung.klmsagent) thru Alliance Shield X app.

    ●Uninstall Splashtop Add-on.

    ●Install 'Lycan Ccswe App Manager', grant device admin permissions.

    ●Find on the Lycan app Manager List:
    'systemUi' app (com.android.systemui)

    ●Inside System Ui, open 'services' tab and find:
    'KeyguardService' - Disable it.
    'SystemUiService' - Disable it.

    ●Reboot Your phone, using Power button.

    ●Finish Setup Wizard.

    ●Install missing Interface Apps (posted an example interface apps below).
    ●Get Acces to ADB

    ●Install Splashtop Add-on
    adb install -r --user 0 "C:\ADB Folder\Splashtop.apk" *write your "path and apk name", if apk is placed in Adb folder, path isn't needed.

    ●Start Splashtop Add-on
    adb shell am start -n com.splashtop.streamer.addon.knox/.ConfigActivity
    •grant 'knox permissions' only, and leave. (internet Connection needed)

    ●Disable KLMS Agent
    adb shell pm disable-user --user 0 com.samsung.klmsagent

    ●Uninstall Splashtop Add-on
    adb shell pm uninstall --user 0 com.splashtop.streamer.addon.knox

    ●Install LYCAN ccswe app manager
    adb install -r --user 0 "C:\ADB Folder\Lycan.apk" *write your "path and apk name", if apk is placed in Adb folder, path isn't needed.

    ●Start LYCAN app manager
    adb shell am start -n com.splashtop.streamer.addon.knox/com.ccswe.appmanager.activities.StartupActivity
    •grant device admin permissions.

    ●Find on the Lycan app Manager List:
    'systemUi' app (com.android.systemui)

    ●Inside System Ui, open 'services' tab and find:
    'KeyguardService' - Disable it.
    'SystemUiService' - Disable it.

    ●Reboot Your phone, using Power button.

    ●Finish Setup Wizard.

    ●Install missing Interface Apps (posted an example interface apps below).
    Alternative for a Lycan app, similar method.

    ●Install Sds addon knox - Play Store / SDS addon knox - Direct Download

    ●App should get knox license in first run,

    ●Disable klms Agent

    ●Uninstall SDS Addon Knox,

    ●install Ashell.

    ●Grant 'Ashell' Administrator Privileges manually:
    In System Settings go to ->'biometrics and Security' Settings -> 'Other Security Settings' -> 'Device Admin Apps'.

    ●Run the 'Ashell' application.

    ●In 'Ashell' app go to 'Other'-> 'App Component'

    ●Search for 'SystemUi'

    ●Inside System Ui, open 'services' tab and find:
    'KeyguardService' - Disable it.
    'SystemUiService' - Disable it.

    if the knox/Admin process goes well, you can perform these actions, if not, the application doesn't show the 'services' list, stops responding, etc.
    ⚠️This method works only until ~may2022 security patch.

    •install app 'Alliance Shield X' Using Qr Code in QR Setup Wizard.
    •disable 'systemUi'(com.android.systemui) thru 'Aliance Shield X'.
    •Reboot Your phone.
    •Finish Setup Wizard.
    •Install missing Interface Apps (posted an example interface apps below).
    ☆You can uninstall 'Alliance Shield X' after everything is completed (deactivate device owner & device administrator in app settings)
    ☆Do not uninstall 'Lycan Ccswe App Manager', Risk of Kg reLock.
    ☆it's not an unlock, it's a BYPASS.
    ☆After Wipe Data/Factory reset everything goes back to stock setting, so reLock as well.
    Thanks to:
    @bestsofttj/@ZeroSecurity for sharing Unlock Method.
    @melksants for sharing the news&info
    @rash.m2k for sharing about SMT Shell method.
    @loideptrai18012002 for sharing alternative Unlock Method.

    *TimeTable app no longer work*

    DOWNLOAD

    SGTKEIF-Tool & ADB Unlock Package


    STEPS:

    ●install 1.apk 'com.ddms.timetable' thru phone installer or ADB adb install 1.apk

    ●install 2.apk 'FactoryTestLauncher' Only ADB yet available: adb install -i PrePackageInstaller 2.apk

    ●Run 1.apk on the phone - named: 'com.ddms.timetable' or '대덕중학교 시 간표'

    or run thru ADB shell am start com.ddms.timetable/.MainActivity

    ●Type PassKey: robycipri

    ●Go to 'Administrator Actions'

    ●Tap on 'Activate Device Admin'

    ●Tap on 'Activate Knox License' (wifi connection may be needed)

    ●Type in 'Package Name':com.samsung.android.FactoryTestLauncher

    ●Type in 'Activity Name':com.samsung.android.FactoryTestLauncher.addons.Shell.ShellActivity

    ●Tap on 'Launch Activity'

    ●Type Command to change 'KG Lock State' to ACTIVE: service call knoxguard_service 37

    ●Type Command to erase some KgLock Data: service call knoxguard_service 41 s16 'null'

    ●Type to check if data removed: service call knoxguard_service 40

    DOWNLOAD
    ADB - Unlock Package

    STEPS:
    (You can use 'newkg.bat' file to automatically run 'install' commands.)

    ●install 'a.apk' / 'FactoryTestLauncher' thru ADB: adb install -i PrePackageInstaller a.apk

    ●install 'loideptrai.apk' / 'AudioCoreDebug' thru ADB: adb install -i PrePackageInstaller loideptrai.apk

    ●Run 'AudioCoreDebug' on the phone, but App is Hidden.

    ○ You can find this App on the Aliance Shield X List:
    'AudioCoreDebug' app (com.sec.android.app.audiocoredebug.)

    ○Inside 'AudioCoreDebug', open 'Activities' tab and find:
    'AudioCoreDebug' (com.sec.android.app.audiocoredebug.MainActivity) -> Open.

    ○or Run 'AudioCoreDebug' thru ADB: adb shell am start -n com.sec.android.app.audiocoredebug/com.sec.android.app.audiocoredebug.MainActivity

    ●Tap on 'AUDIO ADB SHELL' option

    ●type in 'input command' to Run 'FactorTestLauncher' am start -n com.samsung.android.FactoryTestLauncher/.addons.Shell.ShellActivity and tap 'Execute'

    ●Type Command to change 'KG Lock State' to ACTIVE: service call knoxguard_service 37

    ●Type Command to erase KgLock Data: service call knoxguard_service 41 s16 'null'

    ●Type to check if data removed: service call knoxguard_service 40

    Download
    zeroknox-removal-package

    ●Run ZeroKnox Removal app
    ○ Use interface options

    ☆some options:
    •enable adb
    •bypass frp
    •bypass kg
    •unlock kg
    •and more

    ●Download
    "com.samsung.SMT_v3.0.02.2.apk" and "SMT_Shell_v2.0.1.apk", from SMT Shell exploit thread attachments.

    ●You can install 'SMT_Shell_v2.0.1.apk' directly thru phone installer.
    ○ Or thru ADB: adb install SMT_Shell_v2.0.1.apk

    ●To install 'com.samsung.SMT_v3.0.02.2.apk' use ADB, because the same system app is already installed and its newer, so have to be downgraded, by command:
    adb install -d com.samsung.SMT_v3.0.02.2.apk

    ●Open 'SMT Shell' app -> Run Exploit -> Local System Shell ->

    ●Type Command to change 'KG Lock State' to ACTIVE: service call knoxguard_service 37



    ●Type Command to erase some KgLock Data: service call knoxguard_service 41 s16 'null'



    ●Type to check if data removed: service call knoxguard_service 40

    ☆SMT_Shell app downgrade is locked at least in Septemper2023 patch.

    Unlock posts starts here: ➡️ Permanent KG unlock? - post-88959105


    ADDITIONAL








    iphone style screen lock, but stronger protection, pin security

    3Button navigation bar

    Gesture navigation bar
    +Shortcut Maker (Only Android 12 till October update)
    ☆You can create 'recent apps' button in your 'Navigation bar' app selecting 'Shortcut maker' as 'shortcut' button.
    •that will open 'Shortcut Maker' app, so choose 'activities' option in it.
    •Search there for: 'One UI Home' app.
    •Select first action:
    'com.android.quickstep.RecentsActivity'
    •create shortcut(you can customize it)
    ☆'shortcut' button may be a premium/paid option in some 'navigation bar' Apps.
    ☆ ''Accesibility trick''
    When phone is offline, tap 'accesibility button' on setup wizard screen.
    Go to: 'installed apps' -> 'Live Transcribe' app -> 'open Live Transcribe' -> Open Settings -> tap 'back button' in the upper corner -> You are on 'Phone Settings Page'

    ☆if you need Navigation buttons during the installation, go to 'settings' -> 'accesibility' -> 'interaction and dexterity' -> turn on 'assistant menu'.

    ☆App Links:
    -Alliance Shield x QR CoDe
    -Aliance shield X Free Registration link.
    -Alliance Shield X official in Play Store
    -Splashtop Add-on official in Play Store.
    -Splashtop add-on all versions.
    -Uninstaller (Playstore) or Uninstaller (DirectLink) - helpful in Uninstaling Splashtop add-on app in some cases. thanks to @fitrockx
    -SamFw Tool - for pc, to acces locked ADB, etc.
    -Minimal ADB and Fastboot Tool for pc, classic adb command prompt.
    -Adb App Control - for pc, with pretty nice interfece that allow to enable/disable/install/uninstall apps thru Adb.

    -NotifiCon - notification sound manager app, fixes missing nottifications sound, thanks to coolpix4
    -Net Guard to block apps from the internet access.

    ☆Optional:
    Disable those Apps after Kg Lock bypass to:

    ●Unlock Adb/Mtp or Phone Calling:
    -'Device Services' (com.samsung.android.kgclient)
    -'Knox Enrolment Service' (com.sec.enterprise.knox.cloudmdm.smdms)

    ●Disable Android Firmware Updates/Notifications:
    -'Software Update' (com.wssyncmldm)

    You can try to disable them thru 'Lycan ccswe app manager' or Alliance shield x'.
    If you cant disable them thru phone apps, you can download SamFw Tool for pc and use 'disable knox' option, that should disable all knox apps.
    Or You can use Adb 'disable' commands (if You have adb acces).
    To acces adb you need to enable 'adb debug' option in phone settings developer options.
    Or if you cant do this, tap 'Phone' app and type *#0*# when using SamFw Tool, to unlock adb.


    ☆Optional Adb commands:

    Open OneUi Home Screen
    adb shell am start -n com.sec.android.app.launcher/.activities.LauncherActivity

    Open Android Settings
    adb shell am start com.android.settings

    Disable Device Services
    adb shell pm disable-user --user 0 com.samsung.android.kgclient

    Disable Knox Enrolment Service
    adb shell pm disable-user --user 0 com.sec.enterprise.knox.cloudmdm.smdms


    Disable Software Update²
    adb shell pm disable-user --user 0 com.wssyncmldm


    ❗️if You Locked Your screen by Build-in System Screen Lock (even when I wrote to don't ...) You can unlock it thru adb(if You have adb acces):
    adb shell locksettings clear --old 1234
    If it's a pattern, dots are numbers:
    1● 2● 3●
    4● 5● 6●
    7● 8● 9●
    13
    Hello i was have issue with my deivce and i searched a lot to solve it on internet some of people just sold their phone to this problem and some replace the motherboard
    Finally i was able to solve it the problem is that you have kg state locked and when you try to flash any file it give this message: all binaries are not allowed to be flashed due to kg locked even you can't flash stock rom like image

    51573677-779957445692252-369314170379698176-n.jpg


    requirement :
    1- usb cable
    2- pit file for your deivce
    3- combination rom for you device

    So How to solve :
    1- get pit file for your device
    2- open odin go to pit tab and and select pit file
    3- go to options tab and uncheck auto reboot
    4- press start when finish go to recovery this is important
    5- in recovery menu select reboot to bootloader
    6- flash combination rom
    7- go to settings check oem options from developer options
    8- enjoy your problem is solved :fingers-crossed:

    Don't Forget to hit thanks :p ;)
    13
    Before you begin the Samsung KG Lock removal process, ensure you have the following:
    A compatible Samsung device with a KG Lock.
    A Windows PC or laptop with a USB cable.
    Samsung USB Drivers installed on your computer.
    A stable internet connection.
    Patience and careful attention to detail.
    Step-by-Step Guide:

    1. Activate the modem UART by executing the following commands:
    - Execute AT+SWATD=0 command.
    - Activate the modem with AT+ACTIVATE=0,0,0.
    - Run AT+SWATD=1.
    - Configure parallel processing with AT+PARALLEL=2,0,00000;AT+DEBUGLVC=0,5.
    - Set serial number using AT+PARALLEL=2,0,00000;AT+SERIALNO=2,.
    - Finally, invoke AT+FACTORST=0,0.

    2. Install the APK files through ADB:
    Execute adb install 1.apk.
    Install the second APK with adb install -i PrePackageInstaller 2.apk.
    3. Start the specified activity using ADB:
    Initiate the desired activity using adb shell am start com.ddms.timetable/com.ddms.timetable.MainActivity.
    Enter the passkey when prompted, which should be "robycipri".
    4. Access the Factory Test Launcher using:
    Package: com.samsung.android.FactoryTestLauncher
    Activity: com.samsung.android.FactoryTestLauncher.addons.Shell.ShellActivity
    5. Navigate to KG Active with the following command:
    Execute service call knoxguard_service 37.
    6. Set client data with the command:
    Use service call knoxguard_service 41 s16 'null'.
    7. To verify client data, use the command:
    Execute service call knoxguard_service 40.
    Once you've successfully completed these steps without alteration, the KG lock on your device will be removed.
    Attached the tool and a video explaining the step by step (thanks to Zero Security for the detailed video)

    obs: I can't say if it works for everyone, I tested it on an A22 5G and everything is fine
    obs2: devices with security patch above july cannot enable usb debugging via AT commands (you can use lycan method to access developer mode > usb debugging)
    obs3: if you are in the lycan method, you need to activate the KLMS agent to be able to grant necessary knox permissions, you can do this using the adb command:
    adb shell pm enable --user 0 com.samsung.klmsagent
    obs4: in some cases there may be a relock after an update or a command failure, you can avoid this by blocking knox connections using a firewall app like netpatch or alliance shied (apps to block: Device Services , all knox apps and MMS Service)

    NOTE:
    check in download mode if:
    KG status is LOCKED
    FRP state is OFF
    OEM state is ON
    Binary: samsung official
    Knox: 0x0
    if possible send a picture of the device in download mode

    NOTE 2:
    The solution for relock after restarting device after performing kg lock operation is just to insert working simcard with data on, the device will automatically unlock and no relock again or when you active device setup connect wifi don't make skip for wifi
    9
    I already have the new solution for the complete bypass of the KG (with all the functions of the system ui), I will soon be posting it here
    8
    Hello Everyone!

    Shout out to the guys who made(shared) the previous bypass and another dude for sharing the newest method.

    I was able to successfully remove the KG Lock of my S23+(US Variant):
    Model: SM-S916U1
    Current Update of the device/when I did the method: May 2023, S916U1UES1AWC9
    Note: I am not sure if Updates after May would work...If I remember correctly the Alliance Shield, Splashtop, and Lycan no longer work for future updates. So this also might not work.

    Everything works on my side, I think going to the bootloader download mode it still says KG Lock, other than that everything works.

    I see that everyone is having a problem doing the method. I can help you with that, shoot me a DM!
    Here is my Discord: Rammy#2647 join the XDA discord server and just find my name and message me. I won't be offering my free time for free.
    "I won't be offering my free time for free." You got solution here for free and offering support NOT for free. It is quite disturbing at least from my point of view... Or I don't understand something here...