Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updates from JB SAMMY KERNEL + modds to my INIT and cortex.

  • Loading branch information...
commit b8496bd42a81b92a6e60c51d26b532cf69a61cec 1 parent dacf9ad
@dorimanx authored
View
2  init.rc
@@ -82,7 +82,7 @@ loglevel 3
mkdir /mnt/.lfs 0755 root root
write /proc/sys/kernel/panic_on_oops 0
- write /proc/sys/kernel/hung_task_timeout_secs 120
+ write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_compat_yield 1
View
2  init.rc.2
@@ -82,7 +82,7 @@ loglevel 3
mkdir /mnt/.lfs 0755 root root
write /proc/sys/kernel/panic_on_oops 0
- write /proc/sys/kernel/hung_task_timeout_secs 120
+ write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_compat_yield 1
View
2  res/misc/B2G-ROM/init.rc
@@ -87,7 +87,7 @@ loglevel 3
mkdir /mnt/.lfs 0755 root root
write /proc/sys/kernel/panic_on_oops 0
- write /proc/sys/kernel/hung_task_timeout_secs 120
+ write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_compat_yield 1
View
2  res/misc/B2G-ROM/init.rc.2
@@ -86,7 +86,7 @@ loglevel 3
mkdir /mnt/.lfs 0755 root root
write /proc/sys/kernel/panic_on_oops 0
- write /proc/sys/kernel/hung_task_timeout_secs 120
+ write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_compat_yield 1
View
2  res/misc/CM-ROM/init.rc
@@ -76,7 +76,7 @@ loglevel 3
mkdir /mnt/.lfs 0755 root root
write /proc/sys/kernel/panic_on_oops 0
- write /proc/sys/kernel/hung_task_timeout_secs 120
+ write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_compat_yield 1
View
2  res/misc/JellyB-CM-AOKP/init.rc
@@ -79,7 +79,7 @@ loglevel 3
mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000
write /proc/sys/kernel/panic_on_oops 0
- write /proc/sys/kernel/hung_task_timeout_secs 120
+ write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_compat_yield 1
View
BIN  res/misc/JellyB-Sammy/boot
Binary file not shown
View
8 res/misc/JellyB-Sammy/default.prop
@@ -0,0 +1,8 @@
+#
+# ADDITIONAL_DEFAULT_PROPERTIES
+#
+ro.secure=0
+ro.allow.mock.location=0
+ro.debuggable=1
+persist.sys.usb.config=mtp,adb
+persist.service.adb.enable=1
View
22 res/misc/JellyB-Sammy/init.bt.rc
@@ -0,0 +1,22 @@
+on boot
+
+# for bluetooth
+ insmod /lib/modules/btlock.ko
+ chmod 664 /dev/btlock
+ chown bluetooth system /dev/btlock
+
+service hciattach /system/bin/brcm_patchram_plus --enable_hci --enable_lpm --no2bytes --tosleep 50000 \
+ --baudrate 3000000 --use_baudrate_for_download --patchram /system/bin/bcm4330B1.hcd \
+ --scopcm=0,0,0,0,0,0,0,3,3,0 /dev/ttySAC0
+ class main
+ user bluetooth
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
+
+# for bluetooth rf test.
+service bt_dut_cmd /system/bin/bcm_dut
+ class main
+ group bluetooth net_bt_admin
+ disabled
+ oneshot
View
78 res/misc/JellyB-Sammy/init.goldfish.rc
@@ -0,0 +1,78 @@
+on early-init
+ export EXTERNAL_STORAGE /mnt/sdcard
+ mkdir /mnt/sdcard 0000 system system
+ # for backwards compatibility
+ symlink /mnt/sdcard /sdcard
+
+on boot
+ setprop ARGH ARGH
+ setprop net.eth0.gw 10.0.2.2
+ setprop net.eth0.dns1 10.0.2.3
+ setprop net.gprs.local-ip 10.0.2.15
+ setprop ro.radio.use-ppp no
+ setprop ro.build.product generic
+ setprop ro.product.device generic
+
+# fake some battery state
+ setprop status.battery.state Slow
+ setprop status.battery.level 5
+ setprop status.battery.level_raw 50
+ setprop status.battery.level_scale 9
+
+# disable some daemons the emulator doesn't want
+ stop dund
+ stop akmd
+
+# start essential services
+ start qemud
+ start goldfish-logcat
+ start goldfish-setup
+
+ setprop ro.setupwizard.mode EMULATOR
+
+# enable Google-specific location features,
+# like NetworkLocationProvider and LocationCollector
+ setprop ro.com.google.locationfeatures 1
+
+# For the emulator, which bypasses Setup Wizard, you can specify
+# account info for the device via these two properties. Google
+# Login Service will insert these accounts into the database when
+# it is created (ie, after a data wipe).
+#
+# setprop ro.config.hosted_account username@hosteddomain.org:password
+# setprop ro.config.google_account username@gmail.com:password
+#
+# You MUST have a Google account on the device, and you MAY
+# additionally have a hosted account. No other configuration is
+# supported, and arbitrary breakage may result if you specify
+# something else.
+
+service goldfish-setup /system/etc/init.goldfish.sh
+ user root
+ group root
+ oneshot
+
+# The qemu-props program is used to set various system
+# properties on boot. It must be run early during the boot
+# process to avoid race conditions with other daemons that
+# might read them (e.g. surface flinger), so define it in
+# class 'core'
+#
+service qemu-props /system/bin/qemu-props
+ class core
+ user root
+ group root
+ oneshot
+
+service qemud /system/bin/qemud
+ socket qemud stream 666
+ oneshot
+
+# -Q is a special logcat option that forces the
+# program to check wether it runs on the emulator
+# if it does, it redirects its output to the device
+# named by the androidboot.console kernel option
+# if not, is simply exits immediately
+
+service goldfish-logcat /system/bin/logcat -Q
+ oneshot
View
656 res/misc/JellyB-Sammy/init.rc
@@ -0,0 +1,656 @@
+# Copyright (C) 2012 The Android Open Source Project
+#
+# IMPORTANT: Do not create world writable files or directories.
+# This is a common source of Android security bugs.
+#
+
+# THIS INIT.RC is FOR SAMMY JB ROMS!
+
+import /init.smdk4210.rc
+import /init.usb.rc
+import /init.trace.rc
+import /init.smdk4210.dm_kernel.rc
+
+on early-init
+# Set init and its forked children's oom_adj.
+ write /proc/1/oom_score_adj -1000
+
+ start ueventd
+
+# create mountpoints
+ mkdir /mnt 0775 root system
+
+on init
+
+sysclktz 0
+
+loglevel 3
+
+# setup the global environment
+ export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
+ export LD_LIBRARY_PATH /vendor/lib:/system/lib
+ export ANDROID_BOOTLOGO 1
+ export ANDROID_ROOT /system
+ export ANDROID_ASSETS /system/app
+ export ANDROID_DATA /data
+ export ASEC_MOUNTPOINT /mnt/asec
+ export LOOP_MOUNTPOINT /mnt/obb
+ export BOOTCLASSPATH /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/sec_edm.jar:/system/framework/seccamera.jar
+#WTL_EDM
+# Backward compatibility
+ symlink /system/etc /etc
+ symlink /sys/kernel/debug /d
+
+# Right now vendor lives on the same filesystem as system,
+# but someday that may change.
+ symlink /system/vendor /vendor
+
+# Create cgroup mount point for cpu accounting
+ mkdir /acct
+ mount cgroup none /acct cpuacct
+ mkdir /acct/uid
+
+ mkdir /system
+ mkdir /data 0771 system system
+ mkdir /cache 0770 system cache
+ mkdir /config 0500 root root
+ mkdir /preload 0771 system system
+
+# Directory for putting things only root should see.
+ mkdir /mnt/secure 0700 root root
+
+# Directory for staging bindmounts
+ mkdir /mnt/secure/staging 0700 root root
+
+# Directory-target for where the secure container
+# imagefile directory will be bind-mounted
+ mkdir /mnt/secure/asec 0700 root root
+
+# Secure container public mount points.
+ mkdir /mnt/asec 0700 root system
+ mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000
+
+# Filesystem image public mount points.
+ mkdir /mnt/obb 0700 root system
+ mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000
+
+ write /proc/sys/kernel/panic_on_oops 0
+ write /proc/sys/kernel/hung_task_timeout_secs 0
+ write /proc/cpu/alignment 4
+ write /proc/sys/kernel/sched_latency_ns 10000000
+ write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
+ write /proc/sys/kernel/sched_compat_yield 1
+ write /proc/sys/kernel/sched_child_runs_first 0
+ write /proc/sys/kernel/randomize_va_space 2
+ write /proc/sys/kernel/kptr_restrict 0
+ write /proc/sys/kernel/dmesg_restrict 0
+ write /proc/sys/vm/mmap_min_addr 16384
+ write /proc/sys/kernel/sched_rt_runtime_us 950000
+ write /proc/sys/kernel/sched_rt_period_us 1000000
+
+# Create cgroup mount points for process groups
+ mkdir /dev/cpuctl
+ mount cgroup none /dev/cpuctl cpu
+ chown system system /dev/cpuctl
+ chown system system /dev/cpuctl/tasks
+ chmod 0660 /dev/cpuctl/tasks
+ write /dev/cpuctl/cpu.shares 1024
+ write /dev/cpuctl/cpu.rt_runtime_us 950000
+ write /dev/cpuctl/cpu.rt_period_us 1000000
+
+ mkdir /dev/cpuctl/apps
+ chown system system /dev/cpuctl/apps/tasks
+ chmod 0666 /dev/cpuctl/apps/tasks
+ write /dev/cpuctl/apps/cpu.shares 1024
+ write /dev/cpuctl/apps/cpu.rt_runtime_us 800000
+ write /dev/cpuctl/apps/cpu.rt_period_us 1000000
+
+ mkdir /dev/cpuctl/apps/bg_non_interactive
+ chown system system /dev/cpuctl/apps/bg_non_interactive/tasks
+ chmod 0666 /dev/cpuctl/apps/bg_non_interactive/tasks
+ # 5.0 %
+ write /dev/cpuctl/apps/bg_non_interactive/cpu.shares 52
+ write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_runtime_us 700000
+ write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_period_us 1000000
+
+# Allow everybody to read the xt_qtaguid resource tracking misc dev.
+# This is needed by any process that uses socket tagging.
+ chmod 0644 /dev/xt_qtaguid
+
+on fs
+# mount mtd partitions
+ # Mount /system rw first to give the filesystem a chance to save a checkpoint
+ mount yaffs2 mtd@system /system
+ mount yaffs2 mtd@system /system ro remount
+ mount yaffs2 mtd@userdata /data nosuid nodev
+ mount yaffs2 mtd@cache /cache nosuid nodev
+
+on post-fs
+# once everything is setup, no need to modify /
+ mount rootfs rootfs / rw remount
+
+# We chown/chmod /cache again so because mount is run as root + defaults
+ chown system cache /cache
+ chmod 0770 /cache
+
+# This may have been created by the recovery system with odd permissions
+ chown system cache /cache/recovery
+ chmod 0770 /cache/recovery
+
+# change permissions on vmallocinfo so we can grab it from bugreports
+ chown root log /proc/vmallocinfo
+ chmod 0440 /proc/vmallocinfo
+
+# change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks
+ chown root system /proc/kmsg
+ chmod 0440 /proc/kmsg
+ chown root system /proc/sysrq-trigger
+ chmod 0220 /proc/sysrq-trigger
+
+# create the lost+found directories, so as to enforce our permissions
+ mkdir /cache/lost+found 0770 root root
+
+on post-fs-data
+# We chown/chmod /data again so because mount is run as root + defaults
+ chown system system /data
+ chmod 0771 /data
+
+# Create dump dir and collect dumps.
+# Do this before we mount cache so eventually we can use cache for
+# storing dumps on platforms which do not have a dedicated dump partition.
+
+ mkdir /data/dontpanic 0750 root log
+
+# Collect apanic data, free resources and re-arm trigger
+ copy /proc/apanic_console /data/dontpanic/apanic_console
+ chown root log /data/dontpanic/apanic_console
+ chmod 0640 /data/dontpanic/apanic_console
+
+ copy /proc/apanic_threads /data/dontpanic/apanic_threads
+ chown root log /data/dontpanic/apanic_threads
+ chmod 0640 /data/dontpanic/apanic_threads
+
+ write /proc/apanic_console 1
+
+# create basic filesystem structure
+ mkdir /data/misc 01771 system misc
+ mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
+ mkdir /data/misc/bluetooth 0770 system system
+ mkdir /data/misc/keystore 0700 keystore keystore
+ mkdir /data/misc/keychain 0771 system system
+ mkdir /data/misc/vpn 0770 system vpn
+ mkdir /data/misc/systemkeys 0700 system system
+ # give system access to wpa_supplicant.conf for backup and restore
+ mkdir /data/misc/wifi 0770 wifi wifi
+ chmod 0660 /data/misc/wifi/wpa_supplicant.conf
+ mkdir /data/local 0751 root root
+
+# panorama directory creation
+ mkdir /data/pxtmpdir 0775
+ chown system system /data/pxtmpdir
+ chmod 0775 /data/pxtmpdir
+
+# For security reasons, /data/local/tmp should always be empty.
+# Do not place files or directories in /data/local/tmp
+ mkdir /data/local/tmp 0771 shell shell
+ mkdir /data/data 0771 system system
+ mkdir /data/app-private 0771 system system
+ mkdir /data/app-asec 0700 root root
+ mkdir /data/app 0771 system system
+ mkdir /data/property 0700 root root
+ mkdir /data/ssh 0750 root shell
+ mkdir /data/ssh/empty 0700 root root
+
+# SA, System SW, SAMSUNG create log directory
+ mkdir /data/log 0775 system log
+ chown system log /data/log
+
+ chmod 0775 /data/log
+ chmod 0775 /data/anr
+
+
+# create dalvik-cache, so as to enforce our permissions
+ mkdir /data/dalvik-cache 0771 system system
+
+# create resource-cache and double-check the perms
+ mkdir /data/resource-cache 0771 system system
+ chown system system /data/resource-cache
+ chmod 0771 /data/resource-cache
+
+# create the lost+found directories, so as to enforce our permissions
+ mkdir /data/lost+found 0770 root root
+
+# create directory for DRM plug-ins - give drm the read/write access to
+# the following directory.
+ mkdir /data/drm 0770 drm drm
+
+#[ SEC_MM_DRM
+# DRM directory creation
+ mkdir /system/etc/security/.drm 0775
+ chown root root /system/etc/security/.drm
+ chmod 0775 /system/etc/security/.drm
+
+# Added for Playready DRM Support
+ mkdir /data/data/.drm 0775
+ chown drm system /data/data/.drm
+ chmod 0775 /data/data/.drm
+ mkdir /data/data/.drm/.playready 0775
+ chown drm system /data/data/.drm/.playready
+ chmod 0775 /data/data/.drm/.playready
+
+# Added drm folder to copy drm plugins
+ mkdir /system/lib/drm 0775
+ chown root root /system/lib/drm
+ chmod 0775 /system/lib/drm
+
+# DivX DRM
+ mkdir /efs/.files 0775
+ mkdir /efs/.files/.dx1 0775
+ mkdir /efs/.files/.dm33 0775
+ mkdir /efs/.files/.mp301 0775
+ chown media system /efs/.files/.dx1
+ chown media system /efs/.files/.dm33
+ chown media system /efs/.files/.mp301
+ chmod 0775 /efs/.files/.dx1
+ chmod 0775 /efs/.files/.dm33
+ chmod 0775 /efs/.files/.mp301
+#]
+
+on boot
+# basic network init
+ ifup lo
+ hostname localhost
+ domainname localdomain
+
+# set RLIMIT_NICE to allow priorities from 19 to -20
+ setrlimit 13 40 40
+
+# Memory management. Basic kernel parameters, and allow the high
+# level system server to be able to adjust the kernel OOM driver
+# parameters to match how it is managing things.
+ write /proc/sys/vm/overcommit_memory 1
+ write /proc/sys/vm/min_free_order_shift 4
+ chown root system /sys/module/lowmemorykiller/parameters/adj
+ chmod 0664 /sys/module/lowmemorykiller/parameters/adj
+ chown root system /sys/module/lowmemorykiller/parameters/minfree
+ chmod 0664 /sys/module/lowmemorykiller/parameters/minfree
+
+# Tweak background writeout
+ write /proc/sys/vm/dirty_expire_centisecs 200
+ write /proc/sys/vm/dirty_background_ratio 10
+
+# Permissions for System Server and daemons.
+ chown radio system /sys/android_power/state
+ chown radio system /sys/android_power/request_state
+ chown radio system /sys/android_power/acquire_full_wake_lock
+ chown radio system /sys/android_power/acquire_partial_wake_lock
+ chown radio system /sys/android_power/release_wake_lock
+ chown system system /sys/power/state
+ chown system system /sys/power/wakeup_count
+ chown radio system /sys/power/wake_lock
+ chown radio system /sys/power/wake_unlock
+ chmod 0660 /sys/power/state
+ chmod 0660 /sys/power/wake_lock
+ chmod 0660 /sys/power/wake_unlock
+
+ chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
+ chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
+ chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
+ chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
+ chown system system /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
+ chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
+ chown system system /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
+ chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
+ chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
+ chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
+ chown system system /sys/devices/system/cpu/cpufreq/interactive/boost
+ chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/boost
+ chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse
+ chown system system /sys/devices/system/cpu/cpufreq/interactive/input_boost
+ chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/input_boost
+
+ # Assume SMP uses shared cpufreq policy for all CPUs
+ chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
+ chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
+
+ chown system system /sys/class/timed_output/vibrator/enable
+ chown system system /sys/class/leds/keyboard-backlight/brightness
+ chown system system /sys/class/leds/lcd-backlight/brightness
+ chown system system /sys/class/leds/button-backlight/brightness
+ chown system system /sys/class/leds/jogball-backlight/brightness
+ chown system system /sys/class/leds/red/brightness
+ chown system system /sys/class/leds/green/brightness
+ chown system system /sys/class/leds/blue/brightness
+ chown system system /sys/class/leds/red/device/grpfreq
+ chown system system /sys/class/leds/red/device/grppwm
+ chown system system /sys/class/leds/red/device/blink
+ chown system system /sys/class/leds/red/brightness
+ chown system system /sys/class/leds/green/brightness
+ chown system system /sys/class/leds/blue/brightness
+ chown system system /sys/class/leds/red/device/grpfreq
+ chown system system /sys/class/leds/red/device/grppwm
+ chown system system /sys/class/leds/red/device/blink
+ chown system system /sys/class/timed_output/vibrator/enable
+ chown system system /sys/module/sco/parameters/disable_esco
+ chown system system /sys/kernel/ipv4/tcp_wmem_min
+ chown system system /sys/kernel/ipv4/tcp_wmem_def
+ chown system system /sys/kernel/ipv4/tcp_wmem_max
+ chown system system /sys/kernel/ipv4/tcp_rmem_min
+ chown system system /sys/kernel/ipv4/tcp_rmem_def
+ chown system system /sys/kernel/ipv4/tcp_rmem_max
+ chown root radio /proc/cmdline
+
+# Permissions for gpio_keys
+ chown radio system /sys/class/sec/sec_key/wakeup_keys
+ write /sys/class/sec/sec_key/wakeup_keys 102,116,172
+
+# Permissions for input devices
+ chown system radio /sys/class/sec/sec_key/sec_key_pressed
+
+# Permissions for WACOM
+ chown system radio /sys/class/sec/sec_epen/epen_firm_update
+ chown system radio /sys/class/sec/sec_epen/epen_rotation
+ chown system radio /sys/class/sec/sec_epen/epen_hand
+ chown system radio /sys/class/sec/sec_epen/epen_reset
+ chown system radio /sys/class/sec/sec_epen/epen_reset_result
+ chown system radio /sys/class/sec/sec_epen/epen_checksum
+ chown system radio /sys/class/sec/sec_epen/epen_checksum_result
+ chown system radio /sys/class/sec/sec_epen/epen_saving_mode
+# Firmware update
+ write /sys/class/sec/sec_epen/epen_firm_update R
+
+# Permissions for Touchkey
+ chown system radio /sys/class/sec/sec_touchkey/enable_disable
+ chown system radio /sys/class/sec/sec_touchkey/recommended_version
+ chown system radio /sys/class/sec/sec_touchkey/touch_sensitivity
+ chown system radio /sys/class/sec/sec_touchkey/brightness
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_brightness
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_back
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_menu
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_version_panel
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_version_phone
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update_status
+ chown system radio /sys/class/sec/sec_touchkey/touchkey_firm_update
+ chown system radio /sys/class/sec/sec_touchkey/updated_version
+
+ chown system radio /sys/class/sec/tsp_noise_test/set_firm_version
+ chown system radio /sys/class/sec/tsp_noise_test/set_threshould
+ chown system radio /sys/class/sec/tsp_noise_test/set_all_delta
+ chown system radio /sys/class/sec/tsp_noise_test/set_all_refer
+ chown system radio /sys/class/sec/tsp_noise_test/set_delta4
+ chown system radio /sys/class/sec/tsp_noise_test/set_refer4
+ chown system radio /sys/class/sec/tsp_noise_test/set_delta3
+ chown system radio /sys/class/sec/tsp_noise_test/set_refer3
+ chown system radio /sys/class/sec/tsp_noise_test/set_delta2
+ chown system radio /sys/class/sec/tsp_noise_test/set_refer2
+ chown system radio /sys/class/sec/tsp_noise_test/set_delta1
+ chown system radio /sys/class/sec/tsp_noise_test/set_refer1
+ chown system radio /sys/class/sec/tsp_noise_test/set_delta0
+ chown system radio /sys/class/sec/tsp_noise_test/set_refer0
+ chown system radio /sys/class/sec/tsp_noise_test/disp_all_deltadata
+ chown system radio /sys/class/sec/tsp_noise_test/disp_all_refdata
+ chown system radio /sys/class/sec/tsp_noise_test/set_module_off
+ chown system radio /sys/class/sec/tsp_noise_test/set_module_on
+
+ chown system radio /sys/class/sec/sec_touchscreen/tsp_firm_version_panel
+ chown system radio /sys/class/sec/sec_touchscreen/tsp_firm_version_phone
+ chown system radio /sys/class/sec/sec_touchscreen/tsp_firm_update_status
+ chown system radio /sys/class/sec/sec_touchscreen/tsp_firm_update
+ chown system radio /sys/class/sec/sec_touchscreen/tsp_threshold
+ chown system radio /sys/class/sec/sec_touchscreen/tsp_config_version
+ chown system radio /sys/class/sec/sec_touchscreen/tsp_touchtype
+
+# Set this property so surfaceflinger is not started by system_init
+ setprop system_init.startsurfaceflinger 0
+
+ class_start core
+ class_start main
+
+on nonencrypted
+ class_start late_start
+
+on charger
+ class_start charger
+
+on property:vold.decrypt=trigger_reset_main
+ class_reset main
+
+on property:vold.decrypt=trigger_load_persist_props
+ load_persist_props
+
+on property:vold.decrypt=trigger_post_fs_data
+ trigger post-fs-data
+
+on property:vold.decrypt=trigger_restart_min_framework
+ class_start main
+
+on property:vold.decrypt=trigger_restart_framework
+ class_start main
+ class_start late_start
+
+on property:vold.decrypt=trigger_shutdown_framework
+ class_reset late_start
+ class_reset main
+
+## Daemon processes to be run by init.
+service ueventd /sbin/ueventd
+ class core
+ critical
+
+service console /system/bin/sh
+ class core
+ console
+ disabled
+ group log
+
+service console_user /system/bin/sh
+ class core
+ console
+ disabled
+ user shell
+ group shell log
+
+on property:ro.debuggable=1
+ start console
+
+on property:ro.debuggable=0
+ start console_user
+
+# adbd is controlled via property triggers in init.<platform>.usb.rc
+service adbd /sbin/adbd
+ class core
+ disabled
+
+# adbd on at boot in emulator
+on property:ro.kernel.qemu=1
+ start adbd
+
+service servicemanager /system/bin/servicemanager
+ class core
+ user system
+ group system
+ critical
+ onrestart restart zygote
+ onrestart restart media
+ onrestart restart surfaceflinger
+ onrestart restart drm
+
+service vold /system/bin/vold
+ class core
+ socket vold stream 0660 root mount
+ ioprio be 2
+ socket dir_enc_report stream 0660 root mount
+
+service netd /system/bin/netd
+ class main
+ socket netd stream 0660 root system
+ socket dnsproxyd stream 0660 root inet
+ socket mdns stream 0660 root system
+
+service debuggerd /system/bin/debuggerd
+ class main
+
+service ril-daemon /system/bin/rild
+ class main
+ socket rild stream 660 root radio
+ socket rild-debug stream 660 radio system
+ user root
+ group radio cache inet misc audio sdcard_rw log
+ onrestart restart cpboot-daemon
+
+service DR-daemon /system/bin/ddexe
+ class main
+ user root
+ group system radio inet net_raw
+
+service KIES-daemon /system/bin/kiesexe
+ class main
+ user root
+ group system radio inet net_raw
+
+service SMD-daemon /system/bin/smdexe
+ class main
+ user root
+ group system radio inet net_raw
+
+service DTT-daemon /system/bin/dttexe
+ class main
+ user root
+ group system radio inet net_raw
+
+service BCS-daemon /system/bin/connfwexe
+ class main
+ user root
+ group system radio inet net_raw
+
+service mobex-daemon /system/bin/npsmobex
+ class main
+ user system
+ group system radio inet sdcard_rw
+
+service surfaceflinger /system/bin/surfaceflinger
+ class main
+ user system
+ group graphics
+ onrestart restart zygote
+
+service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-system-server
+ class main
+ socket zygote stream 660 root system
+ onrestart write /sys/android_power/request_state wake
+ onrestart write /sys/power/state on
+ onrestart restart media
+ onrestart restart netd
+
+service drm /system/bin/drmserver
+ class main
+ user drm
+# [ SEC_MM_DRM
+# fix
+ group system drm inet drmrpc sdcard_r radio sdcard_rw media_rw
+# org
+# group drm system inet drmrpc sdcard_r radio
+# ]
+
+service media /system/bin/mediaserver
+ class main
+ user media
+ group system audio camera inet net_bt net_bt_admin net_bw_acct drmrpc sdcard_rw sdcard_r media_rw
+ ioprio rt 4
+
+service powersnd /system/bin/samsungpowersoundplay
+ class main
+ user media
+ group system
+ disabled
+ oneshot
+
+service bootanim /system/bin/bootanimation
+ class main
+ user graphics
+ group graphics system
+ disabled
+ oneshot
+
+service dbus /system/bin/dbus-daemon --system --nofork
+ class main
+ socket dbus stream 660 bluetooth bluetooth
+ user bluetooth
+ group bluetooth net_bt_admin
+
+service bluetoothd /system/bin/bluetoothd -n
+ class main
+ socket bluetooth stream 660 bluetooth bluetooth
+ socket dbus_bluetooth stream 660 bluetooth bluetooth
+ # init.rc does not yet support applying capabilities, so run as root and
+ # let bluetoothd drop uid to bluetooth with the right linux capabilities
+ group bluetooth net_bt_admin misc
+ disabled
+
+# Bluetooth PAN
+service dhcpcd_bnep0 /system/bin/dhcpcd -ABKL
+ class main
+ disabled
+ oneshot
+
+service iprenew_bnep0 /system/bin/dhcpcd -n
+ class main
+ disabled
+ oneshot
+
+service installd /system/bin/installd
+ class main
+ socket installd stream 600 system system
+
+service flash_recovery /system/etc/install-recovery.sh
+ class main
+ oneshot
+
+service racoon /system/bin/racoon
+ class main
+ socket racoon stream 600 system system
+ # IKE uses UDP port 500. Racoon will setuid to vpn after binding the port.
+ group vpn net_admin inet
+ disabled
+ oneshot
+
+service mtpd /system/bin/mtpd
+ class main
+ socket mtpd stream 600 system system
+ user vpn
+ group vpn net_admin inet net_raw
+ disabled
+ oneshot
+
+service keystore /system/bin/keystore /data/misc/keystore
+ class main
+ user keystore
+ group keystore drmrpc
+ socket keystore stream 666
+
+service dumpstate /system/bin/dumpstate -s
+ class main
+ socket dumpstate stream 0660 shell log
+ disabled
+ oneshot
+
+service sshd /system/bin/start-ssh
+ class main
+ disabled
+
+service mdnsd /system/bin/mdnsd
+ class main
+ user mdnsr
+ group inet net_raw
+ socket mdnsd stream 0660 mdnsr inet
+ disabled
+ oneshot
+
+on property:ro.dumpstate.dmesg=1
+ write /proc/sys/kernel/dmesg_restrict 0
+
+service postinit /sbin/ext/post-init.sh
+ class core
+ user root
+ oneshot
+
View
353 res/misc/JellyB-Sammy/init.smdk4210.rc
@@ -0,0 +1,353 @@
+import init.smdk4210.usb.rc
+import init.bt.rc
+
+on early-init
+ export EXTERNAL_STORAGE /storage/sdcard0
+ mkdir /storage 0550 system sdcard_r
+ mkdir /storage/sdcard0 0000 system system
+ symlink /storage/sdcard0 /sdcard
+ symlink /storage/sdcard0 /mnt/sdcard
+# map "real" external storages paths also in same way. backwards compatibility.
+ symlink /storage/extSdCard /mnt/extSdCard
+ symlink /storage/UsbDriveA /mnt/UsbDriveA
+ symlink /storage/UsbDriveB /mnt/UsbDriveB
+ symlink /storage/UsbDriveC /mnt/UsbDriveC
+ symlink /storage/UsbDriveD /mnt/UsbDriveD
+ symlink /storage/UsbDriveE /mnt/UsbDriveE
+ symlink /storage/UsbDriveF /mnt/UsbDriveF
+
+ export SECONDARY_STORAGE /storage/extSdCard:/storage/UsbDriveA:/storage/UsbDriveB:/storage/UsbDriveC:/storage/UsbDriveD:/storage/UsbDriveE:/storage/UsbDriveF
+ mkdir /storage/extSdCard 0000 system system
+ mkdir /storage/UsbDriveA 0000 system system
+ mkdir /storage/UsbDriveB 0000 system system
+ mkdir /storage/UsbDriveC 0000 system system
+ mkdir /storage/UsbDriveD 0000 system system
+ mkdir /storage/UsbDriveE 0000 system system
+ mkdir /storage/UsbDriveF 0000 system system
+
+ mkdir /efs 0771 radio system
+ mkdir /mnt/.lfs 0755 root root
+
+on init
+
+# Vibetonz
+export VIBE_PIPE_PATH /dev/pipes
+mkdir /dev/pipes 0771 shell shell
+
+on post-fs-data
+# we will remap this as /storage/sdcard with the sdcard fuse tool
+ mkdir /data/media 0770 media_rw media_rw
+ chown media_rw media_rw /data/media
+ setprop vold.post_fs_data_done 1
+
+# give system access to wpa_supplicant.conf for backup and restore
+ mkdir /data/misc/wifi 0770 wifi system
+ mkdir /efs/wifi 0775 radio system
+ mkdir /efs/bluetooth 0775 radio system
+ mkdir /efs/imei 0775 radio system
+ chmod 0660 /data/misc/wifi/wpa_supplicant.conf
+ mkdir /data/misc/wifi/sockets 0770 wifi wifi
+ mkdir /data/misc/dhcp 0775 dhcp dhcp
+ chown dhcp dhcp /data/misc/dhcp
+ chown system system /efs/wifi/.mac.info
+ chmod 0664 /efs/wifi/.mac.info
+
+ mkdir /efs/FactoryApp 0775
+ chown radio system /efs/FactoryApp
+ chmod 0775 /efs/FactoryApp
+ write /efs/FactoryApp/factorymode ON
+ chown system system /efs/FactoryApp/factorymode
+ chmod 0744 /efs/FactoryApp/factorymode
+
+ mkdir /data/misc/radio 0775 radio system
+
+# for TRP/TIS
+ write /data/.psm.info 1
+ chown system root /data/.psm.info
+ chmod 0660 /data/.psm.info
+
+on boot
+# SISO-ANDR_PERF :: START Changing scheduler to noop during boot
+ write /sys/block/mmcblk0/queue/scheduler noop
+# SISO-ANDR_PERF :: END
+
+ setprop ro.build.product smdk4210
+ setprop ro.product.device smdk4210
+ setprop ro.radio.noril yes
+
+# mobicore
+ mkdir /data/app/mcRegistry 0775 system system
+ chmod 0777 /dev/mobicore
+# mobicore trustlets
+ copy /efs/00000000.authtokcont /data/app/mcRegistry/00000000.authtokcont
+ chown system system /data/app/mcRegistry/00000000.authtokcont
+ copy /system/app/FFFFFFFF000000000000000000000001.drbin /data/app/FFFFFFFF000000000000000000000001.drbin
+ chown system system /data/app/FFFFFFFF000000000000000000000001.drbin
+ copy /system/app/mcRegistry/00060308060501020000000000000000.tlbin /data/app/mcRegistry/00060308060501020000000000000000.tlbin
+ chown system system /data/app/mcRegistry/00060308060501020000000000000000.tlbin
+ copy /system/app/mcRegistry/07010000000000000000000000000000.tlbin /data/app/mcRegistry/07010000000000000000000000000000.tlbin
+ chown system system /data/app/mcRegistry/07010000000000000000000000000000.tlbin
+ copy /system/app/mcRegistry/ffffffff000000000000000000000003.tlbin /data/app/mcRegistry/ffffffff000000000000000000000003.tlbin
+ chown system system /data/app/mcRegistry/ffffffff000000000000000000000003.tlbin
+ copy /system/app/mcRegistry/ffffffff000000000000000000000004.tlbin /data/app/mcRegistry/ffffffff000000000000000000000004.tlbin
+ chown system system /data/app/mcRegistry/ffffffff000000000000000000000004.tlbin
+ copy /system/app/mcRegistry/ffffffff000000000000000000000005.tlbin /data/app/mcRegistry/ffffffff000000000000000000000005.tlbin
+ chown system system /data/app/mcRegistry/ffffffff000000000000000000000005.tlbin
+ copy /system/app/mcRegistry/02010000080300030000000000000000.tlbin /data/app/mcRegistry/02010000080300030000000000000000.tlbin
+ chown system system /data/app/mcRegistry/02010000080300030000000000000000.tlbin
+
+# S.LSI secdrv mem
+ chown system system /dev/s5p-smem
+ chmod 0775 /dev/s5p-smem
+
+# WIFI
+ setprop wifi.interface wlan0
+
+ symlink /dev/block/mmcblk0p4 /dev/block/param
+
+# Permissions for bluetooth
+ setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
+ chown bluetooth bluetooth ro.bt.bdaddr_path
+ chown bluetooth bluetooth /dev/ttySAC0
+ chmod 0600 /dev/ttySAC0
+ chmod 0660 /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
+
+# Permisions for sensors
+ chown system radio /dev/accelerometer
+ chown radio system /sys/devices/virtual/accelerometer/accelerometer/acc_file
+ chown radio system /sys/devices/virtual/sec/gsensorcal/calibration
+ chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_selftest
+ chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_get_temp
+ chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_power_on
+ chown system radio /dev/akm8975
+ chown system radio /sys/class/sensors/magnetic_sensor/raw_data
+ chown system radio /sys/class/sensors/magnetic_sensor/vendor
+ chown system radio /sys/class/sensors/magnetic_sensor/name
+
+# permissions for NFC
+ setprop ro.nfc.port "I2C"
+ chmod 0600 /dev/pn544
+ chown nfc nfc /dev/pn544
+
+# Vibetonz
+ chmod 0660 /dev/tspdrv
+ chown root shell /dev/tspdrv
+
+on fs
+# Mount all
+# mount ext4 partitions
+ mount ext4 /res/dev/system /system noatime wait
+ mount ext4 /res/dev/cache /cache nosuid nodev noatime wait rw
+ mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait
+ mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait
+ mount ext4 /res/dev/data /data nosuid nodev noatime wait noauto_da_alloc
+
+ setprop ro.crypto.fuse_sdcard false
+
+# Permissions for backlight
+ chown system system /sys/class/backlight/panel/brightness
+ chown system system /sys/class/sec/sec_touchkey/brightness
+
+# Permissions for DVFS
+ chown radio system /sys/power/cpufreq_table
+ chown radio system /sys/power/cpufreq_max_limit
+ chown radio system /sys/power/cpufreq_min_limit
+ chmod 0660 /sys/power/cpufreq_table
+ chmod 0660 /sys/power/cpufreq_max_limit
+ chmod 0660 /sys/power/cpufreq_min_limit
+
+# MTP device permission
+ chmod 0660 /dev/usb_mtp_gadget
+ chown system system /dev/usb_mtp_gadget
+
+# Permissions for Gscaler log level
+ chmod 0666 /sys/module/gsc/parameters/gsc_dbg
+
+# create data/gps for GPS daemon
+ chown root system /dev/ttySAC1
+ chmod 0660 /dev/ttySAC1
+ 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
+
+# NFC
+ setprop ro.nfc.port "I2C"
+ chmod 0600 /dev/pn544
+ chown nfc nfc /dev/pn544
+
+# Permissions for LCD
+ chown system radio /sys/class/lcd/panel/lcd_type
+ chown system radio /sys/class/lcd/panel/lcd_power
+ chown system media_rw /sys/class/lcd/panel/power_reduce
+ chown system system /sys/class/backlight/panel/auto_brightness
+
+# 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
+ chown system system /sys/class/mdnie/mdnie/negative
+ write /sys/class/mdnie/mdnie/scenario 0
+ write /sys/class/mdnie/mdnie/mode 0
+
+# Switch Device
+ chown system radio /sys/class/sec/switch/uart_sel/value
+ chown system radio /sys/class/sec/switch/usb_sel
+ chown system radio /sys/class/sec/switch/audio_path
+ chown system radio /sys/class/sec/switch/otg_test
+
+# OTG_TEST
+ chown system radio /sys/class/host_notify/usb_otg/booster
+ chmod 0660 /sys/class/host_notify/usb_otg/booster
+
+on post-fs
+ insmod /lib/modules/j4fs.ko
+ insmod /lib/modules/exfat_core.ko
+ insmod /lib/modules/exfat_fs.ko
+ mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
+
+ chown radio system /efs
+ chmod 0771 /efs
+
+# IPC sysfs
+ chown radio radio /sys/devices/virtual/misc/multipdp/waketime
+ symlink /dev/block/mmcblk0p8 /dev/mbin0
+
+#RTC_Log
+ chmod 0770 /system/bin/rtc_log.sh
+ chown system system /system/bin/rtc_log.sh
+
+# SISO-ANDR_PERF :: START Changing scheduler to cfq and reseting cpu min freq to -1 after boot complete
+on property:sys.boot_completed=1
+ write /sys/block/mmcblk0/queue/scheduler cfq
+ write /sys/power/cpufreq_min_limit -1
+# SISO-ANDR_PERF :: END
+
+## Daemon processes to be run by init.
+service ueventd /sbin/ueventd
+ class core
+ critical
+
+service console /system/bin/sh
+ class core
+ console
+ disabled
+ group log
+
+on property:ro.debuggable=1
+ start console
+
+# create filesystem if necessary
+service setup_fs /system/bin/setup_fs \
+ /dev/block/mmcblk0p3 \
+ /dev/block/mmcblk0p4
+ class core
+ user root
+ group root
+ oneshot
+
+# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -N \
+service p2p_supplicant /system/bin/p2p_supplicant \
+ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1
+ class main
+ disabled
+ oneshot
+
+service wpa_supplicant /system/bin/wpa_supplicant \
+ -Dnl80211 -iwlan0 -e/data/misc/wifi/entropy.bin -c/data/misc/wifi/wpa_supplicant.conf
+# 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 iprenew_wlan0 /system/bin/dhcpcd -n
+ class main
+ disabled
+ oneshot
+
+service iprenew_p2p /system/bin/dhcpcd -n
+ class main
+ disabled
+ oneshot
+
+# TVout
+service TvoutService_C /system/bin/bintvoutservice
+ class main
+ user system
+ group graphics
+on property:ro.tvout.enable=false
+ stop TvoutService_C
+
+service cpboot-daemon /sbin/cbd -d -p 8
+ class main
+ user root
+ group radio cache inet misc audio sdcard_rw log sdcard_r
+
+# mobicore
+service mcDriverDaemon /system/bin/mcDriverDaemon -r /data/app/FFFFFFFF000000000000000000000001.drbin
+ class main
+ user system
+ group system
+
+# Vibetonz
+service immvibed /system/bin/immvibed
+ class core
+ user shell
+ group shell
+ oneshot
+
+#for WiFi MFG(TestMode)
+service mfgloader /system/bin/mfgloader
+ class main
+ disabled
+ oneshot
+
+service wlandutservice /system/bin/wlandutservice
+ class main
+ user system
+ group wifi net_raw net_admin system inet
+ disabled
+ oneshot
+
+service macloader /system/bin/macloader
+ class main
+ oneshot
+
+on property:init.svc.macloader=stopped
+ chown system root /data/.cid.info
+ chmod 0664 /data/.cid.info
+ chown system root /data/.rev
+ chmod 0660 /data/.rev
+# end of wifi
+
+#RTC_Log
+service rtc_log /system/bin/sh /system/bin/rtc_log.sh
+ class main
+ user shell
+ group log
+ oneshot
+
+# DVFS - limit cpufreq during booting sequence
+service dvfs /system/bin/sh /system/bin/dvfs.sh
+ class main
+ user root
+ oneshot
+
View
384 res/misc/JellyB-Sammy/init.smdk4210.rc.2
@@ -0,0 +1,384 @@
+import init.smdk4210.usb.rc
+import init.bt.rc
+
+on early-init
+ export EXTERNAL_STORAGE /storage/sdcard0
+ mkdir /storage 0550 system sdcard_r
+ mkdir /storage/sdcard0 0000 system system
+ symlink /storage/sdcard0 /sdcard
+ symlink /storage/sdcard0 /mnt/sdcard
+# map "real" external storages paths also in same way. backwards compatibility.
+ symlink /storage/extSdCard /mnt/extSdCard
+ symlink /storage/UsbDriveA /mnt/UsbDriveA
+ symlink /storage/UsbDriveB /mnt/UsbDriveB
+ symlink /storage/UsbDriveC /mnt/UsbDriveC
+ symlink /storage/UsbDriveD /mnt/UsbDriveD
+ symlink /storage/UsbDriveE /mnt/UsbDriveE
+ symlink /storage/UsbDriveF /mnt/UsbDriveF
+
+ export SECONDARY_STORAGE /storage/extSdCard:/storage/UsbDriveA:/storage/UsbDriveB:/storage/UsbDriveC:/storage/UsbDriveD:/storage/UsbDriveE:/storage/UsbDriveF
+ mkdir /storage/extSdCard 0000 system system
+ mkdir /storage/UsbDriveA 0000 system system
+ mkdir /storage/UsbDriveB 0000 system system
+ mkdir /storage/UsbDriveC 0000 system system
+ mkdir /storage/UsbDriveD 0000 system system
+ mkdir /storage/UsbDriveE 0000 system system
+ mkdir /storage/UsbDriveF 0000 system system
+
+ mkdir /efs 0771 radio system
+ mkdir /mnt/.lfs 0755 root root
+
+on init
+
+# Vibetonz
+export VIBE_PIPE_PATH /dev/pipes
+mkdir /dev/pipes 0771 shell shell
+
+on post-fs-data
+# we will remap this as /storage/sdcard with the sdcard fuse tool
+ mkdir /data/media 0770 media_rw media_rw
+ chown media_rw media_rw /data/media
+ setprop vold.post_fs_data_done 1
+
+# give system access to wpa_supplicant.conf for backup and restore
+ mkdir /data/misc/wifi 0770 wifi system
+ mkdir /efs/wifi 0775 radio system
+ mkdir /efs/bluetooth 0775 radio system
+ mkdir /efs/imei 0775 radio system
+ chmod 0660 /data/misc/wifi/wpa_supplicant.conf
+ mkdir /data/misc/wifi/sockets 0770 wifi wifi
+ mkdir /data/misc/dhcp 0775 dhcp dhcp
+ chown dhcp dhcp /data/misc/dhcp
+ chown system system /efs/wifi/.mac.info
+ chmod 0664 /efs/wifi/.mac.info
+
+ mkdir /efs/FactoryApp 0775
+ chown radio system /efs/FactoryApp
+ chmod 0775 /efs/FactoryApp
+ write /efs/FactoryApp/factorymode ON
+ chown system system /efs/FactoryApp/factorymode
+ chmod 0744 /efs/FactoryApp/factorymode
+
+ mkdir /data/misc/radio 0775 radio system
+
+# for TRP/TIS
+ write /data/.psm.info 1
+ chown system root /data/.psm.info
+ chmod 0660 /data/.psm.info
+
+on boot
+# SISO-ANDR_PERF :: START Changing scheduler to noop during boot
+ write /sys/block/mmcblk0/queue/scheduler noop
+# SISO-ANDR_PERF :: END
+
+ setprop ro.build.product smdk4210
+ setprop ro.product.device smdk4210
+ setprop ro.radio.noril yes
+
+# mobicore
+ mkdir /data/app/mcRegistry 0775 system system
+ chmod 0777 /dev/mobicore
+# mobicore trustlets
+ copy /efs/00000000.authtokcont /data/app/mcRegistry/00000000.authtokcont
+ chown system system /data/app/mcRegistry/00000000.authtokcont
+ copy /system/app/FFFFFFFF000000000000000000000001.drbin /data/app/FFFFFFFF000000000000000000000001.drbin
+ chown system system /data/app/FFFFFFFF000000000000000000000001.drbin
+ copy /system/app/mcRegistry/00060308060501020000000000000000.tlbin /data/app/mcRegistry/00060308060501020000000000000000.tlbin
+ chown system system /data/app/mcRegistry/00060308060501020000000000000000.tlbin
+ copy /system/app/mcRegistry/07010000000000000000000000000000.tlbin /data/app/mcRegistry/07010000000000000000000000000000.tlbin
+ chown system system /data/app/mcRegistry/07010000000000000000000000000000.tlbin
+ copy /system/app/mcRegistry/ffffffff000000000000000000000003.tlbin /data/app/mcRegistry/ffffffff000000000000000000000003.tlbin
+ chown system system /data/app/mcRegistry/ffffffff000000000000000000000003.tlbin
+ copy /system/app/mcRegistry/ffffffff000000000000000000000004.tlbin /data/app/mcRegistry/ffffffff000000000000000000000004.tlbin
+ chown system system /data/app/mcRegistry/ffffffff000000000000000000000004.tlbin
+ copy /system/app/mcRegistry/ffffffff000000000000000000000005.tlbin /data/app/mcRegistry/ffffffff000000000000000000000005.tlbin
+ chown system system /data/app/mcRegistry/ffffffff000000000000000000000005.tlbin
+ copy /system/app/mcRegistry/02010000080300030000000000000000.tlbin /data/app/mcRegistry/02010000080300030000000000000000.tlbin
+ chown system system /data/app/mcRegistry/02010000080300030000000000000000.tlbin
+
+# S.LSI secdrv mem
+ chown system system /dev/s5p-smem
+ chmod 0775 /dev/s5p-smem
+
+# WIFI
+ setprop wifi.interface wlan0
+
+ symlink /dev/block/mmcblk0p4 /dev/block/param
+
+# Permissions for bluetooth
+ setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
+ chown bluetooth bluetooth ro.bt.bdaddr_path
+ chown bluetooth bluetooth /dev/ttySAC0
+ chmod 0600 /dev/ttySAC0
+ chmod 0660 /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
+ chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
+
+# Permisions for sensors
+ chown system radio /dev/accelerometer
+ chown radio system /sys/devices/virtual/accelerometer/accelerometer/acc_file
+ chown radio system /sys/devices/virtual/sec/gsensorcal/calibration
+ chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_selftest
+ chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_get_temp
+ chown radio system /sys/devices/virtual/K3G_GYRO-dev/k3g/gyro_power_on
+ chown system radio /dev/akm8975
+ chown system radio /sys/class/sensors/magnetic_sensor/raw_data
+ chown system radio /sys/class/sensors/magnetic_sensor/vendor
+ chown system radio /sys/class/sensors/magnetic_sensor/name
+
+# permissions for NFC
+ setprop ro.nfc.port "I2C"
+ chmod 0600 /dev/pn544
+ chown nfc nfc /dev/pn544
+
+# Vibetonz
+ chmod 0660 /dev/tspdrv
+ chown root shell /dev/tspdrv
+
+on fs
+# mount ext4 partitions
+# verify filesystem (UMS)
+ exec sformat /dev/block/mmcblk0p11 vfat
+
+# make sure sdcard is mounted because we may have our data and cache partitions on it
+ mount vfat /dev/block/mmcblk0p11 /mnt/.secondrom wait utf8
+
+# Check and mount
+ mount ext4 /res/dev/system /system noatime wait
+ exec sfsck /res/dev/cache ext4
+ mount ext4 loop@/res/dev/cache /cache nosuid nodev noatime wait rw
+ mount ext4 /dev/block/mmcblk0p12 /preload nosuid nodev noatime wait
+ mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait
+ exec sfsck /res/dev/data ext4
+ mount ext4 loop@/res/dev/data /data nosuid nodev noatime wait noauto_da_alloc
+
+ setprop ro.crypto.fuse_sdcard false
+
+# Permissions for backlight
+# Add permission for ATM. 2010.03.20
+ chown system radio /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_read_soc
+ chown system radio /sys/devices/platform/i2c-gpio.9/i2c-9/9-0036/power_supply/fuelgauge/fg_reset_soc
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_lpm_state
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/fg_psoc
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/system_rev
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_current_adc
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_test_value
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_spec
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_check
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_full_check
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_type
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/mp3
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/video
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_lp_charging
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/charging_source
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc_avg
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp_adc
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_temp
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_vfocv
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_soc
+ chown system radio /sys/devices/platform/sec-battery/power_supply/battery/batt_vol
+
+ chown system system /sys/class/backlight/panel/brightness
+ chown system system /sys/class/sec/sec_touchkey/brightness
+
+# Permissions for DVFS
+ chown radio system /sys/power/cpufreq_table
+ chown radio system /sys/power/cpufreq_max_limit
+ chown radio system /sys/power/cpufreq_min_limit
+ chmod 0660 /sys/power/cpufreq_table
+ chmod 0660 /sys/power/cpufreq_max_limit
+ chmod 0660 /sys/power/cpufreq_min_limit
+
+# MTP device permission
+ chmod 0660 /dev/usb_mtp_gadget
+ chown system system /dev/usb_mtp_gadget
+
+# Permissions for Gscaler log level
+ chmod 0666 /sys/module/gsc/parameters/gsc_dbg
+
+# create data/gps for GPS daemon
+ chown root system /dev/ttySAC1
+ chmod 0660 /dev/ttySAC1
+ 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
+
+# NFC
+ setprop ro.nfc.port "I2C"
+ chmod 0600 /dev/pn544
+ chown nfc nfc /dev/pn544
+
+# Permissions for LCD
+ chown system radio /sys/class/lcd/panel/lcd_type
+ chown system radio /sys/class/lcd/panel/lcd_power
+ chown system media_rw /sys/class/lcd/panel/power_reduce
+ chown system system /sys/class/backlight/panel/auto_brightness
+
+# 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
+ chown system system /sys/class/mdnie/mdnie/negative
+ write /sys/class/mdnie/mdnie/scenario 0
+ write /sys/class/mdnie/mdnie/mode 0
+
+# Switch Device
+ chown system radio /sys/class/sec/switch/uart_sel/value
+ chown system radio /sys/class/sec/switch/usb_sel
+ chown system radio /sys/class/sec/switch/audio_path
+ chown system radio /sys/class/sec/switch/otg_test
+
+# OTG_TEST
+ chown system radio /sys/class/host_notify/usb_otg/booster
+ chmod 0660 /sys/class/host_notify/usb_otg/booster
+
+on post-fs
+ insmod /lib/modules/j4fs.ko
+# insmod /lib/modules/exfat_core.ko
+# insmod /lib/modules/exfat_fs.ko
+ mount j4fs /dev/block/mmcblk0p4 /mnt/.lfs
+
+ chown radio system /efs
+ chmod 0771 /efs
+
+# IPC sysfs
+ chown radio radio /sys/devices/virtual/misc/multipdp/waketime
+ symlink /dev/block/mmcblk0p8 /dev/mbin0
+
+#RTC_Log
+ chmod 0770 /system/bin/rtc_log.sh
+ chown system system /system/bin/rtc_log.sh
+
+# SISO-ANDR_PERF :: START Changing scheduler to cfq and reseting cpu min freq to -1 after boot complete
+on property:sys.boot_completed=1
+ write /sys/block/mmcblk0/queue/scheduler cfq
+ write /sys/power/cpufreq_min_limit -1
+# SISO-ANDR_PERF :: END
+
+## Daemon processes to be run by init.
+service ueventd /sbin/ueventd
+ class core
+ critical
+
+service console /system/bin/sh
+ class core
+ console
+ disabled
+ group log
+
+on property:ro.debuggable=1
+ start console
+
+# create filesystem if necessary
+service setup_fs /system/bin/setup_fs \
+ /dev/block/mmcblk0p3 \
+ /dev/block/mmcblk0p4
+ class core
+ user root
+ group root
+ oneshot
+
+# -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf -N \
+service p2p_supplicant /system/bin/p2p_supplicant \
+ -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin -puse_p2p_group_interface=1
+ class main
+ disabled
+ oneshot
+
+service wpa_supplicant /system/bin/wpa_supplicant \
+ -Dnl80211 -iwlan0 -e/data/misc/wifi/entropy.bin -c/data/misc/wifi/wpa_supplicant.conf
+# 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 iprenew_wlan0 /system/bin/dhcpcd -n
+ class main
+ disabled
+ oneshot
+
+service iprenew_p2p /system/bin/dhcpcd -n
+ class main
+ disabled
+ oneshot
+
+# TVout
+service TvoutService_C /system/bin/bintvoutservice
+ class main
+ user system
+ group graphics
+on property:ro.tvout.enable=false
+ stop TvoutService_C
+
+service cpboot-daemon /sbin/cbd -d -p 8
+ class main
+ user root
+ group radio cache inet misc audio sdcard_rw log sdcard_r
+
+# mobicore
+service mcDriverDaemon /system/bin/mcDriverDaemon -r /data/app/FFFFFFFF000000000000000000000001.drbin
+ class main
+ user system
+ group system
+
+# Vibetonz
+service immvibed /system/bin/immvibed
+ class core
+ user shell
+ group shell
+ oneshot
+
+#for WiFi MFG(TestMode)
+service mfgloader /system/bin/mfgloader
+ class main
+ disabled
+ oneshot
+
+service wlandutservice /system/bin/wlandutservice
+ class main
+ user system
+ group wifi net_raw net_admin system inet
+ disabled
+ oneshot
+
+service macloader /system/bin/macloader
+ class main
+ oneshot
+
+on property:init.svc.macloader=stopped
+ chown system root /data/.cid.info
+ chmod 0664 /data/.cid.info
+ chown system root /data/.rev
+ chmod 0660 /data/.rev
+# end of wifi
+
+#RTC_Log
+service rtc_log /system/bin/sh /system/bin/rtc_log.sh
+ class main
+ user shell
+ group log
+ oneshot
+
+# DVFS - limit cpufreq during booting sequence
+#service dvfs /system/bin/sh /system/bin/dvfs.sh
+# class main
+# user root
+# oneshot
+
View
139 res/misc/JellyB-Sammy/init.smdk4210.usb.rc
@@ -0,0 +1,139 @@
+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
+ write /sys/class/android_usb/android0/iSerial $ro.serialno
+ write /sys/class/android_usb/f_mass_storage/inquiry_string "Samsung"
+
+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 6860
+ 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 6862
+ 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 6862
+ 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=mass_storage
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 685B
+ 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=mass_storage,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 685e
+ 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}
+
+# Askon Mode : VZW required
+
+on property:sys.usb.config=askon
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ setprop sys.usb.state ${sys.usb.config}
+
+on property:sys.usb.config=askon,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/functions ${sys.usb.config}
+ setprop sys.usb.state ${sys.usb.config}
+
+# rndis,acm,diag and diag,acm,adb used for Hidden Menu
+
+on property:sys.usb.config=rndis,diag
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 04e8
+ write /sys/class/android_usb/android0/idProduct 6862
+ write /sys/class/android_usb/android0/f_diag/clients diag_mdm
+ 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=diag,acm,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/f_diag/clients diag_mdm
+ 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,acm,diag
+ 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/f_diag/clients diag_mdm
+ 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}
View
31 res/misc/JellyB-Sammy/init.trace.rc
@@ -0,0 +1,31 @@
+## Permissions to allow system-wide tracing to the kernel trace buffer.
+##
+on boot
+
+# Allow writing to the kernel trace log.
+ chmod 0222 /sys/kernel/debug/tracing/trace_marker
+
+# Allow the shell group to enable (some) kernel tracing.
+ chown root shell /sys/kernel/debug/tracing/trace_clock
+ chown root shell /sys/kernel/debug/tracing/buffer_size_kb
+ chown root shell /sys/kernel/debug/tracing/options/overwrite
+ chown root shell /sys/kernel/debug/tracing/events/sched/sched_switch/enable
+ chown root shell /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
+ chown root shell /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
+ chown root shell /sys/kernel/debug/tracing/events/power/cpu_idle/enable
+ chown root shell /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
+ chown root shell /sys/kernel/debug/tracing/tracing_on
+
+ chmod 0664 /sys/kernel/debug/tracing/trace_clock
+ chmod 0664 /sys/kernel/debug/tracing/buffer_size_kb
+ chmod 0664 /sys/kernel/debug/tracing/options/overwrite
+ chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_switch/enable
+ chmod 0664 /sys/kernel/debug/tracing/events/sched/sched_wakeup/enable
+ chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
+ chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_idle/enable
+ chmod 0664 /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
+ chmod 0664 /sys/kernel/debug/tracing/tracing_on
+
+# Allow only the shell group to read and truncate the kernel trace.
+ chown root shell /sys/kernel/debug/tracing/trace
+ chmod 0660 /sys/kernel/debug/tracing/trace
View
91 res/misc/JellyB-Sammy/init.usb.rc
@@ -0,0 +1,91 @@
+# Copyright (C) 2012 The Android Open Source Project
+#
+# USB configuration common for all android devices
+#
+
+on post-fs-data
+ chown system system /sys/class/android_usb/android0/f_mass_storage/lun/file
+ chmod 0660 /sys/class/android_usb/android0/f_mass_storage/lun/file
+ chown system system /sys/class/android_usb/android0/f_rndis/ethaddr
+ chmod 0660 /sys/class/android_usb/android0/f_rndis/ethaddr
+
+# Used to disable USB when switching states
+on property:sys.usb.config=none
+ stop adbd
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/bDeviceClass 0
+ setprop sys.usb.state ${sys.usb.config}
+
+# adb only USB configuration
+# This should only be used during device bringup
+# and as a fallback if the USB manager fails to set a standard configuration
+on property:sys.usb.config=adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18d1
+ write /sys/class/android_usb/android0/idProduct D002
+ 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}
+
+# USB accessory configuration
+on property:sys.usb.config=accessory
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18d1
+ write /sys/class/android_usb/android0/idProduct 2d00
+ 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}
+
+# USB accessory configuration, with adb
+on property:sys.usb.config=accessory,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18d1
+ write /sys/class/android_usb/android0/idProduct 2d01
+ 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}
+
+# audio accessory configuration
+on property:sys.usb.config=audio_source
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18d1
+ write /sys/class/android_usb/android0/idProduct 2d02
+ 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}
+
+# audio accessory configuration, with adb
+on property:sys.usb.config=audio_source,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18d1
+ write /sys/class/android_usb/android0/idProduct 2d03
+ 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}
+
+# USB and audio accessory configuration
+on property:sys.usb.config=accessory,audio_source
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18d1
+ write /sys/class/android_usb/android0/idProduct 2d04
+ 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}
+
+# USB and audio accessory configuration, with adb
+on property:sys.usb.config=accessory,audio_source,adb
+ write /sys/class/android_usb/android0/enable 0
+ write /sys/class/android_usb/android0/idVendor 18d1
+ write /sys/class/android_usb/android0/idProduct 2d05
+ 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}
+
+# Used to set USB configuration at boot and to switch the configuration
+# when changing the default configuration
+on property:persist.sys.usb.config=*
+ setprop sys.usb.config ${persist.sys.usb.config}
View
83 res/misc/JellyB-Sammy/ueventd.rc
@@ -0,0 +1,83 @@
+/dev/null 0666 root root
+/dev/zero 0666 root root
+/dev/full 0666 root root
+/dev/ptmx 0666 root root
+/dev/tty 0666 root root
+/dev/random 0666 root root
+/dev/urandom 0666 root root
+/dev/ashmem 0666 root root
+/dev/binder 0666 root root
+
+# Anyone can read the logs, but if they're not in the "logs"
+# group, then they'll only see log entries for their UID.
+/dev/log/* 0666 root log
+
+# the msm hw3d client device node is world writable/readable.
+/dev/msm_hw3dc 0666 root root
+
+# gpu driver for adreno200 is globally accessible
+/dev/kgsl 0666 root root
+
+# these should not be world writable
+/dev/diag 0660 radio radio
+/dev/diag_arm9 0660 radio radio
+/dev/android_adb 0660 adb adb
+/dev/android_adb_enable 0660 adb adb
+/dev/ttyMSM0 0600 bluetooth bluetooth
+/dev/uinput 0660 system bluetooth
+/dev/alarm 0664 system radio
+/dev/tty0 0660 root system
+/dev/graphics/* 0660 root graphics
+/dev/msm_hw3dm 0660 system graphics
+/dev/input/* 0660 root input
+/dev/eac 0660 root audio
+/dev/cam 0660 root camera
+/dev/pmem 0660 system graphics
+/dev/pmem_adsp* 0660 system audio
+/dev/pmem_camera* 0660 system camera
+/dev/oncrpc/* 0660 root system
+/dev/adsp/* 0660 system audio
+/dev/snd/* 0660 system audio
+/dev/mt9t013 0660 system system
+/dev/msm_camera/* 0660 system system
+/dev/akm8976_daemon 0640 compass system
+/dev/akm8976_aot 0640 compass system
+/dev/akm8973_daemon 0640 compass system
+/dev/akm8973_aot 0640 compass system
+/dev/bma150 0640 compass system
+/dev/cm3602 0640 compass system
+/dev/akm8976_pffd 0640 compass system
+/dev/lightsensor 0640 system system
+/dev/msm_pcm_out* 0660 system audio
+/dev/msm_pcm_in* 0660 system audio
+/dev/msm_pcm_ctl* 0660 system audio
+/dev/msm_snd* 0660 system audio
+/dev/msm_mp3* 0660 system audio
+/dev/audience_a1026* 0660 system audio
+/dev/tpa2018d1* 0660 system audio
+/dev/msm_audpre 0660 system audio
+/dev/msm_audio_ctl 0660 system audio
+/dev/htc-acoustic 0660 system audio
+/dev/vdec 0660 system audio
+/dev/q6venc 0660 system audio
+/dev/snd/dsp 0660 system audio
+/dev/snd/dsp1 0660 system audio
+/dev/snd/mixer 0660 system audio
+/dev/smd0 0640 radio radio
+/dev/qmi 0640 radio radio
+/dev/qmi0 0640 radio radio
+/dev/qmi1 0640 radio radio
+/dev/qmi2 0640 radio radio
+/dev/bus/usb/* 0660 root usb
+/dev/mtp_usb 0660 root mtp
+/dev/usb_accessory 0660 root usb
+/dev/tun 0660 system vpn
+
+# CDMA radio interface MUX
+/dev/ts0710mux* 0640 radio radio
+/dev/ppp 0660 radio vpn
+
+# sysfs properties
+/sys/devices/virtual/input/input* enable 0660 root input
+/sys/devices/virtual/input/input* poll_delay 0660 root input
+/sys/devices/virtual/usb_composite/* enable 0664 root system
View
104 res/misc/JellyB-Sammy/ueventd.smdk4210.rc
@@ -0,0 +1,104 @@
+/dev/mali 0666 system system
+/dev/ump 0666 system graphics
+/dev/exynos-mem 0666 system graphics
+/dev/s3c-mem 0666 system system
+/dev/ion 0666 system system
+/dev/pmem 0660 system graphics
+/dev/pmem_gpu1 0660 system graphics
+
+/dev/media0 0660 system system
+/dev/media1 0660 system camera
+/dev/media2 0660 system camera
+/dev/v4l-subdev0 0660 system system
+/dev/v4l-subdev1 0660 system system
+/dev/v4l-subdev3 0660 system system
+/dev/v4l-subdev4 0660 system system
+/dev/v4l-subdev5 0660 system system
+/dev/v4l-subdev6 0660 system system
+/dev/v4l-subdev7 0660 system system
+/dev/v4l-subdev8 0660 system system
+/dev/v4l-subdev9 0660 system system
+/dev/v4l-subdev10 0660 system system
+/dev/v4l-subdev11 0660 system system
+/dev/v4l-subdev12 0660 system system
+/dev/v4l-subdev13 0660 system system
+/dev/v4l-subdev14 0660 system system
+/dev/v4l-subdev15 0660 system system
+/dev/v4l-subdev16 0660 system system
+/dev/v4l-subdev17 0660 system system
+
+/dev/video0 0666 system m2m
+/dev/video1 0666 system camera
+/dev/video2 0666 system m2m
+/dev/video3 0666 system m2m
+/dev/video4 0666 system m2m
+/dev/s5p-jpeg 0666 system camera
+/dev/video11 0666 system system
+/dev/video12 0666 system system
+/dev/video16 0666 system system
+/dev/video14 0666 system system
+/dev/i2c-7 0666 system system
+/dev/video20 0666 system system
+/dev/video6 0660 media graphics
+/dev/video7 0660 media graphics
+
+/dev/video11 0666 system graphics
+/dev/video12 0660 system camera
+
+/dev/video16 0660 system system
+/dev/video17 0660 system system
+/dev/video18 0660 system system
+/dev/video19 0660 system system
+
+# Rotator
+/dev/video21 0660 system system
+
+/dev/video23 0660 system system
+/dev/video24 0660 system system
+/dev/video25 0660 system camera
+/dev/video26 0666 media m2m
+/dev/video29 0666 media m2m
+/dev/video32 0660 media m2m
+
+/dev/video33 0660 system system
+/dev/video34 0660 system system
+
+/dev/video40 0660 system camera
+/dev/video41 0660 system camera
+/dev/video42 0660 system camera
+/dev/video43 0660 system camera
+
+/dev/i2c-2 0660 system system
+/dev/i2c-5 0660 system system
+/dev/CEC 0660 system system
+/dev/HPD 0660 system system
+/dev/fimg2d 0666 system graphics
+/dev/fmradio 0660 system audio
+/dev/input/* 0660 root input
+
+#Audio
+/dev/snd/controlC0 0660 system audio
+/dev/snd/hwC0D0 0660 system audio
+/dev/snd/pcmC0D0c 0660 system audio
+/dev/snd/pcmC0D0p 0660 system audio
+/dev/snd/pcmC0D1c 0660 system audio
+/dev/snd/pcmC0D1p 0660 system audio
+/dev/snd/timer 0660 system audio
+
+#ALP Audio
+/dev/srp 0660 system audio
+/dev/srp_ctrl 0666 system audio
+
+/dev/s3c-mfc 0666 system graphics
+/dev/s5p-mfc 0666 system graphics
+
+/dev/umts* 0660 system radio
+/dev/ttyUSB0 0666 system system
+/dev/usb/lp* 0660 system usb
+/dev/block/mmcblk0p4 0660 system system
+/dev/block/mmcblk0p8 0660 system radio
+/dev/link_pm 0660 system radio
+/dev/akm8975 0660 system system
+/dev/accelerometer 0660 system system
+/dev/graphics/fb0 0777 root graphics
+/dev/rfkill 0666 root root
View
2  res/misc/Sense4All-ROM/init.s4a
@@ -84,7 +84,7 @@ loglevel 3
mkdir /mnt/.lfs 0755 root root
write /proc/sys/kernel/panic_on_oops 0
- write /proc/sys/kernel/hung_task_timeout_secs 120
+ write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_compat_yield 1
View
2  res/misc/Sense4All-ROM/init.s4a.2
@@ -84,7 +84,7 @@ loglevel 3
mkdir /mnt/.lfs 0755 root root
write /proc/sys/kernel/panic_on_oops 0
- write /proc/sys/kernel/hung_task_timeout_secs 120
+ write /proc/sys/kernel/hung_task_timeout_secs 0
write /proc/sys/kernel/sched_latency_ns 10000000
write /proc/cpu/alignment 4
write /proc/sys/kernel/sched_compat_yield 1
View
BIN  res/misc/vendor/firmware/mfc_fw.bin
Binary file not shown
View
2  sbin/ext/cortexbrain-tune.sh
@@ -392,7 +392,7 @@ MEMORY_TWEAKS()
echo "50" > /proc/sys/vm/overcommit_ratio; # default: 50
echo "128 128" > /proc/sys/vm/lowmem_reserve_ratio;
echo "3" > /proc/sys/vm/page-cluster; # default: 3
- echo "16384" > /proc/sys/vm/min_free_kbytes;
+ echo "8192" > /proc/sys/vm/min_free_kbytes;
log -p i -t $FILE_NAME "*** MEMORY_TWEAKS ***: enabled";
fi;
View
275 sbin/init
@@ -1,36 +1,38 @@
#!/sbin/busybox sh
cd /;
-busybox mount -t proc proc /proc;
-busybox mount -t sysfs sysfs /sys;
+BB=/sbin/busybox;
+
+$BB mount -t proc proc /proc;
+$BB mount -t sysfs sysfs /sys;
# set "/" rw
-/sbin/busybox mount -t rootfs -o remount,rw rootfs;
+$BB mount -t rootfs -o remount,rw rootfs;
if grep -q bootmode=2 /proc/cmdline; then
# recovery mode
echo "0" > /proc/sys/kernel/rom_feature_set;
- cp /res/images/recovery-icon.png /res/images/icon_clockwork.png;
- cp -a /recovery.rc /init.rc;
+ $BB cp /res/images/recovery-icon.png /res/images/icon_clockwork.png;
+ $BB cp -a /recovery.rc /init.rc;
exec /sbin/init.recovery;
fi;
if busybox grep -q 1 /sys/class/power_supply/battery/batt_lp_charging; then
# low power mode
echo "0" > /proc/sys/kernel/rom_feature_set;
- cp /res/images/recovery-icon.png /res/images/icon_clockwork.png;
- cp -a lpm.rc init.rc;
- rm init.smdk4210.rc;
+ $BB cp /res/images/recovery-icon.png /res/images/icon_clockwork.png;
+ $BB cp -a lpm.rc init.rc;
+ $BB rm init.smdk4210.rc;
exec /sbin/init.recovery;
fi;
# cleaning and rebuilding the /mnt and sdcards mounts folders
-rm -rf /mnt;
-rm -rf /sdcard;
-rm -rf /emmc;
-rm -rf /storage;
-rm -rf /vendor;
-rm -rf /tmp/*;
+$BB rm -rf /mnt;
+$BB rm -rf /sdcard;
+$BB rm -rf /emmc;
+$BB rm -rf /storage;
+$BB rm -rf /vendor;
+$BB rm -rf /tmp/*;
mkdir -p /dev/block;
mkdir /dev/input;
mkdir /dev/graphics;
@@ -40,10 +42,10 @@ mkdir -p /mnt/obb;
mkdir -p /mnt/secure;
mkdir -p /mnt/tmp;
mkdir -p /mnt/.secondrom;
-chmod -R 777 /mnt/;
+$BB chmod -R 777 /mnt/;
mkdir /preload;
mkdir /storage;
-chmod -R 777 /storage;
+$BB chmod -R 777 /storage;
mknod /dev/graphics/fb0 c 29 0
mknod /dev/input/event1 c 13 65
mknod /dev/input/event2 c 13 66
@@ -58,15 +60,15 @@ mknod /dev/block/mmcblk0p12 b 259 4
mknod /dev/block/loop0 b 7 0
# dual boot check and run
-mount -t ext4 -o rw /dev/block/mmcblk0p12 /preload;
-mount -t vfat /dev/block/mmcblk1p1 /mnt/tmp && ( mkdir -p /mnt/tmp/clockworkmod/blobs/ ) && ( touch /mnt/tmp/clockworkmod/.nomedia ) && ( touch /mnt/tmp/clockworkmod/blobs/.nomedia );
+$BB mount -t ext4 -o rw /dev/block/mmcblk0p12 /preload;
+$BB mount -t vfat /dev/block/mmcblk1p1 /mnt/tmp && ( mkdir -p /mnt/tmp/clockworkmod/blobs/ ) && ( touch /mnt/tmp/clockworkmod/.nomedia ) && ( touch /mnt/tmp/clockworkmod/blobs/.nomedia );
sync;
-umount -l /mnt/tmp;
-mount -t vfat /dev/block/mmcblk0p11 /mnt/tmp && ( mkdir -p /mnt/tmp/clockworkmod/blobs/ ) && ( touch /mnt/tmp/clockworkmod/.nomedia ) && ( touch /mnt/tmp/clockworkmod/blobs/.nomedia );
+$BB umount -l /mnt/tmp;
+$BB mount -t vfat /dev/block/mmcblk0p11 /mnt/tmp && ( mkdir -p /mnt/tmp/clockworkmod/blobs/ ) && ( touch /mnt/tmp/clockworkmod/.nomedia ) && ( touch /mnt/tmp/clockworkmod/blobs/.nomedia );
if [ -e /mnt/tmp/.nextboot ]; then
NEXTBOOT=`cat /mnt/tmp/.nextboot`;
- rm -f /mnt/tmp/.nextboot;
+ $BB rm /mnt/tmp/.nextboot;
fi;
if [ -e /mnt/tmp/.defaultrom ]; then
DEFAULTROM=`cat /mnt/tmp/.defaultrom`;
@@ -78,8 +80,8 @@ NOBOOTLOGO=0;
[ -f /mnt/tmp/.secondrom/cache.img ] || SECONDROM=0;
[ -f /mnt/tmp/.nobootlogo ] && NOBOOTLOGO=1;
sync;
-umount /preload;
-umount -l /mnt/tmp;
+$BB umount /preload;
+$BB umount -l /mnt/tmp;
if [ "$SECONDROM" == "0" ]; then
if [ "$NOBOOTLOGO" == "0" ]; then
@@ -115,13 +117,13 @@ else
fi;
if [ "$SECONDROM" == "1" ]; then
- rm -rf /res/dev;
+ $BB rm -rf /res/dev;
mkdir -p /res/dev;
ln -s /mnt/.secondrom/.secondrom/data.img /res/dev/data;
ln -s /dev/block/mmcblk0p12 /res/dev/system;
ln -s /mnt/.secondrom/.secondrom/cache.img /res/dev/cache;
else
- rm -rf /res/dev;
+ $BB rm -rf /res/dev;
mkdir -p /res/dev;
ln -s /dev/block/mmcblk0p10 /res/dev/data;
ln -s /dev/block/mmcblk0p9 /res/dev/system;
@@ -129,42 +131,31 @@ else
fi;
# mounting system!
-/sbin/busybox mount -t ext4 /res/dev/system /system;
+$BB mount -t ext4 /res/dev/system /system;
# linking /system/bin to /bin for crond
ln -s /system/bin/ /bin
# adding latest vendor binary from 3.6.RC6 kernel for all! tested working great
mkdir -p /system/vendor/firmware;
-cp -a /res/misc/vendor/firmware/mfc_fw.bin /system/vendor/firmware/mfc_fw.bin;
-chmod 755 /system/vendor/firmware/mfc_fw.bin;
+$BB cp -a /res/misc/vendor/firmware/mfc_fw.bin /system/vendor/firmware/mfc_fw.bin;
+$BB chmod 755 /system/vendor/firmware/mfc_fw.bin;
# fix permission to services.jar in case user did a mess, after using my MOD!
-chmod 644 /system/framework/services.jar;
+$BB chmod 644 /system/framework/services.jar;
# copy new Kernel modules to /system/lib/modules and to second rom system if exist
if [ ! -d /system/lib/modules ]; then
mkdir /system/lib/modules;
- chmod 755 /system/lib/modules/;
-fi;
-rm -f /system/lib/modules/*.ko;
-cp /lib/modules/*.ko /system/lib/modules/;
-chmod 755 /system/lib/modules/*.ko;
-
-mount -o remount,rw /preload;
-if [ -d /preload/lib/ ]; then
- if [ ! -d /preload/lib/modules ]; then
- mkdir /preload/lib/modules;
- chmod 755 /preload/lib/modules;
- fi;
- rm -f /preload/lib/modules/*.ko;
- cp /lib/modules/*.ko /preload/lib/modules/;
- chmod 755 /preload/lib/modules/*.ko;
+ $BB chmod 755 /system/lib/modules/;
fi;
+$BB rm -f /system/lib/modules/*.ko;
+$BB cp /lib/modules/*.ko /system/lib/modules/;
+$BB chmod 755 /system/lib/modules/*.ko;
if [ -f /system/recovery.cpio.gz ]; then
- /sbin/busybox mount -o remount,rw /;
- /sbin/busybox zcat /system/recovery.cpio.gz | cpio -idmu;
+ $BB mount -o remount,rw /;
+ $BB zcat /system/recovery.cpio.gz | cpio -idmu;
fi;
AOSP=0;
@@ -174,6 +165,7 @@ B2G=0;
JELLY=0;
CM10=0;
S4A=0;
+JBSAMMY=0;
[ -d /system/b2g ] && B2G=1;
[ -f /system/framework/framework-miui.jar ] && MIUI=1;
@@ -184,9 +176,11 @@ S4A=0;
[ -f /system/framework/framework2.jar ] || AOSP=1;
[ "`/sbin/busybox grep -i android-htc-rev /system/build.prop`" ] && S4A=1;
[ "`/sbin/busybox grep -i Slim /system/build.prop`" ] && AOSP=1;
+[ "`/sbin/busybox grep -i ro.build.PDA=I9100XXLSJ /system/build.prop`" ] && JBSAMMY=1;
+[ "`/sbin/busybox grep -i ro.build.hidden_ver=I9100XX /system/build.prop`" ] && JBSAMMY=1;
# one more time set "/" rw just for good sleep
-/sbin/busybox mount -t rootfs -o remount,rw rootfs;
+$BB mount -t rootfs -o remount,rw rootfs;
#############################
# Partition global tuning!
@@ -205,78 +199,78 @@ PARTITION_TUNING()
LOG_CACHE_TMP="/log-cache-tmp";
# new empty log
- /sbin/busybox sh -c "/sbin/date" > $LOG_DATA;
- /sbin/busybox sh -c "/sbin/date" > $LOG_CACHE;
+ $BB sh -c "/sbin/date" > $LOG_DATA;
+ $BB sh -c "/sbin/date" > $LOG_CACHE;
# umount
- umount -l $DIR_DATA >> $LOG_DATA 2>&1;
- umount -l $DIR_CACHE >> $LOG_CACHE 2>&1;
+ $BB umount -l $DIR_DATA >> $LOG_DATA 2>&1;
+ $BB umount -l $DIR_CACHE >> $LOG_CACHE 2>&1;
# set fs-feature -> [^]has_journal
- /sbin/busybox sh -c "/sbin/tune2fs -l $DEVICE_CACHE | grep 'features' | grep 'has_journal'" > $LOG_CACHE_TMP;
+ $BB sh -c "/sbin/tune2fs -l $DEVICE_CACHE | grep 'features' | grep 'has_journal'" > $LOG_CACHE_TMP;
if [ "a`cat $LOG_CACHE_TMP`" == "a" ]; then
- /sbin/busybox sh -c "/sbin/tune2fs -O has_journal $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
- /sbin/busybox sh -c "/sbin/e2fsck -p $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
+ $BB sh -c "/sbin/tune2fs -O has_journal $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
+ $BB sh -c "/sbin/e2fsck -p $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
fi;
- /sbin/busybox sh -c "/sbin/tune2fs -l $DEVICE_DATA | grep 'features' | grep 'has_journal'" > $LOG_DATA_TMP;
+ $BB sh -c "/sbin/tune2fs -l $DEVICE_DATA | grep 'features' | grep 'has_journal'" > $LOG_DATA_TMP;
if [ "a`cat $LOG_DATA_TMP`" == "a" ]; then
- /sbin/busybox sh -c "/sbin/tune2fs -O has_journal $DEVICE_DATA" >> $LOG_DATA 2>&1;
- /sbin/busybox sh -c "/sbin/e2fsck -p $DEVICE_DATA" >> $LOG_DATA 2>&1;
+ $BB sh -c "/sbin/tune2fs -O has_journal $DEVICE_DATA" >> $LOG_DATA 2>&1;
+ $BB sh -c "/sbin/e2fsck -p $DEVICE_DATA" >> $LOG_DATA 2>&1;
fi;
# set fs-feature -> [^]dir_index
- /sbin/busybox sh -c "/sbin/tune2fs -l $DEVICE_CACHE | grep 'features' | grep 'dir_index'" > $LOG_CACHE_TMP;
+ $BB sh -c "/sbin/tune2fs -l $DEVICE_CACHE | grep 'features' | grep 'dir_index'" > $LOG_CACHE_TMP;
if [ "a`cat $LOG_CACHE_TMP`" == "a" ]; then
- /sbin/busybox sh -c "/sbin/tune2fs -O dir_index $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
+ $BB sh -c "/sbin/tune2fs -O dir_index $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
fi;
- /sbin/busybox sh -c "/sbin/tune2fs -l $DEVICE_DATA | grep 'features' | grep 'dir_index'" > $LOG_DATA_TMP;
+ $BB sh -c "/sbin/tune2fs -l $DEVICE_DATA | grep 'features' | grep 'dir_index'" > $LOG_DATA_TMP;
if [ "a`cat $LOG_DATA_TMP`" == "a" ]; then
- /sbin/busybox sh -c "/sbin/tune2fs -O dir_index $DEVICE_DATA" >> $LOG_DATA 2>&1;
+ $BB sh -c "/sbin/tune2fs -O dir_index $DEVICE_DATA" >> $LOG_DATA 2>&1;
fi;
# set mount option -> [^]journal_data_ordered
- /sbin/busybox sh -c "/sbin/tune2fs -l $DEVICE_CACHE | grep 'Default mount options' | grep 'journal_data_ordered'" > $LOG_CACHE_TMP;
+ $BB sh -c "/sbin/tune2fs -l $DEVICE_CACHE | grep 'Default mount options' | grep 'journal_data_ordered'" > $LOG_CACHE_TMP;
if [ "a`cat $LOG_CACHE_TMP`" == "a" ]; then
- /sbin/busybox sh -c "/sbin/tune2fs -o journal_data_ordered $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
- /sbin/busybox sh -c "/sbin/e2fsck -p $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
+ $BB sh -c "/sbin/tune2fs -o journal_data_ordered $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
+ $BB sh -c "/sbin/e2fsck -p $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
fi;
- /sbin/busybox sh -c "/sbin/tune2fs -l $DEVICE_DATA | grep 'Default mount options' | grep 'journal_data_ordered'" > $LOG_DATA_TMP;
+ $BB sh -c "/sbin/tune2fs -l $DEVICE_DATA | grep 'Default mount options' | grep 'journal_data_ordered'" > $LOG_DATA_TMP;
if [ "a`cat $LOG_DATA_TMP`" == "a" ]; then
- /sbin/busybox sh -c "/sbin/tune2fs -o journal_data_ordered $DEVICE_DATA" >> $LOG_DATA 2>&1;
- /sbin/busybox sh -c "/sbin/e2fsck -p $DEVICE_DATA" >> $LOG_DATA 2>&1;
+ $BB sh -c "/sbin/tune2fs -o journal_data_ordered $DEVICE_DATA" >> $LOG_DATA 2>&1;
+ $BB sh -c "/sbin/e2fsck -p $DEVICE_DATA" >> $LOG_DATA 2>&1;
fi;
# set inode to 256
- /sbin/busybox sh -c "/sbin/tune2fs -l $DEVICE_CACHE | grep 'Inode size' | grep '256'" > $LOG_CACHE_TMP;
+ $BB sh -c "/sbin/tune2fs -l $DEVICE_CACHE | grep 'Inode size' | grep '256'" > $LOG_CACHE_TMP;
if [ "a`cat $LOG_CACHE_TMP`" == "a" ]; then
- /sbin/busybox sh -c "/sbin/tune2fs -I 256 $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
- /sbin/busybox sh -c "/sbin/e2fsck -p $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
+ $BB sh -c "/sbin/tune2fs -I 256 $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
+ $BB sh -c "/sbin/e2fsck -p $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
fi;
- /sbin/busybox sh -c "/sbin/tune2fs -l $DEVICE_DATA | grep 'Inode size' | grep '256'" > $LOG_DATA_TMP;
+ $BB sh -c "/sbin/tune2fs -l $DEVICE_DATA | grep 'Inode size' | grep '256'" > $LOG_DATA_TMP;
if [ "a`cat $LOG_DATA_TMP`" == "a" ]; then
- /sbin/busybox sh -c "/sbin/tune2fs -I 256 $DEVICE_DATA" >> $LOG_DATA 2>&1;
- /sbin/busybox sh -c "/sbin/e2fsck -p $DEVICE_DATA" >> $LOG_DATA 2>&1;
+ $BB sh -c "/sbin/tune2fs -I 256 $DEVICE_DATA" >> $LOG_DATA 2>&1;
+ $BB sh -c "/sbin/e2fsck -p $DEVICE_DATA" >> $LOG_DATA 2>&1;
fi;
# only if asked by user via stweaks
if [ -e /system/run_fs_check ]; then
# reset the lock-file
- rm -f /system/run_fs_check
+ $BB rm -f /system/run_fs_check
# check cache
- /sbin/busybox sh -c "/sbin/e2fsck -p $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
- /sbin/busybox sh -c "/sbin/tune2fs -l $DEVICE_CACHE | grep 'Filesystem state' | grep 'clean'" > $LOG_CACHE_TMP;
+ $BB sh -c "/sbin/e2fsck -p $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
+ $BB sh -c "/sbin/tune2fs -l $DEVICE_CACHE | grep 'Filesystem state' | grep 'clean'" > $LOG_CACHE_TMP;
if [ "a`cat $LOG_CACHE_TMP`" == "a" ]; then
- /sbin/busybox sh -c "/sbin/e2fsck -fyc $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
+ $BB sh -c "/sbin/e2fsck -fyc $DEVICE_CACHE" >> $LOG_CACHE 2>&1;
else
echo "CACHE: $LOG_CACHE_TMP" >> $LOG_CACHE 2>&1;
fi;
# check data
- /sbin/busybox sh -c "/sbin/e2fsck -p $DEVICE_DATA >> $LOG_DATA 2>&1";
- /sbin/busybox sh -c "/sbin/tune2fs -l $DEVICE_DATA | grep 'Filesystem state' | grep 'clean'" > $LOG_DATA_TMP;
+ $BB sh -c "/sbin/e2fsck -p $DEVICE_DATA >> $LOG_DATA 2>&1";
+ $BB sh -c "/sbin/tune2fs -l $DEVICE_DATA | grep 'Filesystem state' | grep 'clean'" > $LOG_DATA_TMP;
if [ "a`cat $LOG_DATA_TMP`" == "a" ]; then
- /sbin/busybox sh -c "/sbin/e2fsck -fyc $DEVICE_DATA" >> $LOG_DATA 2>&1;
+ $BB sh -c "/sbin/e2fsck -fyc $DEVICE_DATA" >> $LOG_DATA 2>&1;
else
echo "DATA: $LOG_DATA_TMP" >> $LOG_DATA 2>&1;
fi;
@@ -286,14 +280,19 @@ PARTITION_TUNING()
USER_ACTIONS()
{
# data mount
- /sbin/busybox mount -t ext4 /res/dev/data /data;
+ $BB mount -t ext4 /res/dev/data /data;
if [ "$JELLY" == "1" ] || [ "$MIUI_JB" == "1" ]; then
echo "JB-INSTALLED" > /data/.siyah/jb-installed; # used and terminated at /sbin/ext/partition_tune.sh
stop adbd;
- cp -a /sbin/adbd.jb /sbin/adbd;
- chmod 755 /sbin/adbd;
+ $BB cp -a /sbin/adbd.jb /sbin/adbd;
+ $BB chmod 755 /sbin/adbd;
start adbd;
+# elif [ "JBSAMMY" == "1" ]; then
+# stop adbd;
+# $BB cp -a /sbin/adbd.sammy /sbin/adbd;
+# $BB chmod 755 /sbin/adbd;
+# start adbd;
else
start adbd;
fi;
@@ -301,29 +300,29 @@ USER_ACTIONS()
# only if asked by user via stweaks
if [ -e /system/run_fix_media ]; then
mkdir /sdcardtmp;
- chmod 777 /sdcardtmp;
- mount -t vfat /dev/block/mmcblk0p11 /sdcardtmp;
- rm -f /system/run_fix_media;
+ $BB chmod 777 /sdcardtmp;
+ $BB mount -t vfat /dev/block/mmcblk0p11 /sdcardtmp;
+ $BB rm /system/run_fix_media;
if [ -e /sdcard/Android/data/ ]; then
- rm -rf /sdcardtmp/Android/data/com.cooliris.media;
- rm -rf /sdcardtmp/Android/data/com.android.gallery3d;
- rm -rf /sdcardtmp/Android/data/com.google.android.gallery3d;
- rm -rf /sdcardtmp/Android/data/com.android.providers.media;
- rm -rf /sdcardtmp/Android/data/com.google.android.music;
- rm -rf /data/data/com.android.providers.media/databases/*;
+ $BB rm -rf /sdcardtmp/Android/data/com.cooliris.media;
+ $BB rm -rf /sdcardtmp/Android/data/com.android.gallery3d;
+ $BB rm -rf /sdcardtmp/Android/data/com.google.android.gallery3d;
+ $BB rm -rf /sdcardtmp/Android/data/com.android.providers.media;
+ $BB rm -rf /sdcardtmp/Android/data/com.google.android.music;
+ $BB rm -rf /data/data/com.android.providers.media/databases/*;
fi;
# sdcard unmount
sync;
- umount -l /sdcardtmp;
+ $BB umount -l /sdcardtmp;
if [ `du -h /sdcardtmp | grep 4 | cut -c1-4` == 4.0K ]; then
- rm -rf /sdcardtmp;
+ $BB rm -rf /sdcardtmp;
fi;
fi;
# data unmount
sync;
- umount -l /data;
+ $BB umount -l /data;
}
# network tuning reset to allow real ROM control over H/H+/3G/G signal.
@@ -352,7 +351,7 @@ sed -i "s/ro.device.cpu=Dual-core 1.2GHz ARM Cortex-A9/ro.device.cpu=Dual-core 1
######################################
# Loading Modules
######################################
-chmod -R 755 /lib;
+$BB chmod -R 755 /lib;
# cpu undervolting interfaces
if [ -e /lib/modules/cpu_undervolting.ko ]; then
@@ -399,15 +398,15 @@ fi;
if [ "$S4A" == "1" ]; then
echo "0" > /proc/sys/kernel/rom_feature_set;
- mv /res/misc/Sense4All-ROM/init.s4a /init.rc;
- mv /res/misc/Sense4All-ROM/init.s4a.2 /init.rc.2;
+ $BB mv /res/misc/Sense4All-ROM/init.s4a /init.rc;
+ $BB mv /res/misc/Sense4All-ROM/init.s4a.2 /init.rc.2;
if [ "$SECONDROM" == "1" ]; then
- mv /init.smdk4210.rc.2 /init.smdk4210.rc;
- mv /init.rc.2 /init.rc;
+ $BB mv /init.smdk4210.rc.2 /init.smdk4210.rc;
+ $BB mv /init.rc.2 /init.rc;
else
- rm -f /init.smdk4210.rc.2;
- rm -f /init.rc.2;
+ $BB rm /init.smdk4210.rc.2;
+ $BB rm /init.rc.2;
fi;
# Start ROM!
@@ -418,14 +417,32 @@ fi;
if [ "$B2G" == "1" ]; then
echo "0" > /proc/sys/kernel/rom_feature_set;
- cp -a /res/misc/B2G-ROM/* /;
+ $BB cp -a /res/misc/B2G-ROM/* /;
+
+ if [ "$SECONDROM" == "1" ]; then
+ $BB mv /init.smdk4210.rc.2 /init.smdk4210.rc;
+ $BB mv /init.rc.2 /init.rc;
+ else
+ $BB rm /init.smdk4210.rc.2;
+ $BB rm /init.rc.2;
+ fi;
+
+ # Start ROM!
+ PARTITION_TUNING;
+ USER_ACTIONS;
+ exec /sbin/init.samsung;
+fi;
+
+if [ "$JBSAMMY" == "1" ]; then
+ echo "0" > /proc/sys/kernel/rom_feature_set;
+ $BB cp -a /res/misc/JellyB-Sammy/* /;
if [ "$SECONDROM" == "1" ]; then
- mv /init.smdk4210.rc.2 /init.smdk4210.rc;
- mv /init.rc.2 /init.rc;
+ $BB mv /init.smdk4210.rc.2 /init.smdk4210.rc;
+ $BB rm /init.rc.2;
else
- rm -f /init.smdk4210.rc.2;
- rm -f /init.rc.2;
+ $BB rm /init.smdk4210.rc.2;
+ $BB rm /init.rc.2;
fi;
# Start ROM!
@@ -436,22 +453,20 @@ fi;
if [ "$JELLY" == "1" ] || [ "$MIUI_JB" == "1" ]; then
# Injecting JB Modded by VOKU, SUPER libsqlite!
- cp -a /res/misc/sql/jb/libsqlite.so /system/lib/libsqlite.so;
- cp -a /res/misc/sql/jb/sqlite3 /system/xbin/sqlite3;
- chmod 755 /system/lib/libsqlite.so;
- chmod 755 /system/xbin/sqlite3;
+ $BB cp -a /res/misc/sql/jb/libsqlite.so /system/lib/libsqlite.so;
+ $BB cp -a /res/misc/sql/jb/sqlite3 /system/xbin/sqlite3;
+ $BB chmod 755 /system/lib/libsqlite.so;
+ $BB chmod 755 /system/xbin/sqlite3;
echo "3" > /proc/sys/kernel/rom_feature_set;
- cp -a /res/misc/JellyB-CM-AOKP/* /;
+ $BB cp -a /res/misc/JellyB-CM-AOKP/* /;
if [ "$SECONDROM" == "1" ]; then
- if [ -e /init.smdk4210.rc.2 ]; then
- mv /init.smdk4210.rc.2 /init.smdk4210.rc;
- rm -f /init.rc.2;
- else
- rm -f /init.smdk4210.rc.2;
- rm -f /init.rc.2;
- fi;
+ $BB mv /init.smdk4210.rc.2 /init.smdk4210.rc;
+ $BB rm /init.rc.2;
+ else
+ $BB rm /init.smdk4210.rc.2;
+ $BB rm /init.rc.2;
fi;
# Start ROM!
@@ -461,18 +476,18 @@ if [ "$JELLY" == "1" ] || [ "$MIUI_JB" == "1" ]; then
fi;
if [ "$AOSP" == "1" ]; then
- cp -a /res/misc/CM-ROM/* /;
+ $BB cp -a /res/misc/CM-ROM/* /;
# Injecting ICS Modded by Dorimanx, SUPER libsqlite!
- cp -a /res/misc/sql/ics/libsqlite.so /system/lib/libsqlite.so;
- chmod 755 /system/lib/libsqlite.so;
+ $BB cp -a /res/misc/sql/ics/libsqlite.so /system/lib/libsqlite.so;
+ $BB chmod 755 /system/lib/libsqlite.so;
echo "1" > /proc/sys/kernel/rom_feature_set;
if [ "$SECONDROM" == "1" ]; then
- mv /init.smdk4210.rc.2 /init.smdk4210.rc;
- rm -f /init.rc.2;
+ $BB mv /init.smdk4210.rc.2 /init.smdk4210.rc;
+ $BB rm /init.rc.2;
else
- rm -f /init.smdk4210.rc.2;
- rm -f /init.rc.2;
+ $BB rm /init.smdk4210.rc.2;
+ $BB rm /init.rc.2;
fi;
# Start ROM!
@@ -485,11 +500,11 @@ fi;
echo "0" > /proc/sys/kernel/rom_feature_set;
if [ "$SECONDROM" == "1" ]; then
- mv /init.smdk4210.rc.2 /init.smdk4210.rc;
- mv /init.rc.2 /init.rc;
+ $BB mv /init.smdk4210.rc.2 /init.smdk4210.rc;
+ $BB mv /init.rc.2 /init.rc;
else
- rm -f /init.smdk4210.rc.2;
- rm -f /init.rc.2;
+ $BB rm /init.smdk4210.rc.2;
+ $BB rm /init.rc.2;
fi;
# Start ROM
View
4 sbin/init.samsung
@@ -1,7 +1,7 @@
#!/sbin/busybox sh
-rm -f /init
-mv /boot /init
+/sbin/busybox rm /init
+/sbin/busybox mv /boot /init
cd /
exec /init
Please sign in to comment.
Something went wrong with that request. Please try again.