Seperate the UART debug messages

How do I separate aosp messages from the hikey optee messages so that they are on the different uart ports. It’s a bit too much to track down the optee debug messages.

Usually the recommendation is to launch a command from an adb session/terminal. That will leave the console just for optee (secure world) debug messages. Some system messages might still creep into the console, so it’s not perfect, but good enough short of not having 2 separate consoles (uart ports). Not sure how well this will work for you if you’re starting from an app (apk). Perhaps you can try launching the app (apk) from an adb session?