farmerbb / SecondScreen

Better screen mirroring for Android devices
Apache License 2.0
304 stars 55 forks source link

How do I turn off SecondScreen's profile from adb shell? #62

Open vi opened 4 years ago

vi commented 4 years ago

Sometimes SecondScreen prevents using touchscreen (touchable area gets heavily desynched from visible area), so pressing "Turn off" button becomes a problem.

Even after rebooting the device the profile remains on until I unlock the device for the first time (auto-start programs don't auto-start until I unlock). And typing PIN or sliding the slider is not possible due to touchscreen effectively being mangled.

There should be a way to turn off profile from adb shell. Additionally it would be nice to have automatic profile turn off after countdown if confirmation button is not pressed.

gyurmogyuri commented 3 years ago

https://github.com/farmerbb/SecondScreen/issues/70#issuecomment-645458460 Found a solution: From adb shell, type:

wm size reset wm density reset