[Samsung Galaxy A8+ (2018) ROMs, Kernels, Recoverie] cedlefou:
Ok so i've not gone very far...

What i understands from the logcat below is that the container creation resulting from the managed user profile creation request is still handled by... knox ! And at last tima is coming out again because of some missing truslet...

Any idea on what to remove/replace to let legacy android packages handle the work profile creation ?

I mean : am i the only one in the world wanting to setup my own sandbox (island or shelter like) on my customized sammy phone ?

Thanks.

03-11 00:12:49.595 11118 11118 E appproc : Enhanced Zygote ASLR: ro.knox.enhance.zygote.aslr != 1. Enhanced Zygote ASLR is DISABLED!
03-11 00:12:49.595 11118 11118 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
03-11 00:12:49.687 11118 11118 I app_process: find the special shared library, skip check
03-11 00:12:49.719 11118 11118 E SemAffinityControl: SemAffinityControl: registerfunction enter
03-11 00:12:49.721 11118 11118 E System : Unable to open boot classpath entry: /system/framework/core-oj.jar
03-11 00:12:49.721 11118 11118 E System : java.util.zip.ZipException: error in opening zip file
03-11 00:12:49.721 11118 11118 E System : at java.util.zip.ZipFile.open(Native Method)
03-11 00:12:49.721 11118 11118 E System : at java.util.zip.ZipFile.<init>(ZipFile.java:235)
03-11 00:12:49.721 11118 11118 E System : at java.util.zip.ZipFile.<init>(ZipFile.java:149)
03-11 00:12:49.721 11118 11118 E System : at java.util.jar.JarFile.<init>(JarFile.java:160)
03-11 00:12:49.721 11118 11118 E System : at java.util.jar.JarFile.<init>(JarFile.java:97)
03-11 00:12:49.721 11118 11118 E System : at libcore.io.ClassPathURLStreamHandler.<init>(ClassPathURLStreamHandler.java:47)
03-11 00:12:49.721 11118 11118 E System : at java.lang.VMClassLoader.createBootClassPathUrlHandlers(VMClassLoader.java:49)
03-11 00:12:49.721 11118 11118 E System : at java.lang.VMClassLoader.<clinit>(VMClassLoader.java:32)
03-11 00:12:49.721 11118 11118 E System : at java.lang.BootClassLoader.findResource(ClassLoader.java:1360)
03-11 00:12:49.721 11118 11118 E System : at java.lang.BootClassLoader.getResource(ClassLoader.java:1406)
03-11 00:12:49.721 11118 11118 E System : at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:987)
03-11 00:12:49.721 11118 11118 E System : at java.lang.Class.getResourceAsStream(Class.java:2211)
03-11 00:12:49.721 11118 11118 E System : at java.util.logging.LogManager.readConfiguration(LogManager.java:1297)
03-11 00:12:49.721 11118 11118 E System : at java.util.logging.LogManager$3.run(LogManager.java:390)
03-11 00:12:49.721 11118 11118 E System : at java.util.logging.LogManager$3.run(LogManager.java:388)
03-11 00:12:49.721 11118 11118 E System : at java.security.AccessController.doPrivileged(AccessController.java:67)
03-11 00:12:49.721 11118 11118 E System : at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:387)
03-11 00:12:49.721 11118 11118 E System : at java.util.logging.LogManager.-wrap5(Unknown Source:0)
03-11 00:12:49.721 11118 11118 E System : at java.util.logging.LogManager$2.run(LogManager.java:336)
03-11 00:12:49.721 11118 11118 E System : at java.security.AccessController.doPrivileged(AccessController.java:41)
03-11 00:12:49.721 11118 11118 E System : at java.util.logging.LogManager.ensureLogManagerInitialized(LogManager.java:329)
03-11 00:12:49.721 11118 11118 E System : at java.util.logging.LogManager.getLogManager(LogManager.java:369)
03-11 00:12:49.721 11118 11118 E System : at java.util.logging.Logger.demandLogger(Logger.java:449)
03-11 00:12:49.721 11118 11118 E System : at java.util.logging.Logger.getLogger(Logger.java:505)
03-11 00:12:49.721 11118 11118 E System : at android.icu.util.TimeZone.<clinit>(TimeZone.java:95)
03-11 00:12:49.721 11118 11118 E System : at java.util.TimeZone.setDefault(TimeZone.java:741)
03-11 00:12:49.721 11118 11118 E System : at com.android.internal.os.RuntimeInit.commonInit(RuntimeInit.java:157)
03-11 00:12:49.721 11118 11118 E System : at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:281)
03-11 00:12:49.725 11118 11118 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
03-11 00:12:49.734 4200 4895 D PersonaServiceHelper: creating enterprise owned container
03-11 00:12:49.767 4200 4895 D CryptdConnector: SND -> {7 cryptfs create_user_key 11 11 0}
03-11 00:12:49.768 3531 3548 D vold : e4crypt_vold_create_user_key for 11 serial 11
03-11 00:12:49.769 4200 4363 D CryptdConnector: RCV <- {200 7 Command succeeded}
03-11 00:12:49.770 4200 4895 D PersonaServiceHelper: Trying to mount 11
03-11 00:12:49.771 4200 4895 D EnterprisePartitionManager: SND -> {create_partition 11}
03-11 00:12:49.771 3531 3543 D epmd :
03-11 00:12:49.771 3531 3543 D epmd :
03-11 00:12:49.771 3531 3543 D epmd : CMD > create_partition
03-11 00:12:49.771 3531 3543 E epmd : creating Knox container DE partitions
03-11 00:12:49.771 3531 3543 D epmd : Partition obj created
03-11 00:12:49.771 3531 3543 D epmd : Partition::dump============== 11
03-11 00:12:49.771 3531 3543 D epmd : Partition::mType > INTERNAL-SDCARD mSrcPath > /data/knox/data_de/11 mMntPath > /data/user_de/11
03-11 00:12:49.771 3531 3543 D epmd : Partition::SDP > not supported
03-11 00:12:49.771 3531 3543 D epmd : Partition::create
03-11 00:12:49.772 3531 3543 D epmd : makeDirectory(/data/knox/data_de/11)
03-11 00:12:49.772 3531 3543 D epmd : Input srcpath - src: /data/knox/data_de/11/
03-11 00:12:49.772 3531 3543 D epmd : Resolved srcpath - srcPath: /data/knox/data_de/11
03-11 00:12:49.773 3531 3543 D epmd : real path - rtStr: /data/knox/data_de/11
03-11 00:12:49.773 3531 3543 D epmd : This is canonical path.
03-11 00:12:49.774 3531 3543 D epmd : makeDirectory(/data/user_de/11)
03-11 00:12:49.774 3531 3543 D epmd : Input srcpath - src: /data/user_de/11/
03-11 00:12:49.774 3531 3543 D epmd : Resolved srcpath - srcPath: /data/user_de/11
03-11 00:12:49.774 3531 3543 D epmd : real path - rtStr: /data/user_de/11
03-11 00:12:49.774 3531 3543 D epmd : This is canonical path.
03-11 00:12:49.775 3531 3543 D epmd : deleting Partition object.
03-11 00:12:49.775 3531 3543 D epmd : Partition obj created
03-11 00:12:49.775 3531 3543 D epmd : Partition::dump============== 11
03-11 00:12:49.775 3531 3543 D epmd : Partition::mType > INTERNAL-SDCARD mSrcPath > /data/knox/misc_de/11 mMntPath > /data/misc_de/11
03-11 00:12:49.775 3531 3543 D epmd : Partition::SDP > not supported
03-11 00:12:49.775 3531 3543 D epmd : Partition::create
03-11 00:12:49.775 3531 3543 D epmd : makeDirectory(/data/knox/misc_de/11)
03-11 00:12:49.775 3531 3543 D epmd : Input srcpath - src: /data/knox/misc_de/11/
03-11 00:12:49.776 3531 3543 D epmd : Resolved srcpath - srcPath: /data/knox/misc_de/11
03-11 00:12:49.776 3531 3543 D epmd : real path - rtStr: /data/knox/misc_de/11
03-11 00:12:49.776 3531 3543 D epmd : This is canonical path.
03-11 00:12:49.776 3531 3543 D epmd : makeDirectory(/data/misc_de/11)
03-11 00:12:49.777 3531 3543 D epmd : Input srcpath - src: /data/misc_de/11/
03-11 00:12:49.777 3531 3543 D epmd : Resolved srcpath - srcPath: /data/misc_de/11
03-11 00:12:49.777 3531 3543 D epmd : real path - rtStr: /data/misc_de/11
03-11 00:12:49.777 3531 3543 D epmd : This is canonical path.
03-11 00:12:49.777 3531 3543 D epmd : deleting Partition object.
03-11 00:12:49.778 3531 3543 D epmd : Partition obj created
03-11 00:12:49.778 3531 3543 D epmd : Partition::dump============== 11
03-11 00:12:49.778 3531 3543 D epmd : Partition::mType > INTERNAL-SDCARD mSrcPath > /data/knox/system_de/11 mMntPath > /data/system_de/11
03-11 00:12:49.778 3531 3543 D epmd : Partition::SDP > not supported
03-11 00:12:49.778 3531 3543 D epmd : Partition::create
03-11 00:12:49.778 3531 3543 D epmd : makeDirectory(/data/knox/system_de/11)
03-11 00:12:49.778 3531 3543 D epmd : Input srcpath - src: /data/knox/system_de/11/
03-11 00:12:49.778 3531 3543 D epmd : Resolved srcpath - srcPath: /data/knox/system_de/11
03-11 00:12:49.778 3531 3543 D epmd : real path - rtStr: /data/knox/system_de/11
03-11 00:12:49.779 3531 3543 D epmd : This is canonical path.
03-11 00:12:49.779 3531 3543 D epmd : makeDirectory(/data/system_de/11)
03-11 00:12:49.780 3531 3543 D epmd : Input srcpath - src: /data/system_de/11/
03-11 00:12:49.780 3531 3543 D epmd : Resolved srcpath - srcPath: /data/system_de/11
03-11 00:12:49.780 3531 3543 D epmd : real path - rtStr: /data/system_de/11
03-11 00:12:49.780 3531 3543 D epmd : This is canonical path.
03-11 00:12:49.780 3531 3543 D epmd : deleting Partition object.
03-11 00:12:49.781 4200 4280 D EnterprisePartitionManager: RCV <-
03-11 00:12:49.781 4200 4895 D EnterprisePartitionManager: RMV <-
03-11 00:12:49.781 4200 4895 D EnterprisePartitionManager: event : 200 4 success
03-11 00:12:49.781 4200 4895 D KnoxFileHandler: Knox persona partition successfully created..
03-11 00:12:49.781 4200 4895 D KnoxFileHandler: storeEcryptFSKey enter
03-11 00:12:49.782 4200 4895 D TimaService: TIMA3: KeyStore3_init
03-11 00:12:49.782 4200 4895 D TimaService: TIMA: in getTimaVersion
03-11 00:12:49.782 4200 4895 D TimaService: TIMA: in getTimaStatus
03-11 00:12:49.782 4200 4895 E TLC_TZ_KEYSTORE: : Inside TZ_KEYSTORE_initialize()
03-11 00:12:49.782 4200 4895 I TLC_TZ_KEYSTORE: : creating new keystore context...
03-11 00:12:49.782 4200 4895 I TLC_TZ_KEYSTORE: : initializing ccm context...
03-11 00:12:49.782 4200 4895 I TLC_TZ_KEYSTORE: : root = 0, root_strlen = 1
03-11 00:12:49.782 4200 4895 I TLC_TZ_KEYSTORE: : process = ffffffff000000000000000000000013, process_strlen = 32
03-11 00:12:49.782 4200 4895 I TZ: mc_tlc_communication: input max_sendmsg_size = 1080
03-11 00:12:49.782 4200 4895 I TZ: mc_tlc_communication: input max_recvmsg_size = 1080
03-11 00:12:49.782 4200 4895 I TZ: mc_tlc_communication: root = 0, root_len = 1
03-11 00:12:49.782 4200 4895 I TZ: mc_tlc_communication: process = ffffffff000000000000000000000013, process_strlen = 32
03-11 00:12:49.782 4200 4895 I TZ: mc_tlc_communication: aligned max_sendmsg_size = 1088
03-11 00:12:49.782 4200 4895 I TZ: mc_tlc_communication: aligned max_recvmsg_size = 1088
03-11 00:12:49.782 4200 4895 I TZ: mc_tlc_communication: device_id = 0x0
03-11 00:12:49.782 4200 4895 I TZ: mc_tlc_communication: tlc_open() was called
03-11 00:12:49.783 4200 4895 I TZ: mc_tlc_communication: Opening MobiCore device
03-11 00:12:49.783 4200 4895 I TeeSysClient: open mode set to: 0 [hardware/samsung_slsi/exynos7885/mobicore/ClientLib/src/common.cpp:343]
03-11 00:12:49.783 4200 4895 I TZ: mc_tlc_communication: Allocating message buffer for TCI
03-11 00:12:49.783 4200 4895 I TZ: mc_tlc_communication: Opening the session
03-11 00:12:49.784 3529 3532 W TeeMcDaemon: Cannot open trustlet /data/misc/mcRegistry/ffffffff000000000000000000000013.tlbin (No such file or directory) [hardware/samsung_slsi/exynos7885/mobicore/Daemon/src/SecureWorld.cpp:195]
03-11 00:12:49.786 4200 4895 E TeeSysClient: No such file or directory in mcOpenSession [hardware/samsung_slsi/exynos7885/mobicore/ClientLib/src/driver.cpp:750]
03-11 00:12:49.786 4200 4895 E TZ: mc_tlc_communication: mcOpenSession failed: mcRet = 0x00000010
03-11 00:12:49.786 4200 4895 E TZ: mc_tlc_communication: tlc_open failed
03-11 00:12:49.786 4200 4895 E TZ: TLC_COMMUNICATION: : direct_comm_ctx cannot be create normally
03-11 00:12:49.786 4200 4895 E TLC_TZ_KEYSTORE: : Failed to establish secure world communication
03-11 00:12:49.786 4200 4895 E TLC_TZ_KEYSTORE: : ctx initialization failed, deleting the context
03-11 00:12:49.786 4200 4895 E TLC_TZ_KEYSTORE: : Unable to get keystore ctx
03-11 00:12:49.786 4200 4895 E : TimaKeyStore: TZ_KEYSTORE_initialize failed : 2
03-11 00:12:49.786 4200 4895 D KnoxFileHandler: createPartition : secretkey not saved successfully. Removing partition
03-11 00:12:49.786 4200 4895 D KnoxFileHandler: deleteEcryptFSKey enter
03-11 00:12:49.786 4200 4895 D KnoxFileHandler: deleteEcryptFSKey-> isTimaEnabled :true
03-11 00:12:49.787 4200 4895 D TimaService: TIMA3: KeyStore3_init
03-11 00:12:49.787 4200 4895 D TimaService: TIMA: in getTimaVersion
03-11 00:12:49.787 4200 4895 D TimaService: TIMA: in getTimaStatus
03-11 00:12:49.787 4200 4895 E TLC_TZ_KEYSTORE: : Inside TZ_KEYSTORE_initialize()
03-11 00:12:49.787 4200 4895 I TLC_TZ_KEYSTORE: : creating new keystore context...
03-11 00:12:49.787 4200 4895 I TLC_TZ_KEYSTORE: : initializing ccm context...
03-11 00:12:49.787 4200 4895 I TLC_TZ_KEYSTORE: : root = 0, root_strlen = 1
03-11 00:12:49.787 4200 4895 I TLC_TZ_KEYSTORE: : process = ffffffff000000000000000000000013, process_strlen = 32
03-11 00:12:49.787 4200 4895 I TZ: mc_tlc_communication: input max_sendmsg_size = 1080
03-11 00:12:49.787 4200 4895 I TZ: mc_tlc_communication: input max_recvmsg_size = 1080
03-11 00:12:49.787 4200 4895 I TZ: mc_tlc_communication: root = 0, root_len = 1
03-11 00:12:49.787 4200 4895 I TZ: mc_tlc_communication: process = ffffffff000000000000000000000013, process_strlen = 32
03-11 00:12:49.787 4200 4895 I TZ: mc_tlc_communication: aligned max_sendmsg_size = 1088
03-11 00:12:49.787 4200 4895 I TZ: mc_tlc_communication: aligned max_recvmsg_size = 1088
03-11 00:12:49.787 4200 4895 I TZ: mc_tlc_communication: device_id = 0x0
03-11 00:12:49.787 4200 4895 I TZ: mc_tlc_communication: tlc_open() was called
03-11 00:12:49.787 4200 4895 I TZ: mc_tlc_communication: Opening MobiCore device
03-11 00:12:49.787 4200 4895 I TeeSysClient: open mode set to: 0 [hardware/samsung_slsi/exynos7885/mobicore/ClientLib/src/common.cpp:343]
03-11 00:12:49.787 4200 4895 I TZ: mc_tlc_communication: Allocating message buffer for TCI
03-11 00:12:49.788 4200 4895 I TZ: mc_tlc_communication: Opening the session
03-11 00:12:49.788 3529 3532 W TeeMcDaemon: Cannot open trustlet /data/misc/mcRegistry/ffffffff000000000000000000000013.tlbin (No such file or directory) [hardware/samsung_slsi/exynos7885/mobicore/Daemon/src/SecureWorld.cpp:195]
03-11 00:12:49.789 4200 4895 E TeeSysClient: No such file or directory in mcOpenSession [hardware/samsung_slsi/exynos7885/mobicore/ClientLib/src/driver.cpp:750]
03-11 00:12:49.789 4200 4895 E TZ: mc_tlc_communication: mcOpenSession failed: mcRet = 0x00000010
03-11 00:12:49.790 4200 4895 E TZ: mc_tlc_communication: tlc_open failed
03-11 00:12:49.790 4200 4895 E TZ: TLC_COMMUNICATION: : direct_comm_ctx cannot be create normally
03-11 00:12:49.790 4200 4895 E TLC_TZ_KEYSTORE: : Failed to establish secure world communication
03-11 00:12:49.790 4200 4895 E TLC_TZ_KEYSTORE: : ctx initialization failed, deleting the context
03-11 00:12:49.790 4200 4895 E TLC_TZ_KEYSTORE: : Unable to get keystore ctx
03-11 00:12:49.790 4200 4895 E : TimaKeyStore: TZ_KEYSTORE_initialize failed : 2
03-11 00:12:49.790 4200 4895 D EnterprisePartitionManager: SND -> {remove_partition 11}
03-11 00:12:49.790 3531 3543 D epmd :
03-11 00:12:49.790 3531 3543 D epmd :
03-11 00:12:49.790 3531 3543 D epmd : CMD > remove_partition 11 3
03-11 00:12:49.790 3531 3543 E epmd : Removing Knox container DE partitions
03-11 00:12:49.790 3531 3543 D epmd : Partition obj created
03-11 00:12:49.790 3531 3543 D epmd : Partition::dump============== 11
03-11 00:12:49.790 3531 3543 D epmd : Partition::mType > INTERNAL-SDCARD mSrcPath > /data/knox/data_de/11 mMntPath > /data/user_de/11
03-11 00:12:49.790 3531 3543 D epmd : Partition::SDP > not supported
03-11 00:12:49.792 3531 3543 D epmd : deleting Partition object.
03-11 00:12:49.792 3531 3543 D epmd : Partition obj created
03-11 00:12:49.792 3531 3543 D epmd : Partition::dump============== 11
03-11 00:12:49.792 3531 3543 D epmd : Partition::mType > INTERNAL-SDCARD mSrcPath > /data/knox/misc_de/11 mMntPath > /data/misc_de/11
03-11 00:12:49.792 3531 3543 D epmd : Partition::SDP > not supported
03-11 00:12:49.793 3531 3543 D epmd : deleting Partition object.
03-11 00:12:49.793 3531 3543 D epmd : Partition obj created
03-11 00:12:49.793 3531 3543 D epmd : Partition::dump============== 11
03-11 00:12:49.793 3531 3543 D epmd : Partition::mType > INTERNAL-SDCARD mSrcPath > /data/knox/system_de/11 mMntPath > /data/system_de/11
03-11 00:12:49.793 3531 3543 D epmd : Partition::SDP > not supported
03-11 00:12:49.794 3531 3543 D epmd : deleting Partition object.
03-11 00:12:49.794 4200 4280 D EnterprisePartitionManager: RCV <-
03-11 00:12:49.795 4200 4895 D EnterprisePartitionManager: RMV <-
03-11 00:12:49.795 4200 4895 D EnterprisePartitionManager: event : 200 5 success
03-11 00:12:49.795 4200 4895 E KnoxFileHandler: Failed to create DE storage
03-11 00:12:49.795 4200 4895 E PersonaServiceHelper: Creation failed due to createPartition error response
03-11 00:12:49.795 4200 4895 E UserManagerService: legacy partition moutn failed
03-11 00:12:49.797 11118 11118 I app_process: System.exit called, status: 1
03-11 00:12:49.797 11118 11118 I AndroidRuntime: VM exiting with result code 1.