[Galaxy Note 4 Android Development (Snapdragon)] Apex Predator:
I can't find anywhere I can set up a profile the way I did on Nougat, for example, a car profile where it automatically disables wifi, changes screen lock to "none" etc. All I can find is the section to add a user, but that isn't what I'm looking for. Have the system profiles been removed entirely? All I see now is an "add user" or guest user option, but that's an entirely different account and inherits none of the admin accounts settings or apps.

The main issue I have is around the screen lock options: I want "none" to be selectable but as soon as I have a sim in the phone, that option disappears. If I set it to none before inserting the sim, it will stay on none, but as soon as I switch it to swipe for e.g. once the sim is inserted, the none option disappears. This is annoying because at home, I don't want any lockscreen...I'm opening the phone so much to fix it until it breaks play around with it, I don't want to have to swipe or use a pin or password, but I do want those options as soon as I leave home.

I did some research and have discovered that all has to do with how LineageOS adds/removes options based on MCC - Mobile Country Codes. If your sim broadcasts an MCC that flags certain features on the disable list, then those functions/features will not be available to you - in my case call recording and no "none" option for screen lock.

What I did to get around this is firstly load dialer.apk into Apk Editor, decompile it, remove the line responsible for disabling call recording then recompile, sign it and copy it to system/priv-app/dialer. I'd previously backed up the original so there was no worries about overwriting it. This all worked fine and call recording was then appearing as an option again in the phone app.

BUT

When I tried the exact same process for the settings.apk it didn't work. I only needed to edit one small xml file (as it was for the dialer) and that went fine, along with recompiling, signing and moving it to system/priv-app/settings. The problem was the phone would just bootloop when I tried to reboot. Interestingly, one time I tried moving it live with phone in full operational mode, went into settings (which loaded just fine) and I SAW the "none" option there!....but when I rebooted to test it bootlooped again. :(

Btw I tried recompiling/signing multiple different ways, with different compression settings, different signing keys etc, but nothing will work. I have no option but to boot into recovery, remove the edited apk and put the original one back, then the phone boots just fine.

So, my questions are as follows:

Why did this operation work with the dialer.apk but not the settings.apk? If the OS is on the lookout for mismatched signatures then it should've caused a problem with the dialer app, right?

If there is no way to achieve what I want with editing the settings.apk, how can I get around this no "none" option for screen lock? In the past, this could be achieved with profiles.

I want sovereignty over my phone, and I don't think it's cool that I can't even choose to have no lock screen in my own home. I understand that the LOS devs put these measures in place for a reason, and they can't be seen to be openly flouting the laws of country x or y, but at least give the users the option. Anyway, any help would be truly appreciated. Also, if anyone knows a better/more appropriate forum on XDA to post these questions for better visibility or help please let me know. Thanks.