summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
Diffstat (limited to 'rootdir')
-rwxr-xr-xrootdir/fstab.smdk42102
-rw-r--r--rootdir/init.recovery.smdk4210.rc9
-rw-r--r--rootdir/recovery.rc72
3 files changed, 9 insertions, 74 deletions
diff --git a/rootdir/fstab.smdk4210 b/rootdir/fstab.smdk4210
index a0f807e..e3fd2e4 100755
--- a/rootdir/fstab.smdk4210
+++ b/rootdir/fstab.smdk4210
@@ -18,5 +18,3 @@
# recovery
/dev/block/mmcblk0p5 /boot emmc defaults recoveryonly
/dev/block/mmcblk0p6 /recovery emmc defaults recoveryonly
-/dev/block/mmcblk0p11 /emmc auto defaults recoveryonly
-/dev/block/mmcblk1p1 /sdcard auto defaults recoveryonly
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
diff --git a/rootdir/recovery.rc b/rootdir/recovery.rc
deleted file mode 100644
index 844b2e3..0000000
--- a/rootdir/recovery.rc
+++ /dev/null
@@ -1,72 +0,0 @@
-on early-init
- start ueventd
-
-on init
- export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
- export ANDROID_ROOT /system
- export ANDROID_DATA /data
- export ANDROID_CACHE /cache
- export SECONDARY_STORAGE /emmc
- export EXTERNAL_STORAGE /sdcard
-
- symlink /system/etc /etc
-
- mkdir /emmc
- mkdir /sdcard
- mkdir /usbdisk
- mkdir /system
- mkdir /data
- mkdir /cache
- mkdir /preload
- mount /tmp /tmp tmpfs
-
-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
- write /sys/class/mdnie/mdnie/scenario 0
- write /sys/class/mdnie/mdnie/mode 1
-
- ifup lo
- hostname localhost
- domainname localdomain
-
- class_start default
-
-service ueventd /sbin/ueventd
- critical
-
-service console /sbin/sh
- class core
- console
- disabled
- group log
-
-on property:ro.debuggable=1
- start console
-
-service recovery /sbin/recovery
-
-service adbd /sbin/adbd recovery
- disabled
-
-# Always start adbd on userdebug and eng builds
-# In recovery, always run adbd as root.
-on property:ro.debuggable=1
- write /sys/class/android_usb/android0/enable 0
- write /sys/class/android_usb/android0/idVendor 04e8
- write /sys/class/android_usb/android0/idProduct 6860
- write /sys/class/android_usb/android0/functions adb
- write /sys/class/android_usb/android0/enable 1
- write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
- write /sys/class/android_usb/android0/iProduct $ro.product.model
- write /sys/class/android_usb/android0/iSerial $ro.serialno
- start adbd
- setprop service.adb.root 1
-
-# Restart adbd so it can run as root
-on property:service.adb.root=1
- write /sys/class/android_usb/android0/enable 0
- restart adbd
- write /sys/class/android_usb/android0/enable 1