aboutsummaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2015-10-09 16:47:36 +0200
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-11-15 12:10:06 -0800
commit3782e431913bcf6388f05dc3d04d9d2ac84b8b99 (patch)
treeaf202588a96edf35a8e92003118614fb027a54b0 /rootdir
parent7d8223a00bd509b906f0f5c0beee141dbed9ed69 (diff)
downloaddevice_samsung_espressowifi-3782e431913bcf6388f05dc3d04d9d2ac84b8b99.zip
device_samsung_espressowifi-3782e431913bcf6388f05dc3d04d9d2ac84b8b99.tar.gz
device_samsung_espressowifi-3782e431913bcf6388f05dc3d04d9d2ac84b8b99.tar.bz2
espresso-common: Updated external storage configuration
For reference see https://source.android.com/devices/storage/config.html Change-Id: I44b93bc21c69a99925e8243feebd27cb90cf42be
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/etc/init.tab2.rc45
1 files changed, 2 insertions, 43 deletions
diff --git a/rootdir/etc/init.tab2.rc b/rootdir/etc/init.tab2.rc
index 5f56920..c2f2231 100644
--- a/rootdir/etc/init.tab2.rc
+++ b/rootdir/etc/init.tab2.rc
@@ -1,28 +1,8 @@
import init.${ro.hardware}.usb.rc
on init
- mkdir /mnt/shell/emulated 0700 shell shell
- mkdir /storage 0751 root sdcard_r
- mkdir /storage/emulated 0555 root root
- mkdir /storage/sdcard1 0700 root root
- mkdir /storage/usbdisk0 0700 root root
- mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
- mkdir /mnt/media_rw/usbdisk0 0700 media_rw media_rw
-
- export EXTERNAL_STORAGE /storage/emulated/legacy
- export EMULATED_STORAGE_SOURCE /mnt/shell/emulated
- export EMULATED_STORAGE_TARGET /storage/emulated
- export SECONDARY_STORAGE /storage/sdcard1:/storage/usbdisk0
-
- # for backwards compatibility
- symlink /storage/emulated/legacy /sdcard
- symlink /storage/emulated/legacy /mnt/sdcard
- symlink /storage/emulated/legacy /storage/sdcard0
- symlink /mnt/shell/emulated/0 /storage/emulated/legacy
- symlink /storage/sdcard1 /extSdCard
- symlink /storage/sdcard1 /mnt/extSdCard
- symlink /storage/usbdisk0 /usbdisk0
- symlink /storage/usbdisk0 /mnt/usbdisk0
+ symlink /sdcard /mnt/sdcard
+ symlink /sdcard /storage/sdcard0
# KSM
write /sys/kernel/mm/ksm/pages_to_scan 100
@@ -61,14 +41,9 @@ on fs
insmod /system/lib/modules/pvrsrvkm_sgx540_120.ko
start pvrsrvinit
- setprop ro.crypto.fuse_sdcard true
-
mount debugfs /sys/kernel/debug /sys/kernel/debug
on post-fs-data
- # we will remap this as /storage/sdcard0 with the sdcard fuse tool
- mkdir /data/media 0770 media_rw media_rw
- chown media_rw media_rw /data/media
mkdir /data/misc/wifi 0770 wifi system
mkdir /data/misc/wifi/sockets 0770 wifi wifi
@@ -304,22 +279,6 @@ service geomagneticd /system/bin/geomagneticd
user compass
group system input
-# create virtual SD card at /storage/sdcard0, based on the /data/media directory
-# daemon will drop to user/group system/media_rw after initializing
-# underlying files in /data/media will be created with user and group media_rw (1023)
-service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
- class late_start
- oneshot
-
-# FUSE sdcard daemon for rich permissions (runs as media_rw)
-service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1
- class late_start
- disabled
-
-service fuse_usbdisk0 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/usbdisk0 /storage/usbdisk0
- class late_start
- disabled
-
service p2p_supplicant /system/bin/wpa_supplicant \
-iwlan0 -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf \
-I/system/etc/wifi/wpa_supplicant_overlay.conf -N \