yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] tetratheta:
Am I doing it right?

I'm using S8+(SM-G955N, Korean+Exynos) Pie.

I can't understand the tutorial, so here is what I understanded:

I use Pie, so I will follow 'FOR PIE ROM' instruction.

1. Patch build.prop

ro.config.iccc_version=3.0

to

ro.config.iccc_version=iccc_disabled

I can't understand about SecureFolder.apk thing so I skipped it.

2. Patch services.jar

- Deleted

invoke-static {v10, v9}, Lcom/samsung/android/knox/SemPersonaManager;->setAttributes(II)Z

near '.line 1346', Lcom/android/server/pm/PersonaManagerService.

- Deleted

invoke-static {p1, v3}, Lcom/samsung/android/knox/SemPersonaManager;->setAttributes(II)Z

near '.line 945', Lcom/android/server/pm/PersonaServiceHelper. It says it is in line 941 but recent version of services.jar, it is in line 945.

- Added

const/4 v11, 0x1

in

.line 1344
.local v8, "ui":Landroid/content/pm/UserInfo;
iget-object v11, p0, Lcom/android/server/pm/PersonaManagerService;->mContext:Landroid/content/Context;

invoke-static {v11}, Lcom/android/server/pm/PersonaServiceHelper;->isTimaAvailable(Landroid/content/Context;)Z

move-result v11

const/4 v11, 0x1

if-nez v11, :cond_2

in Lcom/android/server/pm/PersonaManagerService.

I wonder I should do it in Lcom/android/server/pm/PersonaServiceHelper.

.line 944
invoke-static {p0}, Lcom/android/server/pm/PersonaServiceHelper;->isTimaAvailable(Landroid/content/Context;)Z

move-result v3

if-nez v3, :cond_0

For the time being, I didn't add line to Lcom/android/server/pm/PersonaServiceHelper becuase there wasn't saying about that(As long as I understand).

3. Modify system/etc/floating_features.xml

Added

<SEC_FLOATING_FEATURE_KNOX_SUPPORT_UKS>TRUE</SEC_FLOATING_FEATURE_KNOX_SUPPORT_UKS>

because there wasn't.

I am working on stock rom(no port rom).

I wonder I am doing it right or I missed something or done wrong.

PS. Any means to trick firmware status to 'Official'?

PPS. I've tried 'Smali Pathcer' Magisk module, but I broke my camera(black screen) and Secure Folder became not asking password/pin/pattern. I think It isn't right tool for me.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] jaran kepang:
hello im trying to add this patch to get secure folder but ended with fail boot,my rom cant boot with deodexed services.jar..

i deodex framework with toad then put only services.jar and replace it to working system but the rom cant boot..only samsung logo without dimming..im using fully stock rom..my device is note fe..anyone can help me ??thanks
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] dandaosd17:
Could someone help me? I'm Brazilian and I don't know much about programming.

Galaxy s930f android oreo

rom G930FXXS8ETCM_G930FZTO8ETCA_ZTO

Could you make a video or explain better what should be done?

I only managed

II. Patch build.prop:

altere ro.config.iccc_version = 3.0 para

ro.config.iccc_version = iccc_disabled

and so sansumg health is back but the safe folder is not

I also did the entire smalipatcher procedure but it didn't work.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] louforgiveno:
I believe [MENTION=2744265]sac23[/MENTION] did, maybe pm or telegram him
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Franc89:
Hi mate thanks so much

Possible use pie method on Q? If not how to patch it on android 10 Q thanks
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
Use this method: https://xdaforums.com/showpost.php?p=82978861&postcount=1522

Worked on my A71
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Franc89:
Not working on my N971N. After replace Apk from priv-app phone not boot
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
Use your original firmware/ROM apps
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Franc89:
I edit service.jar and use original app but not working
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Franc89:
How about Android Q 10?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] mahaseno:
Is there anybody can help me to run secure folder on s7 edge oreo rom?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Snowers96:
Thanks! With https://xdaforums.com/t/module-smali-patcher-7-3.3680053/ and the fix

