I was trying to write to /sys/class/switch/hdmi/state
but i got permission denied error.
# echo 0 > /sys/class/switch/hdmi/state
/system/bin/sh: can't create /sys/class/switch/hdmi/state: Permission denied
I searched online and found the below answer.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
My question is, where do i set this permission? If android_manifest.xml, then which one? there are a lot of android_manifest files.
/sys/class/switch/hdmi/state
0. – Sourabrtadb shell
to execute this command, maybe you should executeadb root
before you enteradb shell
to execute the above command. – utzcoz