summaryrefslogtreecommitdiffstats
path: root/rootdir/init.recovery.smdk4210.rc
diff options
context:
space:
mode:
Diffstat (limited to 'rootdir/init.recovery.smdk4210.rc')
-rw-r--r--rootdir/init.recovery.smdk4210.rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/rootdir/init.recovery.smdk4210.rc b/rootdir/init.recovery.smdk4210.rc
new file mode 100644
index 0000000..36f1fa8
--- /dev/null
+++ b/rootdir/init.recovery.smdk4210.rc
@@ -0,0 +1,9 @@
+on boot
+# Permissions for mDNIe
+ chown system media_rw /sys/class/mdnie/mdnie/mode
+ chown system media_rw /sys/class/mdnie/mdnie/outdoor
+ chown system media_rw /sys/class/mdnie/mdnie/scenario
+
+# Set mDNIe mode and scenario
+ write /sys/class/mdnie/mdnie/scenario 0
+ write /sys/class/mdnie/mdnie/mode 1