system/etc/floating_features.xml:

<SEC_FLOATING_FEATURE_KNOX_SUPPORT_UKS>TRUE</SEC_FLOATING_FEATURE_KNOX_SUPPORT_UKS>

I got Secure Folder running well and with Fingerprint working on Galaxy S8 Stock ROM April patch
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] rodrigospascoal:
Does this still work? This helped me fixing Samsung Health but Secure Folder keeps giving the same error.

I'm looking forward to alternatives to Smali Patcher as it gives me the Knox class error.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] pichai:
Does the patching principle also apply to Workspace patching?

Knox Workspace 3.2.1: New tab-based UI in Android P | Samsung Knox

The layout of Knox Workspace 3.2.1 has changed – for the better! Knox now uses a tabbed UI to show personal and work apps, which aligns with the app drawer changes in Android P. This e...

www.samsungknox.com
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Ashwin10^10^100:
Main takeaway is ??????

How do you mod (secure) folder ??????

And KNOX workspace container ??????

(especially on oreo - pie)
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Akramjon93:
how to securefolder fix ? N976N U2 OS12 help me please
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
Try this magisk module:

SecureFolder_Magisk.zip | by Kirby Nx for -All-General-Generic-

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ANDROIDXFOREVER:
welcome back [MENTION=5715837]khongloi113[/MENTION] Big Master :D:good:
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Alivevil:
Congratulations!

Congratulations!:victory:

Very Very Great Job!:good:

and Thanks a Lot for Sharing these information...

your the boss mate...
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] andrea2004:
hello guys, thanks a lot of the guide, since I'm on a custom rom that doesn't provide knox services, which apps should I push in the priv-app and app from the original firmware to make secure folder work? thank you
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] karunattu:
Can you make a video how to do?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] vaibhavnegi:
can you please share the edited service jar???
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] aveyy:
+2
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] denkazzzget:
It works only with Secure Folder? I can create Work Profile container ( with Shelter or Island app )? Someone can check.

Also, it works on Oreo? Thx.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] a.raul:
are you sure?

:confused::eek::eek:
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
:D

Guys did someone tried it yet ?

Seems like lock is not working as expected.

Simply as try to go to Secure Folder > Settings > Lock type it WON'T recognize the saved pattern/pin/password.

Secure Folder > Lock doesn't works either. It will close the app but can be started again without pattern.

[MENTION=5715837]khongloi113[/MENTION] is this working for you?

I took a quick log and seems like it detects the credentialls as null. The action is inside a try-catch block so the NullPointerException doesn't gives FC, but security is gone for the app... :(
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
Well Working here.

Video?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
https://mega.nz/#!XU11QaoC!jA59nfg6-HcOaWi-oTunEQNZzQgV5pjlH-Mt8rcXqWA
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
Strange things.

Logcat?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
Sure

Error seems to be produced on SyntheticPasswordMdfpp

https://mega.nz/#!2NdTHQZT!6BD6jy4iBWw6js8sU0Y1fylsGSXt7rCSOgdh3XNtdiQ
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
https://drive.google.com/file/d/1ISC8PAL3GYrJxMSujE4-m1G_l-U5UoHf/view?usp=drivesdk
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
So strange.

Tried too on a fresh base (in case my base had something more removed) without debloat a single app [emoji848][emoji848]

Are you sure there is no more editions?

On services I tried all possible ways, all "worked", with that bug [emoji2369]
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
No computer here now :(
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
Seems something related to TIMA...

SDPLog.d: java.lang.Exception: Failed to get tima service

SDPLog.d: com.android.server.locksettings.SyntheticPasswordSecret.getTimaStatus(Unknown Source:38)

W System.err: java.lang.SecurityException: Device seems to be compromised!

W System.err:	at com.android.server.locksettings.SyntheticPasswordSecret.importKey(Unknown Source:34)

SDPLog.d: java.security.cert.CertificateException: FipsTimaKeystore initialization error
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] thereassaad:
Have u tried in clean flash rom ? Seems that's pass/pin/pattern issues need a clean .. here i have added the edited without adding knox apps & i have different issues like some lags in reloading apps etc .. so i revert all edited.. this lags happens here after a clean wiping install roms ..

