Many devices allow you to toggle Diag mode via hidden menus in the dialer keypad. Common codes include: General/Samsung: *#7284# or *#9090# . Xiaomi: *#*#717717#*#* .
Special ADB commands are often required as codes are limited. omh-diag-mode-tool-any-qualcomm-2023-free-tool
Android Diagnostic Mode - How to Enable it? - Stack Overflow Many devices allow you to toggle Diag mode
To revert to standard Media Transfer Protocol (MTP), replace diag,adb with mtp,adb . adb with mtp