Device Tree Overlay to disable G-Sensor on VIM4

Which system do you use? Android, Ubuntu, OOWOW or others?

Android 220424

Which version of system do you use? Khadas official images, self built images, or others?

OOWow-Image

Please describe your issue below:

Hello,

I’d like to disable the g sensor as my VIM4 is installed vertically and landscape mode apps
like Netflix rotate my screen by 180° which results in an upside-down-screen.

Is there a possibility to achieve this via device tree overlay?

Christoph

@cpickart Just remove the relevant services:
system/etc/vintf/manifest.xml

-    <hal format="hidl">
-        <name>android.hardware.sensors</name>
-        <transport>hwbinder</transport>
-        <version>1.0</version>
-        <interface>
-            <name>ISensors</name>
-            <instance>default</instance>
-        </interface>
-        <fqname>@1.0::ISensors/default</fqname>
-    </hal>
C:\Users\25348>adb connect 192.168.31.17
connected to 192.168.31.17:5555

C:\Users\25348>adb root

C:\Users\25348>adb connect 192.168.31.17
connected to 192.168.31.17:5555

C:\Users\25348>adb remount
Using overlayfs for /system
Using overlayfs for /system_ext
Using overlayfs for /vendor
Using overlayfs for /product
Using overlayfs for /odm
Now reboot your device for settings to take effect
remount succeeded
C:\Users\25348>adb pull system/etc/vintf/manifest.xml .
system/etc/vintf/manifest.xml: 1 file pulled. 1.4 MB/s (3898 bytes in 0.003s)
--------------------------
Remove the extracted file as shown in the above image.
--------------------------

C:\Users\25348>adb push W:\vim4_new\out\target\product\kvim4\system\etc\vintf\manifest.xml system/etc/vintf/manifest.xml
W:\vim4_new\out\target\product\kvim4\system\etc\v...l: 1 file pushed. 0.2 MB/s (3898 bytes in 0.021s)

C:\Users\25348>adb shell sync

C:\Users\25348>adb reboot