+ have u did the status to be official ? Seems u need this it's secsetting edited in sysScope smali only 2 smali there need to be edited . In

SecDeviceInfoUtils

In method getSupportRootbadge = this need to be replaced with const vX 0x0

& in SyscopeStatusPreferenceController need to be replaced with const vX 0x1 ..
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
Yess bro all right here... even used the kitchen base zip, which doesn't have debloat, deknox, etc... Settings is official, and different services combinations, but the log is always pointing to tima. I edited some more methods related that was present on the log but I'm stuck at Tima Keystore initialization error.

At the moment I haven't seen someone with secure folder running as it should, that's what I guess some modification is missing on the post, but let's wait khongloi to confirm it.

:good:
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] thereassaad:
Have u tried to leave isTimaAvailable method as it is ? I guess the issues it's there ..
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] a.raul:
Abraham, I think it's time to go to the Oneplus 7 pro (:D) and leave the Koreans with their fantastic mobiles ... They don't deserve anything other than the recoil ...
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Ronan Hansel:
Cảm ơn nhé!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
I tested other roms and they all have that issue. However my own custom rom do not have that issue.

It's likely due to spd engine and tima things in password store, encrypt and decrypt. One posible solution is by-passing all checks in related smali files. But in fact I did not do that.

I think some my extra modifications (compare to stock and very few) solved the problem or some of your modifications caused the problem.

However my device is very rarely disponilbe for testing.

Then, i'm uploading my whole rom so that all of us can check and find out what solved/caused problem.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
Yes [emoji20], but the problem is on getting the instance, not on checking availability

Okay [emoji106][emoji106]

Force related methods is already tried, but it ends in the same point, when it tries to get the tima instance, is always null, there is a boolean for use "fipstimakeystore" or "timakeystore", but both does the same. Anyway I reverted all and will check once ur ROM is up for look at the changes.

Thanks [emoji6]
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] dr.ketan:
Can you enable PM or send me your mail ID? I think it's fixed.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
Enabled PM :good:
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
https://drive.google.com/file/d/1-06c8ADoAPVFN8hgPOqLBV34R4vVH110/view?usp=drivesdk
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
My rom has very little modifications
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Jayvee2012:
Its compatible with s8plus? Exynos.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
[MENTION=3931450]dr.ketan[/MENTION] fixed it
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] duhan2007:
Why don't you share the fixed files or full codes and procedure with us?

SM-N9500 cihazımdan Tapatalk kullanılarak gönderildi
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] AbrahamGC:
Edit: Solution is posted down here
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] dr.ketan:
To fix lock issue of secure folder

download smali

http://www.mediafire.com/file/ivy8py1lueln8tf/SyntheticPasswordManager.smali/file

and replace in service jar ( com/android/server/locksettings) -
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
Got it.

I added this line to floating_features.xml and it affected SyntheticPasswordManager. This line is from S10 firmware.

<SEC_FLOATING_FEATURE_KNOX_SUPPORT_UKS>TRUE</SEC_FLOATING_FEATURE_KNOX_SUPPORT_UKS>

Edited first post.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Thor1964:
THX,

s8 stock root all works fine, good work man;)
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Mario210:
Can you post your service.jar in here ?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Thor1964:
I HOPE ITS allowed:confused:

I can do, but that's not my work, I downloaded it from the forum 4dpa, if you install that you lose your own mods! better make a backup before. complete
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Thor1964:
I can do, but that's not my work, I downloaded it from the forum 4dpa, if you install that you lose your own mods! better make a backup before. complete.

