I would like to ask you how to show 'Phone options' menu(with Power off, Restart, Flight mode, etc) via adb shell. Normally it can be triggered via long pressing power key. Using keyevents gave no results:
-adb shell input keyevent keycode 26 only presses(not long presses)
-adding sleep/wait statement also does not work
-sendevent /dev/input/event0... also does not work and is device dependant.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?