Appium read notifications without changing context

I writing a test which requires reading an OTP. Though I have successfully managed to read the OTP by opening my default messaging app using start_activity() OR by opening notification shade using open_notifications(), I am looking for a method to read OTP through ADB commands without changing web driver context.

Are there any suggestions regarding how I can achieve this

Any help is greatly appreciated.