HOPE IS ALLOWED
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
No problem
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Mario210:
So just flash it true twrp ?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] SHKOMAGDID:
I got a nice bootloop:)
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Mario210:
It's working but secure not
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] SHKOMAGDID:
Why did i got a bootloop?:rolleyes:
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Thor1964:
it works 100% for me. that's why I said, make a backup before! think bootloop comes from the services.jar! flash stock services for testing
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] a.raul:
Because we ventured to upload files to mobile model to flash without asking the model which is going to flash ?, hence the bootloop ...
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Mario210:
N8 S8 it doesn't matter really.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] a.raul:
There, let's not fool people, the modification takes a services.jar, unavailable from an S8 to a Note 8 and vice versa, the bootloop is imminent in this situation
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Thor1964:
and why does it work for me ???

I have to test the eclipsestock rom v6 installed, there it goes

work 100%!!!confused
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Thor1964:
you can see it on video
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] a.raul:
Ni a tocino
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] SHKOMAGDID:
No problems bud i always backup before flashing something :victory:
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Normusmaxamus:
Just an informed post tried to instill on an S9+and got a bootloop. Restored backup all great again. Thank you for sharing the zip much appreciated hopefully someone will share a compatible S9+ usable version thank you once again. Great work.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] KraZZeman07:
I have SM-N950F (single SIM) and bootloop made with this....

I have read all the threat about patching secure folder and I do not know how to do that. Only one step I can make with build.prop. Can anyone explain me and others how to this if I am noob with modification of system?

I have installed DeluxeROM with totally no KNOX apps included in system.

I can pay a few dollar for the instruction step by step for customization noob. Best would be a video tutorial. Please help me someone.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Ilker1234:
Tab s4 works)View attachment 4798169

Отправлено с моего SM-T835 через Tapatalk
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] Shazeb Qaisar:
Secure folder

Sir can i use secure folder on s7 official oreo?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] a.raul:
In the next release of DeluxeRom, it will include the secure folder, the dollars, you pass to [MENTION=7393522]AbrahamGC[/MENTION], I'm sure, they will be quite good ...
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ricci206:
Good morning to all,

please anyone send me secSettings for S8 with status OFFICIAL ?

Thank you
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
I posted my own note 8 rom in this thread. Download it and take libget_icd.so in my rom. I aready patched those libs for status official. No need to mod SecSettings.apk
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] hochocnua:
.method public static isUnifiedKeyStoreSupported()Z

.locals 3

.line 1906

const/4 v0, 0x0

.line 1910

.local v0, "ret":Z

invoke-static {}, Lcom/samsung/android/feature/SemFloatingFeature;->getInstance()Lcom/samsung/android/feature/SemFloatingFeature;

move-result-object v1

const-string v2, "SEC_FLOATING_FEATURE_KNOX_SUPPORT_UKS"

Thanks [MENTION=5715837]khongloi113[/MENTION] for all
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] bilawalshah22:
Can you please post guide screenshots on any method explaining steps to fix secure fo

Can you please post guide screenshots on any method explaining steps to fix secure folder. I will be very thankful. I am new here.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
This is working great on Pie.

I am gonna go all out and try to fix it on Oreo, but I doubt it will work.

Everything else on the guide looks to be present in Oreo as well.

Wish me luck!

Oh and thanks again for your hard work, I am sure that nobody expected Secure Folder to work again and you surprised all. Great job!

EDIT: Didn't work lol. Most services.jar code was present exactly like in Pie.

It looks as though it starts creating the secure folder. However after a few minutes, it just shows a message that it could not create the secure folder.

I guess my next step would be to patch Lcom/android/server/pm/PersonaServiceHelper;->isTimaAvailable to always return true?

I don't know how to do it though lol

I'll keep trying
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
Send me securefolder.apk and servives.jar
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
I've attached it here to xda.

I've also added the logcat of my attempt, if it helps in anything

:)
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] mehdi.moha:
A question ,

Can you enable Spay also???
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] yash92duster:
[MENTION=5715837]khongloi113[/MENTION]

Great Work!!

