From c6da88e4fc27014fabbefb60af0a9acc164eb982 Mon Sep 17 00:00:00 2001 From: Andreas Blaesius Date: Thu, 16 Jul 2015 21:53:04 +0200 Subject: P51XX: cleanup / rework ramdisk parts for better readability (1/2) Change-Id: Ic5ea906ccbc348a4201628ac3269f5500e7830f7 --- BoardConfigCommon.mk | 2 +- p51xx-common.mk | 12 +- rootdir/Android.mk | 45 ++++ rootdir/etc/fstab.espresso10 | 17 ++ rootdir/etc/init.espresso10.rc | 465 +++++++++++++++++++++++++++++++++++++ rootdir/etc/init.espresso10.usb.rc | 79 +++++++ rootdir/etc/ueventd.espresso10.rc | 58 +++++ rootdir/fstab.espresso10 | 17 -- rootdir/init.espresso10.rc | 465 ------------------------------------- rootdir/init.espresso10.usb.rc | 79 ------- rootdir/ueventd.espresso10.rc | 58 ----- 11 files changed, 671 insertions(+), 626 deletions(-) create mode 100644 rootdir/Android.mk create mode 100644 rootdir/etc/fstab.espresso10 create mode 100755 rootdir/etc/init.espresso10.rc create mode 100755 rootdir/etc/init.espresso10.usb.rc create mode 100644 rootdir/etc/ueventd.espresso10.rc delete mode 100644 rootdir/fstab.espresso10 delete mode 100755 rootdir/init.espresso10.rc delete mode 100755 rootdir/init.espresso10.usb.rc delete mode 100644 rootdir/ueventd.espresso10.rc diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 467c0ef..3013fa3 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -115,7 +115,7 @@ BOARD_USES_MMCUTILS := true BOARD_HAS_NO_MISC_PARTITION := true BOARD_HAS_NO_SELECT_BUTTON := true BOARD_SUPPRESS_EMMC_WIPE := true -TARGET_RECOVERY_FSTAB := device/samsung/p5100/rootdir/fstab.espresso10 +TARGET_RECOVERY_FSTAB := device/samsung/p5100/rootdir/etc/fstab.espresso10 RECOVERY_FSTAB_VERSION := 2 BOARD_HAS_DOWNLOAD_MODE := true diff --git a/p51xx-common.mk b/p51xx-common.mk index ab24105..7c6d478 100755 --- a/p51xx-common.mk +++ b/p51xx-common.mk @@ -31,12 +31,12 @@ PRODUCT_AAPT_CONFIG := large PRODUCT_AAPT_PREF_CONFIG := mdpi PRODUCT_LOCALES += mdpi -# Init files -PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/rootdir/init.espresso10.usb.rc:root/init.espresso10.usb.rc \ - $(LOCAL_PATH)/rootdir/init.espresso10.rc:root/init.espresso10.rc \ - $(LOCAL_PATH)/rootdir/ueventd.espresso10.rc:root/ueventd.espresso10.rc \ - $(LOCAL_PATH)/rootdir/fstab.espresso10:root/fstab.espresso10 +# Ramdisk +PRODUCT_PACKAGES += \ + fstab.espresso10 \ + init.espresso10.usb.rc \ + init.espresso10.rc \ + ueventd.espresso10.rc # GPS PRODUCT_COPY_FILES += \ diff --git a/rootdir/Android.mk b/rootdir/Android.mk new file mode 100644 index 0000000..1aeafd0 --- /dev/null +++ b/rootdir/Android.mk @@ -0,0 +1,45 @@ +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +# boot.img parts +include $(CLEAR_VARS) +LOCAL_MODULE := fstab.espresso10 +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/fstab.espresso10 +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.espresso10.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.espresso10.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.espresso10.usb.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.espresso10.usb.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := ueventd.espresso10.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/ueventd.espresso10.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + + +# recovery.img parts +include $(CLEAR_VARS) +LOCAL_MODULE := twrp.fstab +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := ../recovery/root/etc/twrp.fstab +LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc +include $(BUILD_PREBUILT) diff --git a/rootdir/etc/fstab.espresso10 b/rootdir/etc/fstab.espresso10 new file mode 100644 index 0000000..ec2e4f4 --- /dev/null +++ b/rootdir/etc/fstab.espresso10 @@ -0,0 +1,17 @@ +# Android fstab file. +# +# The filesystem that contains the filesystem checker binary (typically /system) cannot +# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK + +/dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system ext4 ro,barrier=1 wait +/dev/block/platform/omap/omap_hsmmc.1/by-name/EFS /efs ext4 nosuid,nodev,barrier=1 wait,check +/dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS /data ext4 noatime,nosuid,nodev,barrier=1,discard,noauto_da_alloc,journal_async_commit wait,check,encryptable=footer +/dev/block/platform/omap/omap_hsmmc.1/by-name/CACHE /cache ext4 noatime,nosuid,nodev,barrier=1,discard,noauto_da_alloc,journal_async_commit wait,check + +# vold-managed volumes ("block device" is actually a sysfs devpath) +/devices/platform/omap/omap_hsmmc.0/mmc_host/mmc1* auto auto defaults wait,voldmanaged=sdcard1:auto,noemulatedsd +/devices/platform/omap/musb-omap2430/musb-hdrc/usb1* auto auto defaults voldmanaged=usbdisk0:auto,noemulatedsd + +# recovery +/dev/block/mmcblk0p5 /boot emmc defaults recoveryonly +/dev/block/mmcblk0p6 /recovery emmc defaults recoveryonly diff --git a/rootdir/etc/init.espresso10.rc b/rootdir/etc/init.espresso10.rc new file mode 100755 index 0000000..d8697d5 --- /dev/null +++ b/rootdir/etc/init.espresso10.rc @@ -0,0 +1,465 @@ +import init.espresso10.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 + +# Preload libjhead for camera + export LD_PRELOAD /system/lib/libjhead.so + +# Vibetonz + export VIBE_PIPE_PATH /dev/pipes + mkdir /dev/pipes 0771 shell shell + +# Vibetonz + chmod 0660 /dev/tspdrv + chown root shell /dev/tspdrv + +# change permissions for ION driver + chmod 0777 /dev/ion + +# PVR + chmod 0666 /dev/pvrsrvkm + +loglevel 7 + +on fs + mkdir /efs + mount_all /fstab.espresso10 + + setprop ro.crypto.fuse_sdcard true + +# We chown/chmod /efs because mount is run as root + defaults + chown radio system /efs + chmod 0775 /efs + + mount debugfs /sys/kernel/debug /sys/kernel/debug + +# Restorecon + restorecon /efs/nv_data.bin + restorecon /efs/nv_data.bin.md5 + restorecon /efs/.nv_core.bak + restorecon /efs/.nv_core.bak.md5 + restorecon /efs/.nv_data.bak + restorecon /efs/.nv_data.bak.md5 + restorecon /efs/.nv_state + restorecon /efs/bluetooth/bt_addr + restorecon /efs/FactoryApp/factorymode + restorecon /efs/FactoryApp/hw_ver + restorecon /efs/FactoryApp/keystr + restorecon /efs/FactoryApp/serial_no + restorecon /efs/imei/mps_code.dat + restorecon /efs/wifi/.mac.info + +# pvr module + insmod /system/lib/modules/pvrsrvkm_sgx540_120.ko + +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 + +# dmrpc + mkdir /data/smc 0770 drmrpc drmrpc + chown drmrpc drmrpc /data/smc/counter.bin + chown drmrpc drmrpc /data/smc/storage.bin + chown drmrpc drmrpc /data/smc/system.bin + +# radio + mkdir /data/misc/dhcp 0775 dhcp dhcp + mkdir /data/misc/radio 0771 radio system + mkdir /data/misc/radio/hatp 0771 radio system + chown radio radio /data/misc/radio + + chown dhcp dhcp /data/misc/dhcp + + write /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq 800000 + chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq + +#DVFS Lock + chown radio system /sys/power/cpufreq_min_limit + chown radio system /sys/power/cpufreq_max_limit + chown radio system /sys/power/cpufreq_table + chmod 0664 /sys/power/cpufreq_min_limit + chmod 0664 /sys/power/cpufreq_max_limit + chmod 0664 /sys/power/cpufreq_table + +# permissions for bluetooth. + setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" + chown bluetooth net_bt_stack ro.bt.bdaddr_path + chown bluetooth net_bt_stack /dev/ttyO1 + chmod 0660 /dev/ttyO1 + chmod 0660 /sys/class/rfkill/rfkill0/state + chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state + chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type + restorecon /sys/class/rfkill/rfkill0/state + restorecon /sys/class/rfkill/rfkill0/type + +# for samsung factory. + chown radio radio /efs/bluetooth + chmod 0755 /efs/bluetooth + chmod 0644 /efs/bluetooth/bt_addr + +# Change permission for sensor rev00 + chmod 755 /system/bin/geomagneticd + + chown system input /sys/class/input/input2/enable + chown system input /sys/class/input/input2/poll_delay + + chown system input /sys/class/input/input3/enable + chown system input /sys/class/input/input3/poll_delay + + chown system input /sys/class/input/input2/enable + chown system input /sys/class/input/input2/delay + chown system input /sys/class/input/input2/wake + + chown system input /sys/class/input/input3/enable + chown system input /sys/class/input/input3/delay + chown system input /sys/class/input/input3/filter_enable + chown system input /sys/class/input/input3/filter_len + chown system input /sys/class/input/input3/data + chown system input /sys/class/input/input3/status + chown system input /sys/class/input/input3/wake + chown system input /sys/class/input/input3/position + + chown compass input /sys/class/input/input3/offsets + chown compass input /sys/class/input/input3/dynamic_matrix + chown system input /sys/class/input/input3/threshold + chown system input /sys/class/input/input3/distortion + chown system input /sys/class/input/input3/shape + write /sys/class/input/input3/distortion "500 350 15" + + chown system input /sys/class/input/input4/enable + chown system input /sys/class/input/input4/delay + chown system input /sys/class/input/input4/filter_enable + chown system input /sys/class/input/input4/filter_len + chown system input /sys/class/input/input4/data + chown system input /sys/class/input/input4/status + chown system input /sys/class/input/input4/wake + chown system input /sys/class/input/input4/position + + chown compass input /sys/class/input/input4/offsets + chown compass input /sys/class/input/input4/dynamic_matrix + chown system input /sys/class/input/input4/threshold + chown system input /sys/class/input/input4/distortion + chown system input /sys/class/input/input4/shape + write /sys/class/input/input4/distortion "500 350 15" + + chown system input /sys/class/input/input5/enable + chown system input /sys/class/input/input5/delay + chown system input /sys/class/input/input5/filter_enable + chown system input /sys/class/input/input5/filter_len + chown system input /sys/class/input/input5/data + chown system input /sys/class/input/input5/status + chown system input /sys/class/input/input5/wake + chown system input /sys/class/input/input5/position + + chown compass input /sys/class/input/input5/offsets + chown compass input /sys/class/input/input5/dynamic_matrix + chown system input /sys/class/input/input5/threshold + chown system input /sys/class/input/input5/distortion + chown system input /sys/class/input/input5/shape + write /sys/class/input/input5/distortion "500 350 15" + + chown system input /sys/class/input/input6/enable + chown system input /sys/class/input/input6/delay + chown system input /sys/class/input/input6/filter_enable + chown system input /sys/class/input/input6/filter_len + chown system input /sys/class/input/input6/data + chown system input /sys/class/input/input6/status + chown system input /sys/class/input/input6/wake + chown system input /sys/class/input/input6/position + + chown compass input /sys/class/input/input6/offsets + chown compass input /sys/class/input/input6/dynamic_matrix + chown system input /sys/class/input/input6/threshold + chown system input /sys/class/input/input6/distortion + chown system input /sys/class/input/input6/shape + write /sys/class/input/input6/distortion "500 350 15" + + chown system input /sys/class/input/input7/enable + chown system input /sys/class/input/input7/delay + chown system input /sys/class/input/input7/filter_enable + chown system input /sys/class/input/input7/filter_len + chown system input /sys/class/input/input7/data + chown system input /sys/class/input/input7/status + chown system input /sys/class/input/input7/wake + chown system input /sys/class/input/input7/position + + chown system radio /sys/class/sensors/accelerometer_sensor/raw_data + chown system radio /sys/class/sensors/accelerometer_sensor/calibration + chown system radio /sys/class/sensors/accelerometer_sensor/vendor + chown system radio /sys/class/sensors/accelerometer_sensor/name + + chown system radio /sys/class/sensors/magnetic_sensor/vendor + chown system radio /sys/class/sensors/magnetic_sensor/name + + chown system radio /sys/class/sensors/proximity_sensor/state + chown system radio /sys/class/sensors/proximity_sensor/raw_data + chown system radio /sys/class/sensors/proximity_sensor/vendor + chown system radio /sys/class/sensors/proximity_sensor/name + + chown system radio /sys/class/sensors/light_sensor/lux + chown system radio /sys/class/sensors/light_sensor/raw_data + chown system radio /sys/class/sensors/light_sensor/vendor + chown system radio /sys/class/sensors/light_sensor/name + +# Change permission for TSP + chown system radio /sys/class/sec/tsp/cmd + chown system radio /sys/class/sec/tsp/cmd_status + chown system radio /sys/class/sec/tsp/cmd_result + chown media_rw media_rw /sys/class/sec/tsp/set_jitter + +# Change permission for switch + chmod 0660 /sys/class/sec/switch/uart_sel + chmod 0660 /sys/class/sec/switch/usb_sel + chmod 0600 /sys/class/sec/switch/jig_on + + chown system radio /sys/class/sec/switch/uart_sel + chown system radio /sys/class/sec/switch/usb_sel + chown radio radio /sys/class/sec/switch/jig_on + chown system radio /sys/class/sec/switch/adc + +# create data/gps for GPS demon + chown root system /dev/ttyO0 + chmod 0660 /dev/ttyO0 + chown root system /sys/class/sec/gps/GPS_PWR_EN/value + chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value + chown root system /sys/class/sec/gps/GPS_nRST/value + chmod 0664 /sys/class/sec/gps/GPS_nRST/value + mkdir /data/gps 771 system system + chown system system /data/gps + +#Change permission for backlight and lcd + chown system system /sys/class/backlight/panel/brightness + chown system radio /sys/class/lcd/panel/lcd_type + chown system radio /sys/class/lcd/panel/lcd_power + +# IrLED + chown system system /sys/class/sec/sec_ir/ir_send + chown system system /sys/class/sec/sec_ir/check_ir + +# Battery + chown system radio /sys/class/power_supply/battery/batt_reset_soc + chmod 0664 /sys/class/power_supply/battery/batt_reset_soc + +# for wifi + mkdir /efs/wifi 0775 system radio + +# for hdcp, amwbr + mkdir /data/misc/radio 0775 radio system + +# for hdmi factory test + chown radio system /sys/devices/platform/omapdss/display1/sec_timing + + setprop vold.post_fs_data_done 1 + +on boot + +# initialize the SGX driver +service pvrsrvinit /system/bin/pvrsrvinit + class core + user root + group root + seclabel u:r:pvrsrvinit:s0 + oneshot + +service pvrsrvctl /system/vendor/bin/pvrsrvctl_SGX540_120 --start --no-module + class core + user root + group root + oneshot + +# SMC Service +service tf_daemon /system/bin/tf_daemon \ + -d -c /system/bin/smc.ini + class main + user root + group root + oneshot + disabled + +service smc_pa /system/bin/smc_pa_ctrl \ + -c /system/bin/smc.ini \ + start /system/bin/smc_pa.ift + class core + user root + group root + seclabel u:r:smc_pa:s0 + oneshot + +service orientationd /system/bin/orientationd + class main + user compass + group input + seclabel u:r:orientationd:s0 + +service geomagneticd /system/bin/geomagneticd + class main + user compass + group system input + seclabel u:r:geomagneticd:s0 + +# 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 \ + -ip2p0 -Dnl80211 -c /data/misc/wifi/p2p_supplicant.conf \ + -I/system/etc/wifi/p2p_supplicant_overlay.conf \ + -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \ + -g@android:wpa_wlan0 + # we will start as root and wpa_supplicant will switch to user wifi + # after setting up the capabilities required for WEXT + # user wifi + # group wifi inet keystore + class main + socket wpa_wlan0 dgram 660 wifi wifi + disabled + oneshot + +service wpa_supplicant /system/bin/wpa_supplicant \ + -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ + -I/system/etc/wifi/wpa_supplicant_overlay.conf \ + -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 + # we will start as root and wpa_supplicant will switch to user wifi + # after setting up the capabilities required for WEXT + # user wifi + # group wifi inet keystore + class main + socket wpa_wlan0 dgram 660 wifi wifi + disabled + oneshot + +service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL + class main + disabled + oneshot + +service dhcpcd_p2p /system/bin/dhcpcd -aABKL + class main + disabled + oneshot + +service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL + class main + disabled + oneshot + +service iprenew_wlan0 /system/bin/dhcpcd -n + class main + disabled + oneshot + +service iprenew_p2p /system/bin/dhcpcd -n + class main + disabled + oneshot + +service iprenew_bt-pan /system/bin/dhcpcd -n + class main + disabled + oneshot + +service cpboot-daemon /sbin/cbd -d -p 8 + class main + user root + group radio cache inet misc audio sdcard_rw log sdcard_r + disabled + +on property:init.svc.pvrsrvinit=stopped + start cpboot-daemon + +# GPS +service gpsd /system/bin/gpsd -c /system/etc/gps.xml + class main + socket gps seqpacket 0660 gps system + user gps + group system inet sdcard_rw + seclable u:r:gpsd:s0 + +# TVout +service TvoutService_C /system/bin/bintvoutservice + class main + user system + group system + +# Keyboard +service dock_kbd_attach /system/bin/dock_kbd_attach /dev/ttyO3 + class main + user root + seclabel u:r:dock_kbd_attach:s0 + oneshot + +# LPM +on property:ro.bootmode=charger + mount ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system wait ro + +on property:ro.bootmode=charger + 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 samsung + write /sys/class/android_usb/android0/iProduct $(ro.product.model) + start adbd + +on property:ro.bootmode=charger + start pvrsrvinit + +on property:ro.bootmode=charger + class_start charger + +service charger /charger + class charger + user root + +## CyanogenMod Performance Profiles +# Powersave +on property:sys.perf.profile=0 + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave + +# Balanced, here interactive governor +on property:sys.perf.profile=1 + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive + +# Performance +on property:sys.perf.profile=2 + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance diff --git a/rootdir/etc/init.espresso10.usb.rc b/rootdir/etc/init.espresso10.usb.rc new file mode 100755 index 0000000..e86a7bd --- /dev/null +++ b/rootdir/etc/init.espresso10.usb.rc @@ -0,0 +1,79 @@ +on init + write /sys/class/android_usb/android0/iSerial ${ro.serialno} + write /sys/class/android_usb/android0/f_rndis/manufacturer Samsung + write /sys/class/android_usb/android0/f_rndis/vendorID 04e8 + write /sys/class/android_usb/android0/f_rndis/wceis 1 + +on boot + write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer} + write /sys/class/android_usb/android0/iProduct ${ro.product.model} + +on property:sys.usb.config=mtp + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/idVendor 04e8 + write /sys/class/android_usb/android0/idProduct 685c + write /sys/class/android_usb/android0/functions ${sys.usb.config} + write /sys/class/android_usb/android0/enable 1 + setprop sys.usb.state ${sys.usb.config} + +on property:sys.usb.config=mtp,adb + 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 ${sys.usb.config} + write /sys/class/android_usb/android0/enable 1 + start adbd + setprop sys.usb.state ${sys.usb.config} + +on property:sys.usb.config=rndis + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/idVendor 04e8 + write /sys/class/android_usb/android0/idProduct 6863 + write /sys/class/android_usb/android0/functions ${sys.usb.config} + write /sys/class/android_usb/android0/bDeviceClass 224 + write /sys/class/android_usb/android0/enable 1 + setprop sys.usb.state ${sys.usb.config} + +on property:sys.usb.config=rndis,adb + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/idVendor 04e8 + write /sys/class/android_usb/android0/idProduct 6864 + write /sys/class/android_usb/android0/functions ${sys.usb.config} + write /sys/class/android_usb/android0/bDeviceClass 224 + write /sys/class/android_usb/android0/enable 1 + start adbd + setprop sys.usb.state ${sys.usb.config} + +on property:sys.usb.config=ptp + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/idVendor 04e8 + write /sys/class/android_usb/android0/idProduct 6865 + write /sys/class/android_usb/android0/functions ${sys.usb.config} + write /sys/class/android_usb/android0/enable 1 + setprop sys.usb.state ${sys.usb.config} + +on property:sys.usb.config=ptp,adb + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/idVendor 04e8 + write /sys/class/android_usb/android0/idProduct 6866 + write /sys/class/android_usb/android0/functions ${sys.usb.config} + write /sys/class/android_usb/android0/enable 1 + start adbd + setprop sys.usb.state ${sys.usb.config} + +on property:sys.usb.config=rndis,dm + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/idVendor 04e8 + write /sys/class/android_usb/android0/idProduct 6864 + write /sys/class/android_usb/android0/functions ${sys.usb.config} + write /sys/class/android_usb/android0/enable 1 + setprop sys.usb.state ${sys.usb.config} + +on property:sys.usb.config=rndis,acm,dm + write /sys/class/android_usb/android0/enable 0 + write /sys/class/android_usb/android0/idVendor 04e8 + write /sys/class/android_usb/android0/idProduct 6864 + write /sys/class/android_usb/android0/functions ${sys.usb.config} + write /sys/class/android_usb/android0/f_acm/instances 1 + write /sys/class/android_usb/android0/enable 1 + setprop sys.usb.state ${sys.usb.config} diff --git a/rootdir/etc/ueventd.espresso10.rc b/rootdir/etc/ueventd.espresso10.rc new file mode 100644 index 0000000..f67f204 --- /dev/null +++ b/rootdir/etc/ueventd.espresso10.rc @@ -0,0 +1,58 @@ +#for DSSCOMP +/dev/dsscomp 0666 system system +/dev/tiler 0666 system system + +#for SYSLINK +/dev/rpmsg-omx0 0660 system drmrpc +/dev/rpmsg-omx1 0660 system drmrpc +/dev/rproc_user 0660 system drmrpc +/dev/tf_driver 0660 drmrpc drmrpc +/dev/tf_ctrl 0660 drmrpc drmrpc + +#for Sensors +/dev/mpu 0660 system system +/dev/mpuirq 0660 system system +/dev/accelirq 0660 system system +/dev/compassirq 0660 system system +/dev/timerirq 0660 system system +/dev/i2c-4 0660 system system + +#for HSPA RIL +/dev/umts_boot0 0660 radio radio +/dev/umts_boot1 0660 radio radio +/dev/umts_ipc0 0660 radio radio +/dev/umts_rfs0 0660 radio radio +/dev/block/mmcblk0p8 0660 radio radio +/dev/umts_ramdump0 0660 radio radio +/dev/umts_router 0660 radio system +/dev/umts_csd 0660 radio system + +# hdcp +/dev/hdcp 0664 root root + +# used by RIL and GPS +/dev/ttyO0 0660 system radio +/dev/ttyGS0 0660 system system + +# for LTE RIL +/dev/cdma_boot0 0660 radio radio +/dev/lte_boot0 0660 radio radio +/dev/cdma_ipc0 0660 radio radio +/dev/lte_ipc0 0660 radio radio +/dev/cdma_rfs0 0660 radio radio +/dev/lte_rfs0 0660 radio radio +/dev/lte_spi 0660 radio radio +/dev/cdma_rmnet5 0660 radio radio +/dev/cdma_rmnet6 0660 radio radio +/dev/lte_rmnet4 0660 radio radio +/dev/ttyGS1 0660 radio radio +/dev/block/mmcblk0p4 0660 radio radio +/dev/modem_br 0660 radio radio +/dev/cdma_ramdump0 0660 radio radio +/dev/lte_ramdump0 0660 radio radio + +# For SGX +/dev/pvrsrvkm 0666 system system + +# For GCX +/dev/gcioctl 0666 system system diff --git a/rootdir/fstab.espresso10 b/rootdir/fstab.espresso10 deleted file mode 100644 index ec2e4f4..0000000 --- a/rootdir/fstab.espresso10 +++ /dev/null @@ -1,17 +0,0 @@ -# Android fstab file. -# -# The filesystem that contains the filesystem checker binary (typically /system) cannot -# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK - -/dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system ext4 ro,barrier=1 wait -/dev/block/platform/omap/omap_hsmmc.1/by-name/EFS /efs ext4 nosuid,nodev,barrier=1 wait,check -/dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS /data ext4 noatime,nosuid,nodev,barrier=1,discard,noauto_da_alloc,journal_async_commit wait,check,encryptable=footer -/dev/block/platform/omap/omap_hsmmc.1/by-name/CACHE /cache ext4 noatime,nosuid,nodev,barrier=1,discard,noauto_da_alloc,journal_async_commit wait,check - -# vold-managed volumes ("block device" is actually a sysfs devpath) -/devices/platform/omap/omap_hsmmc.0/mmc_host/mmc1* auto auto defaults wait,voldmanaged=sdcard1:auto,noemulatedsd -/devices/platform/omap/musb-omap2430/musb-hdrc/usb1* auto auto defaults voldmanaged=usbdisk0:auto,noemulatedsd - -# recovery -/dev/block/mmcblk0p5 /boot emmc defaults recoveryonly -/dev/block/mmcblk0p6 /recovery emmc defaults recoveryonly diff --git a/rootdir/init.espresso10.rc b/rootdir/init.espresso10.rc deleted file mode 100755 index d8697d5..0000000 --- a/rootdir/init.espresso10.rc +++ /dev/null @@ -1,465 +0,0 @@ -import init.espresso10.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 - -# Preload libjhead for camera - export LD_PRELOAD /system/lib/libjhead.so - -# Vibetonz - export VIBE_PIPE_PATH /dev/pipes - mkdir /dev/pipes 0771 shell shell - -# Vibetonz - chmod 0660 /dev/tspdrv - chown root shell /dev/tspdrv - -# change permissions for ION driver - chmod 0777 /dev/ion - -# PVR - chmod 0666 /dev/pvrsrvkm - -loglevel 7 - -on fs - mkdir /efs - mount_all /fstab.espresso10 - - setprop ro.crypto.fuse_sdcard true - -# We chown/chmod /efs because mount is run as root + defaults - chown radio system /efs - chmod 0775 /efs - - mount debugfs /sys/kernel/debug /sys/kernel/debug - -# Restorecon - restorecon /efs/nv_data.bin - restorecon /efs/nv_data.bin.md5 - restorecon /efs/.nv_core.bak - restorecon /efs/.nv_core.bak.md5 - restorecon /efs/.nv_data.bak - restorecon /efs/.nv_data.bak.md5 - restorecon /efs/.nv_state - restorecon /efs/bluetooth/bt_addr - restorecon /efs/FactoryApp/factorymode - restorecon /efs/FactoryApp/hw_ver - restorecon /efs/FactoryApp/keystr - restorecon /efs/FactoryApp/serial_no - restorecon /efs/imei/mps_code.dat - restorecon /efs/wifi/.mac.info - -# pvr module - insmod /system/lib/modules/pvrsrvkm_sgx540_120.ko - -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 - -# dmrpc - mkdir /data/smc 0770 drmrpc drmrpc - chown drmrpc drmrpc /data/smc/counter.bin - chown drmrpc drmrpc /data/smc/storage.bin - chown drmrpc drmrpc /data/smc/system.bin - -# radio - mkdir /data/misc/dhcp 0775 dhcp dhcp - mkdir /data/misc/radio 0771 radio system - mkdir /data/misc/radio/hatp 0771 radio system - chown radio radio /data/misc/radio - - chown dhcp dhcp /data/misc/dhcp - - write /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq 800000 - chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq - -#DVFS Lock - chown radio system /sys/power/cpufreq_min_limit - chown radio system /sys/power/cpufreq_max_limit - chown radio system /sys/power/cpufreq_table - chmod 0664 /sys/power/cpufreq_min_limit - chmod 0664 /sys/power/cpufreq_max_limit - chmod 0664 /sys/power/cpufreq_table - -# permissions for bluetooth. - setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr" - chown bluetooth net_bt_stack ro.bt.bdaddr_path - chown bluetooth net_bt_stack /dev/ttyO1 - chmod 0660 /dev/ttyO1 - chmod 0660 /sys/class/rfkill/rfkill0/state - chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state - chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/type - restorecon /sys/class/rfkill/rfkill0/state - restorecon /sys/class/rfkill/rfkill0/type - -# for samsung factory. - chown radio radio /efs/bluetooth - chmod 0755 /efs/bluetooth - chmod 0644 /efs/bluetooth/bt_addr - -# Change permission for sensor rev00 - chmod 755 /system/bin/geomagneticd - - chown system input /sys/class/input/input2/enable - chown system input /sys/class/input/input2/poll_delay - - chown system input /sys/class/input/input3/enable - chown system input /sys/class/input/input3/poll_delay - - chown system input /sys/class/input/input2/enable - chown system input /sys/class/input/input2/delay - chown system input /sys/class/input/input2/wake - - chown system input /sys/class/input/input3/enable - chown system input /sys/class/input/input3/delay - chown system input /sys/class/input/input3/filter_enable - chown system input /sys/class/input/input3/filter_len - chown system input /sys/class/input/input3/data - chown system input /sys/class/input/input3/status - chown system input /sys/class/input/input3/wake - chown system input /sys/class/input/input3/position - - chown compass input /sys/class/input/input3/offsets - chown compass input /sys/class/input/input3/dynamic_matrix - chown system input /sys/class/input/input3/threshold - chown system input /sys/class/input/input3/distortion - chown system input /sys/class/input/input3/shape - write /sys/class/input/input3/distortion "500 350 15" - - chown system input /sys/class/input/input4/enable - chown system input /sys/class/input/input4/delay - chown system input /sys/class/input/input4/filter_enable - chown system input /sys/class/input/input4/filter_len - chown system input /sys/class/input/input4/data - chown system input /sys/class/input/input4/status - chown system input /sys/class/input/input4/wake - chown system input /sys/class/input/input4/position - - chown compass input /sys/class/input/input4/offsets - chown compass input /sys/class/input/input4/dynamic_matrix - chown system input /sys/class/input/input4/threshold - chown system input /sys/class/input/input4/distortion - chown system input /sys/class/input/input4/shape - write /sys/class/input/input4/distortion "500 350 15" - - chown system input /sys/class/input/input5/enable - chown system input /sys/class/input/input5/delay - chown system input /sys/class/input/input5/filter_enable - chown system input /sys/class/input/input5/filter_len - chown system input /sys/class/input/input5/data - chown system input /sys/class/input/input5/status - chown system input /sys/class/input/input5/wake - chown system input /sys/class/input/input5/position - - chown compass input /sys/class/input/input5/offsets - chown compass input /sys/class/input/input5/dynamic_matrix - chown system input /sys/class/input/input5/threshold - chown system input /sys/class/input/input5/distortion - chown system input /sys/class/input/input5/shape - write /sys/class/input/input5/distortion "500 350 15" - - chown system input /sys/class/input/input6/enable - chown system input /sys/class/input/input6/delay - chown system input /sys/class/input/input6/filter_enable - chown system input /sys/class/input/input6/filter_len - chown system input /sys/class/input/input6/data - chown system input /sys/class/input/input6/status - chown system input /sys/class/input/input6/wake - chown system input /sys/class/input/input6/position - - chown compass input /sys/class/input/input6/offsets - chown compass input /sys/class/input/input6/dynamic_matrix - chown system input /sys/class/input/input6/threshold - chown system input /sys/class/input/input6/distortion - chown system input /sys/class/input/input6/shape - write /sys/class/input/input6/distortion "500 350 15" - - chown system input /sys/class/input/input7/enable - chown system input /sys/class/input/input7/delay - chown system input /sys/class/input/input7/filter_enable - chown system input /sys/class/input/input7/filter_len - chown system input /sys/class/input/input7/data - chown system input /sys/class/input/input7/status - chown system input /sys/class/input/input7/wake - chown system input /sys/class/input/input7/position - - chown system radio /sys/class/sensors/accelerometer_sensor/raw_data - chown system radio /sys/class/sensors/accelerometer_sensor/calibration - chown system radio /sys/class/sensors/accelerometer_sensor/vendor - chown system radio /sys/class/sensors/accelerometer_sensor/name - - chown system radio /sys/class/sensors/magnetic_sensor/vendor - chown system radio /sys/class/sensors/magnetic_sensor/name - - chown system radio /sys/class/sensors/proximity_sensor/state - chown system radio /sys/class/sensors/proximity_sensor/raw_data - chown system radio /sys/class/sensors/proximity_sensor/vendor - chown system radio /sys/class/sensors/proximity_sensor/name - - chown system radio /sys/class/sensors/light_sensor/lux - chown system radio /sys/class/sensors/light_sensor/raw_data - chown system radio /sys/class/sensors/light_sensor/vendor - chown system radio /sys/class/sensors/light_sensor/name - -# Change permission for TSP - chown system radio /sys/class/sec/tsp/cmd - chown system radio /sys/class/sec/tsp/cmd_status - chown system radio /sys/class/sec/tsp/cmd_result - chown media_rw media_rw /sys/class/sec/tsp/set_jitter - -# Change permission for switch - chmod 0660 /sys/class/sec/switch/uart_sel - chmod 0660 /sys/class/sec/switch/usb_sel - chmod 0600 /sys/class/sec/switch/jig_on - - chown system radio /sys/class/sec/switch/uart_sel - chown system radio /sys/class/sec/switch/usb_sel - chown radio radio /sys/class/sec/switch/jig_on - chown system radio /sys/class/sec/switch/adc - -# create data/gps for GPS demon - chown root system /dev/ttyO0 - chmod 0660 /dev/ttyO0 - chown root system /sys/class/sec/gps/GPS_PWR_EN/value - chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value - chown root system /sys/class/sec/gps/GPS_nRST/value - chmod 0664 /sys/class/sec/gps/GPS_nRST/value - mkdir /data/gps 771 system system - chown system system /data/gps - -#Change permission for backlight and lcd - chown system system /sys/class/backlight/panel/brightness - chown system radio /sys/class/lcd/panel/lcd_type - chown system radio /sys/class/lcd/panel/lcd_power - -# IrLED - chown system system /sys/class/sec/sec_ir/ir_send - chown system system /sys/class/sec/sec_ir/check_ir - -# Battery - chown system radio /sys/class/power_supply/battery/batt_reset_soc - chmod 0664 /sys/class/power_supply/battery/batt_reset_soc - -# for wifi - mkdir /efs/wifi 0775 system radio - -# for hdcp, amwbr - mkdir /data/misc/radio 0775 radio system - -# for hdmi factory test - chown radio system /sys/devices/platform/omapdss/display1/sec_timing - - setprop vold.post_fs_data_done 1 - -on boot - -# initialize the SGX driver -service pvrsrvinit /system/bin/pvrsrvinit - class core - user root - group root - seclabel u:r:pvrsrvinit:s0 - oneshot - -service pvrsrvctl /system/vendor/bin/pvrsrvctl_SGX540_120 --start --no-module - class core - user root - group root - oneshot - -# SMC Service -service tf_daemon /system/bin/tf_daemon \ - -d -c /system/bin/smc.ini - class main - user root - group root - oneshot - disabled - -service smc_pa /system/bin/smc_pa_ctrl \ - -c /system/bin/smc.ini \ - start /system/bin/smc_pa.ift - class core - user root - group root - seclabel u:r:smc_pa:s0 - oneshot - -service orientationd /system/bin/orientationd - class main - user compass - group input - seclabel u:r:orientationd:s0 - -service geomagneticd /system/bin/geomagneticd - class main - user compass - group system input - seclabel u:r:geomagneticd:s0 - -# 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 \ - -ip2p0 -Dnl80211 -c /data/misc/wifi/p2p_supplicant.conf \ - -I/system/etc/wifi/p2p_supplicant_overlay.conf \ - -puse_p2p_group_interface=1 -e/data/misc/wifi/entropy.bin \ - -g@android:wpa_wlan0 - # we will start as root and wpa_supplicant will switch to user wifi - # after setting up the capabilities required for WEXT - # user wifi - # group wifi inet keystore - class main - socket wpa_wlan0 dgram 660 wifi wifi - disabled - oneshot - -service wpa_supplicant /system/bin/wpa_supplicant \ - -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ - -I/system/etc/wifi/wpa_supplicant_overlay.conf \ - -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0 - # we will start as root and wpa_supplicant will switch to user wifi - # after setting up the capabilities required for WEXT - # user wifi - # group wifi inet keystore - class main - socket wpa_wlan0 dgram 660 wifi wifi - disabled - oneshot - -service dhcpcd_wlan0 /system/bin/dhcpcd -ABKL - class main - disabled - oneshot - -service dhcpcd_p2p /system/bin/dhcpcd -aABKL - class main - disabled - oneshot - -service dhcpcd_bt-pan /system/bin/dhcpcd -ABKL - class main - disabled - oneshot - -service iprenew_wlan0 /system/bin/dhcpcd -n - class main - disabled - oneshot - -service iprenew_p2p /system/bin/dhcpcd -n - class main - disabled - oneshot - -service iprenew_bt-pan /system/bin/dhcpcd -n - class main - disabled - oneshot - -service cpboot-daemon /sbin/cbd -d -p 8 - class main - user root - group radio cache inet misc audio sdcard_rw log sdcard_r - disabled - -on property:init.svc.pvrsrvinit=stopped - start cpboot-daemon - -# GPS -service gpsd /system/bin/gpsd -c /system/etc/gps.xml - class main - socket gps seqpacket 0660 gps system - user gps - group system inet sdcard_rw - seclable u:r:gpsd:s0 - -# TVout -service TvoutService_C /system/bin/bintvoutservice - class main - user system - group system - -# Keyboard -service dock_kbd_attach /system/bin/dock_kbd_attach /dev/ttyO3 - class main - user root - seclabel u:r:dock_kbd_attach:s0 - oneshot - -# LPM -on property:ro.bootmode=charger - mount ext4 /dev/block/platform/omap/omap_hsmmc.1/by-name/FACTORYFS /system wait ro - -on property:ro.bootmode=charger - 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 samsung - write /sys/class/android_usb/android0/iProduct $(ro.product.model) - start adbd - -on property:ro.bootmode=charger - start pvrsrvinit - -on property:ro.bootmode=charger - class_start charger - -service charger /charger - class charger - user root - -## CyanogenMod Performance Profiles -# Powersave -on property:sys.perf.profile=0 - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave - -# Balanced, here interactive governor -on property:sys.perf.profile=1 - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive - -# Performance -on property:sys.perf.profile=2 - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance diff --git a/rootdir/init.espresso10.usb.rc b/rootdir/init.espresso10.usb.rc deleted file mode 100755 index e86a7bd..0000000 --- a/rootdir/init.espresso10.usb.rc +++ /dev/null @@ -1,79 +0,0 @@ -on init - write /sys/class/android_usb/android0/iSerial ${ro.serialno} - write /sys/class/android_usb/android0/f_rndis/manufacturer Samsung - write /sys/class/android_usb/android0/f_rndis/vendorID 04e8 - write /sys/class/android_usb/android0/f_rndis/wceis 1 - -on boot - write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer} - write /sys/class/android_usb/android0/iProduct ${ro.product.model} - -on property:sys.usb.config=mtp - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 685c - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=mtp,adb - 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 ${sys.usb.config} - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=rndis - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6863 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/bDeviceClass 224 - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=rndis,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6864 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/bDeviceClass 224 - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=ptp - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6865 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=ptp,adb - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6866 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/enable 1 - start adbd - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=rndis,dm - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6864 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} - -on property:sys.usb.config=rndis,acm,dm - write /sys/class/android_usb/android0/enable 0 - write /sys/class/android_usb/android0/idVendor 04e8 - write /sys/class/android_usb/android0/idProduct 6864 - write /sys/class/android_usb/android0/functions ${sys.usb.config} - write /sys/class/android_usb/android0/f_acm/instances 1 - write /sys/class/android_usb/android0/enable 1 - setprop sys.usb.state ${sys.usb.config} diff --git a/rootdir/ueventd.espresso10.rc b/rootdir/ueventd.espresso10.rc deleted file mode 100644 index f67f204..0000000 --- a/rootdir/ueventd.espresso10.rc +++ /dev/null @@ -1,58 +0,0 @@ -#for DSSCOMP -/dev/dsscomp 0666 system system -/dev/tiler 0666 system system - -#for SYSLINK -/dev/rpmsg-omx0 0660 system drmrpc -/dev/rpmsg-omx1 0660 system drmrpc -/dev/rproc_user 0660 system drmrpc -/dev/tf_driver 0660 drmrpc drmrpc -/dev/tf_ctrl 0660 drmrpc drmrpc - -#for Sensors -/dev/mpu 0660 system system -/dev/mpuirq 0660 system system -/dev/accelirq 0660 system system -/dev/compassirq 0660 system system -/dev/timerirq 0660 system system -/dev/i2c-4 0660 system system - -#for HSPA RIL -/dev/umts_boot0 0660 radio radio -/dev/umts_boot1 0660 radio radio -/dev/umts_ipc0 0660 radio radio -/dev/umts_rfs0 0660 radio radio -/dev/block/mmcblk0p8 0660 radio radio -/dev/umts_ramdump0 0660 radio radio -/dev/umts_router 0660 radio system -/dev/umts_csd 0660 radio system - -# hdcp -/dev/hdcp 0664 root root - -# used by RIL and GPS -/dev/ttyO0 0660 system radio -/dev/ttyGS0 0660 system system - -# for LTE RIL -/dev/cdma_boot0 0660 radio radio -/dev/lte_boot0 0660 radio radio -/dev/cdma_ipc0 0660 radio radio -/dev/lte_ipc0 0660 radio radio -/dev/cdma_rfs0 0660 radio radio -/dev/lte_rfs0 0660 radio radio -/dev/lte_spi 0660 radio radio -/dev/cdma_rmnet5 0660 radio radio -/dev/cdma_rmnet6 0660 radio radio -/dev/lte_rmnet4 0660 radio radio -/dev/ttyGS1 0660 radio radio -/dev/block/mmcblk0p4 0660 radio radio -/dev/modem_br 0660 radio radio -/dev/cdma_ramdump0 0660 radio radio -/dev/lte_ramdump0 0660 radio radio - -# For SGX -/dev/pvrsrvkm 0666 system system - -# For GCX -/dev/gcioctl 0666 system system -- cgit v1.1