Created
July 14, 2017 13:49
-
-
Save DroidFreak32/22d9cccb289d94ae540797df65cb41b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/init/init.rc b/init/init.rc | |
index 47e7fcc..61af122 100755 | |
--- a/init/init.rc | |
+++ b/init/init.rc | |
@@ -35,7 +35,7 @@ loglevel 3 | |
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 | |
+ 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 | |
@@ -60,7 +60,7 @@ loglevel 3 | |
mkdir /system | |
mkdir /data 0771 system system | |
- mkdir /cache 0771 system cache | |
+ mkdir /cache 0770 system cache | |
mkdir /config 0500 root root | |
# Directory for putting things only root should see. | |
@@ -142,7 +142,7 @@ on post-fs | |
# Same reason as /data above | |
chown system cache /cache | |
- chmod 0771 /cache | |
+ chmod 0770 /cache | |
# This may have been created by the recovery system with odd permissions | |
chown system cache /cache/recovery | |
@@ -182,7 +182,7 @@ on post-fs-data | |
chmod 0640 /data/dontpanic/apanic_threads | |
# called from apanic_rename | |
- write /proc/apanic_console 1 | |
+ # write /proc/apanic_console 1 | |
# create basic filesystem structure | |
mkdir /data/misc 01771 system misc | |
@@ -209,12 +209,17 @@ on post-fs-data | |
mkdir /data/property 0700 root root | |
mkdir /data/ssh 0750 root shell | |
mkdir /data/ssh/empty 0700 root root | |
- mkdir /data/radio 0770 radio radio | |
+ | |
+ # 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 | |
- chown system system /data/dalvik-cache | |
- chmod 0771 /data/dalvik-cache | |
# create resource-cache and double-check the perms | |
mkdir /data/resource-cache 0771 system system | |
@@ -310,9 +315,6 @@ on post-fs-data | |
chmod 0660 /sys/class/android_usb/android0/terminal_version | |
chown system system /sys/class/android_usb/android0/terminal_version | |
-# Include extra init file | |
- import /init.cm.rc | |
- | |
on boot | |
# basic network init | |
ifup lo | |
@@ -382,12 +384,8 @@ on boot | |
#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_governor | |
- chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor | |
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq | |
- chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq | |
- chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq | |
- chmod 0664 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_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 | |
@@ -564,11 +562,11 @@ on boot | |
# mkdir /dev/pipes 0771 shell shell | |
#voice Soulution | |
-# copy /system/etc/DiamondVoice.txt /data/DiamondVoice.txt | |
-# chmod 0777 /data/DiamondVoice.txt | |
-# copy /system/etc/DiamondVoice_Filter.txt /data/DiamondVoice_Filter.txt | |
-# chmod 0777 /data/DiamondVoice_Filter.txt | |
-# insmod /system/lib/modules/VoiceSolution.ko | |
+ copy /system/etc/DiamondVoice.txt /data/DiamondVoice.txt | |
+ chmod 0777 /data/DiamondVoice.txt | |
+ copy /system/etc/DiamondVoice_Filter.txt /data/DiamondVoice_Filter.txt | |
+ chmod 0777 /data/DiamondVoice_Filter.txt | |
+ insmod /system/lib/modules/VoiceSolution.ko | |
## for datarouter | |
# chown system system /dev/dun | |
@@ -577,8 +575,6 @@ on boot | |
# chown system system /dev/ttyGS2 | |
# chown system system /dev/ttyGS3 | |
-# start sysinit | |
- | |
# Define TCP buffer sizes for various networks | |
# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, | |
setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208 | |
@@ -603,9 +599,6 @@ on boot | |
# Set this property so surfaceflinger is not started by system_init | |
setprop system_init.startsurfaceflinger 0 | |
-# Run sysinit | |
- exec /system/bin/sysinit | |
- | |
## icd | |
# exec icd_check | |
# chown system system /dev/icd | |
@@ -650,7 +643,7 @@ on property:vold.decrypt=trigger_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 | |
@@ -662,20 +655,21 @@ on property:vold.decrypt=trigger_shutdown_framework | |
class_reset late_start | |
class_reset main | |
+# Changing secheduler to cfq after boot complete | |
+on property:service.bootanim.exit=1 | |
+ write /sys/block/mmcblk0/queue/scheduler cfq | |
+ | |
## Daemon processes to be run by init. | |
## | |
service ueventd /sbin/ueventd | |
class core | |
critical | |
-service cleveinit /sbin/cleveinit | |
- | |
-service console /system/bin/sh | |
- class core | |
- console | |
- disabled | |
- user shell | |
- group log | |
+#service console /system/bin/sh | |
+# class core | |
+# console | |
+# disabled | |
+# group log | |
#service console_user /system/bin/sh | |
# class core | |
@@ -687,6 +681,9 @@ service console /system/bin/sh | |
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 | |
@@ -734,7 +731,6 @@ service netd /system/bin/netd | |
service debuggerd /system/bin/debuggerd | |
class main | |
-service ril-daemon /system/bin/rild | |
#service DR-daemon /system/bin/ddexe | |
# class main | |
# user root | |
@@ -759,6 +755,11 @@ service ril-daemon /system/bin/rild | |
# 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 | |
@@ -773,11 +774,11 @@ service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-sys | |
onrestart write /sys/power/state on | |
onrestart restart media | |
onrestart restart netd | |
+ onrestart restart gsiff_daemon | |
service drm /system/bin/drmserver | |
class main | |
user drm | |
- group drm system inet drmrpc sdcard_r | |
# [ SEC_MM_DRM | |
# fix | |
group system drm inet drmrpc sdcard_rw media_rw sdcard_r radio | |
@@ -785,19 +786,18 @@ service drm /system/bin/drmserver | |
# group drm system inet drmrpc sdcard_r | |
# ] | |
- | |
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 skt lgt_gid media_rw | |
ioprio rt 4 | |
-#service powersnd /system/bin/samsungpowersoundplay | |
-# class main | |
-# user media | |
-# group system | |
-# disabled | |
-# oneshot | |
+service powersnd /system/bin/samsungpowersoundplay | |
+ class main | |
+ user media | |
+ group system | |
+ disabled | |
+ oneshot | |
service bootanim /system/bin/bootanimation | |
class main | |
@@ -812,7 +812,7 @@ service dbus /system/bin/dbus-daemon --system --nofork | |
user bluetooth | |
group bluetooth net_bt_admin | |
-service bluetoothd /system/bin/bluetoothd -n | |
+service bluetoothd /system/bin/logwrapper /system/bin/bluetoothd -n -d | |
class main | |
socket bluetooth stream 660 bluetooth bluetooth | |
socket dbus_bluetooth stream 660 bluetooth bluetooth | |
@@ -836,9 +836,9 @@ service installd /system/bin/installd | |
class main | |
socket installd stream 600 system system | |
-#service flash_recovery /system/bin/sh /system/etc/install-recovery.sh | |
-# class main | |
-# oneshot | |
+service flash_recovery /system/bin/sh /system/etc/install-recovery.sh | |
+ class main | |
+ oneshot | |
service racoon /system/bin/racoon | |
class main | |
@@ -899,11 +899,11 @@ service mdnsd /system/bin/mdnsd | |
oneshot | |
# SA, System SW, SAMSUNG | |
-#service bugreport /system/bin/bugmailer.sh -v | |
-# class main | |
-# disabled | |
-# oneshot | |
-# keycodes 114 115 116 | |
+service bugreport /system/bin/bugmailer.sh -v | |
+ class main | |
+ disabled | |
+ oneshot | |
+ keycodes 114 115 116 | |
## icd | |
#service icd /system/bin/icd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment