'How to set hwc.enable.overlay to 0 in Aosp

In Android Hardware video (exoplayer) was playing Upside down but in emulator video was playing proper . For this scenario I found the fix to set the hwc.enable.overlay to 0 from adb shell .

I need to fix this system property in Aosp rater than running command from terminal.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source