Android Debug Bridge Commands
hide that annoying "do you want to rotate" icon
adb shell settings put secure show_rotation_suggestions 0
don't let apps force set rotation (it's cool but it's more trouble than it's worth)
adb shell wm set-ignore-orientation-request true
grant an app (like Termux) permissions to sensitive notifications (like 2FA codes)
adb shell appops set com.termux RECEIVE_SENSISITVE_NOTIFICATIONS allow
grant write settings permissions
adb shell pm grant com.termux.api android.permission.WRITE_SETTINGS
adb shell pm grant com.termux.api android.permission.WRITE_SECURE_SETTINGS
Last update: August 19, 2026