0

I am trying to rotate screen (whole fb) from kernel. Due to some hardware changes my phone screen is coming in inverting mode. Where can I change in kernel for changing default screen orientation

Aagam
  • 1
  • 1

1 Answers1

0

You can rotate screen from kernel/console by

"service call window XX i32 X"

Ex:

service call window 61 i32 0 //rotate to normal

service call window 61 i32 1 //rotate clockwise

The 61 is on my device only, you should find out what is yours.

You can also rotate from PC by adb

Ex:

adb shell service call window 61 i32 0

yuwei wang
  • 21
  • 5