Works Fine on S8+ & S9:)
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] SHKOMAGDID:
Is this a flashable zip to fix secure folder?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] denkazzzget:
I think it doesn't work on oreo, I patched these two methods and stuck with this problem.

I tried to get working Work Profile but after the container get created ( infos from logcat ) it is being removed by KnoxMUM in services.jar after is called ICCC check from framework.jar
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
Oreo is different from Pie:

Check and mod this code in KnoxMUMContainerPolicy

invoke-static {v5}, Lcom/android/server/pm/PersonaServiceHelper;->isTimaAvailable(Landroid/content/Context;)Z

move-result v5

if-nez v5, :cond_0

Or mod this method PersonaServiceHelper;->isTimaAvailable so that it return true.

Let check
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
Ok, I think we may be getting closer (thank you guys so so much for taking a look into a dead android version)

Patching KnoxMUMContainerPolicy sure makes it work a bit further (the "Creating Secure Folder" screen lasts longer)

I'm attaching the logcat called logsecure01

Still didn't create it.

Now, I patched isTimaAvailable in PersonaServiceHelper to see what happens

.method public static isTimaAvailable(Landroid/content/Context;)Z
.locals 1

const/4 v0, 0x1

return v0

.end method

Located in

smali/com/android/server/pm/PersonaServiceHelper.smali

Let me know if I did this correctly or incorrectly as I am relatively new

Still, didn't work.

Logcat is called logsecure02.txt

Let me know what I should be looking for in the logcat as I am not very good as reading them :/

Thanks again guys!
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
Method ok.

Build.prop file?
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
Too many differences to check.

Mod this method checkTimaStatus in Lcom/android/server/KnoxFileHandler to return true then check.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
Attached is build.prop in txt extension

Iccc disabled, Tima enabled.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
Ok tried this.

Aaaaaaaaaaaaaaand it seemed to almost make it

Logcat attempt 03
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
Next step in KnoxFileHandler:

getTimaKeyStoreName mod to return 0x0

getTimaService mod to return 0x0

And recheck
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
Ok up to this point I've been making everything return 0x1 but in this case, I will make it return 0x0

This causes a bootloop

logsecure04

Then I changed it to 0x1 instead

Still, bootloop

logsecure05

Probably I'm changing the method wrong?

.method private getTimaKeyStoreName()Ljava/lang/String;
.locals 1

const/4 v0, 0x1

return v0
.end method

.method private getTimaService()Landroid/service/tima/ITimaService;
.locals 1

const/4 v0, 0x1

return v0
.end method
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] ShaDisNX255:
UPDATE:

Ok so

Just trying a few things out.

When going through this, these are the apps I re-added back (based on what was re-added on Pie):

System/priv-app
[LIST]
[*]KLMSAgent
[*]KnoxCore
[*]knoxvpnproxyhandler
[*]SecureFolder
[/LIST]

I'm going to add a few more from this list (that kitchen removes automatically)

System/app
[LIST]
[*]BBCAgent
[*]KeyChain
[*]KnoxAttestationAgent
[*]MDMApp
[*]SamsungDLPService
[*]SecureFolderSetupPage
[*]SecurityLogAgent
[*]SecurityProviderSEC
[*]UniversalMDMClient
[/LIST]
System/priv-app
[LIST]
[*]ContainerAgent3
[*]DiagMonAgent
[*]KLMSAgent
[*]KnoxCore
[*]knoxvpnproxyhandler
[*]Rlc
[*]SamsungBilling
[*]SecureFolder
[*]SOAgent
[*]SPDClient
[*]SVCAgent
[/LIST]

Now, adding all these back causes my device to freak out and soft reboot after a few minutes

So I'll be working with these and add the ones that seem most likely to trigger secure folder and will report back. Hopefully, it's a matter of adding some apps back.

Oh and... not all of these are missing from my ROM default priv-app and app

For example, SecureFolderSetupPage and ContainerAgent3 are present. But some others like KnoxAttestationAgent are missing. I'll see if I get any luck.
[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] khongloi113:
V0 x0

Return-object v0